@liquidmetal-ai/raindrop 0.2.11 → 0.3.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/README.md +44 -71
- package/dist/base-command.d.ts +1 -1
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +4 -2
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +12 -0
- package/dist/codegen.d.ts +6 -1
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +7 -2
- package/dist/codegen.test.js +12 -7
- package/dist/commands/build/deploy.js +1 -1
- package/dist/commands/build/find.d.ts +8 -0
- package/dist/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +51 -4
- package/dist/commands/build/generate.d.ts.map +1 -1
- package/dist/commands/build/generate.js +2 -0
- package/dist/commands/build/init.d.ts.map +1 -1
- package/dist/commands/build/init.js +2 -0
- package/dist/commands/build/sandbox.d.ts +2 -3
- package/dist/commands/build/sandbox.d.ts.map +1 -1
- package/dist/commands/build/sandbox.js +8 -5
- package/dist/commands/build/start.js +1 -1
- package/dist/commands/build/unsandbox.d.ts +2 -3
- package/dist/commands/build/unsandbox.d.ts.map +1 -1
- package/dist/commands/build/unsandbox.js +8 -5
- package/dist/commands/object/delete.js +1 -1
- package/dist/commands/object/get.js +1 -1
- package/dist/commands/object/list.d.ts.map +1 -1
- package/dist/commands/object/list.js +12 -5
- package/dist/commands/object/put.d.ts.map +1 -1
- package/dist/commands/object/put.js +2 -3
- package/dist/commands/query/chunk-search.js +1 -1
- package/dist/commands/query/search.js +1 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +36 -9
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +746 -887
- package/package.json +2 -2
- package/templates/db/db/README.md +3 -1
- package/templates/init/package.json.hbs +1 -1
- package/dist/commands/query/register-retriever.d.ts +0 -21
- package/dist/commands/query/register-retriever.d.ts.map +0 -1
- package/dist/commands/query/register-retriever.js +0 -47
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.
|
|
23
|
+
@liquidmetal-ai/raindrop/0.3.0 darwin-arm64 node-v23.10.0
|
|
24
24
|
$ raindrop --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ raindrop COMMAND
|
|
@@ -45,13 +45,13 @@ USAGE
|
|
|
45
45
|
* [`raindrop build generate`](#raindrop-build-generate)
|
|
46
46
|
* [`raindrop build init [PATH]`](#raindrop-build-init-path)
|
|
47
47
|
* [`raindrop build list`](#raindrop-build-list)
|
|
48
|
-
* [`raindrop build sandbox
|
|
48
|
+
* [`raindrop build sandbox`](#raindrop-build-sandbox)
|
|
49
49
|
* [`raindrop build start`](#raindrop-build-start)
|
|
50
50
|
* [`raindrop build status`](#raindrop-build-status)
|
|
51
51
|
* [`raindrop build stop`](#raindrop-build-stop)
|
|
52
52
|
* [`raindrop build tools check`](#raindrop-build-tools-check)
|
|
53
53
|
* [`raindrop build tools fmt`](#raindrop-build-tools-fmt)
|
|
54
|
-
* [`raindrop build unsandbox
|
|
54
|
+
* [`raindrop build unsandbox`](#raindrop-build-unsandbox)
|
|
55
55
|
* [`raindrop build upload`](#raindrop-build-upload)
|
|
56
56
|
* [`raindrop build validate`](#raindrop-build-validate)
|
|
57
57
|
* [`raindrop help [COMMAND]`](#raindrop-help-command)
|
|
@@ -70,7 +70,6 @@ USAGE
|
|
|
70
70
|
* [`raindrop plugins unlink [PLUGIN]`](#raindrop-plugins-unlink-plugin)
|
|
71
71
|
* [`raindrop plugins update`](#raindrop-plugins-update)
|
|
72
72
|
* [`raindrop query chunk-search QUERY`](#raindrop-query-chunk-search-query)
|
|
73
|
-
* [`raindrop query register-retriever BUCKET URL DELETEURL BUCKETNAME`](#raindrop-query-register-retriever-bucket-url-deleteurl-bucketname)
|
|
74
73
|
* [`raindrop query search [QUERY]`](#raindrop-query-search-query)
|
|
75
74
|
* [`raindrop tail`](#raindrop-tail)
|
|
76
75
|
|
|
@@ -90,7 +89,7 @@ DESCRIPTION
|
|
|
90
89
|
List authentications
|
|
91
90
|
```
|
|
92
91
|
|
|
93
|
-
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
92
|
+
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/auth/list.ts)_
|
|
94
93
|
|
|
95
94
|
## `raindrop auth login`
|
|
96
95
|
|
|
@@ -104,7 +103,7 @@ DESCRIPTION
|
|
|
104
103
|
Logs a user into the LiquidMetal platform. Supports browser-based authentication.
|
|
105
104
|
```
|
|
106
105
|
|
|
107
|
-
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
106
|
+
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/auth/login.ts)_
|
|
108
107
|
|
|
109
108
|
## `raindrop auth logout`
|
|
110
109
|
|
|
@@ -118,7 +117,7 @@ DESCRIPTION
|
|
|
118
117
|
Logout authentications
|
|
119
118
|
```
|
|
120
119
|
|
|
121
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
120
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/auth/logout.ts)_
|
|
122
121
|
|
|
123
122
|
## `raindrop auth select`
|
|
124
123
|
|
|
@@ -135,7 +134,7 @@ DESCRIPTION
|
|
|
135
134
|
Select active organization
|
|
136
135
|
```
|
|
137
136
|
|
|
138
|
-
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
137
|
+
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/auth/select.ts)_
|
|
139
138
|
|
|
140
139
|
## `raindrop build branch BRANCH`
|
|
141
140
|
|
|
@@ -164,7 +163,7 @@ EXAMPLES
|
|
|
164
163
|
Branch a Raindrop application.
|
|
165
164
|
```
|
|
166
165
|
|
|
167
|
-
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
166
|
+
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/branch.ts)_
|
|
168
167
|
|
|
169
168
|
## `raindrop build checkout [VERSION]`
|
|
170
169
|
|
|
@@ -190,7 +189,7 @@ EXAMPLES
|
|
|
190
189
|
Switched to version: 01jux6z20m4gbhn5kaa4mcm2jr
|
|
191
190
|
```
|
|
192
191
|
|
|
193
|
-
_See code: [src/commands/build/checkout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
192
|
+
_See code: [src/commands/build/checkout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/checkout.ts)_
|
|
194
193
|
|
|
195
194
|
## `raindrop build delete [APPLICATION]`
|
|
196
195
|
|
|
@@ -219,7 +218,7 @@ EXAMPLES
|
|
|
219
218
|
Deleted (application) at version (version)
|
|
220
219
|
```
|
|
221
220
|
|
|
222
|
-
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
221
|
+
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/delete.ts)_
|
|
223
222
|
|
|
224
223
|
## `raindrop build deploy`
|
|
225
224
|
|
|
@@ -247,7 +246,7 @@ EXAMPLES
|
|
|
247
246
|
Deploy a Raindrop application version.
|
|
248
247
|
```
|
|
249
248
|
|
|
250
|
-
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
249
|
+
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/deploy.ts)_
|
|
251
250
|
|
|
252
251
|
## `raindrop build env get VAR`
|
|
253
252
|
|
|
@@ -274,7 +273,7 @@ EXAMPLES
|
|
|
274
273
|
sets an env var/secret.
|
|
275
274
|
```
|
|
276
275
|
|
|
277
|
-
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
276
|
+
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/env/get.ts)_
|
|
278
277
|
|
|
279
278
|
## `raindrop build env set VAR [VALUE]`
|
|
280
279
|
|
|
@@ -303,7 +302,7 @@ EXAMPLES
|
|
|
303
302
|
sets an env var/secret.
|
|
304
303
|
```
|
|
305
304
|
|
|
306
|
-
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
305
|
+
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/env/set.ts)_
|
|
307
306
|
|
|
308
307
|
## `raindrop build find`
|
|
309
308
|
|
|
@@ -311,7 +310,8 @@ find resources in Raindrop
|
|
|
311
310
|
|
|
312
311
|
```
|
|
313
312
|
USAGE
|
|
314
|
-
$ raindrop build find [-r <value>] [-m <value>] [-a <value>] [-v <value>] [-o
|
|
313
|
+
$ raindrop build find [-r <value>] [-m <value>] [-a <value>] [-v <value>] [--moduleType <value>] [-o
|
|
314
|
+
text|table|json]
|
|
315
315
|
|
|
316
316
|
FLAGS
|
|
317
317
|
-a, --application=<value> application
|
|
@@ -320,6 +320,7 @@ FLAGS
|
|
|
320
320
|
<options: text|table|json>
|
|
321
321
|
-r, --root=<value> [default: /Users/ian/liquidmetal/packages/raindrop] root directory
|
|
322
322
|
-v, --version=<value> application version
|
|
323
|
+
--moduleType=<value> filter by module type (e.g. smartbucket)
|
|
323
324
|
|
|
324
325
|
DESCRIPTION
|
|
325
326
|
find resources in Raindrop
|
|
@@ -328,7 +329,7 @@ EXAMPLES
|
|
|
328
329
|
$ raindrop build find .
|
|
329
330
|
```
|
|
330
331
|
|
|
331
|
-
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
332
|
+
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/find.ts)_
|
|
332
333
|
|
|
333
334
|
## `raindrop build generate`
|
|
334
335
|
|
|
@@ -350,7 +351,7 @@ EXAMPLES
|
|
|
350
351
|
$ raindrop build generate
|
|
351
352
|
```
|
|
352
353
|
|
|
353
|
-
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
354
|
+
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/generate.ts)_
|
|
354
355
|
|
|
355
356
|
## `raindrop build init [PATH]`
|
|
356
357
|
|
|
@@ -374,7 +375,7 @@ EXAMPLES
|
|
|
374
375
|
Initialize a project in the current directory.
|
|
375
376
|
```
|
|
376
377
|
|
|
377
|
-
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
378
|
+
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/init.ts)_
|
|
378
379
|
|
|
379
380
|
## `raindrop build list`
|
|
380
381
|
|
|
@@ -397,21 +398,19 @@ EXAMPLES
|
|
|
397
398
|
List Raindrop catalog resources.
|
|
398
399
|
```
|
|
399
400
|
|
|
400
|
-
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
401
|
+
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/list.ts)_
|
|
401
402
|
|
|
402
|
-
## `raindrop build sandbox
|
|
403
|
+
## `raindrop build sandbox`
|
|
403
404
|
|
|
404
405
|
mark a version as sandboxed in the Raindrop catalog
|
|
405
406
|
|
|
406
407
|
```
|
|
407
408
|
USAGE
|
|
408
|
-
$ raindrop build sandbox [
|
|
409
|
-
|
|
410
|
-
ARGUMENTS
|
|
411
|
-
VERSIONID version to sandbox
|
|
409
|
+
$ raindrop build sandbox [--manifest <value>] [-v <value>]
|
|
412
410
|
|
|
413
411
|
FLAGS
|
|
414
|
-
--
|
|
412
|
+
-v, --version=<value> application version to sandbox
|
|
413
|
+
--manifest=<value> [default: raindrop.manifest] project manifest
|
|
415
414
|
|
|
416
415
|
DESCRIPTION
|
|
417
416
|
mark a version as sandboxed in the Raindrop catalog
|
|
@@ -420,7 +419,7 @@ EXAMPLES
|
|
|
420
419
|
$ raindrop build sandbox
|
|
421
420
|
```
|
|
422
421
|
|
|
423
|
-
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
422
|
+
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/sandbox.ts)_
|
|
424
423
|
|
|
425
424
|
## `raindrop build start`
|
|
426
425
|
|
|
@@ -444,7 +443,7 @@ EXAMPLES
|
|
|
444
443
|
Start a Raindrop application.
|
|
445
444
|
```
|
|
446
445
|
|
|
447
|
-
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
446
|
+
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/start.ts)_
|
|
448
447
|
|
|
449
448
|
## `raindrop build status`
|
|
450
449
|
|
|
@@ -469,7 +468,7 @@ EXAMPLES
|
|
|
469
468
|
$ raindrop build status .
|
|
470
469
|
```
|
|
471
470
|
|
|
472
|
-
_See code: [src/commands/build/status.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
471
|
+
_See code: [src/commands/build/status.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/status.ts)_
|
|
473
472
|
|
|
474
473
|
## `raindrop build stop`
|
|
475
474
|
|
|
@@ -493,7 +492,7 @@ EXAMPLES
|
|
|
493
492
|
Stop a Raindrop application.
|
|
494
493
|
```
|
|
495
494
|
|
|
496
|
-
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
495
|
+
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/stop.ts)_
|
|
497
496
|
|
|
498
497
|
## `raindrop build tools check`
|
|
499
498
|
|
|
@@ -514,7 +513,7 @@ EXAMPLES
|
|
|
514
513
|
$ raindrop build tools check
|
|
515
514
|
```
|
|
516
515
|
|
|
517
|
-
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
516
|
+
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/tools/check.ts)_
|
|
518
517
|
|
|
519
518
|
## `raindrop build tools fmt`
|
|
520
519
|
|
|
@@ -535,21 +534,19 @@ EXAMPLES
|
|
|
535
534
|
$ raindrop build tools fmt
|
|
536
535
|
```
|
|
537
536
|
|
|
538
|
-
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
537
|
+
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/tools/fmt.ts)_
|
|
539
538
|
|
|
540
|
-
## `raindrop build unsandbox
|
|
539
|
+
## `raindrop build unsandbox`
|
|
541
540
|
|
|
542
541
|
mark a version as unsandboxed in the Raindrop catalog
|
|
543
542
|
|
|
544
543
|
```
|
|
545
544
|
USAGE
|
|
546
|
-
$ raindrop build unsandbox [
|
|
547
|
-
|
|
548
|
-
ARGUMENTS
|
|
549
|
-
VERSIONID version to sandbox
|
|
545
|
+
$ raindrop build unsandbox [--manifest <value>] [-v <value>]
|
|
550
546
|
|
|
551
547
|
FLAGS
|
|
552
|
-
--
|
|
548
|
+
-v, --version=<value> application version to unsandbox
|
|
549
|
+
--manifest=<value> [default: raindrop.manifest] project manifest
|
|
553
550
|
|
|
554
551
|
DESCRIPTION
|
|
555
552
|
mark a version as unsandboxed in the Raindrop catalog
|
|
@@ -558,7 +555,7 @@ EXAMPLES
|
|
|
558
555
|
$ raindrop build unsandbox
|
|
559
556
|
```
|
|
560
557
|
|
|
561
|
-
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
558
|
+
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/unsandbox.ts)_
|
|
562
559
|
|
|
563
560
|
## `raindrop build upload`
|
|
564
561
|
|
|
@@ -581,7 +578,7 @@ EXAMPLES
|
|
|
581
578
|
$ raindrop build upload
|
|
582
579
|
```
|
|
583
580
|
|
|
584
|
-
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
581
|
+
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/upload.ts)_
|
|
585
582
|
|
|
586
583
|
## `raindrop build validate`
|
|
587
584
|
|
|
@@ -603,7 +600,7 @@ EXAMPLES
|
|
|
603
600
|
$ raindrop build validate
|
|
604
601
|
```
|
|
605
602
|
|
|
606
|
-
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
603
|
+
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/build/validate.ts)_
|
|
607
604
|
|
|
608
605
|
## `raindrop help [COMMAND]`
|
|
609
606
|
|
|
@@ -649,7 +646,7 @@ EXAMPLES
|
|
|
649
646
|
Delete file with key 'my-key' from my-bucket
|
|
650
647
|
```
|
|
651
648
|
|
|
652
|
-
_See code: [src/commands/object/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
649
|
+
_See code: [src/commands/object/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/object/delete.ts)_
|
|
653
650
|
|
|
654
651
|
## `raindrop object get KEY [OUTPUT]`
|
|
655
652
|
|
|
@@ -679,7 +676,7 @@ EXAMPLES
|
|
|
679
676
|
Download file with key 'my-key' from my-bucket to output.txt
|
|
680
677
|
```
|
|
681
678
|
|
|
682
|
-
_See code: [src/commands/object/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
679
|
+
_See code: [src/commands/object/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/object/get.ts)_
|
|
683
680
|
|
|
684
681
|
## `raindrop object list`
|
|
685
682
|
|
|
@@ -702,7 +699,7 @@ EXAMPLES
|
|
|
702
699
|
List all objects in my-bucket
|
|
703
700
|
```
|
|
704
701
|
|
|
705
|
-
_See code: [src/commands/object/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
702
|
+
_See code: [src/commands/object/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/object/list.ts)_
|
|
706
703
|
|
|
707
704
|
## `raindrop object put FILE KEY`
|
|
708
705
|
|
|
@@ -730,7 +727,7 @@ EXAMPLES
|
|
|
730
727
|
Upload myfile.txt to my-bucket with key 'my-key'
|
|
731
728
|
```
|
|
732
729
|
|
|
733
|
-
_See code: [src/commands/object/put.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
730
|
+
_See code: [src/commands/object/put.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/object/put.ts)_
|
|
734
731
|
|
|
735
732
|
## `raindrop plugins`
|
|
736
733
|
|
|
@@ -1045,31 +1042,7 @@ EXAMPLES
|
|
|
1045
1042
|
Run a RAG search query against a Smart Bucket.
|
|
1046
1043
|
```
|
|
1047
1044
|
|
|
1048
|
-
_See code: [src/commands/query/chunk-search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
1049
|
-
|
|
1050
|
-
## `raindrop query register-retriever BUCKET URL DELETEURL BUCKETNAME`
|
|
1051
|
-
|
|
1052
|
-
Register a new retriever tool with the catalog service
|
|
1053
|
-
|
|
1054
|
-
```
|
|
1055
|
-
USAGE
|
|
1056
|
-
$ raindrop query register-retriever BUCKET URL DELETEURL BUCKETNAME
|
|
1057
|
-
|
|
1058
|
-
ARGUMENTS
|
|
1059
|
-
BUCKET bucket identifier for the retriever
|
|
1060
|
-
URL URL endpoint for the retriever
|
|
1061
|
-
DELETEURL Delete endpoint for the retriever
|
|
1062
|
-
BUCKETNAME Name of the bucket
|
|
1063
|
-
|
|
1064
|
-
DESCRIPTION
|
|
1065
|
-
Register a new retriever tool with the catalog service
|
|
1066
|
-
|
|
1067
|
-
EXAMPLES
|
|
1068
|
-
$ raindrop query register-retriever my-bucket https://my-retriever-endpoint.com https://my-delete-endpoint.com "My Bucket"
|
|
1069
|
-
Register a new retriever tool.
|
|
1070
|
-
```
|
|
1071
|
-
|
|
1072
|
-
_See code: [src/commands/query/register-retriever.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.11/src/commands/query/register-retriever.ts)_
|
|
1045
|
+
_See code: [src/commands/query/chunk-search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/query/chunk-search.ts)_
|
|
1073
1046
|
|
|
1074
1047
|
## `raindrop query search [QUERY]`
|
|
1075
1048
|
|
|
@@ -1099,7 +1072,7 @@ EXAMPLES
|
|
|
1099
1072
|
Get page 2 of previous search results.
|
|
1100
1073
|
```
|
|
1101
1074
|
|
|
1102
|
-
_See code: [src/commands/query/search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
1075
|
+
_See code: [src/commands/query/search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/query/search.ts)_
|
|
1103
1076
|
|
|
1104
1077
|
## `raindrop tail`
|
|
1105
1078
|
|
|
@@ -1113,5 +1086,5 @@ DESCRIPTION
|
|
|
1113
1086
|
tail logs of applications deployed
|
|
1114
1087
|
```
|
|
1115
1088
|
|
|
1116
|
-
_See code: [src/commands/tail.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.
|
|
1089
|
+
_See code: [src/commands/tail.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.3.0/src/commands/tail.ts)_
|
|
1117
1090
|
<!-- commandsstop -->
|
package/dist/base-command.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Client } from '@connectrpc/connect';
|
|
2
2
|
import { Application } from '@liquidmetal-ai/drizzle/appify/build';
|
|
3
3
|
import { CatalogService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/catalog_pb';
|
|
4
|
-
import { RainbowAuthService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/rainbow_auth_pb';
|
|
5
4
|
import { ObjectService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/object_pb';
|
|
5
|
+
import { RainbowAuthService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/rainbow_auth_pb';
|
|
6
6
|
import { SearchAgentService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/search_agent_pb';
|
|
7
7
|
import { Command, Interfaces } from '@oclif/core';
|
|
8
8
|
import { Config } from './config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../src/base-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,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@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { manifestFromString } from '@liquidmetal-ai/drizzle/appify/index';
|
|
2
|
+
import { urlifyOrganizationId } from '@liquidmetal-ai/drizzle/raindrop/index';
|
|
2
3
|
import { FRAMEWORK_PACKAGE, getPackageVersion } from '@liquidmetal-ai/drizzle/unsafe/framework';
|
|
3
4
|
import { Command, Flags } from '@oclif/core';
|
|
4
5
|
import * as fs from 'node:fs/promises';
|
|
@@ -124,7 +125,7 @@ export class BaseCommand extends Command {
|
|
|
124
125
|
}
|
|
125
126
|
async catalogService(configDir) {
|
|
126
127
|
if (this.flags.raindropCatalogService) {
|
|
127
|
-
|
|
128
|
+
this.log(`[DEBUG] Using catalog-service: ${this.flags.raindropCatalogService}`);
|
|
128
129
|
}
|
|
129
130
|
return catalogService({
|
|
130
131
|
rainbowAuth: (await this.rainbowAuthService()).client,
|
|
@@ -145,12 +146,13 @@ export class BaseCommand extends Command {
|
|
|
145
146
|
async objectService() {
|
|
146
147
|
const { client: rainbowAuth } = await this.rainbowAuthService();
|
|
147
148
|
const identity = await this.catalogIdentity();
|
|
149
|
+
const baseUrl = `https://api-${this.flags.bucket}.${urlifyOrganizationId(identity.organizationId)}.lmapp.run`;
|
|
148
150
|
const result = await objectService({
|
|
149
151
|
rainbowAuth,
|
|
150
152
|
configDir: this.config.configDir,
|
|
151
153
|
identity: {
|
|
152
154
|
...identity,
|
|
153
|
-
baseUrl
|
|
155
|
+
baseUrl,
|
|
154
156
|
},
|
|
155
157
|
});
|
|
156
158
|
return result;
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAW,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAqBnC,wBAA8B,KAAK,CAAC,OAAO,EAAE;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAW,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAqBnC,wBAA8B,KAAK,CAAC,OAAO,EAAE;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAwE/B;AAED,MAAM,WAAW,GAAG;IAGlB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAChD,KAAK,CACH,KAAK,EAAE,KAAK,GAAG,MAAM,EACrB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,oBAAoB,GACvB,KAAK,CAAC;CACV;AAGD,wBAAsB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAgDhG"}
|
package/dist/build.js
CHANGED
|
@@ -31,12 +31,16 @@ export default async function build(options) {
|
|
|
31
31
|
if (options.entryPoints.length === 1) {
|
|
32
32
|
outbase = path.join(options.root, HANDLERS_DIR);
|
|
33
33
|
}
|
|
34
|
+
const gitCommitSha = await currentGitCommitSha();
|
|
34
35
|
const buildResult = await esbuild.build({
|
|
35
36
|
entryPoints: options.entryPoints,
|
|
36
37
|
external: ['node:crypto', 'crypto', '@liquidmetal-ai/raindrop-framework', './runtime.js'],
|
|
37
38
|
alias: {
|
|
38
39
|
'@liquidmetal-ai/raindrop-framework': './runtime.js',
|
|
39
40
|
},
|
|
41
|
+
banner: {
|
|
42
|
+
js: `globalThis.__RAINDROP_GIT_COMMIT_SHA = "${gitCommitSha}";`,
|
|
43
|
+
},
|
|
40
44
|
bundle: true,
|
|
41
45
|
outdir: options.outdir,
|
|
42
46
|
outbase,
|
|
@@ -119,3 +123,11 @@ export async function buildHandlers(cmd, apps, buildDir, root) {
|
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
}
|
|
126
|
+
async function currentGitCommitSha() {
|
|
127
|
+
try {
|
|
128
|
+
return (await execAsync('git rev-parse HEAD', { encoding: 'utf8' })).stdout.trim();
|
|
129
|
+
}
|
|
130
|
+
catch (_) {
|
|
131
|
+
return 'unknown';
|
|
132
|
+
}
|
|
133
|
+
}
|
package/dist/codegen.d.ts
CHANGED
|
@@ -13,7 +13,12 @@ export declare function trimTemplateSuffix(filename: string): string;
|
|
|
13
13
|
type TemplateContext = Record<string, string | number>;
|
|
14
14
|
export declare function renderTemplateFromString(template: string, context: TemplateContext): string;
|
|
15
15
|
export declare function renderTemplateFromFile(templatePath: string, context: TemplateContext): Promise<string>;
|
|
16
|
-
export declare function renderTemplatesFromDirectory(templatePath
|
|
16
|
+
export declare function renderTemplatesFromDirectory({ templatePath, outPath, context, opts, }: {
|
|
17
|
+
templatePath: string;
|
|
18
|
+
outPath: string;
|
|
19
|
+
context: TemplateContext;
|
|
20
|
+
opts: CodegenOptions;
|
|
21
|
+
}): Promise<void>;
|
|
17
22
|
type TemplateType = 'scaffolding' | 'user-modifiable' | 'non-user-modifiable';
|
|
18
23
|
export declare function templateType(relPath: string): TemplateType;
|
|
19
24
|
export declare function shouldWriteTemplate(opts: CodegenOptions, relPath: string): boolean;
|
package/dist/codegen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../src/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAW,MAAM,sCAAsC,CAAC;AAK5G,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAC1C,eAAO,MAAM,aAAa,QAA6E,CAAC;AACxG,eAAO,MAAM,aAAa,SAAS,CAAC;AACpC,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,YAAY,QAAQ,CAAC;AAClC,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,eAAO,MAAM,MAAM,OAAO,CAAC;AAC3B,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAmBzD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEvD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAG3F;AAED,wBAAsB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5G;AAqBD,wBAAsB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../src/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAW,MAAM,sCAAsC,CAAC;AAK5G,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAC1C,eAAO,MAAM,aAAa,QAA6E,CAAC;AACxG,eAAO,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await fs.writeFile(outputPath, JSON.stringify(mergedJson, null, 2));
|
|
59
59
|
}
|
|
60
|
-
export async function renderTemplatesFromDirectory(templatePath, outPath, context, opts) {
|
|
60
|
+
export async function renderTemplatesFromDirectory({ templatePath, outPath, context, opts, }) {
|
|
61
61
|
const visit = async (relPath) => {
|
|
62
62
|
try {
|
|
63
63
|
if (!shouldWriteTemplate(opts, relPath)) {
|
|
@@ -128,7 +128,12 @@ export async function renderCodegenPlan(plan, outPath = undefined, opts, context
|
|
|
128
128
|
toolName: TOOL_NAME,
|
|
129
129
|
};
|
|
130
130
|
for (const task of plan) {
|
|
131
|
-
await renderTemplatesFromDirectory(
|
|
131
|
+
await renderTemplatesFromDirectory({
|
|
132
|
+
templatePath: task.templateName,
|
|
133
|
+
outPath: outPath ? path.join(outPath, task.outPath) : task.outPath,
|
|
134
|
+
context: { ...templateContext, ...task.context },
|
|
135
|
+
opts,
|
|
136
|
+
});
|
|
132
137
|
}
|
|
133
138
|
}
|
|
134
139
|
// Creates a list of codegen tasks based on the app configuration
|
package/dist/codegen.test.js
CHANGED
|
@@ -107,13 +107,18 @@ test('only codegens non-user modifiable code when enabled', () => {
|
|
|
107
107
|
test('codegens template files', async () => {
|
|
108
108
|
const templatePath = path.join(__dirname, '..', 'templates', 'init');
|
|
109
109
|
const outPath = await fs.mkdtemp(path.join(os.tmpdir(), 'codegen-test'));
|
|
110
|
-
await renderTemplatesFromDirectory(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
await renderTemplatesFromDirectory({
|
|
111
|
+
templatePath,
|
|
112
|
+
outPath,
|
|
113
|
+
context: {
|
|
114
|
+
toolName: 'raindrop',
|
|
115
|
+
applicationName: 'test-app',
|
|
116
|
+
},
|
|
117
|
+
opts: {
|
|
118
|
+
renderScaffoldingCode: true,
|
|
119
|
+
renderUserModifiableCode: true,
|
|
120
|
+
renderNonUserModifiableCode: true,
|
|
121
|
+
},
|
|
117
122
|
});
|
|
118
123
|
});
|
|
119
124
|
test('kebabCaseToConstantCase', () => {
|
|
@@ -63,7 +63,7 @@ Deploy a Raindrop application version.
|
|
|
63
63
|
// Resuming and Sandbox is _always_ amending
|
|
64
64
|
const amend = config.sandbox || this.flags.resume || this.flags.amend;
|
|
65
65
|
if (config.sandbox) {
|
|
66
|
-
this.log(`🔔 Branch is in Sandbox mode, running deploy in
|
|
66
|
+
this.log(`🔔 Branch is in Sandbox mode, running deploy in amend mode`);
|
|
67
67
|
}
|
|
68
68
|
await deploy({
|
|
69
69
|
command: this,
|
|
@@ -8,6 +8,7 @@ export default class Find extends BaseCommand<typeof Find> {
|
|
|
8
8
|
manifest: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
application: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
moduleType: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
sudo: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
14
|
impersonate: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -18,6 +19,13 @@ export default class Find extends BaseCommand<typeof Find> {
|
|
|
18
19
|
rainbowOrganizationId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
rainbowUserId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
21
|
};
|
|
22
|
+
queryModules(flags: {
|
|
23
|
+
output: string;
|
|
24
|
+
rainbowAuthService: string;
|
|
25
|
+
application?: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
moduleType?: string;
|
|
28
|
+
}): Promise<void>;
|
|
21
29
|
queryResources(flags: {
|
|
22
30
|
output: string;
|
|
23
31
|
rainbowAuthService: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/commands/build/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/commands/build/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAQpD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAAgC;IAElD,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;;;;MA0CV;IAEI,YAAY,CAAC,KAAK,EAAE;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,kBAAkB,EAAE,MAAM,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAoDK,cAAc,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IA+C5G,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAO3B"}
|