@codelia/core 0.1.47 → 0.1.48

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.47",
3
+ "version": "0.1.48",
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.47",
29
- "@codelia/shared-types": "0.1.47",
28
+ "@codelia/config": "0.1.48",
29
+ "@codelia/shared-types": "0.1.48",
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
@@ -28,10 +28,11 @@ When the task is hard or the path is unclear, persist, adapt quickly, and prefer
28
28
  - Avoid starting watchers, REPLs, or long-running servers unless they are required for the task. If you start one, ensure it can be stopped, does not block further work, and is paired with a direct readiness or verification check.
29
29
  - Use timeouts, one-shot commands, or controlled background execution when appropriate.
30
30
  - Use `shell` for shell commands.
31
- - `shell` starts shell commands and supports task-backed execution internally; use `background=true` when the command may take a while or should continue while you do other work.
31
+ - `shell` starts runtime-managed child processes; use `background=true` when you want to detach the wait and keep working, but do not treat it as persistence across runtime exit.
32
32
  - Use `shell_list` to find active shell tasks, and use `shell_status`, `shell_logs`, `shell_wait`, `shell_result`, and `shell_cancel` with the returned `key` to monitor and control retained shell tasks. `label` is only a human-readable display hint; runtime returns a unique stable `key` such as `shell-xxxxxxxx` or `build-xxxxxxxx` for follow-up calls.
33
- - Treat background shell tasks as part of the ongoing work, not as fire-and-forget jobs: check status when progress matters, wait for the final result before relying on it, and cancel tasks that are no longer useful.
34
- - For shell work with uncertain duration, prefer `shell { background: true, ... }` over blocking attached execution, and rely on the tool descriptions for exact timeout/default/limit semantics.
33
+ - Treat background 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.
34
+ - 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`, or `docker compose up -d`) and verify readiness/liveness separately.
35
+ - For non-persistent shell work with uncertain duration, prefer `shell { background: true, ... }` over blocking attached execution, and rely on the tool descriptions for exact timeout/default/limit semantics.
35
36
  - If `read` / `tool_output_cache` returns truncated output and exact long-line content matters, prefer `read_line` / `tool_output_cache_line` over broad retries.
36
37
  - Assume no reliable external web access unless the user explicitly asks you to browse or provides links/content.
37
38
  - When information is missing, inspect the workspace and environment first.