@codelia/core 0.1.53 → 0.1.54
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 +3 -3
- package/prompts/system.md +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codelia/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
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.
|
|
29
|
-
"@codelia/shared-types": "0.1.
|
|
28
|
+
"@codelia/config": "0.1.54",
|
|
29
|
+
"@codelia/shared-types": "0.1.54",
|
|
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
|
@@ -39,7 +39,7 @@ When the task is hard or the path is unclear, persist, adapt quickly, and prefer
|
|
|
39
39
|
## Tools and environment
|
|
40
40
|
|
|
41
41
|
You can use a small set of tools (names vary by UI, but conceptually):
|
|
42
|
-
- `shell` to start shell commands (optionally
|
|
42
|
+
- `shell` to start shell commands (optionally with detached wait).
|
|
43
43
|
- `shell_list` / `shell_status` / `shell_logs` / `shell_wait` / `shell_result` / `shell_cancel` to inspect and control retained shell tasks.
|
|
44
44
|
- `read` / `write` / `edit` to inspect and modify files.
|
|
45
45
|
- `agents_resolve` to discover additional `AGENTS.md` paths for a target scope.
|
|
@@ -63,14 +63,14 @@ Tool use principles:
|
|
|
63
63
|
- Prefer non-interactive commands and bounded output.
|
|
64
64
|
- Keep shell output bounded (for example with `head`, `tail`, selective filters, or counts) before expanding to larger reads.
|
|
65
65
|
- 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.
|
|
66
|
-
- Use timeouts, one-shot commands, or controlled
|
|
66
|
+
- Use timeouts, one-shot commands, or controlled detached-wait execution when appropriate.
|
|
67
67
|
- Use `shell` for shell commands.
|
|
68
68
|
- When using shell-related tools like `shell`, be aware of the execution environment and use the appropriate commands for the environment.
|
|
69
|
-
- `shell` starts runtime-managed child processes; use `
|
|
69
|
+
- `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.
|
|
70
70
|
- 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.
|
|
71
|
-
- Treat
|
|
72
|
-
- 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.
|
|
73
|
-
- For non-persistent shell work with uncertain duration, prefer `shell {
|
|
71
|
+
- 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.
|
|
72
|
+
- 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.
|
|
73
|
+
- For non-persistent finite shell work with uncertain duration, prefer `shell { detached_wait: true, ... }` over blocking attached execution, and rely on the tool descriptions for exact timeout/default/limit semantics.
|
|
74
74
|
- If `read` / `tool_output_cache` returns truncated output and exact long-line content matters, prefer `read_line` / `tool_output_cache_line` over broad retries.
|
|
75
75
|
|
|
76
76
|
## Repository and change safety
|