@liquidmetal-ai/raindrop 0.8.0 → 0.9.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 +254 -207
- package/bundle/chunk-5AOMZVOJ.js +48 -0
- package/bundle/chunk-5AP5HNN3.js +133 -0
- package/bundle/chunk-6CDCK5IP.js +58 -0
- package/bundle/chunk-6GTBXHHK.js +502 -0
- package/bundle/chunk-A26NDSVL.js +12148 -0
- package/bundle/{chunk-6UE75KX2.js → chunk-AKNNZNIC.js} +1 -2
- package/bundle/{chunk-CW5ZHVPX.js → chunk-DOTQ3CSX.js} +2 -2
- package/bundle/chunk-FO7VH4GU.js +75 -0
- package/bundle/chunk-HEOY5F6W.js +147 -0
- package/bundle/chunk-HMD2JXLE.js +238722 -0
- package/bundle/chunk-KGZ7KWP4.js +44 -0
- package/bundle/chunk-MNUILM7W.js +380 -0
- package/bundle/chunk-OROAB5YF.js +805 -0
- package/bundle/chunk-OZWZILJX.js +4539 -0
- package/bundle/{chunk-6B4I2CKP.js → chunk-YDVG2SA2.js} +4 -4
- package/bundle/chunk-ZQQFKWNC.js +22452 -0
- package/bundle/commands/annotation/get.js +4 -4
- package/bundle/commands/annotation/list.js +4 -4
- package/bundle/commands/annotation/put.js +4 -4
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +3 -3
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +3 -3
- package/bundle/commands/bucket/delete-credential.js +3 -3
- package/bundle/commands/bucket/get-credential.js +3 -3
- package/bundle/commands/bucket/list-credentials.js +3 -3
- package/bundle/commands/build/branch.js +26 -14
- package/bundle/commands/build/checkout.js +6 -6
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +24 -14
- package/bundle/commands/build/deploy.js +25 -13
- package/bundle/commands/build/env/get.js +19 -6
- package/bundle/commands/build/env/set.js +19 -6
- package/bundle/commands/build/find.js +18 -10
- package/bundle/commands/build/generate.js +4 -4
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list-templates.js +63 -0
- package/bundle/commands/build/list.js +4 -4
- package/bundle/commands/build/package-template.js +238 -0
- package/bundle/commands/build/sandbox.js +16 -10
- package/bundle/commands/build/start.js +10 -6
- package/bundle/commands/build/status.js +16 -11
- package/bundle/commands/build/stop.js +10 -6
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +16 -10
- package/bundle/commands/build/upload.js +23 -9
- package/bundle/commands/build/validate.js +5 -5
- package/bundle/commands/build/workos/delete.js +4 -4
- package/bundle/commands/build/workos/env/attach.js +20 -8
- package/bundle/commands/build/workos/env/create.js +60 -11
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +20 -8
- package/bundle/commands/build/workos/env/get.js +21 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +91 -25
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/setup.js +14 -5
- package/bundle/commands/build/workos/status.js +116 -25
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +4 -4
- package/bundle/commands/dns/get.js +4 -4
- 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/logs/query.js +15 -10
- package/bundle/commands/logs/tail.js +16 -11
- 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 +27 -14
- package/bundle/commands/object/get.js +27 -14
- package/bundle/commands/object/list.js +28 -15
- package/bundle/commands/object/put.js +27 -14
- package/bundle/commands/query/chunk-search.js +24 -10
- package/bundle/commands/query/document.js +39 -16
- package/bundle/commands/query/events.js +13 -8
- package/bundle/commands/query/reindex.js +14 -6
- package/bundle/commands/query/search.js +40 -17
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +27 -0
- package/dist/commands/annotation/get.js +1 -1
- package/dist/commands/annotation/list.js +1 -1
- package/dist/commands/annotation/put.js +1 -1
- package/dist/commands/bucket/create-credential.js +1 -1
- package/dist/commands/bucket/delete-credential.js +1 -1
- package/dist/commands/bucket/get-credential.js +1 -1
- package/dist/commands/bucket/list-credentials.js +1 -1
- package/dist/commands/build/branch.d.ts +2 -0
- package/dist/commands/build/branch.d.ts.map +1 -1
- package/dist/commands/build/branch.js +18 -5
- package/dist/commands/build/checkout.js +1 -1
- package/dist/commands/build/delete.d.ts +1 -0
- package/dist/commands/build/delete.d.ts.map +1 -1
- package/dist/commands/build/delete.js +25 -12
- package/dist/commands/build/deploy.d.ts +2 -0
- package/dist/commands/build/deploy.d.ts.map +1 -1
- package/dist/commands/build/deploy.js +17 -4
- package/dist/commands/build/env/get.d.ts +2 -0
- package/dist/commands/build/env/get.d.ts.map +1 -1
- package/dist/commands/build/env/get.js +18 -4
- package/dist/commands/build/env/set.d.ts +2 -0
- package/dist/commands/build/env/set.d.ts.map +1 -1
- package/dist/commands/build/env/set.js +18 -4
- package/dist/commands/build/find.d.ts +1 -0
- package/dist/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +18 -7
- package/dist/commands/build/generate.js +1 -1
- package/dist/commands/build/list-templates.d.ts +11 -0
- package/dist/commands/build/list-templates.d.ts.map +1 -0
- package/dist/commands/build/list-templates.js +47 -0
- package/dist/commands/build/list.js +1 -1
- package/dist/commands/build/package-template.d.ts +28 -0
- package/dist/commands/build/package-template.d.ts.map +1 -0
- package/dist/commands/build/package-template.js +256 -0
- package/dist/commands/build/sandbox.d.ts +1 -0
- package/dist/commands/build/sandbox.d.ts.map +1 -1
- package/dist/commands/build/sandbox.js +10 -3
- package/dist/commands/build/start.d.ts +1 -0
- package/dist/commands/build/start.d.ts.map +1 -1
- package/dist/commands/build/start.js +9 -4
- package/dist/commands/build/status.d.ts +1 -0
- package/dist/commands/build/status.d.ts.map +1 -1
- package/dist/commands/build/status.js +13 -7
- package/dist/commands/build/stop.d.ts +1 -0
- package/dist/commands/build/stop.d.ts.map +1 -1
- package/dist/commands/build/stop.js +9 -4
- package/dist/commands/build/unsandbox.d.ts +1 -0
- package/dist/commands/build/unsandbox.d.ts.map +1 -1
- package/dist/commands/build/unsandbox.js +10 -3
- package/dist/commands/build/upload.d.ts +3 -1
- package/dist/commands/build/upload.d.ts.map +1 -1
- package/dist/commands/build/upload.js +19 -4
- package/dist/commands/build/validate.js +1 -1
- package/dist/commands/build/workos/env/attach.d.ts +2 -0
- package/dist/commands/build/workos/env/attach.d.ts.map +1 -1
- package/dist/commands/build/workos/env/attach.js +17 -5
- package/dist/commands/build/workos/env/create.d.ts +3 -0
- package/dist/commands/build/workos/env/create.d.ts.map +1 -1
- package/dist/commands/build/workos/env/create.js +61 -8
- package/dist/commands/build/workos/env/detach.d.ts +2 -0
- package/dist/commands/build/workos/env/detach.d.ts.map +1 -1
- package/dist/commands/build/workos/env/detach.js +17 -5
- package/dist/commands/build/workos/env/get.d.ts.map +1 -1
- package/dist/commands/build/workos/env/get.js +19 -0
- package/dist/commands/build/workos/env/set.d.ts +12 -6
- package/dist/commands/build/workos/env/set.d.ts.map +1 -1
- package/dist/commands/build/workos/env/set.js +83 -22
- package/dist/commands/build/workos/setup.d.ts +1 -0
- package/dist/commands/build/workos/setup.d.ts.map +1 -1
- package/dist/commands/build/workos/setup.js +12 -3
- package/dist/commands/build/workos/status.d.ts +5 -0
- package/dist/commands/build/workos/status.d.ts.map +1 -1
- package/dist/commands/build/workos/status.js +128 -21
- package/dist/commands/logs/query.d.ts +1 -0
- package/dist/commands/logs/query.d.ts.map +1 -1
- package/dist/commands/logs/query.js +13 -7
- package/dist/commands/logs/tail.d.ts +1 -0
- package/dist/commands/logs/tail.d.ts.map +1 -1
- package/dist/commands/logs/tail.js +14 -8
- package/dist/commands/object/delete.d.ts +1 -0
- package/dist/commands/object/delete.d.ts.map +1 -1
- package/dist/commands/object/delete.js +25 -11
- package/dist/commands/object/get.d.ts +1 -0
- package/dist/commands/object/get.d.ts.map +1 -1
- package/dist/commands/object/get.js +25 -11
- package/dist/commands/object/list.d.ts +1 -0
- package/dist/commands/object/list.d.ts.map +1 -1
- package/dist/commands/object/list.js +26 -12
- package/dist/commands/object/put.d.ts +1 -0
- package/dist/commands/object/put.d.ts.map +1 -1
- package/dist/commands/object/put.js +25 -11
- package/dist/commands/query/chunk-search.d.ts +1 -0
- package/dist/commands/query/chunk-search.d.ts.map +1 -1
- package/dist/commands/query/chunk-search.js +21 -6
- package/dist/commands/query/document.d.ts +3 -1
- package/dist/commands/query/document.d.ts.map +1 -1
- package/dist/commands/query/document.js +36 -13
- package/dist/commands/query/events.d.ts +1 -0
- package/dist/commands/query/events.d.ts.map +1 -1
- package/dist/commands/query/events.js +12 -6
- package/dist/commands/query/reindex.d.ts +1 -0
- package/dist/commands/query/reindex.d.ts.map +1 -1
- package/dist/commands/query/reindex.js +13 -4
- package/dist/commands/query/search.d.ts +2 -0
- package/dist/commands/query/search.d.ts.map +1 -1
- package/dist/commands/query/search.js +37 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/templates/registry.d.ts +38 -0
- package/dist/templates/registry.d.ts.map +1 -0
- package/dist/templates/registry.js +72 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/oclif.manifest.json +2823 -2047
- package/package.json +3 -3
- package/templates/db/node_modules/.bin/prisma +2 -2
- package/templates/db/node_modules/.bin/prisma-kysely +2 -2
- package/templates/db/node_modules/.bin/tsc +2 -2
- package/templates/db/node_modules/.bin/tsserver +2 -2
- package/templates/db/node_modules/.bin/zx +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
displayTraceGroupedEvents
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5AP5HNN3.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-OZWZILJX.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-HMD2JXLE.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/logs/query.ts
|
|
19
19
|
init_cjs_shims();
|
|
@@ -42,7 +42,6 @@ var Query = class extends BaseCommand {
|
|
|
42
42
|
hidden: true
|
|
43
43
|
}),
|
|
44
44
|
manifest: import_core.Flags.string({
|
|
45
|
-
char: "m",
|
|
46
45
|
description: "project manifest",
|
|
47
46
|
required: false,
|
|
48
47
|
default: "raindrop.manifest",
|
|
@@ -53,11 +52,16 @@ var Query = class extends BaseCommand {
|
|
|
53
52
|
description: "application",
|
|
54
53
|
required: false
|
|
55
54
|
}),
|
|
56
|
-
version: import_core.Flags.string({
|
|
55
|
+
"version-id": import_core.Flags.string({
|
|
57
56
|
char: "v",
|
|
58
|
-
description: "application version",
|
|
57
|
+
description: "application version ID",
|
|
59
58
|
required: false
|
|
60
59
|
}),
|
|
60
|
+
version: import_core.Flags.string({
|
|
61
|
+
description: "application version ID (alias for --version-id)",
|
|
62
|
+
required: false,
|
|
63
|
+
hidden: true
|
|
64
|
+
}),
|
|
61
65
|
startTime: import_core.Flags.string({
|
|
62
66
|
char: "s",
|
|
63
67
|
description: "start time for query (Unix timestamp in milliseconds or ISO string)",
|
|
@@ -134,13 +138,14 @@ var Query = class extends BaseCommand {
|
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
async run() {
|
|
141
|
+
let versionId = this.flags["version-id"] || this.flags.version;
|
|
137
142
|
const apps = await this.loadManifest();
|
|
138
143
|
const config = await this.loadConfig();
|
|
139
|
-
if (!
|
|
144
|
+
if (!versionId) {
|
|
140
145
|
if (!config.versionId) {
|
|
141
146
|
this.error("No version provided or found in config", { exit: 1 });
|
|
142
147
|
}
|
|
143
|
-
|
|
148
|
+
versionId = config.versionId;
|
|
144
149
|
}
|
|
145
150
|
if (!this.flags.application) {
|
|
146
151
|
const app = apps[0];
|
|
@@ -179,7 +184,7 @@ var Query = class extends BaseCommand {
|
|
|
179
184
|
}
|
|
180
185
|
this.log(`Using organization: ${organizationId}`);
|
|
181
186
|
this.log(`Using user: ${userId}`);
|
|
182
|
-
this.log(`Querying logs for ${this.flags.application}@${
|
|
187
|
+
this.log(`Querying logs for ${this.flags.application}@${versionId}`);
|
|
183
188
|
this.log(`Time range: ${new Date(startTimeMs).toLocaleString()} - ${new Date(endTimeMs).toLocaleString()}`);
|
|
184
189
|
this.log("");
|
|
185
190
|
try {
|
|
@@ -191,7 +196,7 @@ var Query = class extends BaseCommand {
|
|
|
191
196
|
organizationId,
|
|
192
197
|
userId,
|
|
193
198
|
applicationName: this.flags.application,
|
|
194
|
-
applicationVersionId:
|
|
199
|
+
applicationVersionId: versionId,
|
|
195
200
|
timeQuery,
|
|
196
201
|
limit: this.flags.limit,
|
|
197
202
|
...this.flags.traceId && { traceId: this.flags.traceId },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
displayTraceGroupedEvents
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5AP5HNN3.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-OZWZILJX.js";
|
|
7
7
|
import {
|
|
8
8
|
StreamLogsRequestSchema,
|
|
9
9
|
__toESM,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_cjs_shims,
|
|
12
12
|
require_lib,
|
|
13
13
|
valueOf
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/logs/tail.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -39,7 +39,6 @@ var Tail = class extends BaseCommand {
|
|
|
39
39
|
hidden: true
|
|
40
40
|
}),
|
|
41
41
|
manifest: import_core.Flags.string({
|
|
42
|
-
char: "m",
|
|
43
42
|
description: "project manifest",
|
|
44
43
|
required: false,
|
|
45
44
|
default: "raindrop.manifest",
|
|
@@ -50,11 +49,16 @@ var Tail = class extends BaseCommand {
|
|
|
50
49
|
description: "application",
|
|
51
50
|
required: false
|
|
52
51
|
}),
|
|
53
|
-
version: import_core.Flags.string({
|
|
52
|
+
"version-id": import_core.Flags.string({
|
|
54
53
|
char: "v",
|
|
55
|
-
description: "application version",
|
|
54
|
+
description: "application version ID",
|
|
56
55
|
required: false
|
|
57
56
|
}),
|
|
57
|
+
version: import_core.Flags.string({
|
|
58
|
+
description: "application version ID (alias for --version-id)",
|
|
59
|
+
required: false,
|
|
60
|
+
hidden: true
|
|
61
|
+
}),
|
|
58
62
|
rainbowAuthService: import_core.Flags.string({
|
|
59
63
|
default: "https://liquidmetal.run/api/connect",
|
|
60
64
|
hidden: true,
|
|
@@ -67,13 +71,14 @@ var Tail = class extends BaseCommand {
|
|
|
67
71
|
})
|
|
68
72
|
};
|
|
69
73
|
async run() {
|
|
74
|
+
let versionId = this.flags["version-id"] || this.flags.version;
|
|
70
75
|
const apps = await this.loadManifest();
|
|
71
76
|
const config = await this.loadConfig();
|
|
72
|
-
if (!
|
|
77
|
+
if (!versionId) {
|
|
73
78
|
if (!config.versionId) {
|
|
74
79
|
this.error("No version provided or found in config", { exit: 1 });
|
|
75
80
|
}
|
|
76
|
-
|
|
81
|
+
versionId = config.versionId;
|
|
77
82
|
}
|
|
78
83
|
if (!this.flags.application) {
|
|
79
84
|
const app = apps[0];
|
|
@@ -90,14 +95,14 @@ var Tail = class extends BaseCommand {
|
|
|
90
95
|
const organizationId = this.flags.impersonate ?? defaultOrganizationId;
|
|
91
96
|
this.log(`Using organization: ${organizationId}`);
|
|
92
97
|
this.log(`Using user: ${userId}`);
|
|
93
|
-
this.log(`Tailing logs for ${this.flags.application}@${
|
|
98
|
+
this.log(`Tailing logs for ${this.flags.application}@${versionId} using Riverjack service...`);
|
|
94
99
|
this.log("Press Ctrl+C to stop\n");
|
|
95
100
|
try {
|
|
96
101
|
const request = create(StreamLogsRequestSchema, {
|
|
97
102
|
organizationId,
|
|
98
103
|
userId,
|
|
99
104
|
applicationName: this.flags.application,
|
|
100
|
-
applicationVersionId:
|
|
105
|
+
applicationVersionId: versionId
|
|
101
106
|
});
|
|
102
107
|
for await (const resp of riverjackService.streamLogs(request)) {
|
|
103
108
|
if (this.flags.output === "json") {
|
|
@@ -108,7 +113,7 @@ var Tail = class extends BaseCommand {
|
|
|
108
113
|
case "heartbeat":
|
|
109
114
|
break;
|
|
110
115
|
case "stream_started":
|
|
111
|
-
this.log(`\u{1F504} Started streaming logs for ${this.flags.application}@${
|
|
116
|
+
this.log(`\u{1F504} Started streaming logs for ${this.flags.application}@${versionId}`);
|
|
112
117
|
this.log(` Organization: ${organizationId}`);
|
|
113
118
|
this.log(` User: ${userId}`);
|
|
114
119
|
if (resp.timestamp) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-HMD2JXLE.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-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-HMD2JXLE.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-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims,
|
|
6
6
|
urlifyOrganizationId
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-HMD2JXLE.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-OZWZILJX.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-HMD2JXLE.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-OZWZILJX.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-HMD2JXLE.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/object/delete.ts
|
|
13
13
|
init_cjs_shims();
|
|
@@ -35,10 +35,23 @@ 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
|
+
}),
|
|
38
47
|
moduleId: import_core.Flags.string({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
+
}
|
|
42
55
|
}),
|
|
43
56
|
application: import_core.Flags.string({
|
|
44
57
|
char: "a",
|
|
@@ -58,7 +71,6 @@ Delete file with key 'my-key' from my-bucket within my-app
|
|
|
58
71
|
hidden: true
|
|
59
72
|
}),
|
|
60
73
|
manifest: import_core.Flags.string({
|
|
61
|
-
char: "M",
|
|
62
74
|
description: "project manifest",
|
|
63
75
|
required: false,
|
|
64
76
|
default: "raindrop.manifest",
|
|
@@ -66,22 +78,23 @@ Delete file with key 'my-key' from my-bucket within my-app
|
|
|
66
78
|
})
|
|
67
79
|
};
|
|
68
80
|
async run() {
|
|
69
|
-
|
|
70
|
-
|
|
81
|
+
const moduleId = this.flags["module-id"] || this.flags.moduleId;
|
|
82
|
+
if (this.flags.bucket && moduleId) {
|
|
83
|
+
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
71
84
|
}
|
|
72
|
-
if (
|
|
73
|
-
this.error("Cannot specify both --
|
|
85
|
+
if (moduleId && this.flags.application) {
|
|
86
|
+
this.error("Cannot specify both --module-id and --application flags.");
|
|
74
87
|
}
|
|
75
|
-
if (!this.flags.bucket && !
|
|
76
|
-
this.error("Must specify one of: --bucket, --
|
|
88
|
+
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
89
|
+
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
77
90
|
}
|
|
78
91
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
79
92
|
let bucketLocation;
|
|
80
|
-
if (
|
|
93
|
+
if (moduleId) {
|
|
81
94
|
bucketLocation = {
|
|
82
95
|
bucketLocation: {
|
|
83
96
|
case: "moduleId",
|
|
84
|
-
value:
|
|
97
|
+
value: moduleId
|
|
85
98
|
}
|
|
86
99
|
};
|
|
87
100
|
} else if (this.flags.application && this.flags.bucket) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OZWZILJX.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-HMD2JXLE.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/object/get.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -39,10 +39,23 @@ 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
|
+
}),
|
|
42
51
|
moduleId: import_core.Flags.string({
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
+
}
|
|
46
59
|
}),
|
|
47
60
|
application: import_core.Flags.string({
|
|
48
61
|
char: "a",
|
|
@@ -62,7 +75,6 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
|
|
|
62
75
|
hidden: true
|
|
63
76
|
}),
|
|
64
77
|
manifest: import_core.Flags.string({
|
|
65
|
-
char: "M",
|
|
66
78
|
description: "project manifest",
|
|
67
79
|
required: false,
|
|
68
80
|
default: "raindrop.manifest",
|
|
@@ -70,22 +82,23 @@ Download file with key 'my-key' from my-bucket within my-app to output.txt
|
|
|
70
82
|
})
|
|
71
83
|
};
|
|
72
84
|
async run() {
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
const moduleId = this.flags["module-id"] || this.flags.moduleId;
|
|
86
|
+
if (this.flags.bucket && moduleId) {
|
|
87
|
+
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
75
88
|
}
|
|
76
|
-
if (
|
|
77
|
-
this.error("Cannot specify both --
|
|
89
|
+
if (moduleId && this.flags.application) {
|
|
90
|
+
this.error("Cannot specify both --module-id and --application flags.");
|
|
78
91
|
}
|
|
79
|
-
if (!this.flags.bucket && !
|
|
80
|
-
this.error("Must specify one of: --bucket, --
|
|
92
|
+
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
93
|
+
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
81
94
|
}
|
|
82
95
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
83
96
|
let bucketLocation;
|
|
84
|
-
if (
|
|
97
|
+
if (moduleId) {
|
|
85
98
|
bucketLocation = {
|
|
86
99
|
bucketLocation: {
|
|
87
100
|
case: "moduleId",
|
|
88
|
-
value:
|
|
101
|
+
value: moduleId
|
|
89
102
|
}
|
|
90
103
|
};
|
|
91
104
|
} else if (this.flags.application && this.flags.bucket) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OZWZILJX.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-HMD2JXLE.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/object/list.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -33,10 +33,23 @@ List objects in my-bucket within my-app
|
|
|
33
33
|
description: "bucket name version can be specified with #, e.g. my-bucket#versionId",
|
|
34
34
|
required: false
|
|
35
35
|
}),
|
|
36
|
+
"module-id": import_core.Flags.string({
|
|
37
|
+
description: "module ID (deprecated, use --bucket with smartbucket names)",
|
|
38
|
+
required: false,
|
|
39
|
+
hidden: true,
|
|
40
|
+
deprecated: {
|
|
41
|
+
message: "use --bucket with smartbucket names instead",
|
|
42
|
+
version: "3.0.0"
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
36
45
|
moduleId: import_core.Flags.string({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
description: "module ID (deprecated, use --module-id)",
|
|
47
|
+
required: false,
|
|
48
|
+
hidden: true,
|
|
49
|
+
deprecated: {
|
|
50
|
+
message: "use --module-id instead",
|
|
51
|
+
version: "2.0.0"
|
|
52
|
+
}
|
|
40
53
|
}),
|
|
41
54
|
application: import_core.Flags.string({
|
|
42
55
|
char: "a",
|
|
@@ -56,7 +69,6 @@ List objects in my-bucket within my-app
|
|
|
56
69
|
hidden: true
|
|
57
70
|
}),
|
|
58
71
|
manifest: import_core.Flags.string({
|
|
59
|
-
char: "M",
|
|
60
72
|
description: "project manifest",
|
|
61
73
|
required: false,
|
|
62
74
|
default: "raindrop.manifest",
|
|
@@ -64,22 +76,23 @@ List objects in my-bucket within my-app
|
|
|
64
76
|
})
|
|
65
77
|
};
|
|
66
78
|
async run() {
|
|
67
|
-
|
|
68
|
-
|
|
79
|
+
const moduleId = this.flags["module-id"] || this.flags.moduleId;
|
|
80
|
+
if (this.flags.bucket && moduleId) {
|
|
81
|
+
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
69
82
|
}
|
|
70
|
-
if (
|
|
71
|
-
this.error("Cannot specify both --
|
|
83
|
+
if (moduleId && this.flags.application) {
|
|
84
|
+
this.error("Cannot specify both --module-id and --application flags.");
|
|
72
85
|
}
|
|
73
|
-
if (!this.flags.bucket && !
|
|
74
|
-
this.error("Must specify one of: --bucket, --
|
|
86
|
+
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
87
|
+
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
75
88
|
}
|
|
76
89
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
77
90
|
let bucketLocation;
|
|
78
|
-
if (
|
|
91
|
+
if (moduleId) {
|
|
79
92
|
bucketLocation = {
|
|
80
93
|
bucketLocation: {
|
|
81
94
|
case: "moduleId",
|
|
82
|
-
value:
|
|
95
|
+
value: moduleId
|
|
83
96
|
}
|
|
84
97
|
};
|
|
85
98
|
} else if (this.flags.application && this.flags.bucket) {
|
|
@@ -168,7 +181,7 @@ List objects in my-bucket within my-app
|
|
|
168
181
|
});
|
|
169
182
|
} catch (error) {
|
|
170
183
|
const err = error;
|
|
171
|
-
const location = this.flags.bucket ||
|
|
184
|
+
const location = this.flags.bucket || moduleId;
|
|
172
185
|
this.error(`Failed to list objects in ${this.flags.bucket ? "bucket" : "module"} ${location}: ${err.message}`);
|
|
173
186
|
}
|
|
174
187
|
if (!response.objects?.length) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OZWZILJX.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-HMD2JXLE.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/object/put.ts
|
|
13
13
|
init_cjs_shims();
|
|
@@ -42,10 +42,23 @@ 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
|
+
}),
|
|
45
54
|
moduleId: import_core.Flags.string({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
+
}
|
|
49
62
|
}),
|
|
50
63
|
application: import_core.Flags.string({
|
|
51
64
|
char: "a",
|
|
@@ -70,7 +83,6 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
|
|
|
70
83
|
hidden: true
|
|
71
84
|
}),
|
|
72
85
|
manifest: import_core.Flags.string({
|
|
73
|
-
char: "M",
|
|
74
86
|
description: "project manifest",
|
|
75
87
|
required: false,
|
|
76
88
|
default: "raindrop.manifest",
|
|
@@ -78,22 +90,23 @@ Upload myfile.txt to my-bucket within my-app with key 'my-key'
|
|
|
78
90
|
})
|
|
79
91
|
};
|
|
80
92
|
async run() {
|
|
81
|
-
|
|
82
|
-
|
|
93
|
+
const moduleId = this.flags["module-id"] || this.flags.moduleId;
|
|
94
|
+
if (this.flags.bucket && moduleId) {
|
|
95
|
+
this.error("Cannot specify both --bucket and --module-id flags.");
|
|
83
96
|
}
|
|
84
|
-
if (
|
|
85
|
-
this.error("Cannot specify both --
|
|
97
|
+
if (moduleId && this.flags.application) {
|
|
98
|
+
this.error("Cannot specify both --module-id and --application flags.");
|
|
86
99
|
}
|
|
87
|
-
if (!this.flags.bucket && !
|
|
88
|
-
this.error("Must specify one of: --bucket, --
|
|
100
|
+
if (!this.flags.bucket && !moduleId && !this.flags.application) {
|
|
101
|
+
this.error("Must specify one of: --bucket, --module-id, or --application");
|
|
89
102
|
}
|
|
90
103
|
const { client: objectService, userId, organizationId } = await this.objectService();
|
|
91
104
|
let bucketLocation;
|
|
92
|
-
if (
|
|
105
|
+
if (moduleId) {
|
|
93
106
|
bucketLocation = {
|
|
94
107
|
bucketLocation: {
|
|
95
108
|
case: "moduleId",
|
|
96
|
-
value:
|
|
109
|
+
value: moduleId
|
|
97
110
|
}
|
|
98
111
|
};
|
|
99
112
|
} else if (this.flags.application && this.flags.bucket) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ulid
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-FO7VH4GU.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-OZWZILJX.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-HMD2JXLE.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/query/chunk-search.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -36,11 +36,25 @@ 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
|
+
}),
|
|
39
49
|
moduleIds: import_core.Flags.string({
|
|
40
|
-
|
|
41
|
-
description: "Module IDs to search in",
|
|
50
|
+
description: "Module IDs to search in (deprecated, use --module-ids)",
|
|
42
51
|
multiple: true,
|
|
43
|
-
required: false
|
|
52
|
+
required: false,
|
|
53
|
+
hidden: true,
|
|
54
|
+
deprecated: {
|
|
55
|
+
message: "use --module-ids instead",
|
|
56
|
+
version: "2.0.0"
|
|
57
|
+
}
|
|
44
58
|
}),
|
|
45
59
|
output: import_core.Flags.string({
|
|
46
60
|
char: "o",
|
|
@@ -55,7 +69,6 @@ Run a RAG search query against a Smart Bucket.
|
|
|
55
69
|
hidden: true
|
|
56
70
|
}),
|
|
57
71
|
manifest: import_core.Flags.string({
|
|
58
|
-
char: "M",
|
|
59
72
|
description: "project manifest",
|
|
60
73
|
required: false,
|
|
61
74
|
default: "raindrop.manifest",
|
|
@@ -63,8 +76,9 @@ Run a RAG search query against a Smart Bucket.
|
|
|
63
76
|
})
|
|
64
77
|
};
|
|
65
78
|
async searchAgent(query) {
|
|
66
|
-
|
|
67
|
-
|
|
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.");
|
|
68
82
|
}
|
|
69
83
|
if (this.flags.buckets?.some((bucket) => !bucket.includes("#"))) {
|
|
70
84
|
await this.loadConfig();
|
|
@@ -86,7 +100,7 @@ Run a RAG search query against a Smart Bucket.
|
|
|
86
100
|
}
|
|
87
101
|
};
|
|
88
102
|
}),
|
|
89
|
-
...(
|
|
103
|
+
...(moduleIds || []).map((moduleId) => ({
|
|
90
104
|
bucketLocation: {
|
|
91
105
|
case: "moduleId",
|
|
92
106
|
value: moduleId
|