@elyracode/coding-agent 0.7.10 → 0.7.11
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 +7 -0
- package/README.md +1 -5
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +5 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +143 -3
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/extensions.md +5 -0
- package/docs/index.md +1 -7
- package/docs/sessions.md +10 -0
- package/docs/usage.md +7 -0
- 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 +4 -4
package/docs/extensions.md
CHANGED
|
@@ -1921,6 +1921,11 @@ elyra.registerTool({
|
|
|
1921
1921
|
|
|
1922
1922
|
Extensions can override built-in tools (`read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`) by registering a tool with the same name. Interactive mode displays a warning when this happens.
|
|
1923
1923
|
|
|
1924
|
+
**Built-in tool behaviors (v0.7.10+):**
|
|
1925
|
+
- `read` returns structural outlines for large files (>150 lines) and annotates lines with `#hash |` prefixes for precise edit targeting
|
|
1926
|
+
- `edit` runs `tsc --noEmit` after each TS/JS edit and appends new diagnostics to the result
|
|
1927
|
+
- `edit` strips `#hash |` prefixes from `oldText`/`newText` so the agent can copy-paste from annotated read output
|
|
1928
|
+
|
|
1924
1929
|
```bash
|
|
1925
1930
|
# Extension's read tool replaces built-in read
|
|
1926
1931
|
elyra -e ./tool-override.ts
|
package/docs/index.md
CHANGED
|
@@ -4,13 +4,7 @@ Elyra is a minimal terminal coding harness. It is designed to stay small at the
|
|
|
4
4
|
|
|
5
5
|
## Quick start
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
curl -fsSL https://elyracode.app/install.sh | sh
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Or alternatively with npm:
|
|
7
|
+
Install Elyra with npm:
|
|
14
8
|
|
|
15
9
|
```bash
|
|
16
10
|
npm install -g @elyracode/coding-agent
|
package/docs/sessions.md
CHANGED
|
@@ -152,6 +152,16 @@ When prompted, choose one of:
|
|
|
152
152
|
|
|
153
153
|
See [Compaction](compaction.md) for branch summarization internals and extension hooks.
|
|
154
154
|
|
|
155
|
+
## Goals
|
|
156
|
+
|
|
157
|
+
`/goal <command>` sets a completion condition. After each agent turn, Elyra runs the command. If it exits with code 0, the goal is met and the agent stops. If it fails, the output is sent back to the agent as a new prompt, and the agent continues working.
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
/goal npm run check
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
The agent keeps editing and fixing until `npm run check` passes. Type `/goal` with no arguments to clear the goal.
|
|
164
|
+
|
|
155
165
|
## Session Format
|
|
156
166
|
|
|
157
167
|
Session files are JSONL and contain message entries, model changes, thinking-level changes, labels, compactions, branch summaries, and extension entries.
|
package/docs/usage.md
CHANGED
|
@@ -59,6 +59,8 @@ Type `/` in the editor to open command completion. Extensions can register custo
|
|
|
59
59
|
| `/export [file]` | Export session to HTML |
|
|
60
60
|
| `/share` | Upload as private GitHub gist with shareable HTML link |
|
|
61
61
|
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files |
|
|
62
|
+
| `/goal <command>` | Set a goal: agent keeps working until the command exits with code 0 |
|
|
63
|
+
| `/update` | Update Elyra to the latest version and restart |
|
|
62
64
|
| `/hotkeys` | Show all keyboard shortcuts |
|
|
63
65
|
| `/changelog` | Display version history |
|
|
64
66
|
| `/quit` | Quit elyra |
|
|
@@ -196,6 +198,11 @@ cat README.md | elyra -p "Summarize this text"
|
|
|
196
198
|
|
|
197
199
|
Built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`.
|
|
198
200
|
|
|
201
|
+
Key tool behaviors:
|
|
202
|
+
|
|
203
|
+
- **`read`** returns a structural outline (function/class signatures with line numbers) for files over 150 lines. Use `offset` and `limit` to read specific sections. Each line is annotated with a content hash for precise edit targeting.
|
|
204
|
+
- **`edit`** runs TypeScript diagnostics after each successful edit and reports new errors to the agent immediately. Hash annotations from `read` output are stripped transparently.
|
|
205
|
+
|
|
199
206
|
### Resource Options
|
|
200
207
|
|
|
201
208
|
| Option | Description |
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elyra-extension-custom-provider",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "elyra-extension-custom-provider",
|
|
9
|
-
"version": "0.7.
|
|
9
|
+
"version": "0.7.11",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.52.0"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elyra-extension-sandbox",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "elyra-extension-sandbox",
|
|
9
|
-
"version": "0.7.
|
|
9
|
+
"version": "0.7.11",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sandbox-runtime": "^0.0.26"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elyra-extension-with-deps",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "elyra-extension-with-deps",
|
|
9
|
-
"version": "0.7.
|
|
9
|
+
"version": "0.7.11",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyracode/coding-agent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"elyraConfig": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"prepublishOnly": "npm run clean && npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@elyracode/agent-core": "^0.7.
|
|
42
|
-
"@elyracode/ai": "^0.7.
|
|
43
|
-
"@elyracode/tui": "^0.7.
|
|
41
|
+
"@elyracode/agent-core": "^0.7.11",
|
|
42
|
+
"@elyracode/ai": "^0.7.11",
|
|
43
|
+
"@elyracode/tui": "^0.7.11",
|
|
44
44
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
45
45
|
"chalk": "^5.5.0",
|
|
46
46
|
"cli-highlight": "^2.1.11",
|