@terminator-network/core 0.1.0 → 0.1.1

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 +44 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @terminator-network/core
2
+
3
+ Core library for [Terminator](https://github.com/terminator-network/terminator) — disposable identities for AI agents.
4
+
5
+ Provides the `Terminator` class, provider adapters, identity management, policy engine, kill switch, and activity logging.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @terminator-network/core
11
+ ```
12
+
13
+ Or use the umbrella package [`tn8r`](https://www.npmjs.com/package/tn8r) which includes this plus a CLI.
14
+
15
+ ## Usage
16
+
17
+ ```typescript
18
+ import { Terminator } from "@terminator-network/core";
19
+
20
+ const t = new Terminator();
21
+
22
+ const identity = await t.createIdentity({
23
+ resources: ["email", "phone", "card"],
24
+ ttlMinutes: 60,
25
+ spendLimitCents: 5000,
26
+ });
27
+
28
+ console.log(identity.email); // agent-k8f2xq@your-domain.com
29
+ console.log(identity.phone); // +14155551234
30
+
31
+ const { emails, sms } = await t.readMessages(identity.id);
32
+ const code = await t.extractCode(identity.id);
33
+ const card = await t.getCardDetails(identity.id);
34
+
35
+ await t.killIdentity(identity.id);
36
+ ```
37
+
38
+ ## BYOK
39
+
40
+ No keys configured? Runs with mock providers by default. See the [main repo](https://github.com/terminator-network/terminator) for provider setup.
41
+
42
+ ## License
43
+
44
+ MIT
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.0",
6
+ "version": "0.1.1",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",