@liquidmetal-ai/raindrop 0.9.6 → 0.9.7
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 +69 -69
- package/bundle/chunk-2HWWLWLM.js +74 -0
- package/bundle/chunk-6AU7I5YZ.js +44 -0
- package/bundle/chunk-6VCATADU.js +384 -0
- package/bundle/chunk-BC3Z5E5X.js +502 -0
- package/bundle/chunk-DSP542FN.js +12148 -0
- package/bundle/chunk-FFKINGT5.js +231 -0
- package/bundle/chunk-FV4QERYA.js +48 -0
- package/bundle/chunk-KYP4ZWG7.js +292 -0
- package/bundle/chunk-O75RZNCU.js +4539 -0
- package/bundle/chunk-QN2OJEAL.js +238746 -0
- package/bundle/chunk-RUORC7A6.js +315 -0
- package/bundle/chunk-T7WFDN3I.js +805 -0
- package/bundle/chunk-VW5YPIKL.js +4458 -0
- package/bundle/chunk-WTTFYUHL.js +133 -0
- package/bundle/chunk-XN52RPCA.js +75 -0
- package/bundle/chunk-ZEKMKKMJ.js +22452 -0
- package/bundle/commands/annotation/get.js +3 -3
- package/bundle/commands/annotation/list.js +3 -3
- package/bundle/commands/annotation/put.js +3 -3
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +3 -3
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +2 -2
- package/bundle/commands/bucket/delete-credential.js +2 -2
- package/bundle/commands/bucket/get-credential.js +2 -2
- package/bundle/commands/bucket/list-credentials.js +2 -2
- package/bundle/commands/build/branch.js +9 -9
- package/bundle/commands/build/checkout.js +6 -6
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +6 -6
- package/bundle/commands/build/deploy.js +9 -9
- package/bundle/commands/build/env/get.js +2 -2
- package/bundle/commands/build/env/set.js +2 -2
- package/bundle/commands/build/find.js +4 -4
- package/bundle/commands/build/generate.js +3 -3
- package/bundle/commands/build/init-workspace.js +3 -3
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list.js +5 -5
- package/bundle/commands/build/sandbox.js +7 -7
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +5 -5
- package/bundle/commands/build/stop.js +2 -2
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +7 -7
- package/bundle/commands/build/upload.js +5 -5
- package/bundle/commands/build/validate.js +4 -4
- package/bundle/commands/build/workos/delete.js +4 -4
- package/bundle/commands/build/workos/env/attach.js +3 -3
- package/bundle/commands/build/workos/env/create.js +3 -3
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +3 -3
- package/bundle/commands/build/workos/env/get.js +3 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +3 -3
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/setup.js +3 -3
- package/bundle/commands/build/workos/status.js +3 -3
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +4 -4
- package/bundle/commands/dns/get.js +4 -4
- package/bundle/commands/dns/list.js +3 -3
- package/bundle/commands/dns/records/create.js +2 -2
- package/bundle/commands/dns/records/delete.js +3 -3
- package/bundle/commands/dns/records/get.js +2 -2
- package/bundle/commands/dns/records/list.js +2 -2
- package/bundle/commands/dns/records/update.js +2 -2
- package/bundle/commands/logs/query.js +3 -3
- package/bundle/commands/logs/tail.js +3 -3
- package/bundle/commands/mcp/install-claude.js +2 -2
- package/bundle/commands/mcp/install-gemini.js +2 -2
- package/bundle/commands/mcp/install-goose.js +2 -2
- package/bundle/commands/mcp/status.js +2 -2
- package/bundle/commands/object/delete.js +2 -2
- package/bundle/commands/object/get.js +2 -2
- package/bundle/commands/object/list.js +2 -2
- package/bundle/commands/object/put.js +2 -2
- package/bundle/commands/query/chunk-search.js +3 -3
- package/bundle/commands/query/document.js +3 -3
- package/bundle/commands/query/events.js +2 -2
- package/bundle/commands/query/reindex.js +2 -2
- package/bundle/commands/query/search.js +3 -3
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/oclif.manifest.json +2807 -2807
- package/package.json +4 -4
- package/templates/init/RAINDROP.md.hbs +21 -25
- package/templates/init/src/_app/cors.ts +4 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liquidmetal-ai/raindrop",
|
|
3
3
|
"description": "CLI for the Raindrop platform",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.7",
|
|
5
5
|
"author": "bosgood",
|
|
6
6
|
"bin": {
|
|
7
7
|
"raindrop": "./bin/run.js"
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"@connectrpc/connect": "^2.0.2",
|
|
13
13
|
"@connectrpc/connect-web": "^2.0.2",
|
|
14
14
|
"@inquirer/prompts": "^7.0.0",
|
|
15
|
+
"@liquidmetal-ai/drizzle": "^0.9.2",
|
|
16
|
+
"@liquidmetal-ai/raindrop-framework": "^0.9.2",
|
|
15
17
|
"@oclif/core": "^4",
|
|
16
18
|
"@oclif/plugin-help": "^6",
|
|
17
19
|
"@oclif/plugin-plugins": "^5",
|
|
@@ -36,9 +38,7 @@
|
|
|
36
38
|
"semver": "^7.7.2",
|
|
37
39
|
"typescript": "^5",
|
|
38
40
|
"zod": "^3.23.8",
|
|
39
|
-
"zx": "^8.1.9"
|
|
40
|
-
"@liquidmetal-ai/drizzle": "0.9.2",
|
|
41
|
-
"@liquidmetal-ai/raindrop-framework": "0.9.2"
|
|
41
|
+
"zx": "^8.1.9"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@changesets/cli": "^2.27.9",
|
|
@@ -14,8 +14,8 @@ A Raindrop application built with Hono.js and modern web technologies.
|
|
|
14
14
|
|
|
15
15
|
1. **Initialize your project** (already done if you're reading this)
|
|
16
16
|
```bash
|
|
17
|
-
raindrop build init
|
|
18
|
-
npm install
|
|
17
|
+
raindrop build init <project>
|
|
18
|
+
cd <project> && npm install
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
2. **Generate initial code**
|
|
@@ -43,15 +43,13 @@ A Raindrop application built with Hono.js and modern web technologies.
|
|
|
43
43
|
| `raindrop build generate` | Generate TypeScript types and handler scaffolding | After changing `raindrop.manifest` |
|
|
44
44
|
| `raindrop build deploy --start` | Build, upload and start your application | When ready to deploy |
|
|
45
45
|
| `raindrop build stop` | Stop your running application | To stop services |
|
|
46
|
-
| `raindrop build status` | Check deployment status | To see current state |
|
|
47
|
-
| `raindrop build find` | Get service locations | To see current service URLs |
|
|
46
|
+
| `raindrop build status` | Check deployment status | To see current state and URLs |
|
|
48
47
|
|
|
49
48
|
### Advanced Commands
|
|
50
49
|
|
|
51
50
|
| Command | Description | Example |
|
|
52
51
|
|---------|-------------|---------|
|
|
53
|
-
| `raindrop logs tail` | View
|
|
54
|
-
| `raindrop logs query` | Query historical logs | `raindrop logs query --since 30s` |
|
|
52
|
+
| `raindrop logs tail` | View logs | `raindrop logs tail -n 50` |
|
|
55
53
|
|
|
56
54
|
### Utility Commands
|
|
57
55
|
|
|
@@ -66,7 +64,7 @@ A Raindrop application built with Hono.js and modern web technologies.
|
|
|
66
64
|
{{ applicationName }}/
|
|
67
65
|
├── src/
|
|
68
66
|
│ ├── _app/ # App-level configuration (see below)
|
|
69
|
-
│ └──
|
|
67
|
+
│ └── <service>/ # Your service/actor/observer code
|
|
70
68
|
├── db/ # Database migration files
|
|
71
69
|
│ └── <db_name>/ # Database-specific SQL migrations
|
|
72
70
|
│ ├── 0000_initial_schema.sql
|
|
@@ -75,7 +73,7 @@ A Raindrop application built with Hono.js and modern web technologies.
|
|
|
75
73
|
├── raindrop.manifest # Your application manifest (resources, modules)
|
|
76
74
|
├── package.json # Node.js dependencies and scripts
|
|
77
75
|
├── tsconfig.json # TypeScript configuration
|
|
78
|
-
└── RAINDROP.md
|
|
76
|
+
└── RAINDROP.md # This file
|
|
79
77
|
```
|
|
80
78
|
|
|
81
79
|
## NPM Scripts
|
|
@@ -173,13 +171,13 @@ application "{{ applicationName }}" {
|
|
|
173
171
|
|
|
174
172
|
## Handler Examples
|
|
175
173
|
|
|
176
|
-
Your handlers are generated in `src
|
|
174
|
+
Your handlers are generated in `src/` with comprehensive examples:
|
|
177
175
|
|
|
178
|
-
### HTTP Service
|
|
176
|
+
### HTTP Service
|
|
179
177
|
- ✅ **Working**: Basic Hono setup with `/health` and `/api/hello` endpoints
|
|
180
178
|
- 💡 **Examples**: Actor calls, SmartBucket operations, KV cache, queues (commented)
|
|
181
179
|
|
|
182
|
-
### Actor
|
|
180
|
+
### Actor
|
|
183
181
|
- 💡 **Examples**: State management, SmartBucket integration, caching, alarms (commented)
|
|
184
182
|
|
|
185
183
|
### Other Handlers
|
|
@@ -224,10 +222,10 @@ raindrop build status
|
|
|
224
222
|
raindrop logs tail
|
|
225
223
|
|
|
226
224
|
# Query logs
|
|
227
|
-
raindrop logs
|
|
225
|
+
raindrop logs tail -n 100
|
|
228
226
|
|
|
229
227
|
# List resources
|
|
230
|
-
raindrop build
|
|
228
|
+
raindrop build status
|
|
231
229
|
```
|
|
232
230
|
|
|
233
231
|
### 4. Environment Variables
|
|
@@ -244,10 +242,15 @@ application "my-app" {
|
|
|
244
242
|
}
|
|
245
243
|
```
|
|
246
244
|
|
|
245
|
+
Set values:
|
|
246
|
+
```bash
|
|
247
|
+
raindrop build env set env:PUBLIC_KEY "my-public-key"
|
|
248
|
+
```
|
|
249
|
+
|
|
247
250
|
### 5. Resource Binding
|
|
248
251
|
Access bound resources in handlers:
|
|
249
252
|
```typescript
|
|
250
|
-
// In HTTP service
|
|
253
|
+
// In HTTP service with Hono
|
|
251
254
|
const smartbucket = c.env.MY_SMARTBUCKET; // Name from manifest
|
|
252
255
|
const cache = c.env.MY_CACHE_KV;
|
|
253
256
|
|
|
@@ -277,19 +280,12 @@ export default class extends Service<Env> {
|
|
|
277
280
|
### Updating Existing Code
|
|
278
281
|
1. Make code changes
|
|
279
282
|
2. Build TypeScript: `npm run build`
|
|
280
|
-
3.
|
|
281
|
-
4. Deploy: `raindrop build deploy`
|
|
283
|
+
3. Deploy: `raindrop build deploy`
|
|
282
284
|
|
|
283
285
|
### Branching for Development
|
|
284
286
|
```bash
|
|
285
|
-
# Create development branch
|
|
287
|
+
# Create development branch (also deploys)
|
|
286
288
|
raindrop build branch dev
|
|
287
|
-
|
|
288
|
-
# Switch to branch
|
|
289
|
-
raindrop build checkout dev
|
|
290
|
-
|
|
291
|
-
# Deploy to branch
|
|
292
|
-
raindrop build deploy
|
|
293
289
|
```
|
|
294
290
|
|
|
295
291
|
## Framework Features
|
|
@@ -347,9 +343,9 @@ CREATE TABLE users (
|
|
|
347
343
|
## Next Steps
|
|
348
344
|
|
|
349
345
|
1. **Explore the manifest** - Uncomment modules you need in `raindrop.manifest`
|
|
350
|
-
2. **Check the examples** - Browse handler templates in `src
|
|
346
|
+
2. **Check the examples** - Browse handler templates in `src/<module>`
|
|
351
347
|
3. **Build something** - Start by uncommenting a service in the manifest
|
|
352
348
|
4. **Add intelligence** - Try SmartBucket for AI-powered features
|
|
353
|
-
5. **Scale up** - Add actors for background processing
|
|
349
|
+
5. **Scale up** - Add actors for background processing and powerful stateful capabilities
|
|
354
350
|
|
|
355
351
|
Welcome to Raindrop! 🚀
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { corsAllowAll } from '@liquidmetal-ai/raindrop-framework/core/cors';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* cors is the application-wide CORS (Cross-Origin Resource Sharing) handler.
|
|
@@ -6,9 +6,8 @@ import { corsDisabled } from '@liquidmetal-ai/raindrop-framework/core/cors';
|
|
|
6
6
|
* This handler is automatically applied to all HTTP services in your application.
|
|
7
7
|
* You can override this per-handler by exporting a `cors` function from your handler.
|
|
8
8
|
*
|
|
9
|
-
* **Default Behavior (
|
|
10
|
-
*
|
|
11
|
-
* to your API unless you explicitly configure allowed origins.
|
|
9
|
+
* **Default Behavior (INSECURE):**
|
|
10
|
+
* `corsallowall` is not recommended, change before deploying to production.
|
|
12
11
|
*
|
|
13
12
|
* **When to Enable CORS:**
|
|
14
13
|
* Enable CORS when you need to allow web applications from different domains to access
|
|
@@ -61,4 +60,4 @@ import { corsDisabled } from '@liquidmetal-ai/raindrop-framework/core/cors';
|
|
|
61
60
|
* };
|
|
62
61
|
* ```
|
|
63
62
|
*/
|
|
64
|
-
export const cors =
|
|
63
|
+
export const cors = corsAllowAll;
|