@codelia/core 0.1.35 → 0.1.37
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/dist/index.cjs +10 -3
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +10 -3
- package/package.json +4 -4
- package/prompts/system.md +3 -0
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
59
59
|
var import_config = require("@codelia/config");
|
|
60
60
|
|
|
61
61
|
// src/models/openai.ts
|
|
62
|
-
var OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
62
|
+
var OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
63
63
|
var OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
64
64
|
var OPENAI_MODELS = [
|
|
65
65
|
{
|
|
@@ -68,8 +68,11 @@ var OPENAI_MODELS = [
|
|
|
68
68
|
aliases: ["default"]
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
id: "gpt-5.
|
|
72
|
-
provider: "openai"
|
|
71
|
+
id: "gpt-5.4",
|
|
72
|
+
provider: "openai",
|
|
73
|
+
contextWindow: 105e4,
|
|
74
|
+
maxInputTokens: 942e3,
|
|
75
|
+
maxOutputTokens: 128e3
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
id: "gpt-5.3-codex",
|
|
@@ -79,6 +82,10 @@ var OPENAI_MODELS = [
|
|
|
79
82
|
id: "gpt-5.2-2025-12-11",
|
|
80
83
|
provider: "openai"
|
|
81
84
|
},
|
|
85
|
+
{
|
|
86
|
+
id: "gpt-5.2",
|
|
87
|
+
provider: "openai"
|
|
88
|
+
},
|
|
82
89
|
{
|
|
83
90
|
id: "gpt-5.2-pro",
|
|
84
91
|
provider: "openai"
|
package/dist/index.d.cts
CHANGED
|
@@ -162,6 +162,12 @@ type ToolOutputCacheRecord = {
|
|
|
162
162
|
type ToolOutputCacheReadOptions = {
|
|
163
163
|
offset?: number;
|
|
164
164
|
limit?: number;
|
|
165
|
+
allow_truncate?: boolean;
|
|
166
|
+
};
|
|
167
|
+
type ToolOutputCacheReadLineOptions = {
|
|
168
|
+
line_number: number;
|
|
169
|
+
char_offset?: number;
|
|
170
|
+
char_limit?: number;
|
|
165
171
|
};
|
|
166
172
|
type ToolOutputCacheSearchOptions = {
|
|
167
173
|
pattern: string;
|
|
@@ -173,6 +179,7 @@ type ToolOutputCacheSearchOptions = {
|
|
|
173
179
|
type ToolOutputCacheStore = {
|
|
174
180
|
save: (record: ToolOutputCacheRecord) => Promise<ToolOutputRef> | ToolOutputRef;
|
|
175
181
|
read?: (refId: string, options?: ToolOutputCacheReadOptions) => Promise<string> | string;
|
|
182
|
+
readLine?: (refId: string, options: ToolOutputCacheReadLineOptions) => Promise<string> | string;
|
|
176
183
|
grep?: (refId: string, options: ToolOutputCacheSearchOptions) => Promise<string> | string;
|
|
177
184
|
};
|
|
178
185
|
|
|
@@ -762,7 +769,7 @@ declare const ANTHROPIC_MODELS: ModelSpec[];
|
|
|
762
769
|
|
|
763
770
|
declare const GOOGLE_MODELS: ModelSpec[];
|
|
764
771
|
|
|
765
|
-
declare const OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
772
|
+
declare const OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
766
773
|
declare const OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
767
774
|
declare const OPENAI_MODELS: ModelSpec[];
|
|
768
775
|
|
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,12 @@ type ToolOutputCacheRecord = {
|
|
|
162
162
|
type ToolOutputCacheReadOptions = {
|
|
163
163
|
offset?: number;
|
|
164
164
|
limit?: number;
|
|
165
|
+
allow_truncate?: boolean;
|
|
166
|
+
};
|
|
167
|
+
type ToolOutputCacheReadLineOptions = {
|
|
168
|
+
line_number: number;
|
|
169
|
+
char_offset?: number;
|
|
170
|
+
char_limit?: number;
|
|
165
171
|
};
|
|
166
172
|
type ToolOutputCacheSearchOptions = {
|
|
167
173
|
pattern: string;
|
|
@@ -173,6 +179,7 @@ type ToolOutputCacheSearchOptions = {
|
|
|
173
179
|
type ToolOutputCacheStore = {
|
|
174
180
|
save: (record: ToolOutputCacheRecord) => Promise<ToolOutputRef> | ToolOutputRef;
|
|
175
181
|
read?: (refId: string, options?: ToolOutputCacheReadOptions) => Promise<string> | string;
|
|
182
|
+
readLine?: (refId: string, options: ToolOutputCacheReadLineOptions) => Promise<string> | string;
|
|
176
183
|
grep?: (refId: string, options: ToolOutputCacheSearchOptions) => Promise<string> | string;
|
|
177
184
|
};
|
|
178
185
|
|
|
@@ -762,7 +769,7 @@ declare const ANTHROPIC_MODELS: ModelSpec[];
|
|
|
762
769
|
|
|
763
770
|
declare const GOOGLE_MODELS: ModelSpec[];
|
|
764
771
|
|
|
765
|
-
declare const OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
772
|
+
declare const OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
766
773
|
declare const OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
767
774
|
declare const OPENAI_MODELS: ModelSpec[];
|
|
768
775
|
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { configRegistry } from "@codelia/config";
|
|
3
3
|
|
|
4
4
|
// src/models/openai.ts
|
|
5
|
-
var OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
5
|
+
var OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
6
6
|
var OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
7
7
|
var OPENAI_MODELS = [
|
|
8
8
|
{
|
|
@@ -11,8 +11,11 @@ var OPENAI_MODELS = [
|
|
|
11
11
|
aliases: ["default"]
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
id: "gpt-5.
|
|
15
|
-
provider: "openai"
|
|
14
|
+
id: "gpt-5.4",
|
|
15
|
+
provider: "openai",
|
|
16
|
+
contextWindow: 105e4,
|
|
17
|
+
maxInputTokens: 942e3,
|
|
18
|
+
maxOutputTokens: 128e3
|
|
16
19
|
},
|
|
17
20
|
{
|
|
18
21
|
id: "gpt-5.3-codex",
|
|
@@ -22,6 +25,10 @@ var OPENAI_MODELS = [
|
|
|
22
25
|
id: "gpt-5.2-2025-12-11",
|
|
23
26
|
provider: "openai"
|
|
24
27
|
},
|
|
28
|
+
{
|
|
29
|
+
id: "gpt-5.2",
|
|
30
|
+
provider: "openai"
|
|
31
|
+
},
|
|
25
32
|
{
|
|
26
33
|
id: "gpt-5.2-pro",
|
|
27
34
|
provider: "openai"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codelia/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -25,10 +25,10 @@
|
|
|
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.37",
|
|
29
|
+
"@codelia/shared-types": "0.1.37",
|
|
30
30
|
"@google-cloud/vertexai": "^1.10.0",
|
|
31
|
-
"@google/genai": "^1.
|
|
31
|
+
"@google/genai": "^1.43.0",
|
|
32
32
|
"json-schema": "^0.4.0",
|
|
33
33
|
"openai": "^6.25.0",
|
|
34
34
|
"zod": "^4.3.5"
|
package/prompts/system.md
CHANGED
|
@@ -16,9 +16,12 @@ Your job: help the user ship correct changes quickly, without breaking the repo,
|
|
|
16
16
|
|
|
17
17
|
- Prefer inspecting the repo over guessing.
|
|
18
18
|
- When searching for code, prefer `rg` / `rg --files` because it is much faster than naive grepping.
|
|
19
|
+
- If `rg` is unavailable in the environment, immediately fall back to scoped `grep` commands.
|
|
19
20
|
- When using `rg` via `bash`, always pass an explicit search path (usually `.`). Without a path, non-interactive shells may read stdin and hang.
|
|
20
21
|
- Prefer `rg` default regex engine. Assume PCRE2 (`-P`) may be unavailable; avoid unsupported default-engine constructs (`\s`, lookaround, inline flags like `(?i)`), and use `[[:space:]]` / `-i` instead.
|
|
21
22
|
- Keep `rg` patterns shell-safe: if a pattern includes `'`, use double quotes; for complex searches, prefer multiple simpler `-e` patterns over one dense regex.
|
|
23
|
+
- Avoid broad scans from filesystem root (`/`) unless explicitly required; scope searches to the task/workspace path first.
|
|
24
|
+
- Keep shell output bounded (for example with `head`, `tail`, selective filters, or counts) before expanding to larger reads.
|
|
22
25
|
- Assume no reliable external web access unless the user explicitly asks you to browse or provides links/content.
|
|
23
26
|
- When information is missing and guessing is risky, ask a targeted clarifying question.
|
|
24
27
|
|