@mitralab.io/functions-sdk 0.2.8-beta.0 → 0.2.9

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 CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 0.2.9
6
+
7
+ - Depend on `@mitralab.io/sdk-core@0.2.13`: `AgentTurnUsage` gains `contextTokens`, the tokens
8
+ occupying the chat's context window at the end of the turn (subagents excluded), and
9
+ `contextWindow`, the model's window size. Both are absent when the box does not report them.
10
+ - Pin the SDK-PARITY-001 corpus to Core `0.2.13` with its digest and immutable source commit.
11
+
12
+ ## 0.2.8
13
+
14
+ Stable release of the 0.2.8-beta.0 line, already on the `beta` tag and running in the dev Functions
15
+ template. No change on top of the beta.
16
+
17
+ - `init()` resolves without any network call instead of fetching the app info route, which is rate
18
+ limited per IP. `await client.init()`, `dataSourceId` and `MITRA_DATA_SOURCE_ID` still work.
19
+
5
20
  ## 0.2.8-beta.0
6
21
 
7
22
  - `init()` resolves without any network call. It used to fetch `GET /code-studio/api/v1/apps/<id>/info`
@@ -0,0 +1,15 @@
1
+ {
2
+ "contract": "SDK-PARITY-001",
3
+ "version": "0.2.13",
4
+ "dependency": {
5
+ "package": "@mitralab.io/sdk-core",
6
+ "version": "0.2.13",
7
+ "contractPath": "contracts/v0.2.13/sdk-parity.json"
8
+ },
9
+ "sha256": "36a1dd5b8d0ab604a8baa68ce19823c9b2f2745cdf57fad9000917b83c60be20",
10
+ "source": {
11
+ "repository": "https://github.com/mitralab-dev/mitra-core-sdk",
12
+ "commit": "f597990cadc3af3092ca727e1bc7aa2eab7a1513",
13
+ "path": "contracts/v0.2.13/sdk-parity.json"
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitralab.io/functions-sdk",
3
- "version": "0.2.8-beta.0",
3
+ "version": "0.2.9",
4
4
  "description": "JavaScript and TypeScript SDK for Mitra Server Functions",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -67,7 +67,7 @@
67
67
  "node": ">=18.0.0"
68
68
  },
69
69
  "dependencies": {
70
- "@mitralab.io/sdk-core": "0.2.12",
70
+ "@mitralab.io/sdk-core": "0.2.13",
71
71
  "mitra-sdk": "1.0.63-beta.42"
72
72
  },
73
73
  "devDependencies": {