@operad-io/harness-radian 0.0.1 → 0.1.0

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 CHANGED
@@ -1,55 +1,13 @@
1
1
  # @operad-io/harness-radian
2
2
 
3
- The `radian` plugin: one `agent` step that runs `radian exec` in a
4
- directory and reads its closing result, and the `radian:prompt` flow
5
- that runs one prompt.
3
+ **The radian harness.** Runs `radian exec` in a directory as one agent step and reads its closing result.
6
4
 
7
- ## Asking and resuming
5
+ This package is part of [operad](https://github.com/operad-io/operad). Most people install only [`@operad-io/cli`](https://www.npmjs.com/package/@operad-io/cli).
8
6
 
9
- The step is `resumable: true`: its params may carry `resumeSession` (passed as
10
- `--resume`) and `askAnswer`, which adds `You asked: <prompt>. The answer is:
11
- <answer>. Continue.` to the prompt.
7
+ ## Documentation
12
8
 
13
- radian has no hook that sees its tool calls, so this harness cannot let one call
14
- through and no other. The step says `grants: false`, so `ctx.ask` refuses a
15
- question that offers a one-time permission before anyone is asked. A run whose
16
- access profile has one anyway is refused by the step with the reason
17
- `grant_unsupported`, naming radian; use `pi` for flows that grant.
9
+ - User guide: [docs/user/dev.md](https://github.com/operad-io/operad/blob/main/docs/user/dev.md)
10
+ - Website: <https://operad.io>
11
+ - Developer reference: `REFERENCE.md` in this directory
18
12
 
19
- radian is the degraded harness for questions (`operad-contract.md` decision 6):
20
- its step declares no `enforces`, so a profile with `askCommands` is refused at
21
- start with the field named, and a question the step asks is `reject_once` with no
22
- grant (`degradedAskRequest` in `@operad-io/harness-process`): once the grace
23
- passes it is refused, because a late `allow_once` could not be carried out.
24
- `claude` and `pi` do the full loop.
25
-
26
- With `resumeSession`, the `Result` must name that same session; another id fails
27
- the step with `session_missing`, because radian started afresh.
28
-
29
- ## Settings
30
-
31
- The `radian` section of `config.json`.
32
-
33
- | setting | type | default | meaning |
34
- |---|---|---|---|
35
- | `command` | string | `radian` | the radian executable to run |
36
- | `wallTimeSecs` | number | `300` | the longest one run may take |
37
- | `stallSecs` | number | `600` | how long a run may print nothing |
38
- | `concurrency` | object, model to positive integer | `{}` | how many runs of one model may go at once, such as `{ "opencode-go/deepseek-v4.1-flash": 2 }`; a model not listed has no limit |
39
-
40
- How `concurrency` limits runs, what the key is and how a queued step shows
41
- are in [the manual](../../../docs/user/dev.md#limiting-runs-of-one-model).
42
-
43
- ## The log's tool lines
44
-
45
- The step rewrites radian's `ToolExecutionStarted` and `ToolExecutionSettled`
46
- journal lines as `tool_execution_start` and `tool_execution_end`, the lines
47
- `claude` and `pi` write. The start carries `at` and `input`
48
- (the command, first 500 characters, or the path or main argument; environment
49
- assignment values and secret values are masked); the end carries `durationMs` and, for an
50
- error, its first line as `error`. The tool name, call id and arguments are
51
- read from `toolName`, `toolCallId` and `input` (also `tool`, `args` and
52
- `id`), at the top of the line or under `data`. A call the run's
53
- access profile denies is written as `<tool> denied by the access profile`.
54
- Tool output is never written. The dev task's Log section renders these lines
55
- like the other harnesses'.
13
+ MIT licensed.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@operad-io/harness-radian",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "@operad-io/access-match": "0.0.1",
10
- "@operad-io/engine": "0.0.1",
11
- "@operad-io/harness-process": "0.0.1"
9
+ "@operad-io/access-match": "0.1.0",
10
+ "@operad-io/engine": "0.1.0",
11
+ "@operad-io/harness-process": "0.1.0"
12
12
  },
13
- "description": "operad: the radian harness (in development)",
13
+ "description": "operad: the radian harness",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git+https://github.com/operad-io/operad.git",
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  * used; the kernel never knows how radian is started.
6
6
  */
7
7
 
8
+ import pkg from "../package.json" with { type: "json" };
8
9
  import { mkdir, readFile, writeFile } from "node:fs/promises";
9
10
  import { dirname } from "node:path";
10
11
  import { fileURLToPath } from "node:url";
@@ -523,7 +524,7 @@ export function createRadianHarnessPlugin(settings: RadianHarnessSettings = {})
523
524
  return definePlugin({
524
525
  name: "radian",
525
526
  kind: "harness",
526
- version: "0.0.0",
527
+ version: pkg.version,
527
528
  models: RADIAN_MODELS,
528
529
  efforts: RADIAN_EFFORTS,
529
530
  settings: PLUGIN_SETTINGS,