@nixet/sdk 0.1.2 → 0.1.3
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 +12 -0
- package/README.md +8 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to `@nixet/sdk` are recorded here. The format follows
|
|
|
5
5
|
[Semantic Versioning](https://semver.org/). Until 1.0.0, a minor version may
|
|
6
6
|
contain breaking changes; they are always listed under **Changed**.
|
|
7
7
|
|
|
8
|
+
## [0.1.3] — 2026-11-30
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Agents on the `openai` and `anthropic` providers run on your own key, never
|
|
13
|
+
Nixet's. Store it once per environment as the secret `openai-api-key` or
|
|
14
|
+
`anthropic-api-key` (`nixet.secrets.create`, or the console). A run,
|
|
15
|
+
conversation message or task on those providers without it is refused with a
|
|
16
|
+
`BadRequestError` that names the secret. Your provider bills you for those
|
|
17
|
+
tokens, and Nixet adds none of it to its own bill. The README explains it.
|
|
18
|
+
- Depends on `@nixet/contracts` 0.1.3.
|
|
19
|
+
|
|
8
20
|
## [0.1.2] — 2026-11-10
|
|
9
21
|
|
|
10
22
|
### Changed
|
package/README.md
CHANGED
|
@@ -187,6 +187,14 @@ model: { provider: "openai", model: "gpt-4o-mini" }
|
|
|
187
187
|
model: { provider: "anthropic", model: "claude-sonnet-4-20250514" }
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
+
These run on your own key, never Nixet's. Store it once per environment as the
|
|
191
|
+
secret `openai-api-key` or `anthropic-api-key`; a run on that provider without
|
|
192
|
+
it is refused with a `BadRequestError` that names the secret.
|
|
193
|
+
|
|
194
|
+
```ts
|
|
195
|
+
await nixet.secrets.create({ name: "openai-api-key", value: process.env.OPENAI_API_KEY! });
|
|
196
|
+
```
|
|
197
|
+
|
|
190
198
|
The types enforce the difference: `tier` exists only on `nix`, and `model` is
|
|
191
199
|
required on the others. Omitting `model` uses `nix` at the `balanced` tier.
|
|
192
200
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixet/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Official TypeScript SDK for the Nixet agent API: agents, versions, runs, streaming, tasks, memory, knowledge, MCP tools and guardrails.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"url": "https://github.com/nixetai/sdk/issues"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@nixet/contracts": "^0.1.
|
|
56
|
+
"@nixet/contracts": "^0.1.3"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|