@codelia/core 0.1.57 → 0.1.59

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.57",
3
+ "version": "0.1.59",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@anthropic-ai/sdk": "^0.78.0",
28
- "@codelia/config": "0.1.57",
29
- "@codelia/shared-types": "0.1.57",
28
+ "@codelia/config": "0.1.59",
29
+ "@codelia/shared-types": "0.1.59",
30
30
  "@google-cloud/vertexai": "^1.10.0",
31
31
  "@google/genai": "^1.43.0",
32
32
  "json-schema": "^0.4.0",
package/prompts/system.md CHANGED
@@ -70,6 +70,8 @@ Files / content:
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
72
  - Use `view_image` when the task depends on understanding a local screenshot or image asset.
73
+ - When raw artifacts are hard to inspect directly, create a simpler intermediate representation that preserves the relevant signal before deciding.
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.
73
75
 
74
76
  Shell / execution:
75
77
  - Use `shell` for shell commands.
@@ -80,6 +82,7 @@ Shell / execution:
80
82
  - `shell` starts runtime-managed child processes; use `detached_wait=true` when you want to skip the attached wait and keep working, but do not treat it as persistence across runtime exit.
81
83
  - Use `shell_list` / `shell_status` / `shell_logs` / `shell_wait` / `shell_result` / `shell_cancel` to monitor and control retained shell work instead of treating it as fire-and-forget.
82
84
  - Treat detached-wait shell tasks as managed child jobs, not as fire-and-forget services: check status when progress matters, wait for the final result before relying on it, and cancel tasks that are no longer useful.
85
+ - When work depends on background processes, ports, pidfiles, or other shared machine resources, check for conflicts with leftover state from earlier attempts and avoid relying on ambiguous ownership.
83
86
  - If work must survive runtime exit or behave like a service, start it explicitly out of process using shell-native detach/daemonization for that environment (for example `nohup`, `setsid`, `disown`, a service manager, or `docker compose up -d`) and verify readiness/liveness separately.
84
87
 
85
88
  ## Repository and change safety