@hydracept/sdk 0.1.1 → 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/README.md +19 -3
- package/package.json +24 -3
package/README.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# @hydracept/sdk
|
|
2
2
|
|
|
3
|
-
TypeScript client for the Hydracept public API — AI
|
|
3
|
+
TypeScript client for the Hydracept public API — **one API for AI workloads in games**.
|
|
4
|
+
|
|
5
|
+
Free for individual developers. BYOK. No inference markup.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm install @hydracept/sdk
|
|
7
9
|
```
|
|
8
10
|
|
|
11
|
+
## Copy-paste job
|
|
12
|
+
|
|
9
13
|
```ts
|
|
10
14
|
import { createHydraceptClient } from '@hydracept/sdk';
|
|
11
15
|
|
|
@@ -14,9 +18,21 @@ const client = createHydraceptClient({
|
|
|
14
18
|
getToken: () => process.env.HYDRACEPT_API_KEY ?? '',
|
|
15
19
|
});
|
|
16
20
|
|
|
17
|
-
const
|
|
21
|
+
const job = await client.runtime.submitCapabilityJob('image.generate.v1', {
|
|
22
|
+
context: {
|
|
23
|
+
productId: 'my-game',
|
|
24
|
+
projectId: process.env.HYDRACEPT_PROJECT,
|
|
25
|
+
environment: 'development',
|
|
26
|
+
},
|
|
27
|
+
input: { prompt: 'cute slime icon, flat game art' },
|
|
28
|
+
execution: { executionPreference: 'automatic' },
|
|
29
|
+
idempotencyKey: 'demo-1',
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const status = await client.runtime.getJob(job.jobId);
|
|
33
|
+
const receipt = await client.runtime.getJobReceipt(job.jobId);
|
|
18
34
|
```
|
|
19
35
|
|
|
20
|
-
Docs: https://docs.hydracept.com
|
|
36
|
+
Activate at https://hydracept.com/start · Docs: https://docs.hydracept.com
|
|
21
37
|
|
|
22
38
|
A Zencode product · © Zencode Consulting Inc.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydracept/sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "One API for AI workloads in games — TypeScript client for Hydracept (BYOK, durable jobs, receipts).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -24,11 +24,32 @@
|
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"hydracept",
|
|
29
|
+
"game",
|
|
30
|
+
"gamedev",
|
|
31
|
+
"unity",
|
|
32
|
+
"unreal",
|
|
33
|
+
"ai",
|
|
34
|
+
"llm",
|
|
35
|
+
"image-generation",
|
|
36
|
+
"audio",
|
|
37
|
+
"byok",
|
|
38
|
+
"api",
|
|
39
|
+
"sdk",
|
|
40
|
+
"game-ai",
|
|
41
|
+
"unity-ai",
|
|
42
|
+
"ai-integration"
|
|
43
|
+
],
|
|
27
44
|
"license": "MIT",
|
|
28
45
|
"homepage": "https://hydracept.com",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/hydracept/hydracept-public/issues"
|
|
48
|
+
},
|
|
29
49
|
"repository": {
|
|
30
50
|
"type": "git",
|
|
31
|
-
"url": "https://github.com/hydracept/hydracept"
|
|
51
|
+
"url": "git+https://github.com/hydracept/hydracept-public.git",
|
|
52
|
+
"directory": "clients/typescript"
|
|
32
53
|
},
|
|
33
54
|
"publishConfig": {
|
|
34
55
|
"access": "public",
|