imagera-code 1.19.5 → 1.19.7

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.
Files changed (2) hide show
  1. package/README.md +79 -3
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,13 +1,89 @@
1
1
  # Imagera Code
2
2
 
3
- A coding agent for your terminal, running on Imagera.
3
+ A coding agent for your terminal, running on Imagera. It reads your project, edits files, runs your tests and shows you the diff, on models from Anthropic, OpenAI, Google, xAI, DeepSeek, Qwen, Zhipu and more, switchable mid-session.
4
4
 
5
5
  ```sh
6
6
  npm i -g imagera-code
7
- imagera-code login
8
- imagera-code
7
+ imagera-code login # approve in the browser
8
+ imagera-code # start in any project
9
9
  ```
10
10
 
11
+ No Node.js? Install the same build without npm (run it again to update):
12
+
13
+ ```sh
14
+ curl -fsSL https://api.imagera.ai/code/install | bash # macOS, Linux
15
+ irm https://api.imagera.ai/code/install.ps1 | iex # Windows PowerShell
16
+ ```
17
+
18
+ ## What it does
19
+
20
+ - **Fix, build, refactor, migrate.** Describe the change; it edits the files and runs your tests until they pass.
21
+ - **Any model.** `/models` switches model mid-session; `-m imagera/<model>` picks one for a run.
22
+ - **Plan first.** `/plan` (or `--agent plan`) writes a plan without touching files.
23
+ - **Review before you push.** `/review` reviews your uncommitted changes, a branch or a commit; `/security-review` looks for injection, leaked secrets and missing auth checks.
24
+ - **Goals, not steps.** `/goal <condition>` keeps working until the condition is true.
25
+ - **Subagents.** Ask for several things at once and it runs them in parallel, each in its own context.
26
+ - **Images.** Attach a screenshot or diagram: `imagera-code run "what is wrong here?" -f screenshot.png`.
27
+ - **MCP servers.** Add tools in `~/.config/imagera-code/opencode.jsonc` under `"mcp"`; `imagera-code mcp list` shows them.
28
+ - **Hooks.** A plugin in `.opencode/plugin/*.ts` can check or block tool calls, for example:
29
+
30
+ ```ts
31
+ export const Guard = async () => ({
32
+ "tool.execute.before": async (input, output) => {
33
+ if (input.tool === "bash" && /rm\s+-rf/.test(output.args.command ?? "")) throw new Error("Blocked by project policy")
34
+ },
35
+ })
36
+ ```
37
+ - **Usage at a glance.** `/usage` (or `imagera-code status`) shows your plan and its short and weekly limits.
38
+
39
+ ## Scripts and CI
40
+
41
+ ```sh
42
+ imagera-code run "fix the failing test" # one task, then exit
43
+ imagera-code run --format json "…" # machine-readable events
44
+ imagera-code setup-token # a one-year key for CI (prints it; saves nothing)
45
+ echo "$KEY" | imagera-code login --with-api-key # or set IMAGERA_API_KEY
46
+ ```
47
+
48
+ ### Review every pull request on GitHub
49
+
50
+ Save the key from `imagera-code setup-token` as the repository secret `IMAGERA_API_KEY`, then add `.github/workflows/imagera-code-review.yml`:
51
+
52
+ ```yaml
53
+ # Imagera Code reviews every pull request and posts the review as a comment.
54
+ # Setup: run `imagera-code setup-token` once and save the printed key as the repository secret IMAGERA_API_KEY.
55
+ name: Imagera Code review
56
+ on:
57
+ pull_request:
58
+ types: [opened, synchronize, reopened]
59
+ permissions:
60
+ contents: read
61
+ pull-requests: write
62
+ jobs:
63
+ review:
64
+ runs-on: ubuntu-latest
65
+ steps:
66
+ - uses: actions/checkout@v4
67
+ with: { fetch-depth: 0 }
68
+ - uses: actions/setup-node@v4
69
+ with: { node-version: '22' }
70
+ - run: npm i -g imagera-code
71
+ - name: Review the changes in this pull request
72
+ env:
73
+ IMAGERA_API_KEY: ${{ secrets.IMAGERA_API_KEY }}
74
+ BASE: origin/${{ github.event.pull_request.base.ref }}
75
+ run: |
76
+ imagera-code run --command review "$BASE" < /dev/null > review.md
77
+ cat review.md
78
+ - name: Post the review on the pull request
79
+ env: { GH_TOKEN: '${{ github.token }}' }
80
+ run: gh pr comment ${{ github.event.pull_request.number }} --body-file review.md
81
+ ```
82
+
83
+ ## Privacy
84
+
85
+ When something breaks, the app sends a short report (error kind and message with paths, emails and keys removed, app version, OS, model) to Imagera. Never your code, prompts or files. Turn it off with `IMAGERA_TELEMETRY=0`.
86
+
11
87
  Plans and usage: https://imagera.ai/code · Terms: https://imagera.ai/terms · Support: https://imagera.ai/support
12
88
 
13
89
  Based on OpenCode (MIT). See LICENSE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imagera-code",
3
- "version": "1.19.5",
3
+ "version": "1.19.7",
4
4
  "license": "MIT",
5
5
  "homepage": "https://imagera.ai/code",
6
6
  "description": "Imagera Code: a coding agent for your terminal.",
@@ -17,17 +17,17 @@
17
17
  "x64"
18
18
  ],
19
19
  "optionalDependencies": {
20
- "imagera-code-windows-x64-baseline": "1.19.5",
21
- "imagera-code-linux-x64-baseline": "1.19.5",
22
- "imagera-code-linux-x64-musl": "1.19.5",
23
- "imagera-code-linux-arm64-musl": "1.19.5",
24
- "imagera-code-darwin-arm64": "1.19.5",
25
- "imagera-code-windows-arm64": "1.19.5",
26
- "imagera-code-darwin-x64-baseline": "1.19.5",
27
- "imagera-code-linux-arm64": "1.19.5",
28
- "imagera-code-linux-x64-baseline-musl": "1.19.5",
29
- "imagera-code-darwin-x64": "1.19.5",
30
- "imagera-code-linux-x64": "1.19.5",
31
- "imagera-code-windows-x64": "1.19.5"
20
+ "imagera-code-windows-x64-baseline": "1.19.7",
21
+ "imagera-code-linux-x64-baseline": "1.19.7",
22
+ "imagera-code-linux-x64-musl": "1.19.7",
23
+ "imagera-code-linux-arm64-musl": "1.19.7",
24
+ "imagera-code-darwin-arm64": "1.19.7",
25
+ "imagera-code-windows-arm64": "1.19.7",
26
+ "imagera-code-darwin-x64-baseline": "1.19.7",
27
+ "imagera-code-linux-arm64": "1.19.7",
28
+ "imagera-code-linux-x64-baseline-musl": "1.19.7",
29
+ "imagera-code-darwin-x64": "1.19.7",
30
+ "imagera-code-linux-x64": "1.19.7",
31
+ "imagera-code-windows-x64": "1.19.7"
32
32
  }
33
33
  }