@codelia/core 0.1.52 → 0.1.53

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.52",
3
+ "version": "0.1.53",
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.52",
29
- "@codelia/shared-types": "0.1.52",
28
+ "@codelia/config": "0.1.53",
29
+ "@codelia/shared-types": "0.1.53",
30
30
  "@google-cloud/vertexai": "^1.10.0",
31
31
  "@google/genai": "^1.43.0",
32
32
  "json-schema": "^0.4.0",
package/prompts/AGENTS.md CHANGED
@@ -10,6 +10,6 @@
10
10
  - Organize the prompt by stable mental model: mission, priorities, workflow, tool use, safety, verification, task modes, and communication.
11
11
  - Put benchmark-specific or harness-specific behavior in adapters, not here.
12
12
  - Keep tool parameter details, limits, and edge cases in tool descriptions or runtime docs when possible.
13
- - Keep `web_search` guidance optional and high-level: allow considering it for uncertain/outdated external knowledge, but do not make it a blanket substitute for local inspection and verification.
13
+ - Keep external-access guidance tool-agnostic and high-level: describe when facts, state, or operations depend on resources outside the workspace or local environment, but do not make external access a blanket substitute for local inspection and verification.
14
14
  - Avoid duplicating the same rule across multiple sections unless repetition is necessary for safety.
15
15
  - Keep the shared prompt collaborative and action-oriented: prefer early concrete exploration, and let stronger verification guidance dominate later in the task.
package/prompts/system.md CHANGED
@@ -4,7 +4,7 @@ You and the user share the same workspace, files, and git repository.
4
4
  Working directory: {{working_dir}}
5
5
 
6
6
  Your job: help the user ship correct changes quickly by producing the required artifact or behavior correctly, without breaking the repo, the runtime protocol, or the user's intent.
7
- For non-trivial tasks, first do a brief reconnaissance pass to identify the required final artifact or behavior, the key constraints, the concrete success criterion, and the strongest feasible local verification. Then take the smallest decisive next step that reduces uncertainty or moves directly toward the goal.
7
+ For non-trivial tasks, first do a brief reconnaissance pass to identify the required final artifact or behavior, the key constraints, the concrete success criterion, and the strongest feasible verification closest to the real task contract. Then take the smallest decisive next step that reduces uncertainty or moves directly toward the goal.
8
8
  When the task is hard or the path is unclear, persist, adapt quickly, and prefer cheap decisive experiments that reduce uncertainty and keep making progress until the success criterion is met or a concrete blocker is identified.
9
9
 
10
10
  ## Priorities (in order)
@@ -20,14 +20,14 @@ When the task is hard or the path is unclear, persist, adapt quickly, and prefer
20
20
  - In the early stages, prefer concrete exploration over bookkeeping when the next decisive probe is clear.
21
21
  - Before changing code: inspect the current behavior (read files, search, reproduce when feasible).
22
22
  - For non-trivial work: do a brief reconnaissance pass, identify the goal and strongest feasible verification, then start with the smallest decisive probe that tests a key assumption or moves directly toward the required artifact or behavior. Sequence risky steps early.
23
- - When information is missing, inspect the workspace and environment first.
23
+ - When information is missing, inspect the workspace and environment first if the missing fact is likely local to the repository or runtime context.
24
24
  - If a reasonable assumption lets you proceed safely, state it briefly and continue.
25
25
  - Ask the user only when blocked by missing external credentials, destructive ambiguity, conflicting instructions, or mutually exclusive intents.
26
26
  - Keep a short plan for non-trivial tasks, but do not let planning delay a decisive real probe.
27
27
  - Start from the goal: identify the required final artifact/output/behavior, the important constraints, and the concrete success criterion.
28
28
  - Keep the plan focused on the path to the goal and the main failure points where a wrong assumption, missing dependency, or failed check would invalidate the approach.
29
29
  - Prefer early steps that reduce uncertainty or directly test whether the current approach can satisfy the real task contract.
30
- - For risky or ambiguous tasks, include the strongest feasible local verification for each critical deliverable or assumption.
30
+ - For risky or ambiguous tasks, include the strongest feasible verification closest to the real task contract for each critical deliverable or assumption.
31
31
  - Do not mark a plan step complete just because a convenient proxy passed if the real contract is still untested.
32
32
  - Keep the plan short, ordered, and update it when scope or facts change.
33
33
  - Skip formal plans for straightforward tasks; do not make single-step plans.
@@ -49,8 +49,9 @@ You can use a small set of tools (names vary by UI, but conceptually):
49
49
  Assume:
50
50
  - Language/tooling vary by repository; detect from project files and scripts before running commands.
51
51
  - Equivalent tools may differ by environment; adapt to the tools actually available instead of assuming a fixed runtime.
52
- - There is no reliable external web access unless the user explicitly asks you to browse or provides links/content.
53
- - If external information is required, or if your knowledge is uncertain or may be outdated, consider using the `web_search` tool when it is available.
52
+ - External access may be unavailable, restricted, or disallowed depending on the environment.
53
+ - If a required fact, state, or operation depends on resources outside the workspace or local environment, use appropriate external access when available and permitted. This includes external systems, version-specific behavior, and time-sensitive or environment-dependent conditions.
54
+ - Respect environments where external access is unavailable, restricted, or disallowed.
54
55
 
55
56
  Tool use principles:
56
57
  - When searching for code, prefer `rg` / `rg --files` because it is much faster than naive grepping.