pi-harness-runtime 0.10.16 → 0.10.17
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/package.json
CHANGED
|
File without changes
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Connect to your own TencentDB-Agent-Memory server
|
|
3
|
-
argument-hint: "<action>"
|
|
4
|
-
---
|
|
5
|
-
# TencentDB-Agent-Memory Connection Setup
|
|
6
|
-
|
|
7
|
-
## Available Actions
|
|
8
|
-
|
|
9
|
-
Use `/tencentdb-connect` with one of these actions:
|
|
10
|
-
|
|
11
|
-
| Action | Description |
|
|
12
|
-
|--------|-------------|
|
|
13
|
-
| `connect` | Connect to an existing server |
|
|
14
|
-
| `deploy` | Deploy a new server |
|
|
15
|
-
| `test` | Test current connection |
|
|
16
|
-
| `status` | Check server health |
|
|
17
|
-
|
|
18
|
-
## Connect to Existing Server
|
|
19
|
-
|
|
20
|
-
Run `/tencentdb-connect connect` and provide:
|
|
21
|
-
|
|
22
|
-
1. **Server URL** - Your TencentDB server address
|
|
23
|
-
- Example: `https://memory.your-domain.com`
|
|
24
|
-
|
|
25
|
-
2. **Service ID** - Usually `default`
|
|
26
|
-
|
|
27
|
-
3. **User Key** - Provided by server admin
|
|
28
|
-
|
|
29
|
-
## Deploy New Server
|
|
30
|
-
|
|
31
|
-
Run `/tencentdb-connect deploy` for guided VPS deployment.
|
|
32
|
-
|
|
33
|
-
## Test Connection
|
|
34
|
-
|
|
35
|
-
Run `/tencentdb-connect test` to verify your setup.
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Interactively configure TencentDB-Agent-Memory connection
|
|
3
|
-
argument-hint: "<server-url> [service-id] [user-key]"
|
|
4
|
-
---
|
|
5
|
-
# Setup TencentDB-Agent-Memory Connection
|
|
6
|
-
|
|
7
|
-
${1:---}
|
|
8
|
-
|
|
9
|
-
## Configuration Options
|
|
10
|
-
|
|
11
|
-
**Arguments:**
|
|
12
|
-
- `$1` = Server URL (e.g., `https://memory.example.com`)
|
|
13
|
-
- `$2` = Service ID (default: `default`)
|
|
14
|
-
- `$3` = User Key (from server admin)
|
|
15
|
-
|
|
16
|
-
## Step-by-Step Setup
|
|
17
|
-
|
|
18
|
-
### Step 1: Enter Server URL
|
|
19
|
-
|
|
20
|
-
Please provide your TencentDB-Agent-Memory server URL:
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
https://your-server.com
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### Step 2: Enter Service ID
|
|
27
|
-
|
|
28
|
-
Enter your service ID (or press Enter for `default`):
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
default
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Step 3: Enter User Key
|
|
35
|
-
|
|
36
|
-
Enter your user key:
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
your-user-key-here
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Configuration Methods
|
|
43
|
-
|
|
44
|
-
### Option A: Environment File (.env)
|
|
45
|
-
|
|
46
|
-
Create or update `.env` in your project:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
TENANTDB_URL=${1:-https://your-server.com}
|
|
50
|
-
TENANTDB_SERVICE_ID=${2:-default}
|
|
51
|
-
TENANTDB_USER_KEY=${3}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Option B: Settings JSON
|
|
55
|
-
|
|
56
|
-
Add to `.pi/settings.json`:
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"tencentdb": {
|
|
61
|
-
"url": "${1:-https://your-server.com}",
|
|
62
|
-
"serviceId": "${2:-default}",
|
|
63
|
-
"userKey": "${3}"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Verification
|
|
69
|
-
|
|
70
|
-
Test your connection:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
curl -X GET "${1:-https://your-server.com}/health" \
|
|
74
|
-
-H "x-tdai-service-id: ${2:-default}" \
|
|
75
|
-
-H "x-tdai-user-key: ${3}"
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Expected response:
|
|
79
|
-
```json
|
|
80
|
-
{"status": "ok", "version": "1.0.0"}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Usage Examples
|
|
84
|
-
|
|
85
|
-
### Search Knowledge
|
|
86
|
-
```bash
|
|
87
|
-
curl -X POST "${1}/api/v1/memory/search" \
|
|
88
|
-
-H "x-tdai-service-id: ${2}" \
|
|
89
|
-
-H "x-tdai-user-key: ${3}" \
|
|
90
|
-
-H "Content-Type: application/json" \
|
|
91
|
-
-d '{"query": "your search query"}'
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
### Sync Skills
|
|
95
|
-
```bash
|
|
96
|
-
curl -X POST "${1}/api/v1/skills/sync" \
|
|
97
|
-
-H "x-tdai-service-id: ${2}" \
|
|
98
|
-
-H "x-tdai-user-key: ${3}" \
|
|
99
|
-
-H "Content-Type: application/json" \
|
|
100
|
-
-d '{"skills": [...]}'
|
|
101
|
-
```
|
package/prompts/tencentdb.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Configure TencentDB-Agent-Memory connection
|
|
3
|
-
argument-hint: "[server-url]"
|
|
4
|
-
---
|
|
5
|
-
# Configure TencentDB-Agent-Memory
|
|
6
|
-
|
|
7
|
-
This command helps you connect to your own TencentDB-Agent-Memory server for centralized knowledge retrieval.
|
|
8
|
-
|
|
9
|
-
## Options
|
|
10
|
-
|
|
11
|
-
### 1. Use Default Server (Recommended for Testing)
|
|
12
|
-
If you don't have your own server, you can use the public demo:
|
|
13
|
-
- **URL**: `https://https://your-memory-server.example.com`
|
|
14
|
-
- **Note**: This is a shared server, data may be visible to others
|
|
15
|
-
|
|
16
|
-
### 2. Deploy Your Own Server
|
|
17
|
-
Deploy TencentDB-Agent-Memory on your own VPS:
|
|
18
|
-
|
|
19
|
-
**Minimal Requirements:**
|
|
20
|
-
- 2 vCPU, 4GB RAM, 50GB SSD
|
|
21
|
-
- Ubuntu 22.04 LTS
|
|
22
|
-
- Docker installed
|
|
23
|
-
|
|
24
|
-
**Quick Deploy:**
|
|
25
|
-
```bash
|
|
26
|
-
# SSH into your VPS
|
|
27
|
-
ssh user@your-vps-ip
|
|
28
|
-
|
|
29
|
-
# Install Docker if needed
|
|
30
|
-
curl -fsSL https://get.docker.com | sh
|
|
31
|
-
|
|
32
|
-
# Deploy the server
|
|
33
|
-
docker run -d \
|
|
34
|
-
--name tencentdb-memory \
|
|
35
|
-
-p 8080:8080 \
|
|
36
|
-
-e OPENAI_API_KEY=your-api-key \
|
|
37
|
-
ghcr.io/tencentcloud/tdai-memory:latest
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### 3. Connect via MCP
|
|
41
|
-
After deployment, configure the MCP connection:
|
|
42
|
-
|
|
43
|
-
**Server URL**: `${1:-https://your-vps-ip:8080}`
|
|
44
|
-
|
|
45
|
-
**Required Headers**:
|
|
46
|
-
```
|
|
47
|
-
x-tdai-service-id: default
|
|
48
|
-
x-tdai-user-key: YOUR_USER_KEY
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**Available Endpoints**:
|
|
52
|
-
- `POST /api/v1/memory/search` - Search knowledge base
|
|
53
|
-
- `POST /api/v1/memory/conversation/search` - Search conversations
|
|
54
|
-
- `GET /api/v1/health` - Health check
|
|
55
|
-
|
|
56
|
-
## Configuration
|
|
57
|
-
|
|
58
|
-
### Quick Setup
|
|
59
|
-
|
|
60
|
-
To connect to a TencentDB-Agent-Memory server, provide:
|
|
61
|
-
|
|
62
|
-
1. **Server URL** (e.g., `https://memory.example.com`)
|
|
63
|
-
2. **Service ID** (usually `default`)
|
|
64
|
-
3. **User Key** (from your server admin)
|
|
65
|
-
|
|
66
|
-
### Environment Variables
|
|
67
|
-
|
|
68
|
-
Add to your `.env` or shell profile:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
# TencentDB-Agent-Memory Configuration
|
|
72
|
-
TENANTDB_URL=https://your-server.com
|
|
73
|
-
TENANTDB_SERVICE_ID=default
|
|
74
|
-
TENANTDB_USER_KEY=your-user-key
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Next Steps
|
|
78
|
-
|
|
79
|
-
After configuration, you can:
|
|
80
|
-
|
|
81
|
-
1. **Search Knowledge**: Use `/search <query>` to find skills and documentation
|
|
82
|
-
2. **Sync Skills**: Upload your local skills to the centralized server
|
|
83
|
-
3. **Query Code**: Search across all indexed codebases
|
|
84
|
-
|
|
85
|
-
## Need Help?
|
|
86
|
-
|
|
87
|
-
- **Documentation**: https://github.com/TencentCloud/TencentDB-Agent-Memory
|
|
88
|
-
- **Issues**: Report bugs on the GitHub repository
|