@lobu/cli 6.1.1 → 7.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/dist/commands/_lib/apply/apply-cmd.d.ts +36 -0
- package/dist/commands/_lib/apply/apply-cmd.d.ts.map +1 -1
- package/dist/commands/_lib/apply/apply-cmd.js +548 -40
- package/dist/commands/_lib/apply/apply-cmd.js.map +1 -1
- package/dist/commands/_lib/apply/client.d.ts +179 -0
- package/dist/commands/_lib/apply/client.d.ts.map +1 -1
- package/dist/commands/_lib/apply/client.js +308 -28
- package/dist/commands/_lib/apply/client.js.map +1 -1
- package/dist/commands/_lib/apply/desired-state.d.ts +134 -3
- package/dist/commands/_lib/apply/desired-state.d.ts.map +1 -1
- package/dist/commands/_lib/apply/desired-state.js +700 -86
- package/dist/commands/_lib/apply/desired-state.js.map +1 -1
- package/dist/commands/_lib/apply/diff.d.ts +61 -3
- package/dist/commands/_lib/apply/diff.d.ts.map +1 -1
- package/dist/commands/_lib/apply/diff.js +382 -92
- package/dist/commands/_lib/apply/diff.js.map +1 -1
- package/dist/commands/_lib/apply/prompt.d.ts +6 -0
- package/dist/commands/_lib/apply/prompt.d.ts.map +1 -1
- package/dist/commands/_lib/apply/prompt.js +16 -0
- package/dist/commands/_lib/apply/prompt.js.map +1 -1
- package/dist/commands/_lib/apply/render.d.ts +9 -0
- package/dist/commands/_lib/apply/render.d.ts.map +1 -1
- package/dist/commands/_lib/apply/render.js +80 -3
- package/dist/commands/_lib/apply/render.js.map +1 -1
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +9 -2
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/dev.d.ts +8 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +118 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/eval.js +16 -5
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +24 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/memory/_lib/schema.d.ts +28 -1
- package/dist/commands/memory/_lib/schema.d.ts.map +1 -1
- package/dist/commands/memory/_lib/schema.js +120 -4
- package/dist/commands/memory/_lib/schema.js.map +1 -1
- package/dist/commands/memory/_lib/seed-cmd.d.ts.map +1 -1
- package/dist/commands/memory/_lib/seed-cmd.js +41 -18
- package/dist/commands/memory/_lib/seed-cmd.js.map +1 -1
- package/dist/commands/org.d.ts +4 -0
- package/dist/commands/org.d.ts.map +1 -1
- package/dist/commands/org.js +10 -0
- package/dist/commands/org.js.map +1 -1
- package/dist/commands/token.d.ts +9 -0
- package/dist/commands/token.d.ts.map +1 -1
- package/dist/commands/token.js +54 -0
- package/dist/commands/token.js.map +1 -1
- package/dist/connectors/README.md +2 -2
- package/dist/connectors/apple_health.ts +138 -0
- package/dist/connectors/apple_screen_time.ts +82 -0
- package/dist/connectors/browser-scraper-utils.ts +35 -3
- package/dist/connectors/capterra.ts +5 -1
- package/dist/connectors/g2.ts +5 -1
- package/dist/connectors/github.ts +15 -38
- package/dist/connectors/glassdoor.ts +5 -1
- package/dist/connectors/google_calendar.ts +14 -4
- package/dist/connectors/google_gmail.ts +6 -3
- package/dist/connectors/google_play.ts +10 -3
- package/dist/connectors/index.ts +5 -0
- package/dist/connectors/linkedin.ts +32 -9
- package/dist/connectors/local_directory.ts +91 -0
- package/dist/connectors/revolut.ts +572 -0
- package/dist/connectors/trustpilot.ts +5 -1
- package/dist/connectors/website.ts +1 -1
- package/dist/connectors/whatsapp.ts +9 -1
- package/dist/connectors/whatsapp_local.ts +125 -0
- package/dist/connectors/x.ts +17 -7
- package/dist/db/migrations/20260510220000_connector_required_capability.sql +47 -0
- package/dist/db/migrations/20260512000000_device_worker_connection_binding.sql +113 -0
- package/dist/db/migrations/20260512131703_connections_slug.sql +131 -0
- package/dist/db/migrations/20260513000000_chat_user_identities.sql +24 -0
- package/dist/db/migrations/20260513120000_auth_profiles_device_binding.sql +50 -0
- package/dist/db/migrations/20260513150000_auth_profiles_cdp_url.sql +43 -0
- package/dist/db/migrations/20260513200000_notifications_as_events.sql +86 -0
- package/dist/db/migrations/20260514000000_scheduled_jobs.sql +97 -0
- package/dist/db/migrations/20260514120000_auth_profiles_connector_key_nullable.sql +42 -0
- package/dist/eval/types.d.ts +2 -0
- package/dist/eval/types.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -114
- package/dist/index.js.map +1 -1
- package/dist/internal/gateway-url.d.ts +14 -0
- package/dist/internal/gateway-url.d.ts.map +1 -1
- package/dist/internal/gateway-url.js +19 -0
- package/dist/internal/gateway-url.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/server.bundle.mjs +32494 -30475
- package/dist/start-local.bundle.mjs +10840 -7912
- package/dist/templates/TESTING.md.tmpl +9 -9
- package/package.json +6 -6
|
@@ -8,7 +8,7 @@ Send messages to your bot with optional file uploads.
|
|
|
8
8
|
|
|
9
9
|
### Endpoint
|
|
10
10
|
```
|
|
11
|
-
POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
11
|
+
POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### Authentication
|
|
@@ -24,7 +24,7 @@ The bot token must be provided in the `Authorization` header, not in the request
|
|
|
24
24
|
|
|
25
25
|
#### JSON Request (Simple Message)
|
|
26
26
|
```bash
|
|
27
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
27
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
28
28
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
29
29
|
-H "Content-Type: application/json" \
|
|
30
30
|
-d '{
|
|
@@ -36,7 +36,7 @@ curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
|
36
36
|
|
|
37
37
|
#### Multipart Request (With File Upload)
|
|
38
38
|
```bash
|
|
39
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
39
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
40
40
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
41
41
|
-F "platform=slack" \
|
|
42
42
|
-F "channel=C12345678" \
|
|
@@ -90,7 +90,7 @@ If you don't want to mention the bot, simply omit `@me` from your message.
|
|
|
90
90
|
### Example: Simple Text Message (with @me)
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
93
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
94
94
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
95
95
|
-H "Content-Type: application/json" \
|
|
96
96
|
-d '{
|
|
@@ -103,7 +103,7 @@ curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
|
103
103
|
### Example: Without Bot Mention
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
106
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
107
107
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
108
108
|
-H "Content-Type: application/json" \
|
|
109
109
|
-d '{
|
|
@@ -116,7 +116,7 @@ curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
|
116
116
|
### Example: Thread Reply
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
119
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
120
120
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
121
121
|
-H "Content-Type: application/json" \
|
|
122
122
|
-d '{
|
|
@@ -130,7 +130,7 @@ curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
|
130
130
|
### Example: Single File Upload
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
133
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
134
134
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
135
135
|
-F "platform=slack" \
|
|
136
136
|
-F "channel=dev-channel" \
|
|
@@ -141,7 +141,7 @@ curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages
|
|
|
141
141
|
### Example: Multiple File Upload
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
curl -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
144
|
+
curl -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
145
145
|
-H "Authorization: Bearer xoxb-your-bot-token" \
|
|
146
146
|
-F "platform=slack" \
|
|
147
147
|
-F "channel=dev-channel" \
|
|
@@ -196,7 +196,7 @@ Testing a full conversation:
|
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
198
|
# Step 1: Send initial message
|
|
199
|
-
RESPONSE=$(curl -s -X POST http://localhost:{{GATEWAY_PORT}}/api/v1/agents/{agentId}/messages \
|
|
199
|
+
RESPONSE=$(curl -s -X POST http://localhost:{{GATEWAY_PORT}}/lobu/api/v1/agents/{agentId}/messages \
|
|
200
200
|
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
|
|
201
201
|
-H "Content-Type: application/json" \
|
|
202
202
|
-d '{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "CLI for deploying and managing AI agents on Lobu",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@hono/node-server": "^1.13.7",
|
|
42
42
|
"@hono/zod-openapi": "^1.2.1",
|
|
43
43
|
"@inquirer/prompts": "^7.10.1",
|
|
44
|
-
"@lobu/connector-sdk": "
|
|
45
|
-
"@lobu/core": "
|
|
46
|
-
"@lobu/embeddings": "
|
|
47
|
-
"@lobu/worker": "
|
|
44
|
+
"@lobu/connector-sdk": "7.0.0",
|
|
45
|
+
"@lobu/core": "7.0.0",
|
|
46
|
+
"@lobu/embeddings": "7.0.0",
|
|
47
|
+
"@lobu/worker": "7.0.0",
|
|
48
48
|
"@mariozechner/pi-ai": "^0.51.6",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
50
50
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"README.md"
|
|
102
102
|
],
|
|
103
103
|
"engines": {
|
|
104
|
-
"node": ">=22
|
|
104
|
+
"node": ">=22 <25"
|
|
105
105
|
},
|
|
106
106
|
"optionalDependencies": {
|
|
107
107
|
"isolated-vm": "^6.1.2"
|