imagera-code 1.19.5 → 1.19.6

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 +72 -3
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,13 +1,82 @@
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
+ ## What it does
12
+
13
+ - **Fix, build, refactor, migrate.** Describe the change; it edits the files and runs your tests until they pass.
14
+ - **Any model.** `/models` switches model mid-session; `-m imagera/<model>` picks one for a run.
15
+ - **Plan first.** `/plan` (or `--agent plan`) writes a plan without touching files.
16
+ - **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.
17
+ - **Goals, not steps.** `/goal <condition>` keeps working until the condition is true.
18
+ - **Subagents.** Ask for several things at once and it runs them in parallel, each in its own context.
19
+ - **Images.** Attach a screenshot or diagram: `imagera-code run "what is wrong here?" -f screenshot.png`.
20
+ - **MCP servers.** Add tools in `~/.config/imagera-code/opencode.jsonc` under `"mcp"`; `imagera-code mcp list` shows them.
21
+ - **Hooks.** A plugin in `.opencode/plugin/*.ts` can check or block tool calls, for example:
22
+
23
+ ```ts
24
+ export const Guard = async () => ({
25
+ "tool.execute.before": async (input, output) => {
26
+ if (input.tool === "bash" && /rm\s+-rf/.test(output.args.command ?? "")) throw new Error("Blocked by project policy")
27
+ },
28
+ })
29
+ ```
30
+ - **Usage at a glance.** `/usage` (or `imagera-code status`) shows your plan and its short and weekly limits.
31
+
32
+ ## Scripts and CI
33
+
34
+ ```sh
35
+ imagera-code run "fix the failing test" # one task, then exit
36
+ imagera-code run --format json "…" # machine-readable events
37
+ imagera-code setup-token # a one-year key for CI (prints it; saves nothing)
38
+ echo "$KEY" | imagera-code login --with-api-key # or set IMAGERA_API_KEY
39
+ ```
40
+
41
+ ### Review every pull request on GitHub
42
+
43
+ Save the key from `imagera-code setup-token` as the repository secret `IMAGERA_API_KEY`, then add `.github/workflows/imagera-code-review.yml`:
44
+
45
+ ```yaml
46
+ # Imagera Code reviews every pull request and posts the review as a comment.
47
+ # Setup: run `imagera-code setup-token` once and save the printed key as the repository secret IMAGERA_API_KEY.
48
+ name: Imagera Code review
49
+ on:
50
+ pull_request:
51
+ types: [opened, synchronize, reopened]
52
+ permissions:
53
+ contents: read
54
+ pull-requests: write
55
+ jobs:
56
+ review:
57
+ runs-on: ubuntu-latest
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+ with: { fetch-depth: 0 }
61
+ - uses: actions/setup-node@v4
62
+ with: { node-version: '22' }
63
+ - run: npm i -g imagera-code
64
+ - name: Review the changes in this pull request
65
+ env:
66
+ IMAGERA_API_KEY: ${{ secrets.IMAGERA_API_KEY }}
67
+ BASE: origin/${{ github.event.pull_request.base.ref }}
68
+ run: |
69
+ imagera-code run --command review "$BASE" < /dev/null > review.md
70
+ cat review.md
71
+ - name: Post the review on the pull request
72
+ env: { GH_TOKEN: '${{ github.token }}' }
73
+ run: gh pr comment ${{ github.event.pull_request.number }} --body-file review.md
74
+ ```
75
+
76
+ ## Privacy
77
+
78
+ 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`.
79
+
11
80
  Plans and usage: https://imagera.ai/code · Terms: https://imagera.ai/terms · Support: https://imagera.ai/support
12
81
 
13
82
  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.6",
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.6",
21
+ "imagera-code-linux-x64-baseline": "1.19.6",
22
+ "imagera-code-linux-x64-musl": "1.19.6",
23
+ "imagera-code-linux-arm64-musl": "1.19.6",
24
+ "imagera-code-darwin-arm64": "1.19.6",
25
+ "imagera-code-windows-arm64": "1.19.6",
26
+ "imagera-code-darwin-x64-baseline": "1.19.6",
27
+ "imagera-code-linux-arm64": "1.19.6",
28
+ "imagera-code-linux-x64-baseline-musl": "1.19.6",
29
+ "imagera-code-darwin-x64": "1.19.6",
30
+ "imagera-code-linux-x64": "1.19.6",
31
+ "imagera-code-windows-x64": "1.19.6"
32
32
  }
33
33
  }