@capybara-hq/plugin-sdk 0.1.0-rc.17 → 0.1.0-rc.18

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.
@@ -35,6 +35,14 @@ export interface DeviceLocalPolicySummary {
35
35
  allowedDomains: string[];
36
36
  remoteGrants: DeviceRemoteGrants;
37
37
  }
38
+ /**
39
+ * The first line of the kernel's background task launch command (`Bash` `run_in_background`), a
40
+ * shell comment. A device kills what a foreground exec leaves running once the exec ends; an exec
41
+ * whose command starts with this line detaches a task on purpose, and its processes are left alone.
42
+ */
43
+ export declare const BACKGROUND_LAUNCH_LINE = "# capybara: background task launch";
44
+ /** Whether an exec's command is a background task launch ({@link BACKGROUND_LAUNCH_LINE}). */
45
+ export declare function isBackgroundLaunch(command: string): boolean;
38
46
  /** The most blocked hosts an exec result reports; the parser cuts longer lists. */
39
47
  export declare const MAX_NETWORK_BLOCKED_HOSTS = 20;
40
48
  /** First frame from the device after the WebSocket opens. */
@@ -17,6 +17,16 @@ const DEVICE_OPS = [
17
17
  "policy",
18
18
  ];
19
19
  const DEVICE_FEATURES = ["networkReport", "policyOp", "tiers"];
20
+ /**
21
+ * The first line of the kernel's background task launch command (`Bash` `run_in_background`), a
22
+ * shell comment. A device kills what a foreground exec leaves running once the exec ends; an exec
23
+ * whose command starts with this line detaches a task on purpose, and its processes are left alone.
24
+ */
25
+ export const BACKGROUND_LAUNCH_LINE = "# capybara: background task launch";
26
+ /** Whether an exec's command is a background task launch ({@link BACKGROUND_LAUNCH_LINE}). */
27
+ export function isBackgroundLaunch(command) {
28
+ return command === BACKGROUND_LAUNCH_LINE || command.startsWith(`${BACKGROUND_LAUNCH_LINE}\n`);
29
+ }
20
30
  /** The most blocked hosts an exec result reports; the parser cuts longer lists. */
21
31
  export const MAX_NETWORK_BLOCKED_HOSTS = 20;
22
32
  /** The most hosts a `policy` op's `add` / `remove` or an exec's `grants` may carry. */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "0.1.0-rc.17";
1
+ export declare const SDK_VERSION = "0.1.0-rc.18";
2
2
  export * from "./agent-template.js";
3
3
  export * from "./bootstrap.js";
4
4
  export * from "./cards.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = "0.1.0-rc.17";
1
+ export const SDK_VERSION = "0.1.0-rc.18";
2
2
  export * from "./agent-template.js";
3
3
  export * from "./bootstrap.js";
4
4
  export * from "./cards.js";
@@ -125,6 +125,11 @@ export const THEME_CONTRAST = [
125
125
  ["muted", "raised", 4.5],
126
126
  ["muted", "selected", 4.5],
127
127
  ["muted", "hover", 4.5],
128
+ ["ink", "hover", 4.5, "panel"],
129
+ ["ink", "selected", 4.5, "panel"],
130
+ ["muted", "hover", 4.5, "panel"],
131
+ ["fail", "selected", 4.5, "panel"],
132
+ ["accent", "selected", 3, "panel"],
128
133
  ["disabled", "bg", 3],
129
134
  ["disabled", "panel", 3],
130
135
  ["disabled", "hover", 3],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-sdk",
3
- "version": "0.1.0-rc.17",
3
+ "version": "0.1.0-rc.18",
4
4
  "description": "Capybara plugin SDK: the types and pure functions plugins are written against",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {