@nuanu-ai/agentbrowse 0.2.46 → 0.2.48
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 +69 -10
- package/dist/agentpay-gateway.d.ts +9 -0
- package/dist/agentpay-gateway.d.ts.map +1 -1
- package/dist/agentpay-gateway.js +30 -0
- package/dist/agentpay-stagehand-llm.d.ts.map +1 -1
- package/dist/agentpay-stagehand-llm.js +9 -1
- package/dist/command-api-tracing.d.ts +19 -0
- package/dist/command-api-tracing.d.ts.map +1 -0
- package/dist/command-api-tracing.js +137 -0
- package/dist/commands/act.d.ts.map +1 -1
- package/dist/commands/act.js +822 -670
- package/dist/commands/act.test-harness.d.ts +6 -0
- package/dist/commands/act.test-harness.d.ts.map +1 -1
- package/dist/commands/act.test-harness.js +44 -1
- package/dist/commands/action-acceptance.d.ts.map +1 -1
- package/dist/commands/action-acceptance.js +115 -0
- package/dist/commands/captcha-solve.d.ts.map +1 -1
- package/dist/commands/captcha-solve.js +83 -16
- package/dist/commands/click-action-executor.d.ts +0 -1
- package/dist/commands/click-action-executor.d.ts.map +1 -1
- package/dist/commands/click-action-executor.js +31 -77
- package/dist/commands/close.d.ts +3 -3
- package/dist/commands/close.d.ts.map +1 -1
- package/dist/commands/close.js +178 -0
- package/dist/commands/descriptor-validation.d.ts.map +1 -1
- package/dist/commands/descriptor-validation.js +75 -57
- package/dist/commands/end-session.d.ts +25 -0
- package/dist/commands/end-session.d.ts.map +1 -0
- package/dist/commands/end-session.js +161 -0
- package/dist/commands/extract-stagehand-executor.js +1 -1
- package/dist/commands/extract.d.ts.map +1 -1
- package/dist/commands/extract.js +339 -202
- package/dist/commands/fill-secret.d.ts +3 -3
- package/dist/commands/fill-secret.d.ts.map +1 -1
- package/dist/commands/fill-secret.js +419 -234
- package/dist/commands/get-secrets-catalog.d.ts.map +1 -1
- package/dist/commands/get-secrets-catalog.js +66 -5
- package/dist/commands/interaction-kernel.d.ts +46 -0
- package/dist/commands/interaction-kernel.d.ts.map +1 -0
- package/dist/commands/interaction-kernel.js +215 -0
- package/dist/commands/launch.d.ts +0 -2
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +109 -17
- package/dist/commands/navigate.d.ts.map +1 -1
- package/dist/commands/navigate.js +188 -45
- package/dist/commands/observe-accessibility.d.ts.map +1 -1
- package/dist/commands/observe-accessibility.js +50 -39
- package/dist/commands/observe-dom-label-contract.d.ts.map +1 -1
- package/dist/commands/observe-dom-label-contract.js +5 -0
- package/dist/commands/observe-inventory.d.ts +13 -0
- package/dist/commands/observe-inventory.d.ts.map +1 -1
- package/dist/commands/observe-inventory.js +320 -65
- package/dist/commands/observe-persistence.d.ts.map +1 -1
- package/dist/commands/observe-persistence.js +3 -0
- package/dist/commands/observe-projection.d.ts +1 -0
- package/dist/commands/observe-projection.d.ts.map +1 -1
- package/dist/commands/observe-projection.js +7 -2
- package/dist/commands/observe-protected.d.ts +1 -0
- package/dist/commands/observe-protected.d.ts.map +1 -1
- package/dist/commands/observe-protected.js +9 -4
- package/dist/commands/observe-semantics.d.ts.map +1 -1
- package/dist/commands/observe-semantics.js +5 -2
- package/dist/commands/observe-stagehand.d.ts +1 -0
- package/dist/commands/observe-stagehand.d.ts.map +1 -1
- package/dist/commands/observe-stagehand.js +2 -0
- package/dist/commands/observe.d.ts +2 -0
- package/dist/commands/observe.d.ts.map +1 -1
- package/dist/commands/observe.js +387 -203
- package/dist/commands/observe.test-harness.d.ts +8 -0
- package/dist/commands/observe.test-harness.d.ts.map +1 -1
- package/dist/commands/observe.test-harness.js +48 -1
- package/dist/commands/poll-secret.d.ts +6 -0
- package/dist/commands/poll-secret.d.ts.map +1 -0
- package/dist/commands/poll-secret.js +159 -0
- package/dist/commands/request-secret.d.ts +6 -0
- package/dist/commands/request-secret.d.ts.map +1 -0
- package/dist/commands/request-secret.js +284 -0
- package/dist/commands/screenshot.d.ts.map +1 -1
- package/dist/commands/screenshot.js +172 -7
- package/dist/commands/select-action-executor.d.ts.map +1 -1
- package/dist/commands/semantic-observe.d.ts +4 -0
- package/dist/commands/semantic-observe.d.ts.map +1 -1
- package/dist/commands/semantic-observe.js +388 -17
- package/dist/commands/start-session.d.ts +31 -0
- package/dist/commands/start-session.d.ts.map +1 -0
- package/dist/commands/start-session.js +347 -0
- package/dist/commands/status.d.ts +2 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +166 -144
- package/dist/control-semantics.d.ts +1 -0
- package/dist/control-semantics.d.ts.map +1 -1
- package/dist/control-semantics.js +51 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +144 -45
- package/dist/otel-exporter.d.ts +58 -0
- package/dist/otel-exporter.d.ts.map +1 -0
- package/dist/otel-exporter.js +263 -0
- package/dist/otel-projector.d.ts +75 -0
- package/dist/otel-projector.d.ts.map +1 -0
- package/dist/otel-projector.js +409 -0
- package/dist/owned-browser.d.ts +1 -1
- package/dist/owned-browser.d.ts.map +1 -1
- package/dist/owned-browser.js +13 -1
- package/dist/owned-process.d.ts +2 -0
- package/dist/owned-process.d.ts.map +1 -1
- package/dist/owned-process.js +7 -3
- package/dist/playwright-runtime.d.ts +1 -1
- package/dist/playwright-runtime.d.ts.map +1 -1
- package/dist/playwright-runtime.js +8 -8
- package/dist/run-observability.d.ts +25 -0
- package/dist/run-observability.d.ts.map +1 -0
- package/dist/run-observability.js +115 -0
- package/dist/run-store.d.ts +274 -0
- package/dist/run-store.d.ts.map +1 -0
- package/dist/run-store.js +631 -0
- package/dist/runtime-metrics.d.ts +27 -0
- package/dist/runtime-metrics.d.ts.map +1 -0
- package/dist/runtime-metrics.js +66 -0
- package/dist/runtime-page-state.d.ts +11 -0
- package/dist/runtime-page-state.d.ts.map +1 -0
- package/dist/runtime-page-state.js +62 -0
- package/dist/runtime-protected-state.d.ts +16 -0
- package/dist/runtime-protected-state.d.ts.map +1 -0
- package/dist/runtime-protected-state.js +157 -0
- package/dist/runtime-state.d.ts +10 -44
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +57 -222
- package/dist/secrets/backend.d.ts +65 -16
- package/dist/secrets/backend.d.ts.map +1 -1
- package/dist/secrets/backend.js +135 -95
- package/dist/secrets/catalog-sync.d.ts.map +1 -1
- package/dist/secrets/catalog-sync.js +4 -1
- package/dist/secrets/form-matcher.d.ts +5 -5
- package/dist/secrets/form-matcher.d.ts.map +1 -1
- package/dist/secrets/form-matcher.js +292 -164
- package/dist/secrets/intent-output.d.ts +6 -10
- package/dist/secrets/intent-output.d.ts.map +1 -1
- package/dist/secrets/intent-output.js +4 -58
- package/dist/secrets/mock-agentpay-cabinet.d.ts +38 -27
- package/dist/secrets/mock-agentpay-cabinet.d.ts.map +1 -1
- package/dist/secrets/mock-agentpay-cabinet.js +177 -111
- package/dist/secrets/protected-artifact-guard.d.ts +2 -2
- package/dist/secrets/protected-artifact-guard.d.ts.map +1 -1
- package/dist/secrets/protected-artifact-guard.js +2 -2
- package/dist/secrets/protected-bindings.d.ts +1 -1
- package/dist/secrets/protected-bindings.d.ts.map +1 -1
- package/dist/secrets/protected-bindings.js +6 -0
- package/dist/secrets/protected-field-semantics.d.ts +9 -0
- package/dist/secrets/protected-field-semantics.d.ts.map +1 -0
- package/dist/secrets/protected-field-semantics.js +154 -0
- package/dist/secrets/protected-field-values.d.ts.map +1 -1
- package/dist/secrets/protected-field-values.js +3 -3
- package/dist/secrets/protected-fill.d.ts +1 -1
- package/dist/secrets/protected-fill.d.ts.map +1 -1
- package/dist/secrets/protected-fill.js +45 -149
- package/dist/secrets/protected-value-adapters.d.ts +2 -1
- package/dist/secrets/protected-value-adapters.d.ts.map +1 -1
- package/dist/secrets/protected-value-adapters.js +80 -1
- package/dist/secrets/request-output.d.ts +11 -0
- package/dist/secrets/request-output.d.ts.map +1 -0
- package/dist/secrets/request-output.js +75 -0
- package/dist/secrets/types.d.ts +15 -9
- package/dist/secrets/types.d.ts.map +1 -1
- package/dist/secrets/types.js +3 -0
- package/dist/session-event-exporter.d.ts +36 -0
- package/dist/session-event-exporter.d.ts.map +1 -0
- package/dist/session-event-exporter.js +428 -0
- package/dist/session.d.ts +16 -7
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +150 -23
- package/dist/sessions-backend.d.ts +354 -0
- package/dist/sessions-backend.d.ts.map +1 -0
- package/dist/sessions-backend.js +126 -0
- package/dist/solver/browser-launcher.d.ts +1 -1
- package/dist/solver/browser-launcher.d.ts.map +1 -1
- package/dist/solver/browser-launcher.js +39 -13
- package/dist/solver/captcha-solver.d.ts.map +1 -1
- package/dist/solver/captcha-solver.js +8 -1
- package/dist/solver/types.d.ts +1 -0
- package/dist/solver/types.d.ts.map +1 -1
- package/dist/workflow-session-completion.d.ts +33 -0
- package/dist/workflow-session-completion.d.ts.map +1 -0
- package/dist/workflow-session-completion.js +156 -0
- package/package.json +9 -1
- package/dist/commands/create-intent.d.ts +0 -6
- package/dist/commands/create-intent.d.ts.map +0 -1
- package/dist/commands/create-intent.js +0 -75
- package/dist/commands/poll-intent.d.ts +0 -6
- package/dist/commands/poll-intent.d.ts.map +0 -1
- package/dist/commands/poll-intent.js +0 -57
|
@@ -1,16 +1,165 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* browse screenshot [--path <file>] — Capture a screenshot of the current page.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { setCurrentPage } from '../runtime-page-state.js';
|
|
5
|
+
import { getProtectedExposure } from '../runtime-protected-state.js';
|
|
5
6
|
import { saveSession } from '../session.js';
|
|
6
7
|
import { outputFailure, outputJSON, outputContractFailure, info } from '../output.js';
|
|
7
8
|
import { connectPlaywright, disconnectPlaywright, resolveCurrentPageContext, syncSessionPage, } from '../playwright-runtime.js';
|
|
9
|
+
import { finishRunStep, startRunStep } from '../run-store.js';
|
|
10
|
+
import { appendCommandLifecycleEventBestEffort, captureStepSnapshotBestEffort, } from '../run-observability.js';
|
|
11
|
+
import { exportRunStepToOtlpHttpJsonBestEffort } from '../otel-exporter.js';
|
|
8
12
|
import { buildProtectedScreenshotBlockedResult } from '../secrets/protected-artifact-guard.js';
|
|
13
|
+
function finalizeScreenshotStepBestEffort(runId, stepId, options) {
|
|
14
|
+
if (!runId || !stepId) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
finishRunStep({
|
|
19
|
+
runId,
|
|
20
|
+
stepId,
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
async function emitScreenshotSuccess(params) {
|
|
28
|
+
const step = params.runId && params.stepId
|
|
29
|
+
? { runId: params.runId, stepId: params.stepId, command: 'screenshot' }
|
|
30
|
+
: null;
|
|
31
|
+
captureStepSnapshotBestEffort({
|
|
32
|
+
session: params.session,
|
|
33
|
+
step,
|
|
34
|
+
phase: 'after',
|
|
35
|
+
pageRef: params.pageRef,
|
|
36
|
+
url: params.url,
|
|
37
|
+
title: params.title,
|
|
38
|
+
artifactRefs: {
|
|
39
|
+
screenshotPath: params.path,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
appendCommandLifecycleEventBestEffort({
|
|
43
|
+
step,
|
|
44
|
+
phase: 'completed',
|
|
45
|
+
attributes: {
|
|
46
|
+
outcomeType: 'screenshot_captured',
|
|
47
|
+
pageRef: params.pageRef,
|
|
48
|
+
outputPath: params.path,
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
finalizeScreenshotStepBestEffort(params.runId, params.stepId, {
|
|
52
|
+
success: true,
|
|
53
|
+
outcomeType: 'screenshot_captured',
|
|
54
|
+
message: 'Screenshot captured.',
|
|
55
|
+
});
|
|
56
|
+
await exportRunStepToOtlpHttpJsonBestEffort(params.runId, params.stepId);
|
|
57
|
+
return outputJSON({
|
|
58
|
+
success: true,
|
|
59
|
+
pageRef: params.pageRef,
|
|
60
|
+
path: params.path,
|
|
61
|
+
url: params.url,
|
|
62
|
+
title: params.title,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
async function emitScreenshotFailure(session, params) {
|
|
66
|
+
const step = params.runId && params.stepId
|
|
67
|
+
? { runId: params.runId, stepId: params.stepId, command: 'screenshot' }
|
|
68
|
+
: null;
|
|
69
|
+
captureStepSnapshotBestEffort({
|
|
70
|
+
session,
|
|
71
|
+
step,
|
|
72
|
+
phase: 'point-in-time',
|
|
73
|
+
pageRef: typeof params.pageRef === 'string' ? params.pageRef : session.runtime?.currentPageRef,
|
|
74
|
+
});
|
|
75
|
+
appendCommandLifecycleEventBestEffort({
|
|
76
|
+
step,
|
|
77
|
+
phase: 'failed',
|
|
78
|
+
attributes: {
|
|
79
|
+
outcomeType: typeof params.outcomeType === 'string' ? params.outcomeType : params.error,
|
|
80
|
+
pageRef: typeof params.pageRef === 'string' ? params.pageRef : undefined,
|
|
81
|
+
reason: typeof params.reason === 'string' ? params.reason : params.error,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
finalizeScreenshotStepBestEffort(params.runId, params.stepId, {
|
|
85
|
+
success: false,
|
|
86
|
+
outcomeType: typeof params.outcomeType === 'string' ? params.outcomeType : params.error,
|
|
87
|
+
message: typeof params.message === 'string' ? params.message : params.error,
|
|
88
|
+
reason: typeof params.reason === 'string' ? params.reason : params.error,
|
|
89
|
+
});
|
|
90
|
+
await exportRunStepToOtlpHttpJsonBestEffort(params.runId, params.stepId);
|
|
91
|
+
const { runId: _runId, stepId: _stepId, ...result } = params;
|
|
92
|
+
return outputFailure(result);
|
|
93
|
+
}
|
|
94
|
+
async function emitScreenshotContractFailure(session, params) {
|
|
95
|
+
const step = params.runId && params.stepId
|
|
96
|
+
? { runId: params.runId, stepId: params.stepId, command: 'screenshot' }
|
|
97
|
+
: null;
|
|
98
|
+
captureStepSnapshotBestEffort({
|
|
99
|
+
session,
|
|
100
|
+
step,
|
|
101
|
+
phase: 'point-in-time',
|
|
102
|
+
pageRef: typeof params.pageRef === 'string' ? params.pageRef : session.runtime?.currentPageRef,
|
|
103
|
+
});
|
|
104
|
+
appendCommandLifecycleEventBestEffort({
|
|
105
|
+
step,
|
|
106
|
+
phase: 'failed',
|
|
107
|
+
attributes: {
|
|
108
|
+
outcomeType: params.outcomeType,
|
|
109
|
+
pageRef: typeof params.pageRef === 'string' ? params.pageRef : undefined,
|
|
110
|
+
reason: params.reason,
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
finalizeScreenshotStepBestEffort(params.runId, params.stepId, {
|
|
114
|
+
success: false,
|
|
115
|
+
outcomeType: params.outcomeType,
|
|
116
|
+
message: params.message,
|
|
117
|
+
reason: params.reason,
|
|
118
|
+
});
|
|
119
|
+
await exportRunStepToOtlpHttpJsonBestEffort(params.runId, params.stepId);
|
|
120
|
+
const { runId: _runId, stepId: _stepId, ...result } = params;
|
|
121
|
+
return outputContractFailure(result);
|
|
122
|
+
}
|
|
9
123
|
export async function screenshot(session, filePath) {
|
|
10
124
|
const outputPath = filePath ?? `/tmp/browse-screenshot-${Date.now()}.png`;
|
|
11
125
|
const initialPageRef = session.runtime?.currentPageRef ?? 'p0';
|
|
12
126
|
let pageRef = initialPageRef;
|
|
13
127
|
const initialProtectedExposure = getProtectedExposure(session, initialPageRef);
|
|
128
|
+
const screenshotStep = session.activeRunId
|
|
129
|
+
? startRunStep({
|
|
130
|
+
runId: session.activeRunId,
|
|
131
|
+
command: 'screenshot',
|
|
132
|
+
input: {
|
|
133
|
+
outputPath,
|
|
134
|
+
},
|
|
135
|
+
refs: {
|
|
136
|
+
pageRef: initialPageRef,
|
|
137
|
+
},
|
|
138
|
+
protectedStep: Boolean(initialProtectedExposure),
|
|
139
|
+
})
|
|
140
|
+
: null;
|
|
141
|
+
const screenshotStepHandle = session.activeRunId && screenshotStep?.stepId
|
|
142
|
+
? {
|
|
143
|
+
runId: session.activeRunId,
|
|
144
|
+
stepId: screenshotStep.stepId,
|
|
145
|
+
command: 'screenshot',
|
|
146
|
+
}
|
|
147
|
+
: null;
|
|
148
|
+
captureStepSnapshotBestEffort({
|
|
149
|
+
session,
|
|
150
|
+
step: screenshotStepHandle,
|
|
151
|
+
phase: 'before',
|
|
152
|
+
pageRef: initialPageRef,
|
|
153
|
+
});
|
|
154
|
+
appendCommandLifecycleEventBestEffort({
|
|
155
|
+
step: screenshotStepHandle,
|
|
156
|
+
phase: 'started',
|
|
157
|
+
attributes: {
|
|
158
|
+
outputPath,
|
|
159
|
+
pageRef: initialPageRef,
|
|
160
|
+
protectedStep: Boolean(initialProtectedExposure),
|
|
161
|
+
},
|
|
162
|
+
});
|
|
14
163
|
let browser = null;
|
|
15
164
|
let failureMessage = null;
|
|
16
165
|
let page = null;
|
|
@@ -18,11 +167,13 @@ export async function screenshot(session, filePath) {
|
|
|
18
167
|
browser = await connectPlaywright(session.cdpUrl);
|
|
19
168
|
}
|
|
20
169
|
catch (err) {
|
|
21
|
-
return
|
|
170
|
+
return emitScreenshotContractFailure(session, {
|
|
22
171
|
error: 'browser_connection_failed',
|
|
23
172
|
outcomeType: 'blocked',
|
|
24
173
|
message: 'Screenshot capture could not start because AgentBrowse failed to connect to the browser.',
|
|
25
174
|
reason: err instanceof Error ? err.message : String(err),
|
|
175
|
+
runId: session.activeRunId,
|
|
176
|
+
stepId: screenshotStep?.stepId,
|
|
26
177
|
});
|
|
27
178
|
}
|
|
28
179
|
try {
|
|
@@ -40,10 +191,14 @@ export async function screenshot(session, filePath) {
|
|
|
40
191
|
saveSession(session);
|
|
41
192
|
}
|
|
42
193
|
if (browser) {
|
|
43
|
-
disconnectPlaywright(browser);
|
|
194
|
+
await disconnectPlaywright(browser);
|
|
44
195
|
browser = null;
|
|
45
196
|
}
|
|
46
|
-
return
|
|
197
|
+
return emitScreenshotFailure(session, {
|
|
198
|
+
...buildProtectedScreenshotBlockedResult(recoveredProtectedExposure),
|
|
199
|
+
runId: session.activeRunId,
|
|
200
|
+
stepId: screenshotStep?.stepId,
|
|
201
|
+
});
|
|
47
202
|
}
|
|
48
203
|
try {
|
|
49
204
|
if (!page) {
|
|
@@ -54,22 +209,32 @@ export async function screenshot(session, filePath) {
|
|
|
54
209
|
const { url, title } = await syncSessionPage(session, pageRef, page);
|
|
55
210
|
setCurrentPage(session, pageRef);
|
|
56
211
|
saveSession(session);
|
|
57
|
-
|
|
212
|
+
return emitScreenshotSuccess({
|
|
213
|
+
session,
|
|
214
|
+
runId: session.activeRunId,
|
|
215
|
+
stepId: screenshotStep?.stepId,
|
|
216
|
+
pageRef,
|
|
217
|
+
path: outputPath,
|
|
218
|
+
url,
|
|
219
|
+
title,
|
|
220
|
+
});
|
|
58
221
|
}
|
|
59
222
|
catch (err) {
|
|
60
223
|
failureMessage = `Screenshot failed: ${err instanceof Error ? err.message : String(err)}`;
|
|
61
224
|
}
|
|
62
225
|
finally {
|
|
63
226
|
if (browser) {
|
|
64
|
-
disconnectPlaywright(browser);
|
|
227
|
+
await disconnectPlaywright(browser);
|
|
65
228
|
}
|
|
66
229
|
}
|
|
67
230
|
if (failureMessage) {
|
|
68
|
-
|
|
231
|
+
return emitScreenshotContractFailure(session, {
|
|
69
232
|
error: 'screenshot_failed',
|
|
70
233
|
outcomeType: 'blocked',
|
|
71
234
|
message: 'Screenshot capture failed.',
|
|
72
235
|
reason: failureMessage.replace(/^Screenshot failed:\s*/, ''),
|
|
236
|
+
runId: session.activeRunId,
|
|
237
|
+
stepId: screenshotStep?.stepId,
|
|
73
238
|
});
|
|
74
239
|
}
|
|
75
240
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-action-executor.d.ts","sourceRoot":"","sources":["../../src/commands/select-action-executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAA2B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,KAAK,WAAW,GAAG,IAAI,GAAG,YAAY,GAAG,OAAO,CAAC;AAajD,KAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,0BAA0B,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"select-action-executor.d.ts","sourceRoot":"","sources":["../../src/commands/select-action-executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAA2B,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,KAAK,WAAW,GAAG,IAAI,GAAG,YAAY,GAAG,OAAO,CAAC;AAajD,KAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,0BAA0B,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrF,CAAC;AAmKF,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,mBAAmB,EAC5B,MAAM,CAAC,EAAE,qBAAqB,GAC7B,OAAO,CAAC,OAAO,CAAC,CAsElB"}
|
|
@@ -3,8 +3,10 @@ import type { TargetAcceptancePolicy, TargetAllowedAction, TargetCapability, Tar
|
|
|
3
3
|
type ObserveInventoryTarget = {
|
|
4
4
|
kind?: string;
|
|
5
5
|
label?: string;
|
|
6
|
+
displayLabel?: string;
|
|
6
7
|
role?: string;
|
|
7
8
|
interactionHint?: 'click';
|
|
9
|
+
text?: string;
|
|
8
10
|
placeholder?: string;
|
|
9
11
|
title?: string;
|
|
10
12
|
states?: Record<string, string | boolean | number>;
|
|
@@ -24,6 +26,8 @@ type ObserveInventoryTarget = {
|
|
|
24
26
|
pageSignature?: string;
|
|
25
27
|
goalInventoryType?: 'target' | 'scope';
|
|
26
28
|
goalSurfaceId?: string;
|
|
29
|
+
goalLabel?: string;
|
|
30
|
+
goalAliases?: string[];
|
|
27
31
|
controlsSurfaceSelector?: string;
|
|
28
32
|
};
|
|
29
33
|
export declare function rerankDomTargetsForGoal<T extends ObserveInventoryTarget>(instruction: string, targets: ReadonlyArray<T>, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-observe.d.ts","sourceRoot":"","sources":["../../src/commands/semantic-observe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"semantic-observe.d.ts","sourceRoot":"","sources":["../../src/commands/semantic-observe.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAY7B,KAAK,sBAAsB,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAuoDF,wBAAsB,uBAAuB,CAAC,CAAC,SAAS,sBAAsB,EAC5E,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,aAAa,CAAA;CAAO,GACxC,OAAO,CAAC,CAAC,EAAE,CAAC,CAqGd"}
|