@agentuity/cli 1.0.44 → 1.0.45
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/bin/cli.ts +189 -143
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +45 -2
- package/dist/cli.js.map +1 -1
- package/dist/cmd/cloud/sandbox/cp.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/cp.js +69 -13
- package/dist/cmd/cloud/sandbox/cp.js.map +1 -1
- package/dist/cmd/cloud/sandbox/events.d.ts +3 -0
- package/dist/cmd/cloud/sandbox/events.d.ts.map +1 -0
- package/dist/cmd/cloud/sandbox/events.js +92 -0
- package/dist/cmd/cloud/sandbox/events.js.map +1 -0
- package/dist/cmd/cloud/sandbox/exec.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/exec.js +8 -0
- package/dist/cmd/cloud/sandbox/exec.js.map +1 -1
- package/dist/cmd/cloud/sandbox/index.d.ts.map +1 -1
- package/dist/cmd/cloud/sandbox/index.js +2 -0
- package/dist/cmd/cloud/sandbox/index.js.map +1 -1
- package/package.json +6 -6
- package/src/cli.ts +56 -2
- package/src/cmd/cloud/sandbox/cp.ts +89 -14
- package/src/cmd/cloud/sandbox/events.ts +108 -0
- package/src/cmd/cloud/sandbox/exec.ts +9 -0
- package/src/cmd/cloud/sandbox/index.ts +2 -0
|
@@ -24,6 +24,10 @@ const SandboxExecResponseSchema = z.object({
|
|
|
24
24
|
.optional()
|
|
25
25
|
.describe('Standard error output (only when separate streams are available)'),
|
|
26
26
|
output: z.string().optional().describe('Combined stdout/stderr output'),
|
|
27
|
+
autoResumed: z
|
|
28
|
+
.boolean()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('True if the sandbox was automatically resumed from a suspended state'),
|
|
27
31
|
});
|
|
28
32
|
|
|
29
33
|
export const execSubcommand = createCommand({
|
|
@@ -87,6 +91,10 @@ export const execSubcommand = createCommand({
|
|
|
87
91
|
orgId,
|
|
88
92
|
});
|
|
89
93
|
|
|
94
|
+
if (execution.autoResumed && !options.json) {
|
|
95
|
+
tui.warning('Sandbox was automatically resumed from suspended state');
|
|
96
|
+
}
|
|
97
|
+
|
|
90
98
|
const stdoutStreamUrl = execution.stdoutStreamUrl;
|
|
91
99
|
const stderrStreamUrl = execution.stderrStreamUrl;
|
|
92
100
|
const streamAbortController = new AbortController();
|
|
@@ -213,6 +221,7 @@ export const execSubcommand = createCommand({
|
|
|
213
221
|
stdout: options.json ? stdoutOutput : undefined,
|
|
214
222
|
stderr: options.json ? stderrOutput : undefined,
|
|
215
223
|
output: options.json ? output : undefined,
|
|
224
|
+
autoResumed: execution.autoResumed || undefined,
|
|
216
225
|
};
|
|
217
226
|
} finally {
|
|
218
227
|
process.off('SIGINT', handleSignal);
|
|
@@ -20,6 +20,7 @@ import { pauseSubcommand } from './pause';
|
|
|
20
20
|
import { resumeSubcommand } from './resume';
|
|
21
21
|
import { checkpointCommand } from './checkpoint';
|
|
22
22
|
import { statsSubcommand } from './stats';
|
|
23
|
+
import { eventsSubcommand } from './events';
|
|
23
24
|
import { getCommand } from '../../../command-prefix';
|
|
24
25
|
|
|
25
26
|
export const command = createCommand({
|
|
@@ -63,6 +64,7 @@ export const command = createCommand({
|
|
|
63
64
|
resumeSubcommand,
|
|
64
65
|
checkpointCommand,
|
|
65
66
|
statsSubcommand,
|
|
67
|
+
eventsSubcommand,
|
|
66
68
|
],
|
|
67
69
|
requires: { auth: true, org: true },
|
|
68
70
|
});
|