@anna-ai/app-runtime 0.26.0 → 0.27.0
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.js +22 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Anna App Runtime SDK — v0.
|
|
2
|
+
* Anna App Runtime SDK — v0.27.0
|
|
3
|
+
*
|
|
4
|
+
* v0.27.0 — Thinking / reasoning control (forum #454; design:
|
|
5
|
+
* docs/design/llm-thinking-control.md; dispatcher 0.32.0, schema 0.32.0,
|
|
6
|
+
* anna-app-core 0.27.1). Contract-only release — no code change:
|
|
7
|
+
* - `anna.llm.complete(req)` / `anna.llm.stream(req)` /
|
|
8
|
+
* `anna.agent.session.run(req)` accept an optional `thinking` field:
|
|
9
|
+
* `boolean | {enabled?, effort?: "minimal"|"low"|"medium"|"high"|"xhigh"|"max",
|
|
10
|
+
* budgetTokens?, includeReasoning?}`. Programmatic surfaces default to
|
|
11
|
+
* thinking OFF when the model can disable it; `agent.session.run` keeps
|
|
12
|
+
* the provider default. Pass `thinking: true` / `{effort}` to opt in.
|
|
13
|
+
* - Responses echo `_meta.thinking = {requested, effective:{enabled,
|
|
14
|
+
* effort?, budgetTokens?}, applied, reason, warning?}` (complete / stream
|
|
15
|
+
* terminal frame) or `run_meta.thinking` (agent run), plus additive
|
|
16
|
+
* `usage.reasoningTokens` when the provider reports it.
|
|
17
|
+
* - `llm.stream` may emit additive `{event:"reasoning_token", text}` frames
|
|
18
|
+
* when `thinking.includeReasoning === true`; `completeOverStream` already
|
|
19
|
+
* ignores unknown events, so the complete-over-stream sugar is unaffected.
|
|
20
|
+
* - Truncation check: `stopReason === "maxTokens" &&
|
|
21
|
+
* usage.outputTokens - (usage.reasoningTokens ?? 0) ≈ 0` ⇒ reasoning ate
|
|
22
|
+
* the budget — retry with `thinking:false` or a larger `maxTokens`.
|
|
23
|
+
* On DashScope/Qwen `maxTokens` INCLUDES reasoning tokens.
|
|
3
24
|
*
|
|
4
25
|
* v0.26.0 — Agent run output cap + truncation signal (forum #403;
|
|
5
26
|
* docs/bug/forum-403-agent-session-output-cap-8192-regression.md;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anna-ai/app-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Anna App browser runtime SDK. Loaded by every Anna App iframe; provides typed proxy over the postMessage RPC bridge to the host (Anna dashboard / `anna-app dev` harness).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|