Pocok.Scripting
0.2.0-alpha.7
Prefix Reserved
dotnet add package Pocok.Scripting --version 0.2.0-alpha.7
NuGet\Install-Package Pocok.Scripting -Version 0.2.0-alpha.7
<PackageReference Include="Pocok.Scripting" Version="0.2.0-alpha.7" />
<PackageVersion Include="Pocok.Scripting" Version="0.2.0-alpha.7" />
<PackageReference Include="Pocok.Scripting" />
paket add Pocok.Scripting --version 0.2.0-alpha.7
#r "nuget: Pocok.Scripting, 0.2.0-alpha.7"
#:package Pocok.Scripting@0.2.0-alpha.7
#addin nuget:?package=Pocok.Scripting&version=0.2.0-alpha.7&prerelease
#tool nuget:?package=Pocok.Scripting&version=0.2.0-alpha.7&prerelease
Pocok.Scripting
Engine-neutral contracts for bounded script execution. Hosts explicitly register IScriptEngineAdapter implementations in a ScriptEngineRegistry, then construct ScriptRunner from that registry. The core package contains no language runtime.
var registry = new ScriptEngineRegistry(adapters);
var runner = new ScriptRunner(registry);
var request = new ScriptExecutionRequest(ScriptEngineId.JavaScript, "job-42", source)
{
ExpectResult = true
};
ScriptResult<object?> result = await runner.ExecuteAsync(request, new ScriptExecutionOptions
{
Timeout = TimeSpan.FromSeconds(1),
MaxOutputBytes = 32 * 1024
}, cancellationToken);
Boundaries
Validation always runs before adapter execution. Validators are fail-closed guardrails, not an operating-system sandbox. Common source, output, timeout, and cancellation rules are enforced by the runner. Engine-specific limits are requested only when the descriptor says the adapter can enforce them. Safe failures never include source, raw stderr, environment values, absolute paths, or worker exceptions.
Imports remain explicit and engine-aware through IScriptImportSyntax, ScriptModuleResolver, and ScriptImportInjector. Persistence, file watching, remote acquisition, and multi-file workspaces are outside this alpha contract.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pocok.Conversion (>= 0.2.0-alpha.7)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Pocok.Scripting:
| Package | Downloads |
|---|---|
|
Pocok.Scripting.CSharp
Killable trusted-local C# script adapter for Pocok.Scripting. |
|
|
Pocok.Scripting.JavaScript
Restricted Jint JavaScript adapter for Pocok.Scripting. |
|
|
Pocok.Scripting.Python
Isolated CPython 3.14 trusted-local adapter for Pocok.Scripting. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-alpha.7 | 69 | 7/20/2026 |
| 0.2.0-alpha.6 | 49 | 7/20/2026 |
| 0.2.0-alpha.5 | 50 | 7/18/2026 |