refactor(observation): internalize capture budgets
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import {
|
||||
browserTargetListSchema,
|
||||
inspectWebPageInputSchema,
|
||||
inspectWebPageToolInputSchema,
|
||||
listBrowserTargetsInputSchema,
|
||||
webPageInspectionSchema,
|
||||
} from "../domain/browserObservation.js";
|
||||
@@ -140,7 +140,7 @@ export const BROWSER_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Passively inspect one approved page target through CDP without evaluating JavaScript, navigating, clicking, closing, or mutating the page. Returns bounded DOM structure, accessibility, scripts, resources, attach-window network and console metadata, workers, and redacted storage inventory as Evidence.",
|
||||
kind: "browser-provider",
|
||||
inputSchema: inspectWebPageInputSchema,
|
||||
inputSchema: inspectWebPageToolInputSchema,
|
||||
outputSchema: inspectionOutputSchema,
|
||||
examples: [
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import {
|
||||
electronPageInspectionSchema,
|
||||
electronTargetListSchema,
|
||||
inspectElectronPageInputSchema,
|
||||
inspectElectronPageToolInputSchema,
|
||||
listElectronTargetsInputSchema,
|
||||
} from "../domain/electronObservation.js";
|
||||
import {
|
||||
@@ -74,7 +74,7 @@ export const ELECTRON_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Passively inspect one approved Electron file page through CDP. Returns root-confined frames, DOM structure, resource paths, and scripts without evaluating renderer JavaScript or invoking Electron APIs; script contents require separate approval.",
|
||||
kind: "electron-provider",
|
||||
inputSchema: inspectElectronPageInputSchema,
|
||||
inputSchema: inspectElectronPageToolInputSchema,
|
||||
outputSchema: inspectionOutputSchema,
|
||||
examples: [
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
javascriptRuntimeObservationSchema,
|
||||
javascriptRuntimeTargetListSchema,
|
||||
listJavaScriptRuntimeTargetsInputSchema,
|
||||
observeJavaScriptRuntimeInputSchema,
|
||||
observeJavaScriptRuntimeToolInputSchema,
|
||||
} from "../domain/javascriptRuntimeObservation.js";
|
||||
|
||||
const root = "/opt/example-app";
|
||||
@@ -38,7 +38,7 @@ export const JAVASCRIPT_RUNTIME_OBSERVATION_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Attach passively to one exact approved Node/Electron V8 Inspector target and capture bounded Debugger.scriptParsed plus Runtime execution-context events. REA sends only Runtime.enable and Debugger.enable: it never evaluates, pauses, resumes, reads source, or instruments the target. require/import edges, EventEmitter activity, and Electron IPC remain explicit unknowns; reconcile the returned Evidence with static Application Graph Evidence using reconcile_javascript_runtime.",
|
||||
kind: "runtime-provider",
|
||||
inputSchema: observeJavaScriptRuntimeInputSchema,
|
||||
inputSchema: observeJavaScriptRuntimeToolInputSchema,
|
||||
outputSchema: evidenceResultOf(javascriptRuntimeObservationSchema),
|
||||
examples: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user