@runblackcat/sdk 0.1.0-alpha.121 → 0.1.0-alpha.123

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runblackcat/sdk",
3
- "version": "0.1.0-alpha.121",
3
+ "version": "0.1.0-alpha.123",
4
4
  "description": "TypeScript SDK for the Blackcat sandbox gateway",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/TreebeardHQ/blackcat",
@@ -19,10 +19,15 @@ export declare const CAPABILITY_OPS: {
19
19
  readonly PROCESS_INSPECT: 1024;
20
20
  readonly PROCESS_CANCEL: 2048;
21
21
  readonly RENEW: 4096;
22
+ readonly PLUGIN_CONNECT: 8192;
23
+ readonly EVENTS_READ: 16384;
24
+ readonly DATAGRAM_ALLOCATE: 32768;
25
+ readonly ACTIVITY: 65536;
22
26
  };
23
27
  export type CapabilityOps = number;
24
28
  export declare const BLACKCAT_ERROR_CODES: {
25
29
  readonly CHECKPOINT_KERNEL_MISMATCH: "checkpoint_kernel_mismatch";
30
+ readonly CHECKPOINT_UNRESTORABLE: "checkpoint_unrestorable";
26
31
  readonly SANDBOX_TRANSITIONING: "sandbox_transitioning";
27
32
  readonly FLEET_UPGRADE_QUIESCING: "fleet_upgrade_quiescing";
28
33
  };
@@ -492,7 +497,7 @@ export type CreateSandboxResponse = {
492
497
  * predates this field.
493
498
  */
494
499
  restore_timing?: RestoreTiming;
495
- /** First recorded failure, also available while pending teardown. Rebuild captures on checkpoint_kernel_mismatch. */
500
+ /** First recorded failure, also available while pending teardown. Rebuild captures on checkpoint_kernel_mismatch or checkpoint_unrestorable. */
496
501
  failure?: {
497
502
  code: string;
498
503
  detail: string | null;
package/sdk/dist/index.js CHANGED
@@ -12,10 +12,15 @@ var CAPABILITY_OPS = {
12
12
  PROCESS_START: 512,
13
13
  PROCESS_INSPECT: 1024,
14
14
  PROCESS_CANCEL: 2048,
15
- RENEW: 4096
15
+ RENEW: 4096,
16
+ PLUGIN_CONNECT: 8192,
17
+ EVENTS_READ: 16384,
18
+ DATAGRAM_ALLOCATE: 32768,
19
+ ACTIVITY: 65536
16
20
  };
17
21
  var BLACKCAT_ERROR_CODES = {
18
22
  CHECKPOINT_KERNEL_MISMATCH: "checkpoint_kernel_mismatch",
23
+ CHECKPOINT_UNRESTORABLE: "checkpoint_unrestorable",
19
24
  SANDBOX_TRANSITIONING: "sandbox_transitioning",
20
25
  FLEET_UPGRADE_QUIESCING: "fleet_upgrade_quiescing"
21
26
  };