@codelia/core 0.1.36 → 0.1.38
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 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +10 -3
- package/package.json +3 -3
- package/prompts/system.md +1 -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,7 +162,12 @@ type ToolOutputCacheRecord = {
|
|
|
162
162
|
type ToolOutputCacheReadOptions = {
|
|
163
163
|
offset?: number;
|
|
164
164
|
limit?: number;
|
|
165
|
-
|
|
165
|
+
allow_truncate?: boolean;
|
|
166
|
+
};
|
|
167
|
+
type ToolOutputCacheReadLineOptions = {
|
|
168
|
+
line_number: number;
|
|
169
|
+
char_offset?: number;
|
|
170
|
+
char_limit?: number;
|
|
166
171
|
};
|
|
167
172
|
type ToolOutputCacheSearchOptions = {
|
|
168
173
|
pattern: string;
|
|
@@ -174,6 +179,7 @@ type ToolOutputCacheSearchOptions = {
|
|
|
174
179
|
type ToolOutputCacheStore = {
|
|
175
180
|
save: (record: ToolOutputCacheRecord) => Promise<ToolOutputRef> | ToolOutputRef;
|
|
176
181
|
read?: (refId: string, options?: ToolOutputCacheReadOptions) => Promise<string> | string;
|
|
182
|
+
readLine?: (refId: string, options: ToolOutputCacheReadLineOptions) => Promise<string> | string;
|
|
177
183
|
grep?: (refId: string, options: ToolOutputCacheSearchOptions) => Promise<string> | string;
|
|
178
184
|
};
|
|
179
185
|
|
|
@@ -763,7 +769,7 @@ declare const ANTHROPIC_MODELS: ModelSpec[];
|
|
|
763
769
|
|
|
764
770
|
declare const GOOGLE_MODELS: ModelSpec[];
|
|
765
771
|
|
|
766
|
-
declare const OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
772
|
+
declare const OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
767
773
|
declare const OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
768
774
|
declare const OPENAI_MODELS: ModelSpec[];
|
|
769
775
|
|
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,12 @@ type ToolOutputCacheRecord = {
|
|
|
162
162
|
type ToolOutputCacheReadOptions = {
|
|
163
163
|
offset?: number;
|
|
164
164
|
limit?: number;
|
|
165
|
-
|
|
165
|
+
allow_truncate?: boolean;
|
|
166
|
+
};
|
|
167
|
+
type ToolOutputCacheReadLineOptions = {
|
|
168
|
+
line_number: number;
|
|
169
|
+
char_offset?: number;
|
|
170
|
+
char_limit?: number;
|
|
166
171
|
};
|
|
167
172
|
type ToolOutputCacheSearchOptions = {
|
|
168
173
|
pattern: string;
|
|
@@ -174,6 +179,7 @@ type ToolOutputCacheSearchOptions = {
|
|
|
174
179
|
type ToolOutputCacheStore = {
|
|
175
180
|
save: (record: ToolOutputCacheRecord) => Promise<ToolOutputRef> | ToolOutputRef;
|
|
176
181
|
read?: (refId: string, options?: ToolOutputCacheReadOptions) => Promise<string> | string;
|
|
182
|
+
readLine?: (refId: string, options: ToolOutputCacheReadLineOptions) => Promise<string> | string;
|
|
177
183
|
grep?: (refId: string, options: ToolOutputCacheSearchOptions) => Promise<string> | string;
|
|
178
184
|
};
|
|
179
185
|
|
|
@@ -763,7 +769,7 @@ declare const ANTHROPIC_MODELS: ModelSpec[];
|
|
|
763
769
|
|
|
764
770
|
declare const GOOGLE_MODELS: ModelSpec[];
|
|
765
771
|
|
|
766
|
-
declare const OPENAI_DEFAULT_MODEL = "gpt-5.
|
|
772
|
+
declare const OPENAI_DEFAULT_MODEL = "gpt-5.3-codex";
|
|
767
773
|
declare const OPENAI_DEFAULT_REASONING_EFFORT = "medium";
|
|
768
774
|
declare const OPENAI_MODELS: ModelSpec[];
|
|
769
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.38",
|
|
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.38",
|
|
29
|
+
"@codelia/shared-types": "0.1.38",
|
|
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
|
@@ -22,6 +22,7 @@ Your job: help the user ship correct changes quickly, without breaking the repo,
|
|
|
22
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
23
|
- Avoid broad scans from filesystem root (`/`) unless explicitly required; scope searches to the task/workspace path first.
|
|
24
24
|
- Keep shell output bounded (for example with `head`, `tail`, selective filters, or counts) before expanding to larger reads.
|
|
25
|
+
- If `read` / `tool_output_cache` reports output too large or a line too long and exact content matters, prefer `read_line` / `tool_output_cache_line` over broad retries or truncated reads.
|
|
25
26
|
- Assume no reliable external web access unless the user explicitly asks you to browse or provides links/content.
|
|
26
27
|
- When information is missing and guessing is risky, ask a targeted clarifying question.
|
|
27
28
|
|