@hydracept/sdk 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +19 -3
  2. package/package.json +21 -3
package/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # @hydracept/sdk
2
2
 
3
- TypeScript client for the Hydracept public API — AI execution infrastructure for games.
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 caps = await client.runtime.capabilities();
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.1",
4
- "description": "TypeScript client for the Hydracept public APIAI execution infrastructure for games.",
3
+ "version": "0.1.2",
4
+ "description": "One API for AI workloads in gamesTypeScript 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,29 @@
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
+ ],
27
41
  "license": "MIT",
28
42
  "homepage": "https://hydracept.com",
43
+ "bugs": {
44
+ "url": "https://github.com/hydracept/hydracept-public/issues"
45
+ },
29
46
  "repository": {
30
47
  "type": "git",
31
- "url": "https://github.com/hydracept/hydracept"
48
+ "url": "git+https://github.com/hydracept/hydracept-public.git",
49
+ "directory": "clients/typescript"
32
50
  },
33
51
  "publishConfig": {
34
52
  "access": "public",