@mitralab.io/sdk-core 0.2.12 → 0.2.13
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 +11 -0
- package/contracts/README.md +5 -0
- package/contracts/manifest.json +6 -1
- package/contracts/v0.2.13/sdk-parity.json +2902 -0
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.2.13
|
|
6
|
+
|
|
7
|
+
- `AgentTurnUsage` gains `contextTokens` and `contextWindow`. `contextTokens` is the number of
|
|
8
|
+
tokens occupying the chat's context window at the end of the turn: the prompt of the last
|
|
9
|
+
model request of the main conversation, input plus cache read and cache creation, with
|
|
10
|
+
subagents excluded. `contextWindow` is the model's window size, in tokens, and is kept only
|
|
11
|
+
as a positive integer: the box omits it when it does not know it.
|
|
12
|
+
- Both come from the box in `stepFinish`, so they show live in `turnEnd` and in the result
|
|
13
|
+
`sendAndWait` resolves, and in the `agent` item of the history. An invalid value is dropped
|
|
14
|
+
on its own; the rest of the usage stays.
|
|
15
|
+
|
|
5
16
|
## 0.2.11-beta.0
|
|
6
17
|
|
|
7
18
|
- Agent turn usage (`AgentTurnUsage`): `inputTokens` and `outputTokens`, and when the harness
|
package/contracts/README.md
CHANGED
|
@@ -24,6 +24,11 @@ publishes.
|
|
|
24
24
|
|
|
25
25
|
## Versions
|
|
26
26
|
|
|
27
|
+
- `0.2.13` is the `0.2.12` parity surface republished with the occupied context of the chat:
|
|
28
|
+
`contextTokens` and `contextWindow` on `AgentTurnUsage`, which the parity cases do not cover.
|
|
29
|
+
Same parity cases; the version exists so a consumer pinning the package can pin a corpus with
|
|
30
|
+
the same number.
|
|
31
|
+
|
|
27
32
|
- `0.2.12` is the stable release of the `0.2.12-beta.1` surface: a `cancel()` pressed before the turn
|
|
28
33
|
starts waits for the box to admit the prompt and goes out right after it. Same parity cases; the
|
|
29
34
|
version exists so a consumer pinning the stable package can pin a corpus with the same number.
|
package/contracts/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contract": "SDK-PARITY-001",
|
|
3
|
-
"current": "0.2.
|
|
3
|
+
"current": "0.2.13",
|
|
4
4
|
"versions": [
|
|
5
5
|
{
|
|
6
6
|
"version": "0.1.0",
|
|
@@ -115,6 +115,11 @@
|
|
|
115
115
|
"version": "0.2.12",
|
|
116
116
|
"path": "v0.2.12/sdk-parity.json",
|
|
117
117
|
"sha256": "685238cadcf898128a5dad60c30bcdd8dcc9a02f03077d765aee01f8d6e34709"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"version": "0.2.13",
|
|
121
|
+
"path": "v0.2.13/sdk-parity.json",
|
|
122
|
+
"sha256": "36a1dd5b8d0ab604a8baa68ce19823c9b2f2745cdf57fad9000917b83c60be20"
|
|
118
123
|
}
|
|
119
124
|
]
|
|
120
125
|
}
|