runcloud 0.2.222 → 0.2.223

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.
@@ -690,7 +690,7 @@ export function registerSandbox(program) {
690
690
  .command('desktop')
691
691
  .description('Open a signed browser desktop for a runcloud/desktop sandbox')
692
692
  .argument('<id>', 'sandbox id')
693
- .option('--url', 'print the signed noVNC URL instead of opening it', false)
693
+ .option('--url', 'print the signed desktop URL instead of opening it', false)
694
694
  .option('--view-only', 'disable keyboard and pointer input', false)).action((id, opts) => run(async () => {
695
695
  const desktop = await runCloudApi().post(`/run-cloud/sandboxes/${encodeURIComponent(id)}/desktop`, { viewOnly: opts.viewOnly });
696
696
  if (typeof desktop?.url !== 'string' || !desktop.url.startsWith('https://')) {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.222';
1
+ export const CLI_VERSION = '0.2.223';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.222",
3
+ "version": "0.2.223",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -389,6 +389,22 @@ limit, and then the kernel kills the largest process. And close below a limit,
389
389
  work that reads files can stall with no kill: other commands still answer, and
390
390
  the `--- guest memory pressure` lines show it.
391
391
 
392
+ ### A command that reaches its timeout
393
+
394
+ A command run without streaming that reaches its `timeout_seconds` returns exit
395
+ code -1, the output it wrote so far, and a stderr that ends with
396
+ `guestagent: timeout: the command did not end within N s and was killed`. The
397
+ agent kills the command's whole process group, so the programs a shell started
398
+ end with it. A process that left the group (`setsid`) stays.
399
+
400
+ A command that ends by itself and leaves a background process returns at once.
401
+ That process keeps running, but its output goes nowhere: redirect it to a file
402
+ (`server >/tmp/server.log 2>&1 &`) if it writes anything.
403
+
404
+ An agent older than this gave a `vsock: … i/o timeout` error (HTTP 502) for
405
+ both cases and left the processes running. A sandbox keeps the agent it was
406
+ created with.
407
+
392
408
  ### Lifecycle markers
393
409
 
394
410
  The host writes a marker into the console on every transition: