@amtp/protocol 1.0.1 → 1.0.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.
- package/README.md +6 -6
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -21,13 +21,13 @@ Enable AI agents to browse the web efficiently by providing:
|
|
|
21
21
|
### Installation
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install @amtp/
|
|
24
|
+
npm install @amtp/protocol
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
### Using the Agent Client
|
|
28
28
|
|
|
29
29
|
```typescript
|
|
30
|
-
import { AMTPClient } from "@amtp/
|
|
30
|
+
import { AMTPClient } from "@amtp/protocol";
|
|
31
31
|
|
|
32
32
|
const client = new AMTPClient({
|
|
33
33
|
baseUrl: "https://example.com",
|
|
@@ -60,7 +60,7 @@ client.streamUpdates("/api/stream/order", (update) => {
|
|
|
60
60
|
### Building an AMTP Server
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
|
-
import { AMTPServer } from "@amtp/
|
|
63
|
+
import { AMTPServer } from "@amtp/protocol";
|
|
64
64
|
|
|
65
65
|
const server = new AMTPServer({
|
|
66
66
|
port: 3000,
|
|
@@ -92,7 +92,7 @@ server.start();
|
|
|
92
92
|
### Crawling AMTP Sites
|
|
93
93
|
|
|
94
94
|
```typescript
|
|
95
|
-
import { AMTPCrawler } from "@amtp/
|
|
95
|
+
import { AMTPCrawler } from "@amtp/protocol";
|
|
96
96
|
|
|
97
97
|
const crawler = new AMTPCrawler({
|
|
98
98
|
baseUrl: "https://example.com",
|
|
@@ -309,7 +309,7 @@ Server adapts response:
|
|
|
309
309
|
|
|
310
310
|
```bash
|
|
311
311
|
# 1. Install SDK
|
|
312
|
-
npm install @amtp/
|
|
312
|
+
npm install @amtp/protocol
|
|
313
313
|
|
|
314
314
|
# 2. Follow server implementation guide
|
|
315
315
|
# See: src/server/amtp-server.ts
|
|
@@ -325,7 +325,7 @@ npm start
|
|
|
325
325
|
|
|
326
326
|
```bash
|
|
327
327
|
# 1. Install SDK
|
|
328
|
-
npm install @amtp/
|
|
328
|
+
npm install @amtp/protocol
|
|
329
329
|
|
|
330
330
|
# 2. Create client
|
|
331
331
|
const client = new AMTPClient({ baseUrl: "..." });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amtp/protocol",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "AMTP: Agent Markdown Transfer Protocol - HTTP for the Agentic Web",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
},
|
|
81
81
|
"repository": {
|
|
82
82
|
"type": "git",
|
|
83
|
-
"url": "https://github.com/amtp
|
|
83
|
+
"url": "https://github.com/sumeetingenuity/amtp"
|
|
84
84
|
},
|
|
85
85
|
"bugs": {
|
|
86
|
-
"url": "https://github.com/amtp/
|
|
86
|
+
"url": "https://github.com/sumeetingenuity/amtp/issues"
|
|
87
87
|
},
|
|
88
|
-
"homepage": "https://github.com/amtp
|
|
88
|
+
"homepage": "https://github.com/sumeetingenuity/amtp#readme"
|
|
89
89
|
}
|