@patternzones/koine-sdk 1.1.3 → 1.1.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/README.md +25 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# @patternzones/koine-sdk
|
|
2
2
|
|
|
3
|
-
TypeScript SDK for [Koine](
|
|
3
|
+
TypeScript SDK for [Koine](https://github.com/pattern-zones-co/koine) — the HTTP gateway for Claude Code CLI.
|
|
4
|
+
|
|
5
|
+
## Running the Gateway
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
docker run -d -p 3100:3100 \
|
|
9
|
+
-e CLAUDE_CODE_GATEWAY_API_KEY=your-key \
|
|
10
|
+
-e CLAUDE_CODE_OAUTH_TOKEN=your-token \
|
|
11
|
+
ghcr.io/pattern-zones-co/koine:latest
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
See [Docker Deployment](https://github.com/pattern-zones-co/koine/blob/main/docs/docker-deployment.md) for version pinning and production setup.
|
|
4
15
|
|
|
5
16
|
## Installation
|
|
6
17
|
|
|
@@ -57,7 +68,7 @@ console.log(result.text);
|
|
|
57
68
|
|
|
58
69
|
## Documentation
|
|
59
70
|
|
|
60
|
-
See the [SDK Guide](
|
|
71
|
+
See the [SDK Guide](https://github.com/pattern-zones-co/koine/blob/main/docs/sdk-guide.md) for:
|
|
61
72
|
|
|
62
73
|
- Configuration options
|
|
63
74
|
- Streaming examples
|
|
@@ -65,6 +76,17 @@ See the [SDK Guide](../../../docs/sdk-guide.md) for:
|
|
|
65
76
|
- Error handling
|
|
66
77
|
- Multi-turn conversations
|
|
67
78
|
|
|
79
|
+
## Examples
|
|
80
|
+
|
|
81
|
+
Runnable examples are available in [docs/examples/typescript/](https://github.com/pattern-zones-co/koine/tree/main/docs/examples/typescript):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
bun run docs/examples/typescript/hello.ts # Basic text generation
|
|
85
|
+
bun run docs/examples/typescript/extract-recipe.ts # Structured output with Zod
|
|
86
|
+
bun run docs/examples/typescript/stream.ts # Real-time streaming
|
|
87
|
+
bun run docs/examples/typescript/conversation.ts # Multi-turn sessions
|
|
88
|
+
```
|
|
89
|
+
|
|
68
90
|
## License
|
|
69
91
|
|
|
70
|
-
[AGPL-3.0](
|
|
92
|
+
Dual-licensed under [AGPL-3.0 or commercial license](https://github.com/pattern-zones-co/koine/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternzones/koine-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "TypeScript SDK for Koine gateway",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"sdk",
|
|
51
51
|
"gateway"
|
|
52
52
|
],
|
|
53
|
-
"license": "
|
|
53
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
54
54
|
"files": [
|
|
55
55
|
"dist",
|
|
56
56
|
"README.md"
|