@liquidmetal-ai/raindrop 0.13.0 → 0.15.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 +327 -89
- package/bundle/build-CBEGQPJT.js +62 -0
- package/bundle/{chunk-IEF2XC25.js → chunk-2PH3PHH3.js} +5 -3
- package/bundle/{chunk-4HZ22KOV.js → chunk-3CMR7ES5.js} +4 -4
- package/bundle/{chunk-JSBM2JYW.js → chunk-3EYKCHIK.js} +1 -1
- package/bundle/chunk-5XHDP4VK.js +1697 -0
- package/bundle/{chunk-TSQK4HH6.js → chunk-674GMSXY.js} +1 -1
- package/bundle/{chunk-PS3WZBDF.js → chunk-6L4V66WZ.js} +1105 -2728
- package/bundle/{chunk-5245CEUM.js → chunk-AGG7JZVH.js} +2 -2
- package/bundle/{chunk-3GFKUF5D.js → chunk-B3IY2XS6.js} +4 -2
- package/bundle/{chunk-WIDI65NO.js → chunk-CBAXTRCS.js} +1 -1
- package/bundle/{chunk-JLVDTXO2.js → chunk-DPV5HIG7.js} +4 -4
- package/bundle/{chunk-36GNZK4A.js → chunk-EVXLXWP7.js} +1 -1
- package/bundle/{chunk-4YVU5KEQ.js → chunk-HN3AAKRY.js} +4 -2
- package/bundle/{chunk-NVNEQXHN.js → chunk-IGLE4Y3B.js} +7 -5
- package/bundle/{chunk-FGSYWVBA.js → chunk-IQ6HFRA6.js} +1 -1
- package/bundle/{chunk-O3QZDJ75.js → chunk-JQONDSHY.js} +2 -2
- package/bundle/{chunk-W4IPOFZC.js → chunk-KADMFJLN.js} +8 -6
- package/bundle/chunk-KG5BLUGU.js +246 -0
- package/bundle/{chunk-V5LHJTYS.js → chunk-KLOYSTZY.js} +13 -2
- package/bundle/{chunk-ETC5VU7H.js → chunk-KXHVSLAI.js} +1 -1
- package/bundle/{chunk-Y4WFGNPM.js → chunk-L6FRQULN.js} +1 -1
- package/bundle/{chunk-3QCVYSRU.js → chunk-LT3BFQ4O.js} +1 -1
- package/bundle/{chunk-KQZJHBNG.js → chunk-MBLKVNI5.js} +1 -1
- package/bundle/{chunk-6AIUQUUM.js → chunk-MFMVJZW6.js} +71 -15
- package/bundle/{chunk-25T7MEKO.js → chunk-MJBLNWG3.js} +1 -1
- package/bundle/{chunk-MSJ33O5Y.js → chunk-NRCQIE3Z.js} +95 -115
- package/bundle/{chunk-XKKPPSPC.js → chunk-OCYTN4IH.js} +2 -2
- package/bundle/{chunk-2GAMWFJE.js → chunk-QEF5D4VE.js} +1 -1
- package/bundle/{chunk-4B3QYXBA.js → chunk-T7MQCLXF.js} +5 -3
- package/bundle/{chunk-LDFYPOXJ.js → chunk-TFQY5TSY.js} +1 -1
- package/bundle/{chunk-BWK4MC7Y.js → chunk-USZXZZAR.js} +8 -6
- package/bundle/{chunk-ER2RCPCY.js → chunk-V54KHS5B.js} +2 -2
- package/bundle/{chunk-YSKASURB.js → chunk-V6J23FL2.js} +1 -1
- package/bundle/{chunk-UHSTDJ7X.js → chunk-VN2QYX4C.js} +1 -1
- package/bundle/{chunk-Z4OWKG7J.js → chunk-VOT5MMEY.js} +1 -1
- package/bundle/{chunk-W6GU26WO.js → chunk-WG6BDFPZ.js} +1 -1
- package/bundle/{chunk-AK77X5GL.js → chunk-XX74I5RK.js} +4 -2
- package/bundle/{chunk-6BT265R3.js → chunk-YQCRWPNI.js} +1 -1
- package/bundle/commands/annotation/get.js +3 -3
- package/bundle/commands/annotation/list.js +3 -3
- package/bundle/commands/annotation/put.js +3 -3
- package/bundle/commands/auth/apikey.js +2 -2
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +2 -2
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +2 -2
- package/bundle/commands/bucket/delete-credential.js +2 -2
- package/bundle/commands/bucket/get-credential.js +2 -2
- package/bundle/commands/bucket/list-credentials.js +2 -2
- package/bundle/commands/build/actor/setup.js +124 -0
- package/bundle/commands/build/branch.js +10 -10
- package/bundle/commands/build/bucket-events/setup.js +146 -0
- package/bundle/commands/build/checkout.js +8 -8
- package/bundle/commands/build/clone.js +6 -6
- package/bundle/commands/build/delete.js +8 -8
- package/bundle/commands/build/deploy.js +10 -10
- package/bundle/commands/build/env/get.js +3 -3
- package/bundle/commands/build/env/list.js +2 -2
- package/bundle/commands/build/env/set.js +3 -3
- package/bundle/commands/build/env.js +2 -2
- package/bundle/commands/build/features.js +192 -0
- package/bundle/commands/build/find.js +4 -4
- package/bundle/commands/build/generate.js +52 -3
- package/bundle/commands/build/init-workspace.js +3 -3
- package/bundle/commands/build/init.js +15 -3
- package/bundle/commands/build/list.js +5 -5
- package/bundle/commands/build/queue/setup.js +133 -0
- package/bundle/commands/build/sandbox.js +6 -6
- package/bundle/commands/build/smartbucket/setup.js +165 -0
- package/bundle/commands/build/smartmemory/setup.js +171 -0
- package/bundle/commands/build/smartsql/setup.js +167 -0
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +5 -5
- package/bundle/commands/build/stop.js +2 -2
- package/bundle/commands/build/stripe/dashboard.js +3 -3
- package/bundle/commands/build/stripe/onboard.js +3 -3
- package/bundle/commands/build/stripe/setup.js +3 -3
- package/bundle/commands/build/stripe/start.js +14 -14
- package/bundle/commands/build/stripe/status.js +3 -3
- package/bundle/commands/build/stripe/subscription/create.js +4 -4
- package/bundle/commands/build/stripe/subscription/get.js +4 -4
- package/bundle/commands/build/stripe/subscription/update.js +4 -4
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +6 -6
- package/bundle/commands/build/upload.js +5 -5
- package/bundle/commands/build/validate.js +85 -14
- package/bundle/commands/build/workos/delete.js +6 -6
- package/bundle/commands/build/workos/env/attach.js +3 -3
- package/bundle/commands/build/workos/env/attached.js +3 -3
- package/bundle/commands/build/workos/env/create.js +3 -3
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +3 -3
- package/bundle/commands/build/workos/env/dev-login.js +3 -3
- package/bundle/commands/build/workos/env/get.js +3 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +3 -3
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/jwt.js +172 -0
- package/bundle/commands/build/workos/setup.js +3 -3
- package/bundle/commands/build/workos/status.js +3 -3
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +6 -6
- package/bundle/commands/dns/get.js +6 -6
- package/bundle/commands/dns/list.js +3 -3
- package/bundle/commands/dns/records/create.js +2 -2
- package/bundle/commands/dns/records/delete.js +3 -3
- package/bundle/commands/dns/records/get.js +2 -2
- package/bundle/commands/dns/records/list.js +2 -2
- package/bundle/commands/dns/records/update.js +2 -2
- package/bundle/commands/doctor.js +309 -0
- package/bundle/commands/logs/query.js +3 -3
- package/bundle/commands/logs/tail.js +3 -3
- package/bundle/commands/mcp/install-claude.js +2 -2
- package/bundle/commands/mcp/install-gemini.js +2 -2
- package/bundle/commands/mcp/install-goose.js +2 -2
- package/bundle/commands/mcp/status.js +2 -2
- package/bundle/commands/object/delete.js +5 -37
- package/bundle/commands/object/get.js +5 -37
- package/bundle/commands/object/list.js +7 -39
- package/bundle/commands/object/put.js +5 -37
- package/bundle/commands/query/chunk-search.js +14 -46
- package/bundle/commands/query/document.js +17 -55
- package/bundle/commands/query/events.js +2 -2
- package/bundle/commands/query/reindex.js +2 -2
- package/bundle/commands/query/search.js +14 -46
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/commands/build/actor/setup.d.ts +22 -0
- package/dist/commands/build/actor/setup.d.ts.map +1 -0
- package/dist/commands/build/actor/setup.js +116 -0
- package/dist/commands/build/bucket-events/setup.d.ts +22 -0
- package/dist/commands/build/bucket-events/setup.d.ts.map +1 -0
- package/dist/commands/build/bucket-events/setup.js +134 -0
- package/dist/commands/build/features.d.ts +19 -0
- package/dist/commands/build/features.d.ts.map +1 -0
- package/dist/commands/build/features.js +97 -0
- package/dist/commands/build/generate.d.ts +2 -0
- package/dist/commands/build/generate.d.ts.map +1 -1
- package/dist/commands/build/generate.js +52 -0
- package/dist/commands/build/init.d.ts.map +1 -1
- package/dist/commands/build/init.js +10 -0
- package/dist/commands/build/queue/setup.d.ts +21 -0
- package/dist/commands/build/queue/setup.d.ts.map +1 -0
- package/dist/commands/build/queue/setup.js +120 -0
- package/dist/commands/build/smartbucket/setup.d.ts +23 -0
- package/dist/commands/build/smartbucket/setup.d.ts.map +1 -0
- package/dist/commands/build/smartbucket/setup.js +167 -0
- package/dist/commands/build/smartmemory/setup.d.ts +23 -0
- package/dist/commands/build/smartmemory/setup.d.ts.map +1 -0
- package/dist/commands/build/smartmemory/setup.js +172 -0
- package/dist/commands/build/smartsql/setup.d.ts +23 -0
- package/dist/commands/build/smartsql/setup.d.ts.map +1 -0
- package/dist/commands/build/smartsql/setup.js +169 -0
- package/dist/commands/build/validate.d.ts +2 -0
- package/dist/commands/build/validate.d.ts.map +1 -1
- package/dist/commands/build/validate.js +80 -8
- package/dist/commands/build/workos/jwt.d.ts +23 -0
- package/dist/commands/build/workos/jwt.d.ts.map +1 -0
- package/dist/commands/build/workos/jwt.js +172 -0
- package/dist/commands/doctor.d.ts +27 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +328 -0
- package/dist/commands/object/delete.d.ts +0 -2
- package/dist/commands/object/delete.d.ts.map +1 -1
- package/dist/commands/object/delete.js +3 -38
- package/dist/commands/object/get.d.ts +0 -2
- package/dist/commands/object/get.d.ts.map +1 -1
- package/dist/commands/object/get.js +3 -38
- package/dist/commands/object/list.d.ts +0 -2
- package/dist/commands/object/list.d.ts.map +1 -1
- package/dist/commands/object/list.js +5 -40
- package/dist/commands/object/put.d.ts +0 -2
- package/dist/commands/object/put.d.ts.map +1 -1
- package/dist/commands/object/put.js +3 -38
- package/dist/commands/query/chunk-search.d.ts +0 -2
- package/dist/commands/query/chunk-search.d.ts.map +1 -1
- package/dist/commands/query/chunk-search.js +12 -46
- package/dist/commands/query/document.d.ts +1 -3
- package/dist/commands/query/document.d.ts.map +1 -1
- package/dist/commands/query/document.js +16 -60
- package/dist/commands/query/search.d.ts +0 -2
- package/dist/commands/query/search.d.ts.map +1 -1
- package/dist/commands/query/search.js +12 -46
- package/dist/feature-catalog.d.ts +28 -0
- package/dist/feature-catalog.d.ts.map +1 -0
- package/dist/feature-catalog.js +104 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/oclif.manifest.json +4811 -3433
- package/package.json +3 -3
- package/templates/examples/smartbucket-minimal.ts.hbs +87 -0
- package/templates/examples/smartmemory-minimal.ts.hbs +82 -0
- package/templates/examples/smartsql-minimal.ts.hbs +69 -0
- package/templates/handlers/actor/index.test.ts.hbs +48 -85
- package/templates/handlers/actor/index.ts.hbs +16 -316
- package/templates/handlers/bucket-event-notification/index.ts.hbs +32 -235
- package/templates/handlers/bucket-event-observer.ts.hbs +79 -0
- package/templates/handlers/http-service/index.test.ts.hbs +3 -0
- package/templates/handlers/http-service/index.ts.hbs +43 -15
- package/templates/handlers/queue-consumer-setup.ts.hbs +45 -0
- package/templates/handlers/task/index.test.ts.hbs +30 -112
- package/templates/handlers/task/index.ts.hbs +19 -58
- package/templates/init/RAINDROP.md.hbs +97 -1
- package/templates/init/eslint.config.js +43 -0
- package/templates/init/package.json.hbs +4 -1
- package/templates/init/tsconfig.json +3 -3
- package/bundle/chunk-23UBI7BN.js +0 -48
- package/bundle/chunk-2QWMBNE3.js +0 -384
- package/bundle/chunk-45IYWQDC.js +0 -384
- package/bundle/chunk-5YUO23QU.js +0 -4585
- package/bundle/chunk-6MIGCNUO.js +0 -75
- package/bundle/chunk-7ZJWA6HP.js +0 -805
- package/bundle/chunk-AIYVX2M7.js +0 -44
- package/bundle/chunk-BB5TNIEM.js +0 -48
- package/bundle/chunk-BUR3HFKH.js +0 -488
- package/bundle/chunk-BYSBS7KT.js +0 -488
- package/bundle/chunk-CX3RWI62.js +0 -28658
- package/bundle/chunk-DLH7MI57.js +0 -305
- package/bundle/chunk-E3WJIYJZ.js +0 -12148
- package/bundle/chunk-EX7NOPRF.js +0 -12148
- package/bundle/chunk-F76JQS2J.js +0 -231
- package/bundle/chunk-FBOXMVKD.js +0 -28679
- package/bundle/chunk-FTPZ6SQW.js +0 -238909
- package/bundle/chunk-H3CFZ7ZH.js +0 -74
- package/bundle/chunk-HXOILVWA.js +0 -384
- package/bundle/chunk-IMP7O5AC.js +0 -22452
- package/bundle/chunk-IPYOAKRE.js +0 -231
- package/bundle/chunk-J7HN6XF2.js +0 -4461
- package/bundle/chunk-JOLOAALA.js +0 -231
- package/bundle/chunk-JZ2G4Q35.js +0 -4585
- package/bundle/chunk-KVAWPWF7.js +0 -231
- package/bundle/chunk-MEUAAIXV.js +0 -28657
- package/bundle/chunk-QBWFE57Z.js +0 -384
- package/bundle/chunk-SP3LOXPC.js +0 -46
- package/bundle/chunk-T7C564PR.js +0 -28678
- package/bundle/chunk-UFH545WJ.js +0 -22452
- package/bundle/chunk-UHVMPWM5.js +0 -315
- package/bundle/chunk-VB7ZTSZV.js +0 -1089
- package/bundle/chunk-VBIJDFMJ.js +0 -384
- package/bundle/chunk-VR7RLTE3.js +0 -231
- package/bundle/chunk-WFZUJLEC.js +0 -231
- package/bundle/chunk-YDGJTLVZ.js +0 -133
- package/bundle/chunk-YPNQ7UFK.js +0 -502
- package/bundle/chunk-YXFDRMSN.js +0 -384
- package/dist/lib/dns-utils.d.ts +0 -7
- package/dist/lib/dns-utils.d.ts.map +0 -1
- package/dist/lib/dns-utils.js +0 -44
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
displayTraceGroupedEvents
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LT3BFQ4O.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
QueryLogsRequestSchema,
|
|
9
9
|
TimeQuerySchema,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
require_lib,
|
|
14
14
|
timestampFromDate,
|
|
15
15
|
valueOf
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/logs/query.ts
|
|
19
19
|
init_cjs_shims();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
displayTraceGroupedEvents
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LT3BFQ4O.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
QueryLogsRequestSchema,
|
|
9
9
|
StreamLogsRequestSchema,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
require_lib,
|
|
15
15
|
timestampFromDate,
|
|
16
16
|
valueOf
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/logs/tail.ts
|
|
20
20
|
init_cjs_shims();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/mcp/install-claude.ts
|
|
10
10
|
init_cjs_shims();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/mcp/install-gemini.ts
|
|
10
10
|
init_cjs_shims();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/mcp/install-goose.ts
|
|
10
10
|
init_cjs_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib,
|
|
8
8
|
urlifyOrganizationId
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/mcp/status.ts
|
|
12
12
|
init_cjs_shims();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
DeleteObjectResponseSchema,
|
|
6
6
|
__toESM,
|
|
7
7
|
init_cjs_shims,
|
|
8
8
|
require_lib,
|
|
9
9
|
toJsonString
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/object/delete.ts
|
|
13
13
|
init_cjs_shims();
|
|
@@ -35,24 +35,6 @@ Delete file with key 'my-key' from my-bucket within my-app
|
|
|
35
35
|
description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
|
|
36
36
|
required: false
|
|
37
37
|
}),
|
|
38
|
-
"module-id": import_core.Flags.string({
|
|
39
|
-
description: "module ID (deprecated, use --bucket with smartbucket names)",
|
|
40
|
-
required: false,
|
|
41
|
-
hidden: true,
|
|
42
|
-
deprecated: {
|
|
43
|
-
message: "use --bucket with smartbucket names instead",
|
|
44
|
-
version: "3.0.0"
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
moduleId: import_core.Flags.string({
|
|
48
|
-
description: "module ID (deprecated, use --module-id)",
|
|
49
|
-
required: false,
|
|
50
|
-
hidden: true,
|
|
51
|
-
deprecated: {
|
|
52
|
-
message: "use --module-id instead",
|
|
53
|
-
version: "2.0.0"
|
|
54
|
-
}
|
|
55
|
-
}),
|
|
56
38
|
application: import_core.Flags.string({
|
|
57
39
|
char: "a",
|
|
58
40
|
description: "application name",
|
|
@@ -78,26 +60,12 @@ Delete file with key 'my-key' from my-bucket within my-app
|
|
|
78
60
|
})
|
|
79
61
|
};
|
|
80
62
|
async run() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
84
|
-
}
|
|
85
|
-
if (moduleId && this.flags.application) {
|
|
86
|
-
this.error("Cannot specify both --module-id and --application flags.");
|
|
87
|
-
}
|
|
88
|
-
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
89
|
-
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
63
|
+
if (!this.flags.bucket && !this.flags.application) {
|
|
64
|
+
this.error("Must specify --bucket or --application");
|
|
90
65
|
}
|
|
91
66
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
92
67
|
let bucketLocation;
|
|
93
|
-
if (
|
|
94
|
-
bucketLocation = {
|
|
95
|
-
bucketLocation: {
|
|
96
|
-
case: "moduleId",
|
|
97
|
-
value: moduleId
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
} else if (this.flags.application && this.flags.bucket) {
|
|
68
|
+
if (this.flags.application && this.flags.bucket) {
|
|
101
69
|
const applicationName = this.flags.application;
|
|
102
70
|
const config = await this.loadConfig();
|
|
103
71
|
const applicationVersionId = config.versionId || void 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/object/get.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -39,24 +39,6 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
|
|
|
39
39
|
description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
|
|
40
40
|
required: false
|
|
41
41
|
}),
|
|
42
|
-
"module-id": import_core.Flags.string({
|
|
43
|
-
description: "module ID (deprecated, use --bucket with smartbucket names)",
|
|
44
|
-
required: false,
|
|
45
|
-
hidden: true,
|
|
46
|
-
deprecated: {
|
|
47
|
-
message: "use --bucket with smartbucket names instead",
|
|
48
|
-
version: "3.0.0"
|
|
49
|
-
}
|
|
50
|
-
}),
|
|
51
|
-
moduleId: import_core.Flags.string({
|
|
52
|
-
description: "module ID (deprecated, use --module-id)",
|
|
53
|
-
required: false,
|
|
54
|
-
hidden: true,
|
|
55
|
-
deprecated: {
|
|
56
|
-
message: "use --module-id instead",
|
|
57
|
-
version: "2.0.0"
|
|
58
|
-
}
|
|
59
|
-
}),
|
|
60
42
|
application: import_core.Flags.string({
|
|
61
43
|
char: "a",
|
|
62
44
|
description: "application name",
|
|
@@ -82,26 +64,12 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
|
|
|
82
64
|
})
|
|
83
65
|
};
|
|
84
66
|
async run() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
88
|
-
}
|
|
89
|
-
if (moduleId && this.flags.application) {
|
|
90
|
-
this.error("Cannot specify both --module-id and --application flags.");
|
|
91
|
-
}
|
|
92
|
-
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
93
|
-
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
67
|
+
if (!this.flags.bucket && !this.flags.application) {
|
|
68
|
+
this.error("Must specify --bucket or --application");
|
|
94
69
|
}
|
|
95
70
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
96
71
|
let bucketLocation;
|
|
97
|
-
if (
|
|
98
|
-
bucketLocation = {
|
|
99
|
-
bucketLocation: {
|
|
100
|
-
case: "moduleId",
|
|
101
|
-
value: moduleId
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
} else if (this.flags.application && this.flags.bucket) {
|
|
72
|
+
if (this.flags.application && this.flags.bucket) {
|
|
105
73
|
const applicationName = this.flags.application;
|
|
106
74
|
const config = await this.loadConfig();
|
|
107
75
|
const applicationVersionId = config.versionId || void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
ListObjectsResponseSchema,
|
|
6
6
|
__toESM,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
require_lib,
|
|
9
9
|
timestampDate,
|
|
10
10
|
toJsonString
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/object/list.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -75,24 +75,6 @@ List objects in my-bucket within my-app
|
|
|
75
75
|
description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
|
|
76
76
|
required: false
|
|
77
77
|
}),
|
|
78
|
-
"module-id": import_core.Flags.string({
|
|
79
|
-
description: "module ID (deprecated, use --bucket with smartbucket names)",
|
|
80
|
-
required: false,
|
|
81
|
-
hidden: true,
|
|
82
|
-
deprecated: {
|
|
83
|
-
message: "use --bucket with smartbucket names instead",
|
|
84
|
-
version: "3.0.0"
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
moduleId: import_core.Flags.string({
|
|
88
|
-
description: "module ID (deprecated, use --module-id)",
|
|
89
|
-
required: false,
|
|
90
|
-
hidden: true,
|
|
91
|
-
deprecated: {
|
|
92
|
-
message: "use --module-id instead",
|
|
93
|
-
version: "2.0.0"
|
|
94
|
-
}
|
|
95
|
-
}),
|
|
96
78
|
application: import_core.Flags.string({
|
|
97
79
|
char: "a",
|
|
98
80
|
description: "application name",
|
|
@@ -133,26 +115,12 @@ List objects in my-bucket within my-app
|
|
|
133
115
|
})
|
|
134
116
|
};
|
|
135
117
|
async run() {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
139
|
-
}
|
|
140
|
-
if (moduleId && this.flags.application) {
|
|
141
|
-
this.error("Cannot specify both --module-id and --application flags.");
|
|
142
|
-
}
|
|
143
|
-
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
144
|
-
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
118
|
+
if (!this.flags.bucket && !this.flags.application) {
|
|
119
|
+
this.error("Must specify --bucket or --application");
|
|
145
120
|
}
|
|
146
121
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
147
122
|
let bucketLocation;
|
|
148
|
-
if (
|
|
149
|
-
bucketLocation = {
|
|
150
|
-
bucketLocation: {
|
|
151
|
-
case: "moduleId",
|
|
152
|
-
value: moduleId
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
} else if (this.flags.application && this.flags.bucket) {
|
|
123
|
+
if (this.flags.application && this.flags.bucket) {
|
|
156
124
|
const applicationName = this.flags.application;
|
|
157
125
|
const config = await this.loadConfig();
|
|
158
126
|
const applicationVersionId = config.versionId || void 0;
|
|
@@ -271,8 +239,8 @@ List objects in my-bucket within my-app
|
|
|
271
239
|
});
|
|
272
240
|
} catch (error) {
|
|
273
241
|
const err = error;
|
|
274
|
-
const location = this.flags.bucket ||
|
|
275
|
-
this.error(`Failed to list objects in ${
|
|
242
|
+
const location = this.flags.bucket || this.flags.application;
|
|
243
|
+
this.error(`Failed to list objects in ${location}: ${err.message}`);
|
|
276
244
|
}
|
|
277
245
|
if (!response.objects?.length) {
|
|
278
246
|
console.log("No objects found in bucket");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
PutObjectResponseSchema,
|
|
6
6
|
__toESM,
|
|
7
7
|
init_cjs_shims,
|
|
8
8
|
require_lib,
|
|
9
9
|
toJsonString
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/object/put.ts
|
|
13
13
|
init_cjs_shims();
|
|
@@ -42,24 +42,6 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
|
|
|
42
42
|
description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
|
|
43
43
|
required: false
|
|
44
44
|
}),
|
|
45
|
-
"module-id": import_core.Flags.string({
|
|
46
|
-
description: "module ID (deprecated, use --bucket with smartbucket names)",
|
|
47
|
-
required: false,
|
|
48
|
-
hidden: true,
|
|
49
|
-
deprecated: {
|
|
50
|
-
message: "use --bucket with smartbucket names instead",
|
|
51
|
-
version: "3.0.0"
|
|
52
|
-
}
|
|
53
|
-
}),
|
|
54
|
-
moduleId: import_core.Flags.string({
|
|
55
|
-
description: "module ID (deprecated, use --module-id)",
|
|
56
|
-
required: false,
|
|
57
|
-
hidden: true,
|
|
58
|
-
deprecated: {
|
|
59
|
-
message: "use --module-id instead",
|
|
60
|
-
version: "2.0.0"
|
|
61
|
-
}
|
|
62
|
-
}),
|
|
63
45
|
application: import_core.Flags.string({
|
|
64
46
|
char: "a",
|
|
65
47
|
description: "application name",
|
|
@@ -90,26 +72,12 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
|
|
|
90
72
|
})
|
|
91
73
|
};
|
|
92
74
|
async run() {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
96
|
-
}
|
|
97
|
-
if (moduleId && this.flags.application) {
|
|
98
|
-
this.error("Cannot specify both --module-id and --application flags.");
|
|
99
|
-
}
|
|
100
|
-
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
101
|
-
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
75
|
+
if (!this.flags.bucket && !this.flags.application) {
|
|
76
|
+
this.error("Must specify --bucket or --application");
|
|
102
77
|
}
|
|
103
78
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
104
79
|
let bucketLocation;
|
|
105
|
-
if (
|
|
106
|
-
bucketLocation = {
|
|
107
|
-
bucketLocation: {
|
|
108
|
-
case: "moduleId",
|
|
109
|
-
value: moduleId
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
} else if (this.flags.application && this.flags.bucket) {
|
|
80
|
+
if (this.flags.application && this.flags.bucket) {
|
|
113
81
|
const applicationName = this.flags.application;
|
|
114
82
|
const config = await this.loadConfig();
|
|
115
83
|
const applicationVersionId = config.versionId || void 0;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ulid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-VOT5MMEY.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
RagSearchResponseSchema,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib,
|
|
12
12
|
toJsonString
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/query/chunk-search.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -36,26 +36,6 @@ Run a RAG search query against a Smart Bucket.
|
|
|
36
36
|
multiple: true,
|
|
37
37
|
required: false
|
|
38
38
|
}),
|
|
39
|
-
"module-ids": import_core.Flags.string({
|
|
40
|
-
description: "Module IDs to search in (deprecated, use --buckets with smartbucket names)",
|
|
41
|
-
multiple: true,
|
|
42
|
-
required: false,
|
|
43
|
-
hidden: true,
|
|
44
|
-
deprecated: {
|
|
45
|
-
message: "use --buckets with smartbucket names instead",
|
|
46
|
-
version: "3.0.0"
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
moduleIds: import_core.Flags.string({
|
|
50
|
-
description: "Module IDs to search in (deprecated, use --module-ids)",
|
|
51
|
-
multiple: true,
|
|
52
|
-
required: false,
|
|
53
|
-
hidden: true,
|
|
54
|
-
deprecated: {
|
|
55
|
-
message: "use --module-ids instead",
|
|
56
|
-
version: "2.0.0"
|
|
57
|
-
}
|
|
58
|
-
}),
|
|
59
39
|
output: import_core.Flags.string({
|
|
60
40
|
char: "o",
|
|
61
41
|
description: "output format",
|
|
@@ -76,10 +56,6 @@ Run a RAG search query against a Smart Bucket.
|
|
|
76
56
|
})
|
|
77
57
|
};
|
|
78
58
|
async searchAgent(query) {
|
|
79
|
-
const moduleIds = this.flags["module-ids"] || this.flags.moduleIds;
|
|
80
|
-
if (this.flags.buckets?.length && moduleIds?.length) {
|
|
81
|
-
this.error("Cannot specify both --buckets and --module-ids flags. Please use only one type of filter.");
|
|
82
|
-
}
|
|
83
59
|
if (this.flags.buckets?.some((bucket) => !bucket.includes("#"))) {
|
|
84
60
|
await this.loadConfig();
|
|
85
61
|
}
|
|
@@ -88,27 +64,19 @@ Run a RAG search query against a Smart Bucket.
|
|
|
88
64
|
const response = await searchAgentService.ragSearch({
|
|
89
65
|
userId,
|
|
90
66
|
organizationId,
|
|
91
|
-
bucketLocations: [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
bucketLocation: {
|
|
96
|
-
case: "bucket",
|
|
97
|
-
value: {
|
|
98
|
-
name: bucketName,
|
|
99
|
-
version: version || this.raindropConfig?.versionId || "",
|
|
100
|
-
applicationName
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}),
|
|
105
|
-
...(moduleIds || []).map((moduleId) => ({
|
|
67
|
+
bucketLocations: (this.flags.buckets || []).map((bucket) => {
|
|
68
|
+
const [bucketName, version] = bucket.split("#");
|
|
69
|
+
return {
|
|
106
70
|
bucketLocation: {
|
|
107
|
-
case: "
|
|
108
|
-
value:
|
|
71
|
+
case: "bucket",
|
|
72
|
+
value: {
|
|
73
|
+
name: bucketName,
|
|
74
|
+
version: version || this.raindropConfig?.versionId || "",
|
|
75
|
+
applicationName
|
|
76
|
+
}
|
|
109
77
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
78
|
+
};
|
|
79
|
+
}),
|
|
112
80
|
requestId: ulid(),
|
|
113
81
|
input: query
|
|
114
82
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ulid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-VOT5MMEY.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
DocumentChatResponseSchema,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib,
|
|
12
12
|
toJsonString
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/query/document.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -24,11 +24,8 @@ var DocumentChat = class _DocumentChat extends BaseCommand {
|
|
|
24
24
|
};
|
|
25
25
|
static description = "Chat with a document stored in a Smart Bucket";
|
|
26
26
|
static examples = [
|
|
27
|
-
`<%= config.bin %> query document "What is the main topic of this document?" -b my-bucket -
|
|
27
|
+
`<%= config.bin %> query document "What is the main topic of this document?" -b my-bucket --object-id document.pdf
|
|
28
28
|
Chat with a document in a Smart Bucket using bucket name.
|
|
29
|
-
`,
|
|
30
|
-
`<%= config.bin %> query document "What is the main topic of this document?" -m module-id -o document.pdf
|
|
31
|
-
Chat with a document in a Smart Bucket using module ID.
|
|
32
29
|
`
|
|
33
30
|
];
|
|
34
31
|
static flags = {
|
|
@@ -36,25 +33,7 @@ Chat with a document in a Smart Bucket using module ID.
|
|
|
36
33
|
bucket: import_core.Flags.string({
|
|
37
34
|
char: "b",
|
|
38
35
|
description: "Bucket name containing the document, version can be specified with #, e.g. my-bucket#versionId",
|
|
39
|
-
required:
|
|
40
|
-
}),
|
|
41
|
-
"module-id": import_core.Flags.string({
|
|
42
|
-
description: "Module ID containing the document (deprecated, use --bucket with smartbucket names)",
|
|
43
|
-
required: false,
|
|
44
|
-
hidden: true,
|
|
45
|
-
deprecated: {
|
|
46
|
-
message: "use --bucket with smartbucket names instead",
|
|
47
|
-
version: "3.0.0"
|
|
48
|
-
}
|
|
49
|
-
}),
|
|
50
|
-
moduleId: import_core.Flags.string({
|
|
51
|
-
description: "Module ID containing the document (deprecated, use --module-id)",
|
|
52
|
-
required: false,
|
|
53
|
-
hidden: true,
|
|
54
|
-
deprecated: {
|
|
55
|
-
message: "use --module-id instead",
|
|
56
|
-
version: "2.0.0"
|
|
57
|
-
}
|
|
36
|
+
required: true
|
|
58
37
|
}),
|
|
59
38
|
"object-id": import_core.Flags.string({
|
|
60
39
|
description: "Object ID of the document to chat with",
|
|
@@ -89,40 +68,23 @@ Chat with a document in a Smart Bucket using module ID.
|
|
|
89
68
|
})
|
|
90
69
|
};
|
|
91
70
|
async documentChat(query) {
|
|
92
|
-
const moduleId = this.flags["module-id"] || this.flags.moduleId;
|
|
93
71
|
const objectId = this.flags["object-id"] || this.flags.objectId;
|
|
94
|
-
if (this.flags.bucket
|
|
95
|
-
this.error("Cannot specify both --bucket and --module-id flags. Please use only one type of location.");
|
|
96
|
-
}
|
|
97
|
-
if (!this.flags.bucket && !moduleId) {
|
|
98
|
-
this.error("Must specify either --bucket or --module-id flag to identify the document location.");
|
|
99
|
-
}
|
|
100
|
-
if (this.flags.bucket && !this.flags.bucket.includes("#")) {
|
|
72
|
+
if (!this.flags.bucket.includes("#")) {
|
|
101
73
|
await this.loadConfig();
|
|
102
74
|
}
|
|
103
75
|
const { client: searchAgentService, userId, organizationId } = await this.searchAgentService();
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
version: version || this.raindropConfig?.versionId || "",
|
|
114
|
-
applicationName
|
|
115
|
-
}
|
|
76
|
+
const applicationName = await this.getApplicationNameFromManifest();
|
|
77
|
+
const [bucketName, version] = this.flags.bucket.split("#");
|
|
78
|
+
const bucketLocation = {
|
|
79
|
+
bucketLocation: {
|
|
80
|
+
case: "bucket",
|
|
81
|
+
value: {
|
|
82
|
+
name: bucketName,
|
|
83
|
+
version: version || this.raindropConfig?.versionId || "",
|
|
84
|
+
applicationName
|
|
116
85
|
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
bucketLocation = {
|
|
120
|
-
bucketLocation: {
|
|
121
|
-
case: "moduleId",
|
|
122
|
-
value: moduleId
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
126
88
|
const response = await searchAgentService.documentChat({
|
|
127
89
|
userId,
|
|
128
90
|
organizationId,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib,
|
|
8
8
|
valueOf
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/query/events.ts
|
|
12
12
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/query/reindex.ts
|
|
11
11
|
init_cjs_shims();
|