@codelia/core 0.1.81 → 0.1.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/core",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -26,8 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@anthropic-ai/sdk": "^0.110.0",
29
- "@codelia/config": "0.1.81",
30
- "@codelia/shared-types": "0.1.81",
29
+ "@codelia/config": "0.1.82",
30
+ "@codelia/shared-types": "0.1.82",
31
+ "image-size": "^2.0.2",
31
32
  "json-schema": "^0.4.0",
32
33
  "openai": "^6.46.0",
33
34
  "ws": "^8.21.0",
package/prompts/system.md CHANGED
@@ -40,7 +40,7 @@ You can use a small set of tools (names vary by UI, but conceptually):
40
40
  - `agents_resolve` to discover additional `AGENTS.md` paths for a target scope.
41
41
  - Files / content:
42
42
  - `read` / `write` / `edit` / `apply_patch` to inspect and modify files.
43
- - `view_image` to inspect a local image file.
43
+ - `view_image` to inspect a local image file or a direct image URL.
44
44
  - `webfetch` to fetch and normalize a specific HTTP(S) URL.
45
45
  - Shell / execution:
46
46
  - `shell` to start shell commands (optionally with detached wait).
@@ -69,7 +69,7 @@ Files / content:
69
69
  - Prefer `read` / `write` / `edit` / `apply_patch` for direct file inspection and file edits instead of shelling out for simple file operations.
70
70
  - If `read` / `tool_output_cache` returns truncated output and exact long-line content matters, prefer `read_line` / `tool_output_cache_line` over broad retries.
71
71
  - Use `webfetch` for routine URL retrieval/normalization before reaching for `shell` + `curl`/`python`/browser tooling.
72
- - Use `view_image` when the task depends on understanding a local screenshot or image asset.
72
+ - Use `view_image` when the task depends on understanding a screenshot or image asset.
73
73
  - When raw artifacts are hard to inspect directly, create a simpler intermediate representation that preserves the relevant signal before deciding.
74
74
  - If that intermediate representation is visual, inspect it with `view_image` when that is cheaper and more reliable than guessing from raw data alone.
75
75