@mantyx/sdk 2026.11.3 → 2026.11.5
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/CHANGELOG.md +8 -0
- package/dist/client.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/docs/agent-runs-protocol.md +37 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -34,6 +34,14 @@ and new releases use calendar versions (`YYYY.M.RELEASE`). Historical versions r
|
|
|
34
34
|
|
|
35
35
|
### Changed
|
|
36
36
|
|
|
37
|
+
- Agent run reply text no longer glues tool rounds together ("…checking now.Found 3"):
|
|
38
|
+
`result.text`, stored final text and session history put a paragraph break between
|
|
39
|
+
model turns, between text blocks separated by thinking or tool use, and between
|
|
40
|
+
separate assistant message items of one OpenAI response (protocol §4.11). The breaks
|
|
41
|
+
are also streamed as `assistant_delta` events, so concatenated deltas equal the final
|
|
42
|
+
reply text; per-turn `assistant_message.text` does not include the between-turn break.
|
|
43
|
+
No new option; this is the default for every caller.
|
|
44
|
+
|
|
37
45
|
- Upgrade the optional A2A peer to 1.3 (Node.js 20+ for A2A hosting). Agent cards and executor events now use A2A 1.0 types; legacy 0.3 JSON-RPC/REST requests remain supported. Replace the removed `MessageSendParams` type with `SendMessageRequest`.
|
|
38
46
|
|
|
39
47
|
- Calendar versioning with automatic SDK publication after successful deployments when SDK code or build inputs change.
|
package/dist/client.d.ts
CHANGED
|
@@ -811,6 +811,8 @@ export interface AssistantMessageEvent extends RunEventBase {
|
|
|
811
811
|
* Full assistant text for this turn (concatenation of every preceding
|
|
812
812
|
* `assistant_delta` for the turn, plus any non-streaming snapshot the
|
|
813
813
|
* engine appended at close). May be empty when the turn was tool-only.
|
|
814
|
+
* The paragraph break streamed between turns (protocol §4.11) is not
|
|
815
|
+
* part of any turn's text.
|
|
814
816
|
*/
|
|
815
817
|
text: string;
|
|
816
818
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -2795,7 +2795,7 @@ async function runComputerUse(opts) {
|
|
|
2795
2795
|
}
|
|
2796
2796
|
|
|
2797
2797
|
// src/version.ts
|
|
2798
|
-
var SDK_VERSION = "2026.11.
|
|
2798
|
+
var SDK_VERSION = "2026.11.5";
|
|
2799
2799
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2800
2800
|
0 && (module.exports = {
|
|
2801
2801
|
AgentSession,
|
package/dist/index.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -442,7 +442,7 @@ Rules:
|
|
|
442
442
|
| `type` | Fields | Notes |
|
|
443
443
|
| ---------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
444
444
|
| `input_file` | `mimeType`, `filename`, `data` (base64, no data-URL prefix) | Inline bytes. Total inline bytes per run are capped (currently 5 MB); larger files must use a URL. |
|
|
445
|
-
| `input_file_url` | `url` (https only), `mimeType?`, `filename?` | Publicly fetchable HTTPS URL. The provider fetches it directly. |
|
|
445
|
+
| `input_file_url` | `url` (https only), `mimeType?`, `filename?` | Publicly fetchable HTTPS URL (max 8,192 characters, including signed query parameters). The provider fetches it directly. |
|
|
446
446
|
|
|
447
447
|
Allowed MIME types match the workspace chat allowlist:
|
|
448
448
|
|
|
@@ -1320,6 +1320,42 @@ see §6.1), and the admin list/detail endpoints. Filtering uses repeated
|
|
|
1320
1320
|
public `GET /agent-sessions` endpoint and the admin list endpoints; see
|
|
1321
1321
|
`docs/agent-runs.md` §"Web UI" for the admin surface.
|
|
1322
1322
|
|
|
1323
|
+
### 4.11 Reply text across model turns
|
|
1324
|
+
|
|
1325
|
+
A run that calls tools makes several model calls ("turns"). Models often
|
|
1326
|
+
write a sentence before a tool call ("Let me check the order history.") and
|
|
1327
|
+
the answer after the last one. The run's reply text — the terminal
|
|
1328
|
+
`result.text` (and `partialText` on a salvaged `error`), the run's stored
|
|
1329
|
+
final text, the assistant message appended to session history, and eval and
|
|
1330
|
+
workflow node outputs — contains every turn's visible text in order, with a
|
|
1331
|
+
paragraph break between turns, so one turn's last sentence is never glued
|
|
1332
|
+
onto the next turn's first.
|
|
1333
|
+
|
|
1334
|
+
Within a single Anthropic/Bedrock response, text blocks separated by a
|
|
1335
|
+
thinking, reasoning, or tool block are joined the same way, as are separate
|
|
1336
|
+
assistant message items in one OpenAI response.
|
|
1337
|
+
|
|
1338
|
+
The breaks are streamed, so concatenating every `assistant_delta` of a run
|
|
1339
|
+
gives exactly the reply text above — a live view never shows
|
|
1340
|
+
"…would take.I haven't found…".
|
|
1341
|
+
|
|
1342
|
+
- **Within-turn** breaks are emitted as an `assistant_delta` and included in
|
|
1343
|
+
`assistant_message.text`.
|
|
1344
|
+
- **Between-turn** breaks are emitted as an `assistant_delta` after the
|
|
1345
|
+
previous turn's `assistant_message`, immediately before the next turn's
|
|
1346
|
+
first visible text. They belong to no turn: per-turn `assistant_message.text`
|
|
1347
|
+
never includes them, so a turn's message text is that turn's deltas minus
|
|
1348
|
+
the leading between-turn break. Clients that rebuild the reply from
|
|
1349
|
+
`assistant_message` events must join the non-blank texts with a paragraph
|
|
1350
|
+
break themselves; clients that concatenate deltas need to do nothing.
|
|
1351
|
+
- A turn's leading whitespace is held back until the turn produces visible
|
|
1352
|
+
text (or ends), since only then is it known whether a break is needed.
|
|
1353
|
+
- No break is added before the first text, around empty or whitespace-only
|
|
1354
|
+
turns, or where the text already ends (or the next turn already starts) with
|
|
1355
|
+
the needed newlines.
|
|
1356
|
+
- When a stream fails mid-turn, the text salvaged from that turn is appended to
|
|
1357
|
+
the reply as its own paragraph.
|
|
1358
|
+
|
|
1323
1359
|
## 5. One-shot runs
|
|
1324
1360
|
|
|
1325
1361
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantyx/sdk",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.5",
|
|
4
4
|
"description": "MANTYX as a hosted agent runtime: define ephemeral agents, mix server-side MANTYX tools with locally-executed tools, run them remotely.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|