agentuity-vscode 0.1.11 โ 0.1.12
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/package.json
CHANGED
package/resources/icon.png
CHANGED
|
Binary file
|
package/src/core/cliClient.ts
CHANGED
|
@@ -328,6 +328,14 @@ export class CliClient {
|
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
+
async createDatabase(options: DbCreateOptions): Promise<CliResult<DbInfo>> {
|
|
332
|
+
const args = ['cloud', 'db', 'create', '--name', options.name];
|
|
333
|
+
if (options.description) {
|
|
334
|
+
args.push('--description', options.description);
|
|
335
|
+
}
|
|
336
|
+
return this.exec<DbInfo>(args, { format: 'json', timeout: 60000 });
|
|
337
|
+
}
|
|
338
|
+
|
|
331
339
|
async getDbLogs(
|
|
332
340
|
name: string,
|
|
333
341
|
opts?: { limit?: number; hasError?: boolean; sessionId?: string }
|
|
@@ -530,6 +538,9 @@ export class CliClient {
|
|
|
530
538
|
if (options.network) {
|
|
531
539
|
args.push('--network');
|
|
532
540
|
}
|
|
541
|
+
if (options.port !== undefined) {
|
|
542
|
+
args.push('--port', String(options.port));
|
|
543
|
+
}
|
|
533
544
|
if (options.idleTimeout) {
|
|
534
545
|
args.push('--idle-timeout', String(options.idleTimeout));
|
|
535
546
|
}
|
|
@@ -578,11 +589,10 @@ export class CliClient {
|
|
|
578
589
|
|
|
579
590
|
/**
|
|
580
591
|
* List sandboxes with optional filtering.
|
|
581
|
-
*
|
|
582
|
-
* doesn't currently support project association.
|
|
592
|
+
* Uses --all flag to list all sandboxes regardless of project context.
|
|
583
593
|
*/
|
|
584
594
|
async sandboxList(filter: SandboxListFilter = {}): Promise<CliResult<SandboxInfo[]>> {
|
|
585
|
-
const args = ['cloud', 'sandbox', 'list'];
|
|
595
|
+
const args = ['cloud', 'sandbox', 'list', '--all'];
|
|
586
596
|
|
|
587
597
|
if (filter.status) {
|
|
588
598
|
args.push('--status', filter.status);
|
|
@@ -597,12 +607,8 @@ export class CliClient {
|
|
|
597
607
|
args.push('--offset', String(filter.offset));
|
|
598
608
|
}
|
|
599
609
|
|
|
600
|
-
// Run from home directory to list all sandboxes
|
|
601
|
-
// CLI filters by project when run from project dir, but sandbox create
|
|
602
|
-
// doesn't support project association yet
|
|
603
610
|
const result = await this.exec<{ sandboxes: SandboxInfo[]; total: number }>(args, {
|
|
604
611
|
format: 'json',
|
|
605
|
-
cwd: os.homedir(),
|
|
606
612
|
});
|
|
607
613
|
if (result.success && result.data) {
|
|
608
614
|
return { success: true, data: result.data.sandboxes || [], exitCode: result.exitCode };
|
|
@@ -958,12 +964,19 @@ export interface KvGetResponse {
|
|
|
958
964
|
export interface DbInfo {
|
|
959
965
|
name: string;
|
|
960
966
|
url: string;
|
|
967
|
+
description?: string | null;
|
|
968
|
+
region?: string;
|
|
961
969
|
}
|
|
962
970
|
|
|
963
971
|
export interface DbListResponse {
|
|
964
972
|
databases: DbInfo[];
|
|
965
973
|
}
|
|
966
974
|
|
|
975
|
+
export interface DbCreateOptions {
|
|
976
|
+
name: string;
|
|
977
|
+
description?: string;
|
|
978
|
+
}
|
|
979
|
+
|
|
967
980
|
export interface DbQueryLog {
|
|
968
981
|
timestamp: string;
|
|
969
982
|
command: string;
|
|
@@ -1207,6 +1220,10 @@ export interface SandboxInfo {
|
|
|
1207
1220
|
description?: string;
|
|
1208
1221
|
runtimeId?: string;
|
|
1209
1222
|
runtimeName?: string;
|
|
1223
|
+
// Network/URL fields
|
|
1224
|
+
identifier?: string;
|
|
1225
|
+
networkPort?: number;
|
|
1226
|
+
url?: string;
|
|
1210
1227
|
}
|
|
1211
1228
|
|
|
1212
1229
|
export interface SandboxCreateOptions {
|
|
@@ -1220,6 +1237,7 @@ export interface SandboxCreateOptions {
|
|
|
1220
1237
|
cpu?: string;
|
|
1221
1238
|
disk?: string;
|
|
1222
1239
|
network?: boolean;
|
|
1240
|
+
port?: number; // 1024-65535, enables network automatically
|
|
1223
1241
|
idleTimeout?: number;
|
|
1224
1242
|
execTimeout?: number;
|
|
1225
1243
|
env?: Record<string, string>;
|
|
@@ -230,9 +230,7 @@ function registerCommands(
|
|
|
230
230
|
context.subscriptions.push(
|
|
231
231
|
vscode.commands.registerCommand(
|
|
232
232
|
'agentuity.sandbox.exec',
|
|
233
|
-
async (
|
|
234
|
-
itemOrOptions?: SandboxTreeItem | { sandboxId: string; command?: string }
|
|
235
|
-
) => {
|
|
233
|
+
async (itemOrOptions?: SandboxTreeItem | { sandboxId: string; command?: string }) => {
|
|
236
234
|
let sandboxId: string | undefined;
|
|
237
235
|
let command: string | undefined;
|
|
238
236
|
|
|
@@ -97,6 +97,9 @@ export class SandboxTreeItem extends vscode.TreeItem {
|
|
|
97
97
|
const statusLabel = status.charAt(0).toUpperCase() + status.slice(1);
|
|
98
98
|
const runtimeLabel = this.sandboxData.runtimeName ?? this.sandboxData.runtimeId ?? 'bun:1';
|
|
99
99
|
let desc = `${statusLabel} ยท ${runtimeLabel}`;
|
|
100
|
+
if (this.sandboxData.url) {
|
|
101
|
+
desc += ' ๐';
|
|
102
|
+
}
|
|
100
103
|
if (isLinked) {
|
|
101
104
|
desc += ' [linked]';
|
|
102
105
|
}
|
|
@@ -163,6 +166,14 @@ export class SandboxTreeItem extends vscode.TreeItem {
|
|
|
163
166
|
}
|
|
164
167
|
lines.push(`Created: ${new Date(this.sandboxData.createdAt).toLocaleString()}`);
|
|
165
168
|
|
|
169
|
+
// Network/URL info
|
|
170
|
+
if (this.sandboxData.url) {
|
|
171
|
+
lines.push(`URL: ${this.sandboxData.url}`);
|
|
172
|
+
}
|
|
173
|
+
if (this.sandboxData.networkPort) {
|
|
174
|
+
lines.push(`Port: ${this.sandboxData.networkPort}`);
|
|
175
|
+
}
|
|
176
|
+
|
|
166
177
|
if (this.sandboxData.resources) {
|
|
167
178
|
const r = this.sandboxData.resources;
|
|
168
179
|
if (r.memory) lines.push(`Memory: ${r.memory}`);
|