@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.
Files changed (90) hide show
  1. package/README.md +69 -69
  2. package/bundle/chunk-2HWWLWLM.js +74 -0
  3. package/bundle/chunk-6AU7I5YZ.js +44 -0
  4. package/bundle/chunk-6VCATADU.js +384 -0
  5. package/bundle/chunk-BC3Z5E5X.js +502 -0
  6. package/bundle/chunk-DSP542FN.js +12148 -0
  7. package/bundle/chunk-FFKINGT5.js +231 -0
  8. package/bundle/chunk-FV4QERYA.js +48 -0
  9. package/bundle/chunk-KYP4ZWG7.js +292 -0
  10. package/bundle/chunk-O75RZNCU.js +4539 -0
  11. package/bundle/chunk-QN2OJEAL.js +238746 -0
  12. package/bundle/chunk-RUORC7A6.js +315 -0
  13. package/bundle/chunk-T7WFDN3I.js +805 -0
  14. package/bundle/chunk-VW5YPIKL.js +4458 -0
  15. package/bundle/chunk-WTTFYUHL.js +133 -0
  16. package/bundle/chunk-XN52RPCA.js +75 -0
  17. package/bundle/chunk-ZEKMKKMJ.js +22452 -0
  18. package/bundle/commands/annotation/get.js +3 -3
  19. package/bundle/commands/annotation/list.js +3 -3
  20. package/bundle/commands/annotation/put.js +3 -3
  21. package/bundle/commands/auth/list.js +2 -2
  22. package/bundle/commands/auth/login.js +3 -3
  23. package/bundle/commands/auth/logout.js +2 -2
  24. package/bundle/commands/auth/select.js +3 -3
  25. package/bundle/commands/bucket/create-credential.js +2 -2
  26. package/bundle/commands/bucket/delete-credential.js +2 -2
  27. package/bundle/commands/bucket/get-credential.js +2 -2
  28. package/bundle/commands/bucket/list-credentials.js +2 -2
  29. package/bundle/commands/build/branch.js +9 -9
  30. package/bundle/commands/build/checkout.js +6 -6
  31. package/bundle/commands/build/clone.js +5 -5
  32. package/bundle/commands/build/delete.js +6 -6
  33. package/bundle/commands/build/deploy.js +9 -9
  34. package/bundle/commands/build/env/get.js +2 -2
  35. package/bundle/commands/build/env/set.js +2 -2
  36. package/bundle/commands/build/find.js +4 -4
  37. package/bundle/commands/build/generate.js +3 -3
  38. package/bundle/commands/build/init-workspace.js +3 -3
  39. package/bundle/commands/build/init.js +3 -3
  40. package/bundle/commands/build/list.js +5 -5
  41. package/bundle/commands/build/sandbox.js +7 -7
  42. package/bundle/commands/build/start.js +2 -2
  43. package/bundle/commands/build/status.js +5 -5
  44. package/bundle/commands/build/stop.js +2 -2
  45. package/bundle/commands/build/tools/check.js +2 -2
  46. package/bundle/commands/build/tools/fmt.js +2 -2
  47. package/bundle/commands/build/unsandbox.js +7 -7
  48. package/bundle/commands/build/upload.js +5 -5
  49. package/bundle/commands/build/validate.js +4 -4
  50. package/bundle/commands/build/workos/delete.js +4 -4
  51. package/bundle/commands/build/workos/env/attach.js +3 -3
  52. package/bundle/commands/build/workos/env/create.js +3 -3
  53. package/bundle/commands/build/workos/env/delete.js +3 -3
  54. package/bundle/commands/build/workos/env/detach.js +3 -3
  55. package/bundle/commands/build/workos/env/get.js +3 -3
  56. package/bundle/commands/build/workos/env/list.js +3 -3
  57. package/bundle/commands/build/workos/env/set.js +3 -3
  58. package/bundle/commands/build/workos/invite.js +3 -3
  59. package/bundle/commands/build/workos/setup.js +3 -3
  60. package/bundle/commands/build/workos/status.js +3 -3
  61. package/bundle/commands/dns/create.js +2 -2
  62. package/bundle/commands/dns/delete.js +4 -4
  63. package/bundle/commands/dns/get.js +4 -4
  64. package/bundle/commands/dns/list.js +3 -3
  65. package/bundle/commands/dns/records/create.js +2 -2
  66. package/bundle/commands/dns/records/delete.js +3 -3
  67. package/bundle/commands/dns/records/get.js +2 -2
  68. package/bundle/commands/dns/records/list.js +2 -2
  69. package/bundle/commands/dns/records/update.js +2 -2
  70. package/bundle/commands/logs/query.js +3 -3
  71. package/bundle/commands/logs/tail.js +3 -3
  72. package/bundle/commands/mcp/install-claude.js +2 -2
  73. package/bundle/commands/mcp/install-gemini.js +2 -2
  74. package/bundle/commands/mcp/install-goose.js +2 -2
  75. package/bundle/commands/mcp/status.js +2 -2
  76. package/bundle/commands/object/delete.js +2 -2
  77. package/bundle/commands/object/get.js +2 -2
  78. package/bundle/commands/object/list.js +2 -2
  79. package/bundle/commands/object/put.js +2 -2
  80. package/bundle/commands/query/chunk-search.js +3 -3
  81. package/bundle/commands/query/document.js +3 -3
  82. package/bundle/commands/query/events.js +2 -2
  83. package/bundle/commands/query/reindex.js +2 -2
  84. package/bundle/commands/query/search.js +3 -3
  85. package/bundle/commands/tail.js +2 -2
  86. package/bundle/index.js +1 -1
  87. package/oclif.manifest.json +2807 -2807
  88. package/package.json +4 -4
  89. package/templates/init/RAINDROP.md.hbs +21 -25
  90. 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.6",
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 real-time logs | `raindrop logs tail` |
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
- │ └── handlers/ # Your service/actor/observer handlers
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 # This file
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/handlers/` with comprehensive examples:
174
+ Your handlers are generated in `src/` with comprehensive examples:
177
175
 
178
- ### HTTP Service (`src/handlers/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 (`src/handlers/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 query --limit 100
225
+ raindrop logs tail -n 100
228
226
 
229
227
  # List resources
230
- raindrop build list
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. Validate: `raindrop build validate`
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/handlers/`
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 { corsDisabled } from '@liquidmetal-ai/raindrop-framework/core/cors';
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 (Secure):**
10
- * By default, CORS is disabled for security. Browsers will block cross-origin requests
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 = corsDisabled;
63
+ export const cors = corsAllowAll;