Namespace Kuestenlogik.Bowire.Scripting
Classes
- BowireScriptCall
One script run: the script, the request it belongs to and the scope it may read and write.
- BowireScriptLimits
The sandbox's limits. A script that reaches one is stopped and reported, so a runaway script fails its call rather than the run. The caller fills them from configuration (
Bowire:Scripting:*); these are the values when it sets none.
- BowireScriptRequest
The request a script sees and, before it is sent, may change.
- BowireScriptResponse
The response a post-response script reads.
- BowireScriptResult
What a script run came to.
- BowireScriptRunners
Finds the installed IBowireScriptRunner.
- BowireScriptSender
#1111 —
ctx.sendRequeston the server side: the request goes to the protocol plugin it names, the waybowire callandbowire testinvoke (a request by URL is an ad-hoc call of the REST plugin).
- BowireScriptSendRequest
#1111 — a request a script sends with
ctx.sendRequest.
- BowireScriptSendResponse
#1111 — what a
ctx.sendRequestcame back with.
- BowireScriptSession
The pre-request and post-response scripts of one run (#672): the runner, the values scripts share across the run (
ctx.vars.captured) and the sandbox limits from configuration. Used bybowire test, and since #1059 bybowire calland the MCP toolbowire.invoke.
- JintScriptRunner
Runs scripts with the workbench's own runtime,
wwwroot/js/scripts.js, in Jint (#672). The browser andbowire testtherefore build the samectxfrom the same code: what the conformance suite checks is the engine, not two implementations of one API.
- MethodScriptStore
#1059 — the pre-request and post-response scripts of a workspace's methods, on disk:
scripts.jsonin the workspace's folder (or a git-native workspace's own directory), keyedservice::method. The workbench reads and writes it through/api/scripts;bowire calland the MCP toolbowire.invokeread it, so a method runs with its scripts wherever it is called from.
Interfaces
- IBowireScriptRunner
Runs a request's pre-request and post-response scripts outside the browser (#672): in
bowire test, and anywhere else a call is made on the server side.