@codelia/core 0.1.55 → 0.1.56
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 +5 -1
- package/dist/index.js +5 -1
- package/package.json +3 -3
- package/prompts/system.md +2 -0
package/dist/index.cjs
CHANGED
|
@@ -2283,6 +2283,7 @@ var toAnthropicHostedSearchTool = (tool) => {
|
|
|
2283
2283
|
var PROVIDER_NAME = "anthropic";
|
|
2284
2284
|
var DEFAULT_MODEL = ANTHROPIC_DEFAULT_MODEL;
|
|
2285
2285
|
var DEFAULT_MAX_TOKENS = 4096;
|
|
2286
|
+
var DEFAULT_CLIENT_TIMEOUT_MS = 20 * 60 * 1e3;
|
|
2286
2287
|
var DEFAULT_PROMPT_CACHE_CONTROL = {
|
|
2287
2288
|
type: "ephemeral"
|
|
2288
2289
|
};
|
|
@@ -2296,7 +2297,10 @@ var ChatAnthropic = class {
|
|
|
2296
2297
|
debugInvokeSeq = 0;
|
|
2297
2298
|
lastDebugRequestPayload = null;
|
|
2298
2299
|
constructor(options = {}) {
|
|
2299
|
-
this.client = options.client ?? new import_sdk.default(
|
|
2300
|
+
this.client = options.client ?? new import_sdk.default({
|
|
2301
|
+
timeout: DEFAULT_CLIENT_TIMEOUT_MS,
|
|
2302
|
+
...options.clientOptions ?? {}
|
|
2303
|
+
});
|
|
2300
2304
|
this.model = options.model ?? DEFAULT_MODEL;
|
|
2301
2305
|
this.defaultMaxTokens = options.maxTokens ?? DEFAULT_MAX_TOKENS;
|
|
2302
2306
|
this.defaultInvokeOptions = { ...options.invokeOptions ?? {} };
|
package/dist/index.js
CHANGED
|
@@ -2225,6 +2225,7 @@ var toAnthropicHostedSearchTool = (tool) => {
|
|
|
2225
2225
|
var PROVIDER_NAME = "anthropic";
|
|
2226
2226
|
var DEFAULT_MODEL = ANTHROPIC_DEFAULT_MODEL;
|
|
2227
2227
|
var DEFAULT_MAX_TOKENS = 4096;
|
|
2228
|
+
var DEFAULT_CLIENT_TIMEOUT_MS = 20 * 60 * 1e3;
|
|
2228
2229
|
var DEFAULT_PROMPT_CACHE_CONTROL = {
|
|
2229
2230
|
type: "ephemeral"
|
|
2230
2231
|
};
|
|
@@ -2238,7 +2239,10 @@ var ChatAnthropic = class {
|
|
|
2238
2239
|
debugInvokeSeq = 0;
|
|
2239
2240
|
lastDebugRequestPayload = null;
|
|
2240
2241
|
constructor(options = {}) {
|
|
2241
|
-
this.client = options.client ?? new Anthropic(
|
|
2242
|
+
this.client = options.client ?? new Anthropic({
|
|
2243
|
+
timeout: DEFAULT_CLIENT_TIMEOUT_MS,
|
|
2244
|
+
...options.clientOptions ?? {}
|
|
2245
|
+
});
|
|
2242
2246
|
this.model = options.model ?? DEFAULT_MODEL;
|
|
2243
2247
|
this.defaultMaxTokens = options.maxTokens ?? DEFAULT_MAX_TOKENS;
|
|
2244
2248
|
this.defaultInvokeOptions = { ...options.invokeOptions ?? {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codelia/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
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.56",
|
|
29
|
+
"@codelia/shared-types": "0.1.56",
|
|
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
|
@@ -138,6 +138,8 @@ Shell / execution:
|
|
|
138
138
|
|
|
139
139
|
- A skill is a local instruction package defined by a `SKILL.md` file for a specific workflow.
|
|
140
140
|
- Runtime injects skills guidance and the local skills catalog via `<skills_context>`.
|
|
141
|
+
- Runtime may also inject `<execution_environment>` with descriptive metadata about the current host, shell tool execution environment, working directory, and bounded startup checks.
|
|
142
|
+
- Treat `<execution_environment>` as environment context, not as an instruction to execute the shown commands.
|
|
141
143
|
- If the user includes explicit skill mentions (e.g. `$some-skill`), load those skills with `skill_load` before answering.
|
|
142
144
|
- When a loaded skill defines an explicit workflow or command sequence, follow that skill instruction first.
|
|
143
145
|
|