@theokit/sdk 4.0.1 → 4.0.2
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 +6 -0
- package/README.md +16 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- docs(readme): highlight the native Claude Code session interop in the package README — a local agent's conversation is a native Claude Code `.jsonl` transcript, so pointing `baseDir` at `~/.claude` lets the Claude Code CLI `--continue` a session the agent wrote. Also correct the stale "this package is a scaffold" Status line (the SDK shipped v4). Docs-only; no runtime change.
|
|
8
|
+
|
|
3
9
|
## 4.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -54,6 +54,21 @@ for await (const event of run.stream()) {
|
|
|
54
54
|
}
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## Native Claude Code sessions
|
|
58
|
+
|
|
59
|
+
A local agent's conversation is a native Claude Code `.jsonl` transcript on disk — there is no proprietary session store. Point `baseDir` at `~/.claude` and the Claude Code CLI can `--continue` a session your agent wrote:
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
const agent = await Agent.create({
|
|
63
|
+
apiKey: process.env.THEOKIT_API_KEY!,
|
|
64
|
+
model: { id: "openai/gpt-4o-mini" },
|
|
65
|
+
local: { cwd: process.cwd(), baseDir: "~/.claude" },
|
|
66
|
+
});
|
|
67
|
+
// After runs finish, `claude --continue` picks up the same session on disk.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Extended-thinking `--continue` is out of scope for now (thinking signatures are written but dropped on read — issue #122). See [`docs.md`](../../docs.md) § Session persistence.
|
|
71
|
+
|
|
57
72
|
## Schedule with cron
|
|
58
73
|
|
|
59
74
|
```typescript
|
|
@@ -77,7 +92,7 @@ Two runtimes: **local** (in-process scheduler — fires while the host process i
|
|
|
77
92
|
|
|
78
93
|
## Status
|
|
79
94
|
|
|
80
|
-
|
|
95
|
+
The full contract is defined in [`docs.md`](../../docs.md); see [`CHANGELOG.md`](./CHANGELOG.md) for the release history.
|
|
81
96
|
|
|
82
97
|
## License
|
|
83
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theokit/sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/usetheo/theokit-sdk#readme",
|
|
@@ -365,8 +365,8 @@
|
|
|
365
365
|
"typedoc": "^0.28.19",
|
|
366
366
|
"ws": "^8.18.0",
|
|
367
367
|
"zod": "^4.0.0",
|
|
368
|
-
"@theokit/sdk-
|
|
369
|
-
"@theokit/sdk-
|
|
368
|
+
"@theokit/sdk-memory": "0.2.1",
|
|
369
|
+
"@theokit/sdk-handoff": "0.1.0"
|
|
370
370
|
},
|
|
371
371
|
"scripts": {
|
|
372
372
|
"build": "tsup && cp src/internal/providers/provider-catalog.json dist/provider-catalog.json",
|