test(code-runtime): complete sandboxed process coverage and catalogs
This commit is contained in:
1 parent
8e19ec4962
commit
fc5cb0f649
31 files changed
+361
-169
No files matched your search
@@ -208,15 +208,19 @@ Registers one `ctx.codeRuntime` implementation. Program, budget, abort, and subs
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Execute one program against the request's bindings and capture what it
|
||||
* emitted. See the class doc for the resolution contract (error is a result
|
||||
* field; rejection means Service Definition contract misuse only).
|
||||
* @param request - the program, its bindings, and the abort signal; the
|
||||
* request carries everything the runtime acts on, with no hidden defaults.
|
||||
* @returns the run's outcome: completion value (when transferable), the
|
||||
* ordered log capture, and the failure (if any).
|
||||
* Resolve supported options and provider defaults before execution.
|
||||
* @param request - Program, bindings, cancellation and optional execution choices.
|
||||
* @returns Complete directory, deadline and supported authority for run.
|
||||
* @throws When an explicit choice is invalid or unsupported by this provider.
|
||||
*/
|
||||
abstract run(request: CodeRunRequest): Promise<CodeRunResult>
|
||||
abstract resolve(request: CodeRunRequest): CodeRunSpec
|
||||
|
||||
/**
|
||||
* Execute resolved inputs; program outcomes resolve as result fields.
|
||||
* @param spec - directory, deadline, program, bindings, cancellation and supported policy.
|
||||
* @returns Captured output and the execution outcome.
|
||||
*/
|
||||
abstract run(spec: CodeRunSpec): Promise<CodeRunResult>
|
||||
```
|
||||
|
||||
Source: [`packages/code-runtime/code-runtime/src/index.ts`](../../packages/code-runtime/code-runtime/src/index.ts)
|
||||
|
||||
Reference in new issue
Block a user