@liquidmetal-ai/raindrop 0.2.7 → 0.2.9
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 +41 -40
- package/dist/base-command.d.ts +9 -15
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +1 -17
- package/dist/build.js +1 -1
- package/dist/codegen.d.ts +2 -2
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +9 -0
- package/dist/commands/auth/login.d.ts.map +1 -1
- package/dist/commands/auth/login.js +2 -1
- package/dist/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +4 -2
- package/dist/commands/build/list.d.ts.map +1 -1
- package/dist/commands/build/list.js +13 -7
- package/dist/commands/build/status.d.ts.map +1 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +31 -20
- package/dist/index.d.ts +14 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -19
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +733 -733
- package/package.json +4 -3
- package/templates/init/package.json.hbs +1 -1
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.2.
|
|
23
|
+
@liquidmetal-ai/raindrop/0.2.9 darwin-arm64 node-v23.10.0
|
|
24
24
|
$ raindrop --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ raindrop COMMAND
|
|
@@ -90,7 +90,7 @@ DESCRIPTION
|
|
|
90
90
|
List authentications
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
93
|
+
_See code: [src/commands/auth/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/auth/list.ts)_
|
|
94
94
|
|
|
95
95
|
## `raindrop auth login`
|
|
96
96
|
|
|
@@ -104,7 +104,7 @@ DESCRIPTION
|
|
|
104
104
|
Logs a user into the LiquidMetal platform. Supports browser-based authentication.
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
107
|
+
_See code: [src/commands/auth/login.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/auth/login.ts)_
|
|
108
108
|
|
|
109
109
|
## `raindrop auth logout`
|
|
110
110
|
|
|
@@ -118,7 +118,7 @@ DESCRIPTION
|
|
|
118
118
|
Logout authentications
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
121
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/auth/logout.ts)_
|
|
122
122
|
|
|
123
123
|
## `raindrop auth select`
|
|
124
124
|
|
|
@@ -135,7 +135,7 @@ DESCRIPTION
|
|
|
135
135
|
Select active organization
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
138
|
+
_See code: [src/commands/auth/select.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/auth/select.ts)_
|
|
139
139
|
|
|
140
140
|
## `raindrop build branch BRANCH`
|
|
141
141
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
Branch a Raindrop application.
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
167
|
+
_See code: [src/commands/build/branch.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/branch.ts)_
|
|
168
168
|
|
|
169
169
|
## `raindrop build checkout [VERSION]`
|
|
170
170
|
|
|
@@ -190,7 +190,7 @@ EXAMPLES
|
|
|
190
190
|
Switched to version: 01jux6z20m4gbhn5kaa4mcm2jr
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
_See code: [src/commands/build/checkout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
193
|
+
_See code: [src/commands/build/checkout.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/checkout.ts)_
|
|
194
194
|
|
|
195
195
|
## `raindrop build delete [APPLICATION]`
|
|
196
196
|
|
|
@@ -219,7 +219,7 @@ EXAMPLES
|
|
|
219
219
|
Deleted (application) at version (version)
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
222
|
+
_See code: [src/commands/build/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/delete.ts)_
|
|
223
223
|
|
|
224
224
|
## `raindrop build deploy`
|
|
225
225
|
|
|
@@ -247,7 +247,7 @@ EXAMPLES
|
|
|
247
247
|
Deploy a Raindrop application version.
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
250
|
+
_See code: [src/commands/build/deploy.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/deploy.ts)_
|
|
251
251
|
|
|
252
252
|
## `raindrop build env get VAR`
|
|
253
253
|
|
|
@@ -274,7 +274,7 @@ EXAMPLES
|
|
|
274
274
|
sets an env var/secret.
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
277
|
+
_See code: [src/commands/build/env/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/env/get.ts)_
|
|
278
278
|
|
|
279
279
|
## `raindrop build env set VAR [VALUE]`
|
|
280
280
|
|
|
@@ -303,7 +303,7 @@ EXAMPLES
|
|
|
303
303
|
sets an env var/secret.
|
|
304
304
|
```
|
|
305
305
|
|
|
306
|
-
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
306
|
+
_See code: [src/commands/build/env/set.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/env/set.ts)_
|
|
307
307
|
|
|
308
308
|
## `raindrop build find`
|
|
309
309
|
|
|
@@ -328,7 +328,7 @@ EXAMPLES
|
|
|
328
328
|
$ raindrop build find .
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
-
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
331
|
+
_See code: [src/commands/build/find.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/find.ts)_
|
|
332
332
|
|
|
333
333
|
## `raindrop build generate`
|
|
334
334
|
|
|
@@ -350,7 +350,7 @@ EXAMPLES
|
|
|
350
350
|
$ raindrop build generate
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
353
|
+
_See code: [src/commands/build/generate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/generate.ts)_
|
|
354
354
|
|
|
355
355
|
## `raindrop build init [PATH]`
|
|
356
356
|
|
|
@@ -374,7 +374,7 @@ EXAMPLES
|
|
|
374
374
|
Initialize a project in the current directory.
|
|
375
375
|
```
|
|
376
376
|
|
|
377
|
-
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
377
|
+
_See code: [src/commands/build/init.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/init.ts)_
|
|
378
378
|
|
|
379
379
|
## `raindrop build list`
|
|
380
380
|
|
|
@@ -397,7 +397,7 @@ EXAMPLES
|
|
|
397
397
|
List Raindrop catalog resources.
|
|
398
398
|
```
|
|
399
399
|
|
|
400
|
-
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
400
|
+
_See code: [src/commands/build/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/list.ts)_
|
|
401
401
|
|
|
402
402
|
## `raindrop build sandbox [VERSIONID]`
|
|
403
403
|
|
|
@@ -420,7 +420,7 @@ EXAMPLES
|
|
|
420
420
|
$ raindrop build sandbox
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
-
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
423
|
+
_See code: [src/commands/build/sandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/sandbox.ts)_
|
|
424
424
|
|
|
425
425
|
## `raindrop build start`
|
|
426
426
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
Start a Raindrop application.
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
447
|
+
_See code: [src/commands/build/start.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/start.ts)_
|
|
448
448
|
|
|
449
449
|
## `raindrop build status`
|
|
450
450
|
|
|
@@ -469,7 +469,7 @@ EXAMPLES
|
|
|
469
469
|
$ raindrop build status .
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
-
_See code: [src/commands/build/status.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
472
|
+
_See code: [src/commands/build/status.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/status.ts)_
|
|
473
473
|
|
|
474
474
|
## `raindrop build stop`
|
|
475
475
|
|
|
@@ -493,7 +493,7 @@ EXAMPLES
|
|
|
493
493
|
Stop a Raindrop application.
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
496
|
+
_See code: [src/commands/build/stop.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/stop.ts)_
|
|
497
497
|
|
|
498
498
|
## `raindrop build tools check`
|
|
499
499
|
|
|
@@ -514,7 +514,7 @@ EXAMPLES
|
|
|
514
514
|
$ raindrop build tools check
|
|
515
515
|
```
|
|
516
516
|
|
|
517
|
-
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
517
|
+
_See code: [src/commands/build/tools/check.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/tools/check.ts)_
|
|
518
518
|
|
|
519
519
|
## `raindrop build tools fmt`
|
|
520
520
|
|
|
@@ -535,7 +535,7 @@ EXAMPLES
|
|
|
535
535
|
$ raindrop build tools fmt
|
|
536
536
|
```
|
|
537
537
|
|
|
538
|
-
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
538
|
+
_See code: [src/commands/build/tools/fmt.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/tools/fmt.ts)_
|
|
539
539
|
|
|
540
540
|
## `raindrop build unsandbox [VERSIONID]`
|
|
541
541
|
|
|
@@ -558,7 +558,7 @@ EXAMPLES
|
|
|
558
558
|
$ raindrop build unsandbox
|
|
559
559
|
```
|
|
560
560
|
|
|
561
|
-
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
561
|
+
_See code: [src/commands/build/unsandbox.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/unsandbox.ts)_
|
|
562
562
|
|
|
563
563
|
## `raindrop build upload`
|
|
564
564
|
|
|
@@ -581,7 +581,7 @@ EXAMPLES
|
|
|
581
581
|
$ raindrop build upload
|
|
582
582
|
```
|
|
583
583
|
|
|
584
|
-
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
584
|
+
_See code: [src/commands/build/upload.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/upload.ts)_
|
|
585
585
|
|
|
586
586
|
## `raindrop build validate`
|
|
587
587
|
|
|
@@ -603,7 +603,7 @@ EXAMPLES
|
|
|
603
603
|
$ raindrop build validate
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
606
|
+
_See code: [src/commands/build/validate.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/build/validate.ts)_
|
|
607
607
|
|
|
608
608
|
## `raindrop help [COMMAND]`
|
|
609
609
|
|
|
@@ -623,7 +623,7 @@ DESCRIPTION
|
|
|
623
623
|
Display help for raindrop.
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
626
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.27/src/commands/help.ts)_
|
|
627
627
|
|
|
628
628
|
## `raindrop object delete KEY`
|
|
629
629
|
|
|
@@ -649,7 +649,7 @@ EXAMPLES
|
|
|
649
649
|
Delete file with key 'my-key' from my-bucket
|
|
650
650
|
```
|
|
651
651
|
|
|
652
|
-
_See code: [src/commands/object/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
652
|
+
_See code: [src/commands/object/delete.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/object/delete.ts)_
|
|
653
653
|
|
|
654
654
|
## `raindrop object get KEY [OUTPUT]`
|
|
655
655
|
|
|
@@ -679,7 +679,7 @@ EXAMPLES
|
|
|
679
679
|
Download file with key 'my-key' from my-bucket to output.txt
|
|
680
680
|
```
|
|
681
681
|
|
|
682
|
-
_See code: [src/commands/object/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
682
|
+
_See code: [src/commands/object/get.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/object/get.ts)_
|
|
683
683
|
|
|
684
684
|
## `raindrop object list`
|
|
685
685
|
|
|
@@ -702,7 +702,7 @@ EXAMPLES
|
|
|
702
702
|
List all objects in my-bucket
|
|
703
703
|
```
|
|
704
704
|
|
|
705
|
-
_See code: [src/commands/object/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
705
|
+
_See code: [src/commands/object/list.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/object/list.ts)_
|
|
706
706
|
|
|
707
707
|
## `raindrop object put FILE KEY`
|
|
708
708
|
|
|
@@ -730,7 +730,7 @@ EXAMPLES
|
|
|
730
730
|
Upload myfile.txt to my-bucket with key 'my-key'
|
|
731
731
|
```
|
|
732
732
|
|
|
733
|
-
_See code: [src/commands/object/put.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
733
|
+
_See code: [src/commands/object/put.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/object/put.ts)_
|
|
734
734
|
|
|
735
735
|
## `raindrop plugins`
|
|
736
736
|
|
|
@@ -753,7 +753,7 @@ EXAMPLES
|
|
|
753
753
|
$ raindrop plugins
|
|
754
754
|
```
|
|
755
755
|
|
|
756
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
756
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/index.ts)_
|
|
757
757
|
|
|
758
758
|
## `raindrop plugins add PLUGIN`
|
|
759
759
|
|
|
@@ -827,7 +827,7 @@ EXAMPLES
|
|
|
827
827
|
$ raindrop plugins inspect myplugin
|
|
828
828
|
```
|
|
829
829
|
|
|
830
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
830
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/inspect.ts)_
|
|
831
831
|
|
|
832
832
|
## `raindrop plugins install PLUGIN`
|
|
833
833
|
|
|
@@ -876,7 +876,7 @@ EXAMPLES
|
|
|
876
876
|
$ raindrop plugins install someuser/someplugin
|
|
877
877
|
```
|
|
878
878
|
|
|
879
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
879
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/install.ts)_
|
|
880
880
|
|
|
881
881
|
## `raindrop plugins link PATH`
|
|
882
882
|
|
|
@@ -896,6 +896,7 @@ FLAGS
|
|
|
896
896
|
|
|
897
897
|
DESCRIPTION
|
|
898
898
|
Links a plugin into the CLI for development.
|
|
899
|
+
|
|
899
900
|
Installation of a linked plugin will override a user-installed or core plugin.
|
|
900
901
|
|
|
901
902
|
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
@@ -906,7 +907,7 @@ EXAMPLES
|
|
|
906
907
|
$ raindrop plugins link myplugin
|
|
907
908
|
```
|
|
908
909
|
|
|
909
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
910
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/link.ts)_
|
|
910
911
|
|
|
911
912
|
## `raindrop plugins remove [PLUGIN]`
|
|
912
913
|
|
|
@@ -947,7 +948,7 @@ FLAGS
|
|
|
947
948
|
--reinstall Reinstall all plugins after uninstalling.
|
|
948
949
|
```
|
|
949
950
|
|
|
950
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
951
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/reset.ts)_
|
|
951
952
|
|
|
952
953
|
## `raindrop plugins uninstall [PLUGIN]`
|
|
953
954
|
|
|
@@ -975,7 +976,7 @@ EXAMPLES
|
|
|
975
976
|
$ raindrop plugins uninstall myplugin
|
|
976
977
|
```
|
|
977
978
|
|
|
978
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
979
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/uninstall.ts)_
|
|
979
980
|
|
|
980
981
|
## `raindrop plugins unlink [PLUGIN]`
|
|
981
982
|
|
|
@@ -1019,7 +1020,7 @@ DESCRIPTION
|
|
|
1019
1020
|
Update installed plugins.
|
|
1020
1021
|
```
|
|
1021
1022
|
|
|
1022
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
1023
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/update.ts)_
|
|
1023
1024
|
|
|
1024
1025
|
## `raindrop query chunk-search QUERY`
|
|
1025
1026
|
|
|
@@ -1044,7 +1045,7 @@ EXAMPLES
|
|
|
1044
1045
|
Run a RAG search query against a Smart Bucket.
|
|
1045
1046
|
```
|
|
1046
1047
|
|
|
1047
|
-
_See code: [src/commands/query/chunk-search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
1048
|
+
_See code: [src/commands/query/chunk-search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/query/chunk-search.ts)_
|
|
1048
1049
|
|
|
1049
1050
|
## `raindrop query register-retriever BUCKET URL DELETEURL BUCKETNAME`
|
|
1050
1051
|
|
|
@@ -1068,7 +1069,7 @@ EXAMPLES
|
|
|
1068
1069
|
Register a new retriever tool.
|
|
1069
1070
|
```
|
|
1070
1071
|
|
|
1071
|
-
_See code: [src/commands/query/register-retriever.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
1072
|
+
_See code: [src/commands/query/register-retriever.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/query/register-retriever.ts)_
|
|
1072
1073
|
|
|
1073
1074
|
## `raindrop query search [QUERY]`
|
|
1074
1075
|
|
|
@@ -1098,7 +1099,7 @@ EXAMPLES
|
|
|
1098
1099
|
Get page 2 of previous search results.
|
|
1099
1100
|
```
|
|
1100
1101
|
|
|
1101
|
-
_See code: [src/commands/query/search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
1102
|
+
_See code: [src/commands/query/search.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/query/search.ts)_
|
|
1102
1103
|
|
|
1103
1104
|
## `raindrop tail`
|
|
1104
1105
|
|
|
@@ -1112,5 +1113,5 @@ DESCRIPTION
|
|
|
1112
1113
|
tail logs of applications deployed
|
|
1113
1114
|
```
|
|
1114
1115
|
|
|
1115
|
-
_See code: [src/commands/tail.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.
|
|
1116
|
+
_See code: [src/commands/tail.ts](https://github.com/liquidmetal-ai/liquidmetal/blob/v0.2.9/src/commands/tail.ts)_
|
|
1116
1117
|
<!-- commandsstop -->
|
package/dist/base-command.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Client } from '@connectrpc/connect';
|
|
2
2
|
import { Application } from '@liquidmetal-ai/drizzle/appify/build';
|
|
3
|
-
import { CatalogService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/
|
|
4
|
-
import { RainbowAuthService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SearchAgentService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/search_agent_connect';
|
|
3
|
+
import { CatalogService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/catalog_pb';
|
|
4
|
+
import { RainbowAuthService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/rainbow_auth_pb';
|
|
5
|
+
import { ObjectService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/resource_interface_pb';
|
|
6
|
+
import { SearchAgentService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/search_agent_pb';
|
|
8
7
|
import { Command, Interfaces } from '@oclif/core';
|
|
9
8
|
import { Config } from './config.js';
|
|
10
9
|
import { ServiceIdentity } from './index.js';
|
|
@@ -35,27 +34,22 @@ export declare abstract class BaseCommand<T extends typeof Command> extends Comm
|
|
|
35
34
|
protected configDir(): string;
|
|
36
35
|
protected catalogIdentity(): Promise<ServiceIdentity>;
|
|
37
36
|
catalogService(configDir?: string): Promise<{
|
|
38
|
-
client:
|
|
37
|
+
client: Client<typeof CatalogService>;
|
|
39
38
|
userId: string;
|
|
40
39
|
organizationId: string;
|
|
41
40
|
}>;
|
|
42
41
|
protected searchAgentService(): Promise<{
|
|
43
|
-
client:
|
|
42
|
+
client: Client<typeof SearchAgentService>;
|
|
44
43
|
organizationId: string;
|
|
45
44
|
userId: string;
|
|
46
45
|
}>;
|
|
47
46
|
protected objectService(): Promise<{
|
|
48
|
-
client:
|
|
47
|
+
client: Client<typeof ObjectService>;
|
|
49
48
|
organizationId: string;
|
|
50
49
|
userId: string;
|
|
51
50
|
}>;
|
|
52
51
|
protected rainbowAuthService(): Promise<{
|
|
53
|
-
client:
|
|
54
|
-
}>;
|
|
55
|
-
protected rainbowPublicService(): Promise<{
|
|
56
|
-
client: PromiseClient<typeof RainbowPublicService>;
|
|
57
|
-
organizationId: string;
|
|
58
|
-
userId: string;
|
|
52
|
+
client: Client<typeof RainbowAuthService>;
|
|
59
53
|
}>;
|
|
60
54
|
raindropFrameworkVersion(): Promise<string>;
|
|
61
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../src/base-command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAElG,OAAO,EAAE,OAAO,EAAS,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,MAAM,EAA0B,MAAM,aAAa,CAAC;AAC7D,OAAO,EAML,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,OAAO,OAAO,IAAI,UAAU,CAAC,aAAa,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AACvH,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,OAAO,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhF,8BAAsB,WAAW,CAAC,CAAC,SAAS,OAAO,OAAO,CAAE,SAAQ,OAAO;IACzE,MAAM,CAAC,YAAY;;;;;;;MAiCjB;IAEF,MAAM,CAAC,SAAS,KAAM;IACtB,MAAM,CAAC,QAAQ,KAAM;IAErB,SAAS,CAAC,KAAK,EAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3B,SAAS,CAAC,IAAI,EAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAEzB,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAErB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;cAclB,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;cAKvD,OAAO,CAAC,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC;IAIrD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAK7B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAuB5C,SAAS,CAAC,SAAS,IAAI,MAAM;cAIb,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC;IA6BrD,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAChD,MAAM,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;QACtC,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;cAac,kBAAkB,IAAI,OAAO,CAAC;QAC5C,MAAM,EAAE,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;QAC1C,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;cAYc,aAAa,IAAI,OAAO,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;QACrC,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;cAYc,kBAAkB,IAAI,OAAO,CAAC;QAC5C,MAAM,EAAE,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;KAC3C,CAAC;IAMI,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC;CAOlD"}
|
package/dist/base-command.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { createPromiseClient } from '@connectrpc/connect';
|
|
2
|
-
import { createConnectTransport } from '@connectrpc/connect-web';
|
|
3
1
|
import { manifestFromString } from '@liquidmetal-ai/drizzle/appify/index';
|
|
4
|
-
import { RainbowPublicService } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/rainbow_public_connect';
|
|
5
2
|
import { FRAMEWORK_PACKAGE, getPackageVersion } from '@liquidmetal-ai/drizzle/unsafe/framework';
|
|
6
3
|
import { Command, Flags } from '@oclif/core';
|
|
7
4
|
import * as fs from 'node:fs/promises';
|
|
8
5
|
import path from 'node:path';
|
|
9
6
|
import { loadConfig, saveConfig } from './config.js';
|
|
10
|
-
import { catalogService,
|
|
7
|
+
import { catalogService, objectService, rainbowAuthService, searchAgentService, selectedOrganization, } from './index.js';
|
|
11
8
|
export class BaseCommand extends Command {
|
|
12
9
|
static HIDDEN_FLAGS = {
|
|
13
10
|
config: Flags.string({
|
|
@@ -158,19 +155,6 @@ export class BaseCommand extends Command {
|
|
|
158
155
|
const baseUrl = this.flags.rainbowAuthService;
|
|
159
156
|
return rainbowAuthService(baseUrl);
|
|
160
157
|
}
|
|
161
|
-
async rainbowPublicService() {
|
|
162
|
-
const { organizationId, userId } = await selectedOrganization(this.config.configDir);
|
|
163
|
-
const baseUrl = this.flags.rainbowPublicService;
|
|
164
|
-
const { authenticate } = createAuthenticateInterceptor(this.config.configDir, (await this.rainbowAuthService()).client);
|
|
165
|
-
return {
|
|
166
|
-
client: createPromiseClient(RainbowPublicService, createConnectTransport({
|
|
167
|
-
baseUrl,
|
|
168
|
-
interceptors: [authenticate],
|
|
169
|
-
})),
|
|
170
|
-
organizationId,
|
|
171
|
-
userId,
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
158
|
async raindropFrameworkVersion() {
|
|
175
159
|
const version = await getPackageVersion(FRAMEWORK_PACKAGE);
|
|
176
160
|
if (version === null) {
|
package/dist/build.js
CHANGED
|
@@ -33,7 +33,7 @@ export default async function build(options) {
|
|
|
33
33
|
}
|
|
34
34
|
const buildResult = await esbuild.build({
|
|
35
35
|
entryPoints: options.entryPoints,
|
|
36
|
-
external: ['crypto', '@liquidmetal-ai/raindrop-framework', './runtime.js'],
|
|
36
|
+
external: ['node:crypto', 'crypto', '@liquidmetal-ai/raindrop-framework', './runtime.js'],
|
|
37
37
|
alias: {
|
|
38
38
|
'@liquidmetal-ai/raindrop-framework': './runtime.js',
|
|
39
39
|
},
|
package/dist/codegen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Actor, Application, Observer, Service } from '@liquidmetal-ai/drizzle/appify/build';
|
|
1
|
+
import { Actor, Application, Observer, Service, Task } from '@liquidmetal-ai/drizzle/appify/build';
|
|
2
2
|
export declare const TOOL_NAME = "raindrop build";
|
|
3
3
|
export declare const TEMPLATES_DIR: string;
|
|
4
4
|
export declare const TEMPLATE_INIT = "init";
|
|
@@ -24,7 +24,7 @@ export type CodegenPlan = {
|
|
|
24
24
|
context?: TemplateContext;
|
|
25
25
|
}[];
|
|
26
26
|
export declare function codegenPlan(apps: Application[]): CodegenPlan;
|
|
27
|
-
export declare function gatherEnvForHandler(handler: Actor | Service | Observer, app: Application): string;
|
|
27
|
+
export declare function gatherEnvForHandler(handler: Actor | Service | Observer | Task, app: Application): string;
|
|
28
28
|
export declare function fileExists(path: string): Promise<boolean>;
|
|
29
29
|
export type DirWalkCallback = (relPath: string) => void | Promise<void>;
|
|
30
30
|
export declare function dirWalk(dir: string, visitFn: DirWalkCallback): Promise<void>;
|
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,EAAW,MAAM,sCAAsC,CAAC;
|
|
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,uBAAuB,oBAAoB,CAAC;AAazD,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;AAED,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC,CAsBf;AAqBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAYlF;AAED,MAAM,MAAM,cAAc,GACtB;IACE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAEtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACD,SAAS,CAAC;AAEd,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,MAAM,GAAG,SAAqB,EACvC,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,EAAE,CAAC;AAGJ,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,WAAW,CA6C5D;AAoBD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAmFxG;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAGxE,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBlF;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D"}
|
package/dist/codegen.js
CHANGED
|
@@ -131,6 +131,9 @@ const TYPE_DEFINITIONS_TEMPLATE = Handlebars.compile(`// Code generated by {{ to
|
|
|
131
131
|
import { {{#each imports}}{{this}}, {{/each}} } from '@liquidmetal-ai/raindrop-framework';
|
|
132
132
|
|
|
133
133
|
export interface Env {
|
|
134
|
+
_raindrop: {
|
|
135
|
+
app: App;
|
|
136
|
+
},
|
|
134
137
|
{{#each resources}}
|
|
135
138
|
{{this.name}}: {{{this.type}}};
|
|
136
139
|
{{/each}}
|
|
@@ -197,12 +200,18 @@ export function gatherEnvForHandler(handler, app) {
|
|
|
197
200
|
for (const env of handler.env) {
|
|
198
201
|
bindings[kebabCaseToConstantCase(valueOf(env.name))] = 'string';
|
|
199
202
|
}
|
|
203
|
+
//
|
|
204
|
+
// (nothing to do for Tasks)
|
|
205
|
+
//
|
|
200
206
|
// Add AI binding.
|
|
201
207
|
bindings['AI'] = 'Ai';
|
|
202
208
|
types.add('Ai');
|
|
203
209
|
// Add logger binding.
|
|
204
210
|
bindings['logger'] = 'Logger';
|
|
205
211
|
types.add('Logger');
|
|
212
|
+
// Define the App type (uniquely identifying the Raindrop app)
|
|
213
|
+
// which will be provided in the template
|
|
214
|
+
types.add('App');
|
|
206
215
|
return TYPE_DEFINITIONS_TEMPLATE({
|
|
207
216
|
toolName: TOOL_NAME,
|
|
208
217
|
resources: Object.entries(bindings)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AASpD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAAuF;IAEzG,MAAM,CAAC,KAAK;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8D3B"}
|
|
@@ -4,6 +4,7 @@ import qrcode from 'qrcode-terminal';
|
|
|
4
4
|
import { spinner } from 'zx';
|
|
5
5
|
import { BaseCommand } from '../../base-command.js';
|
|
6
6
|
import { readState, replaceState } from '../../index.js';
|
|
7
|
+
import { timestampDate } from '@bufbuild/protobuf/wkt';
|
|
7
8
|
function sleep(dur) {
|
|
8
9
|
const ms = dur.nanos / 1e6 + Number(dur.seconds * 1000n);
|
|
9
10
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -35,7 +36,7 @@ export default class Login extends BaseCommand {
|
|
|
35
36
|
let interval = initialInterval;
|
|
36
37
|
let done = false;
|
|
37
38
|
while (!done) {
|
|
38
|
-
if (new Date() > expiresAt
|
|
39
|
+
if (new Date() > timestampDate(expiresAt)) {
|
|
39
40
|
console.error('failed to authenticate in time');
|
|
40
41
|
this.exit(1);
|
|
41
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/commands/build/find.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/commands/build/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,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;;;;;;;;;;;;;;MAsCV;IAEI,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;IAgD5G,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAO3B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { timestampDate } from '@bufbuild/protobuf/wkt';
|
|
1
2
|
import { valueOf } from '@liquidmetal-ai/drizzle/appify/build';
|
|
2
3
|
import { Flags } from '@oclif/core';
|
|
3
4
|
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { EPOCH_TS } from '../../index.js';
|
|
4
6
|
export default class Find extends BaseCommand {
|
|
5
7
|
static args = {};
|
|
6
8
|
static description = 'find resources in Raindrop';
|
|
@@ -72,7 +74,7 @@ export default class Find extends BaseCommand {
|
|
|
72
74
|
console.table(resp.resources.reduce((acc, v) => {
|
|
73
75
|
acc[v.name] = {
|
|
74
76
|
...v,
|
|
75
|
-
attributes: JSON.stringify(v.attributes
|
|
77
|
+
attributes: JSON.stringify(v.attributes, null, 2),
|
|
76
78
|
};
|
|
77
79
|
return acc;
|
|
78
80
|
},
|
|
@@ -84,7 +86,7 @@ export default class Find extends BaseCommand {
|
|
|
84
86
|
}
|
|
85
87
|
else {
|
|
86
88
|
for (const r of resp.resources) {
|
|
87
|
-
console.log(`${r.name} ${r.resourceId} ${r.applicationName} ${r.applicationVersionId} ${r.type} ${r.createdAt
|
|
89
|
+
console.log(`${r.name} ${r.resourceId} ${r.applicationName} ${r.applicationVersionId} ${r.type} ${timestampDate(r.createdAt || EPOCH_TS).toISOString()} ${timestampDate(r.updatedAt || EPOCH_TS).toISOString()} ${JSON.stringify(r.attributes)}`);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/build/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/build/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,yDAAyD,CAAC;AAGtH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,UAAU,WAAW;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,gCAAgC,CAAC;IAC9C,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CASzC,CAAC;AAEX,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,MAAM,CAAC,IAAI,KAAM;IAEjB,MAAM,CAAC,WAAW,SAAqC;IAEvD,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;MAsBV;IAEF,gBAAgB,CAAC,YAAY,EAAE,gCAAgC,EAAE;;;;IAkCjE,iBAAiB,CAAC,YAAY,EAAE,gCAAgC,EAAE;IAqH5D,gBAAgB;IA0ChB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAG3B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UnitState } from '@liquidmetal-ai/drizzle/liquidmetal/v1alpha1/catalog_pb';
|
|
2
|
+
import { timestampDate } from '@bufbuild/protobuf/wkt';
|
|
2
3
|
import { Flags } from '@oclif/core';
|
|
3
4
|
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { EPOCH_TS } from '../../index.js';
|
|
4
6
|
export const statusString = {
|
|
5
7
|
[UnitState.UNSPECIFIED]: '<unknown>',
|
|
6
8
|
[UnitState.PENDING]: 'pending...',
|
|
@@ -109,8 +111,8 @@ List Raindrop catalog resources.
|
|
|
109
111
|
rootNodes.forEach((root) => flatten(root));
|
|
110
112
|
// Sort flattened nodes by timestamp (newest first)
|
|
111
113
|
flattenedNodes.sort((a, b) => {
|
|
112
|
-
const aTime = a.application.createdAt
|
|
113
|
-
const bTime = b.application.createdAt
|
|
114
|
+
const aTime = timestampDate(a.application.createdAt || EPOCH_TS).getTime() || 0;
|
|
115
|
+
const bTime = timestampDate(b.application.createdAt || EPOCH_TS).getTime() || 0;
|
|
114
116
|
return bTime - aTime;
|
|
115
117
|
});
|
|
116
118
|
// Generate graph lines
|
|
@@ -124,7 +126,8 @@ List Raindrop catalog resources.
|
|
|
124
126
|
const column = columnMap.get(node.versionId) || 0;
|
|
125
127
|
linesInUse.add(column);
|
|
126
128
|
// Format timestamp like git
|
|
127
|
-
const
|
|
129
|
+
const date = timestampDate(app.createdAt || EPOCH_TS);
|
|
130
|
+
const timestamp = date.toLocaleString('en-US', {
|
|
128
131
|
weekday: 'short',
|
|
129
132
|
month: 'short',
|
|
130
133
|
day: 'numeric',
|
|
@@ -187,23 +190,26 @@ List Raindrop catalog resources.
|
|
|
187
190
|
this.log(this.renderGitLogStyle(resp.applications));
|
|
188
191
|
}
|
|
189
192
|
else if (this.flags.output === 'table') {
|
|
190
|
-
console.table(resp.applications.reduce(
|
|
191
|
-
|
|
193
|
+
console.table(resp.applications.reduce(
|
|
194
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
195
|
+
(acc, a) => {
|
|
196
|
+
const dateStr = a.createdAt ? timestampDate(a.createdAt).toISOString() : '';
|
|
192
197
|
acc[dateStr] = {
|
|
193
198
|
...a,
|
|
194
199
|
status: statusString[a.state],
|
|
200
|
+
locked: a.lock ? 'locked' : '',
|
|
195
201
|
};
|
|
196
202
|
return acc;
|
|
197
203
|
},
|
|
198
204
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
199
|
-
{}), ['organizationId', 'name', 'versionId', 'branch', 'status', ...(this.flags.all ? ['deletedAt'] : [])]);
|
|
205
|
+
{}), ['organizationId', 'name', 'versionId', 'branch', 'status', 'locked', ...(this.flags.all ? ['deletedAt'] : [])]);
|
|
200
206
|
}
|
|
201
207
|
else if (this.flags.output === 'json') {
|
|
202
208
|
this.log(JSON.stringify(resp, null, 2));
|
|
203
209
|
}
|
|
204
210
|
else {
|
|
205
211
|
for (const a of resp.applications) {
|
|
206
|
-
console.log(`${a.createdAt
|
|
212
|
+
console.log(`${timestampDate(a.createdAt || EPOCH_TS).toISOString()} ${a.organizationId} ${a.versionId} ${a.name} (${a.isActive ? 'active' : 'inactive'}, ${statusString[a.state]}, ${a.lock ? 'locked' : 'unlocked'})`);
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
215
|
}
|