@liquidmetal-ai/raindrop 0.0.4 → 0.0.5
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 +23 -23
- package/oclif.manifest.json +1 -1
- package/package.json +3 -2
- package/templates/handlers/actor/index.test.ts +5 -0
- package/templates/handlers/actor/index.ts.hbs +8 -0
- package/templates/handlers/http-service/index.test.ts +5 -0
- package/templates/handlers/http-service/index.ts.hbs +8 -0
- package/templates/handlers/queue-consumer/index.test.ts +5 -0
- package/templates/handlers/queue-consumer/index.ts.hbs +11 -0
- package/templates/handlers/r2-event-notification/index.test.ts +5 -0
- package/templates/handlers/r2-event-notification/index.ts.hbs +8 -0
- package/templates/init/package.json.hbs +23 -0
- package/templates/init/raindrop.manifest.hbs +3 -0
- package/templates/init/tsconfig.json +29 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @liquidmetal-ai/raindrop
|
|
|
20
20
|
$ raindrop COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ raindrop (--version)
|
|
23
|
-
@liquidmetal-ai/raindrop/0.0.
|
|
23
|
+
@liquidmetal-ai/raindrop/0.0.5 darwin-arm64 node-v22.10.0
|
|
24
24
|
$ raindrop --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ raindrop COMMAND
|
|
@@ -81,7 +81,7 @@ DESCRIPTION
|
|
|
81
81
|
List authentications
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
84
|
+
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/auth/list.ts)_
|
|
85
85
|
|
|
86
86
|
## `raindrop auth login`
|
|
87
87
|
|
|
@@ -95,7 +95,7 @@ DESCRIPTION
|
|
|
95
95
|
Logs a user into the LiquidMetal platform. Supports browser-based authentication.
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
98
|
+
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/auth/login.ts)_
|
|
99
99
|
|
|
100
100
|
## `raindrop auth logout`
|
|
101
101
|
|
|
@@ -109,7 +109,7 @@ DESCRIPTION
|
|
|
109
109
|
Logout authentications
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
112
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/auth/logout.ts)_
|
|
113
113
|
|
|
114
114
|
## `raindrop auth select`
|
|
115
115
|
|
|
@@ -126,7 +126,7 @@ DESCRIPTION
|
|
|
126
126
|
Select active organization
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
129
|
+
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/auth/select.ts)_
|
|
130
130
|
|
|
131
131
|
## `raindrop build branch`
|
|
132
132
|
|
|
@@ -150,7 +150,7 @@ EXAMPLES
|
|
|
150
150
|
Created new branch 1234
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
153
|
+
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/branch.ts)_
|
|
154
154
|
|
|
155
155
|
## `raindrop build delete [APPLICATION]`
|
|
156
156
|
|
|
@@ -178,7 +178,7 @@ EXAMPLES
|
|
|
178
178
|
Deleted (application) at version (version)
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
181
|
+
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/delete.ts)_
|
|
182
182
|
|
|
183
183
|
## `raindrop build deploy`
|
|
184
184
|
|
|
@@ -204,7 +204,7 @@ EXAMPLES
|
|
|
204
204
|
Deploy a Raindrop application.
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
207
|
+
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/deploy.ts)_
|
|
208
208
|
|
|
209
209
|
## `raindrop build env get VAR`
|
|
210
210
|
|
|
@@ -232,7 +232,7 @@ EXAMPLES
|
|
|
232
232
|
sets an env var/secret.
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
235
|
+
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/env/get.ts)_
|
|
236
236
|
|
|
237
237
|
## `raindrop build env set VAR [VALUE]`
|
|
238
238
|
|
|
@@ -261,7 +261,7 @@ EXAMPLES
|
|
|
261
261
|
sets an env var/secret.
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
-
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
264
|
+
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/env/set.ts)_
|
|
265
265
|
|
|
266
266
|
## `raindrop build find`
|
|
267
267
|
|
|
@@ -285,7 +285,7 @@ EXAMPLES
|
|
|
285
285
|
$ raindrop build find .
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
288
|
+
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/find.ts)_
|
|
289
289
|
|
|
290
290
|
## `raindrop build generate`
|
|
291
291
|
|
|
@@ -307,7 +307,7 @@ EXAMPLES
|
|
|
307
307
|
$ raindrop build generate
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
310
|
+
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/generate.ts)_
|
|
311
311
|
|
|
312
312
|
## `raindrop build init [PATH]`
|
|
313
313
|
|
|
@@ -331,7 +331,7 @@ EXAMPLES
|
|
|
331
331
|
Initialize a project in the current directory.
|
|
332
332
|
```
|
|
333
333
|
|
|
334
|
-
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
334
|
+
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/init.ts)_
|
|
335
335
|
|
|
336
336
|
## `raindrop build list`
|
|
337
337
|
|
|
@@ -355,7 +355,7 @@ EXAMPLES
|
|
|
355
355
|
List Raindrop catalog resources.
|
|
356
356
|
```
|
|
357
357
|
|
|
358
|
-
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
358
|
+
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/list.ts)_
|
|
359
359
|
|
|
360
360
|
## `raindrop build sandbox [VERSIONID]`
|
|
361
361
|
|
|
@@ -378,7 +378,7 @@ EXAMPLES
|
|
|
378
378
|
$ raindrop build sandbox
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
381
|
+
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/sandbox.ts)_
|
|
382
382
|
|
|
383
383
|
## `raindrop build start`
|
|
384
384
|
|
|
@@ -402,7 +402,7 @@ EXAMPLES
|
|
|
402
402
|
Start a Raindrop application.
|
|
403
403
|
```
|
|
404
404
|
|
|
405
|
-
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
405
|
+
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/start.ts)_
|
|
406
406
|
|
|
407
407
|
## `raindrop build stop`
|
|
408
408
|
|
|
@@ -424,7 +424,7 @@ EXAMPLES
|
|
|
424
424
|
Stop a Raindrop application.
|
|
425
425
|
```
|
|
426
426
|
|
|
427
|
-
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
427
|
+
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/stop.ts)_
|
|
428
428
|
|
|
429
429
|
## `raindrop build token`
|
|
430
430
|
|
|
@@ -438,7 +438,7 @@ DESCRIPTION
|
|
|
438
438
|
generate a link to create a Cloudflare API token
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
_See code: [src/commands/build/token.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
441
|
+
_See code: [src/commands/build/token.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/token.ts)_
|
|
442
442
|
|
|
443
443
|
## `raindrop build tools check`
|
|
444
444
|
|
|
@@ -459,7 +459,7 @@ EXAMPLES
|
|
|
459
459
|
$ raindrop build tools check
|
|
460
460
|
```
|
|
461
461
|
|
|
462
|
-
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
462
|
+
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/tools/check.ts)_
|
|
463
463
|
|
|
464
464
|
## `raindrop build tools fmt`
|
|
465
465
|
|
|
@@ -480,7 +480,7 @@ EXAMPLES
|
|
|
480
480
|
$ raindrop build tools fmt
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
483
|
+
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/tools/fmt.ts)_
|
|
484
484
|
|
|
485
485
|
## `raindrop build unsandbox [VERSIONID]`
|
|
486
486
|
|
|
@@ -503,7 +503,7 @@ EXAMPLES
|
|
|
503
503
|
$ raindrop build unsandbox
|
|
504
504
|
```
|
|
505
505
|
|
|
506
|
-
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
506
|
+
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/unsandbox.ts)_
|
|
507
507
|
|
|
508
508
|
## `raindrop build upload`
|
|
509
509
|
|
|
@@ -527,7 +527,7 @@ EXAMPLES
|
|
|
527
527
|
$ raindrop build upload
|
|
528
528
|
```
|
|
529
529
|
|
|
530
|
-
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
530
|
+
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/upload.ts)_
|
|
531
531
|
|
|
532
532
|
## `raindrop build validate`
|
|
533
533
|
|
|
@@ -549,7 +549,7 @@ EXAMPLES
|
|
|
549
549
|
$ raindrop build validate
|
|
550
550
|
```
|
|
551
551
|
|
|
552
|
-
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.
|
|
552
|
+
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.0.5/src/commands/build/validate.ts)_
|
|
553
553
|
|
|
554
554
|
## `raindrop help [COMMAND]`
|
|
555
555
|
|
package/oclif.manifest.json
CHANGED
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.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"author": "bosgood",
|
|
6
6
|
"bin": {
|
|
7
7
|
"raindrop": "./bin/run.js"
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"files": [
|
|
57
57
|
"/bin",
|
|
58
58
|
"/dist",
|
|
59
|
-
"/oclif.manifest.json"
|
|
59
|
+
"/oclif.manifest.json",
|
|
60
|
+
"/templates"
|
|
60
61
|
],
|
|
61
62
|
"homepage": "https://github.com/LiquidMetal-AI/liquidmetal/tree/main/packages/raindrop",
|
|
62
63
|
"keywords": [
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { observers } from '@liquidmetal-ai/raindrop-framework';
|
|
2
|
+
import { Env } from './raindrop.gen';
|
|
3
|
+
|
|
4
|
+
export default class extends observers.Each<Body, Env> {
|
|
5
|
+
async process(message: Body): Promise<void> {
|
|
6
|
+
console.log(JSON.stringify(message));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface Body {
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { observers } from '@liquidmetal-ai/raindrop-framework';
|
|
2
|
+
import { Env } from './raindrop.gen';
|
|
3
|
+
|
|
4
|
+
export default class extends observers.Each<Body, Env> {
|
|
5
|
+
async process(message: observers.BucketEventNotification): Promise<void> {
|
|
6
|
+
console.log(JSON.stringify(message));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{ applicationName }}",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "LiquidMetal AI app",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
7
|
+
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
|
8
|
+
"lint": "eslint . --max-warnings=0",
|
|
9
|
+
"test": "vitest run",
|
|
10
|
+
"test:watch": "vitest"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@cloudflare/workers-types": "^4",
|
|
14
|
+
"shx": "^0.3.3",
|
|
15
|
+
"ts-node": "^10",
|
|
16
|
+
"typescript-eslint": "^7.17.0",
|
|
17
|
+
"typescript": "^5.0.4",
|
|
18
|
+
"vitest": "^2.0.2"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@liquidmetal-ai/raindrop-framework": "^0.0.1"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "LiquidMetal.AI Application",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"checkJs": false,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"incremental": false,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "react",
|
|
15
|
+
"lib": ["es2021"],
|
|
16
|
+
"module": "es2022",
|
|
17
|
+
"moduleDetection": "force",
|
|
18
|
+
"moduleResolution": "Bundler",
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
"noUncheckedIndexedAccess": true,
|
|
21
|
+
"outDir": "dist",
|
|
22
|
+
"resolveJsonModule": true,
|
|
23
|
+
"skipLibCheck": true,
|
|
24
|
+
"strict": true,
|
|
25
|
+
"target": "es2021",
|
|
26
|
+
"types": ["@cloudflare/workers-types"]
|
|
27
|
+
},
|
|
28
|
+
"exclude": ["test"]
|
|
29
|
+
}
|