@shalwin04/x404r-sdk 0.1.0 → 1.0.0
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @shalwin04/x404r-sdk
|
|
2
2
|
|
|
3
3
|
**The runtime where context is never lost.**
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ Database-native infrastructure for crash-proof AI agents. Built on CockroachDB f
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @shalwin04/x404r-sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Why x404-r?
|
|
@@ -33,7 +33,7 @@ x404-r fixes this. State lives in CockroachDB, not memory. Workers are stateless
|
|
|
33
33
|
Run everything on your infrastructure. Direct CockroachDB connection, local workers.
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
|
-
import { x404r } from '@
|
|
36
|
+
import { x404r } from '@shalwin04/x404r-sdk';
|
|
37
37
|
|
|
38
38
|
const runtime = await new x404r({
|
|
39
39
|
mode: 'embedded', // optional, this is the default
|
|
@@ -57,7 +57,7 @@ await worker.start();
|
|
|
57
57
|
Zero infrastructure. Just submit jobs, Lambda workers execute them.
|
|
58
58
|
|
|
59
59
|
```typescript
|
|
60
|
-
import { x404r } from '@
|
|
60
|
+
import { x404r } from '@shalwin04/x404r-sdk';
|
|
61
61
|
|
|
62
62
|
const runtime = new x404r({
|
|
63
63
|
mode: 'cloud',
|
|
@@ -81,7 +81,7 @@ await runtime.replay(job.workflowId, checkpoints[0].id);
|
|
|
81
81
|
## Quick Start (Embedded Mode)
|
|
82
82
|
|
|
83
83
|
```typescript
|
|
84
|
-
import { x404r } from '@
|
|
84
|
+
import { x404r } from '@shalwin04/x404r-sdk';
|
|
85
85
|
|
|
86
86
|
// Initialize the runtime
|
|
87
87
|
const runtime = await new x404r({
|
|
@@ -337,7 +337,7 @@ GEMINI_API_KEY=your-gemini-key
|
|
|
337
337
|
x404-r tracks the value it provides. See exactly what crashes cost you - and what you saved.
|
|
338
338
|
|
|
339
339
|
```typescript
|
|
340
|
-
import { MetricsCollector } from '@
|
|
340
|
+
import { MetricsCollector } from '@shalwin04/x404r-sdk/metrics';
|
|
341
341
|
|
|
342
342
|
const metrics = new MetricsCollector();
|
|
343
343
|
|