@relay-harness/coding-agent 1.0.2 → 1.0.3
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/CHANGELOG.md +17 -6
- package/LICENSE +22 -0
- package/README.md +12 -13
- package/dist/bundle/chunks/{chunk-XSLAMYCK.js → chunk-5H4IRYOE.js} +555 -61
- package/dist/bundle/chunks/{chunk-H6S6DQTM.js → chunk-NS67SA75.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-FNVEVB65.js → virtual-modules-ZGB2J7DY.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/core/settings-manager.d.ts +5 -3
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/extensions/laya/assessment.d.ts +7 -1
- package/dist/extensions/laya/assessment.d.ts.map +1 -1
- package/dist/extensions/laya/assessment.js +21 -1
- package/dist/extensions/laya/assessment.js.map +1 -1
- package/dist/extensions/laya/docker.d.ts +19 -0
- package/dist/extensions/laya/docker.d.ts.map +1 -0
- package/dist/extensions/laya/docker.js +44 -0
- package/dist/extensions/laya/docker.js.map +1 -0
- package/dist/extensions/laya/index.d.ts +12 -3
- package/dist/extensions/laya/index.d.ts.map +1 -1
- package/dist/extensions/laya/index.js +331 -67
- package/dist/extensions/laya/index.js.map +1 -1
- package/dist/extensions/laya/learn.d.ts +67 -0
- package/dist/extensions/laya/learn.d.ts.map +1 -0
- package/dist/extensions/laya/learn.js +263 -0
- package/dist/extensions/laya/learn.js.map +1 -0
- package/dist/extensions/laya/memory.d.ts +48 -0
- package/dist/extensions/laya/memory.d.ts.map +1 -0
- package/dist/extensions/laya/memory.js +107 -0
- package/dist/extensions/laya/memory.js.map +1 -0
- package/dist/extensions/laya/model-manifest.d.ts +1 -1
- package/dist/extensions/laya/model-manifest.js +1 -1
- package/dist/extensions/laya/model-manifest.js.map +1 -1
- package/dist/extensions/laya/routers.d.ts +8 -0
- package/dist/extensions/laya/routers.d.ts.map +1 -1
- package/dist/extensions/laya/routers.js +2 -0
- package/dist/extensions/laya/routers.js.map +1 -1
- package/dist/extensions/laya/runtime.d.ts +39 -49
- package/dist/extensions/laya/runtime.d.ts.map +1 -1
- package/dist/extensions/laya/runtime.js +93 -145
- package/dist/extensions/laya/runtime.js.map +1 -1
- package/dist/extensions/laya/server.d.ts +39 -15
- package/dist/extensions/laya/server.d.ts.map +1 -1
- package/dist/extensions/laya/server.js +212 -78
- package/dist/extensions/laya/server.js.map +1 -1
- package/dist/extensions/laya/train-script.d.ts +8 -0
- package/dist/extensions/laya/train-script.d.ts.map +1 -0
- package/dist/extensions/laya/train-script.js +422 -0
- package/dist/extensions/laya/train-script.js.map +1 -0
- package/dist/extensions/laya/training.d.ts +176 -0
- package/dist/extensions/laya/training.d.ts.map +1 -0
- package/dist/extensions/laya/training.js +337 -0
- package/dist/extensions/laya/training.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +3 -2
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +4 -4
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/utils/version-check.d.ts.map +1 -1
- package/dist/utils/version-check.js +10 -6
- package/dist/utils/version-check.js.map +1 -1
- package/docs/laya.md +59 -19
- package/docs/quickstart.md +19 -6
- package/docs/settings.md +4 -3
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +15 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Relay is a fork of [pi](https://github.com/earendil-works/pi) by Mario Zechner and Earendil Works. The sections up to 1.0.2 are pi's changelog, kept as history; their issue and pull request links point to pi. Relay 1.0.2, the first release on npm, shipped pi's code as of 2026-10-05 together with Relay's own changes, which are not listed there.
|
|
4
|
+
|
|
5
|
+
## [1.0.3] - 2026-10-07
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Laya runs in Docker instead of a Python environment on the host: `laya/auto` routes with the trained Laya only where Docker is installed and running, and falls back to keyword rules otherwise. The `laya.python` setting is removed; `laya.image` selects another image. See [Laya runs in Docker](docs/laya.md#laya-runs-in-docker).
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `/laya learn [session file]` labels the requests of a session with the evidence of how each went and trains Laya on them in the background. A trained model routes requests only if it scores within 1% of the current one on the held-out test. See [Teach Laya from your sessions](docs/laya.md#teach-laya-from-your-sessions).
|
|
14
|
+
- `/laya train`, `/laya models` and `/laya use <model>` retrain on the collected tasks, list the shipped and trained models, and switch the model that routes requests.
|
|
15
|
+
- Laya memory: a request similar to a task learned with `/laya learn` is routed with that task's labels from the next request on, without waiting for training; the status line shows `(memory)`. Lessons of similar tasks (how to validate, where the change belongs, a mistake to avoid) are given to the running model. `"laya": { "memory": false }` turns both off.
|
|
4
16
|
|
|
5
17
|
### Changed
|
|
6
18
|
|
|
7
|
-
-
|
|
8
|
-
- Output files (full text of truncated tool output, binary MCP resources, codemode images) are now readable only by the user
|
|
19
|
+
- Laya installs itself when Relay starts in interactive mode, without asking: Relay pulls the Laya image from `ghcr.io/eltonssouza/relay-laya` (with Python, torch and the trained model) and keeps a `relay-laya` container running on `127.0.0.1:8737` (no longer 8000, which laya-trainer and many development servers use), so requests do not wait for the model to load. `/laya setup` and `/laya start` do it right away; `"laya": { "autostart": false }` turns it off. The Python environment and model that Relay 1.0.2 installed in `~/.relay/agent/laya` are deleted.
|
|
9
20
|
|
|
10
21
|
### Fixed
|
|
11
22
|
|
|
12
|
-
- Fixed
|
|
13
|
-
- Fixed
|
|
14
|
-
- Fixed
|
|
23
|
+
- Fixed the update notice never appearing: it read the latest GitHub release, which the private repository hides from anonymous users. It now reads `@relay-harness/coding-agent` on npm and shows the update command.
|
|
24
|
+
- Fixed `/laya setup` failing at "Installing torch" on Debian 12 and other distributions whose Python seeds an old pip: Laya no longer uses the host's Python.
|
|
25
|
+
- Fixed package resource filters toggled in `/config` on Windows being saved with backslashes (`-extensions\bar.ts`), which broke shared project settings on Linux and macOS; they are now saved with `/`.
|
|
15
26
|
|
|
16
27
|
## [1.0.2] - 2026-10-04
|
|
17
28
|
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mario Zechner
|
|
4
|
+
Copyright (c) 2026 Elton Souza
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -17,16 +17,13 @@ Use Relay [interactively](docs/usage.md), automate it in [print or JSON mode](do
|
|
|
17
17
|
|
|
18
18
|
## Getting started
|
|
19
19
|
|
|
20
|
-
Relay
|
|
20
|
+
Relay requires Node.js 22.19 or newer. Install it from npm:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
|
|
24
|
-
cd relay-harness
|
|
25
|
-
npm install --ignore-scripts
|
|
26
|
-
npm run build
|
|
23
|
+
npm install -g --ignore-scripts @relay-harness/coding-agent
|
|
27
24
|
```
|
|
28
25
|
|
|
29
|
-
Relay does not require dependency lifecycle scripts. To update Relay,
|
|
26
|
+
Relay does not require dependency lifecycle scripts, so `--ignore-scripts` is safe. To update Relay, run the same command again. `relay update` updates installed packages and model catalogs, not Relay itself.
|
|
30
27
|
|
|
31
28
|
On macOS and Linux, Nix users can install the latest release with `nix profile add github:eltonssouza/relay-harness/stable`. See the [quickstart](docs/quickstart.md#1-install-relay) for updating and pinning releases.
|
|
32
29
|
|
|
@@ -47,16 +44,16 @@ If you use Relay for open source work, please share your coding agent sessions.
|
|
|
47
44
|
|
|
48
45
|
Public OSS session data helps improve models, prompts, tools, and evaluations using real development workflows.
|
|
49
46
|
|
|
50
|
-
For the full explanation, see [this post on X](https://x.com/badlogicgames/status/2037811643774652911).
|
|
47
|
+
For the full explanation, see [this post on X by pi's author](https://x.com/badlogicgames/status/2037811643774652911).
|
|
51
48
|
|
|
52
|
-
To publish sessions, use [`badlogic/pi-share-hf`](https://github.com/badlogic/pi-share-hf)
|
|
49
|
+
To publish sessions, use [`badlogic/pi-share-hf`](https://github.com/badlogic/pi-share-hf), written for pi, with a Hugging Face account and the Hugging Face CLI.
|
|
53
50
|
|
|
54
|
-
- [Demo video](https://x.com/badlogicgames/status/2041151967695634619) on how to publish
|
|
55
|
-
- Published
|
|
51
|
+
- [Demo video](https://x.com/badlogicgames/status/2041151967695634619) on how to publish pi sessions
|
|
52
|
+
- Published pi development sessions: [`badlogicgames/pi-mono` on Hugging Face](https://huggingface.co/datasets/badlogicgames/pi-mono).
|
|
56
53
|
|
|
57
54
|
## Development
|
|
58
55
|
|
|
59
|
-
|
|
56
|
+
To work on Relay itself, clone the repository, install its dependencies, and run Relay from source:
|
|
60
57
|
|
|
61
58
|
```bash
|
|
62
59
|
git clone https://github.com/eltonssouza/relay-harness
|
|
@@ -76,6 +73,8 @@ npm run check
|
|
|
76
73
|
|
|
77
74
|
Read [CONTRIBUTING.md](https://github.com/eltonssouza/relay-harness/blob/main/CONTRIBUTING.md) before opening an issue or pull request. It defines the contribution gate, issue quality bar, and required checks. Read [AGENTS.md](https://github.com/eltonssouza/relay-harness/blob/main/AGENTS.md) for repository-specific implementation, testing, dependency, and release rules.
|
|
78
75
|
|
|
79
|
-
##
|
|
76
|
+
## Credits and license
|
|
77
|
+
|
|
78
|
+
Relay is a fork of [pi](https://github.com/earendil-works/pi), the coding agent by Mario Zechner and Earendil Works, released under the MIT license. Relay adds the model-independent harness core, the `laya/auto` adaptive router, and its own release line on npm.
|
|
80
79
|
|
|
81
|
-
MIT
|
|
80
|
+
MIT. The license text ships in the package as `LICENSE`.
|