@framers/agentos 0.10.1 → 0.10.2
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/api/generateObject.d.ts +9 -0
- package/dist/api/generateObject.d.ts.map +1 -1
- package/dist/api/generateObject.js +2 -0
- package/dist/api/generateObject.js.map +1 -1
- package/dist/api/generateText.d.ts +9 -0
- package/dist/api/generateText.d.ts.map +1 -1
- package/dist/api/generateText.js +7 -0
- package/dist/api/generateText.js.map +1 -1
- package/dist/api/observers.d.ts +9 -0
- package/dist/api/observers.d.ts.map +1 -1
- package/dist/api/observers.js.map +1 -1
- package/dist/api/streamText.d.ts.map +1 -1
- package/dist/api/streamText.js +4 -0
- package/dist/api/streamText.js.map +1 -1
- package/dist/api/types.d.ts +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts.map +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.js +15 -2
- package/dist/core/llm/providers/implementations/AnthropicProvider.js.map +1 -1
- package/dist/core/llm/providers/model-cache-capabilities.d.ts.map +1 -1
- package/dist/core/llm/providers/model-cache-capabilities.js +7 -1
- package/dist/core/llm/providers/model-cache-capabilities.js.map +1 -1
- package/dist/core/llm/providers/model-effort.d.ts +1 -1
- package/dist/core/llm/providers/model-effort.js +2 -2
- package/dist/core/llm/providers/model-effort.js.map +1 -1
- package/dist/core/llm/providers/model-thinking.js +1 -1
- package/dist/core/llm/providers/model-thinking.js.map +1 -1
- package/dist/orchestration/builders/MissionBuilder.d.ts +2 -2
- package/dist/orchestration/builders/MissionBuilder.js +2 -2
- package/package.json +1 -1
|
@@ -15,14 +15,14 @@ export const EFFORT_LEVELS = ['low', 'medium', 'high', 'xhigh', 'max'];
|
|
|
15
15
|
/**
|
|
16
16
|
* Whether the given Claude model id accepts `output_config.effort`.
|
|
17
17
|
*
|
|
18
|
-
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Sonnet 5, Sonnet 4.6, and Fable/Mythos 5.
|
|
18
|
+
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Opus 5, Sonnet 5, Sonnet 4.6, and Fable/Mythos 5.
|
|
19
19
|
* Matches both the bare (`claude-opus-4-8`) and provider-prefixed
|
|
20
20
|
* (`anthropic/claude-opus-4-8`) forms, with no `^` anchor.
|
|
21
21
|
*
|
|
22
22
|
* @param modelId Anthropic-side model id.
|
|
23
23
|
*/
|
|
24
24
|
export function modelSupportsEffort(modelId) {
|
|
25
|
-
return /claude-(opus-4-(5|6|7|8)|sonnet-(4-6|5)|fable-5|mythos-5)/i.test(modelId);
|
|
25
|
+
return /claude-(opus-4-(5|6|7|8)|opus-5|sonnet-(4-6|5)|fable-5|mythos-5)/i.test(modelId);
|
|
26
26
|
}
|
|
27
27
|
/** Whether a value is a valid effort level. */
|
|
28
28
|
export function isEffortLevel(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-effort.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,uFAAuF;AACvF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAGhF;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"model-effort.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,uFAAuF;AACvF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAGhF;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,OAAO,mEAAmE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3F,CAAC;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O,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAC1E,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* @returns `true` when Anthropic accepts a `thinking` block for this model.
|
|
37
37
|
*/
|
|
38
38
|
export function modelSupportsThinking(modelId) {
|
|
39
|
-
return /^claude-(opus-4-(7|8)|sonnet-5|fable-5)\b/i.test(modelId);
|
|
39
|
+
return /^claude-(opus-4-(7|8)|opus-5|sonnet-5|fable-5)\b/i.test(modelId);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Compute the Anthropic `thinking` block plus the `max_tokens` value to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,mDAAmD,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AAQD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,QAA8C,EAC9C,kBAAsC;IAEtC,IAAI,CAAC,QAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9D,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,kBAAkB,IAAI,CAAC,EAAE,CAAC;AAChF,CAAC"}
|
|
@@ -190,10 +190,10 @@ export declare class MissionBuilder {
|
|
|
190
190
|
/**
|
|
191
191
|
* Set the model used for Tree of Thought planning phases.
|
|
192
192
|
*
|
|
193
|
-
* Use a strong reasoning model here (e.g., claude-opus-
|
|
193
|
+
* Use a strong reasoning model here (e.g., claude-opus-5, gpt-4o) for
|
|
194
194
|
* better plan quality. Defaults to the same model as execution if not set.
|
|
195
195
|
*
|
|
196
|
-
* @param model - Model identifier string (e.g., 'claude-opus-
|
|
196
|
+
* @param model - Model identifier string (e.g., 'claude-opus-5').
|
|
197
197
|
*/
|
|
198
198
|
plannerModel(model: string): this;
|
|
199
199
|
/**
|
|
@@ -213,10 +213,10 @@ export class MissionBuilder {
|
|
|
213
213
|
/**
|
|
214
214
|
* Set the model used for Tree of Thought planning phases.
|
|
215
215
|
*
|
|
216
|
-
* Use a strong reasoning model here (e.g., claude-opus-
|
|
216
|
+
* Use a strong reasoning model here (e.g., claude-opus-5, gpt-4o) for
|
|
217
217
|
* better plan quality. Defaults to the same model as execution if not set.
|
|
218
218
|
*
|
|
219
|
-
* @param model - Model identifier string (e.g., 'claude-opus-
|
|
219
|
+
* @param model - Model identifier string (e.g., 'claude-opus-5').
|
|
220
220
|
*/
|
|
221
221
|
plannerModel(model) {
|
|
222
222
|
this._plannerModel = model;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "AgentOS: open-source TypeScript framework for autonomous AI agents. Unified graph orchestration, cognitive memory, runtime tool forging, multi-tier guardrails, voice pipeline, and 11 LLM providers.",
|
|
5
5
|
"homepage": "https://agentos.sh",
|
|
6
6
|
"repository": {
|