@capybara-hq/plugin-sdk 0.1.0-rc.40 → 0.1.0-rc.42

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.
@@ -64,5 +64,8 @@ cloud network are set per org by admins.
64
64
 
65
65
  ## What agents may not do
66
66
 
67
- Deciding approvals and requests, confirming extension permissions, managing tokens and secrets,
68
- changing roles. Operations that need credentials refuse and point to the web page.
67
+ Deciding approvals and requests, confirming extension permissions, managing tokens, changing
68
+ roles. A secret an operation writes (an extension's API key in its config, say) is never a param:
69
+ list its field in `askPerson` and the person types it on the confirmation card on the web. Never ask
70
+ for a secret in the conversation; a secret that appeared there counts as leaked, so tell the person
71
+ to rotate it. Operations whose secrets the card cannot take refuse and point to the web page.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "0.1.0-rc.40";
1
+ export declare const SDK_VERSION = "0.1.0-rc.42";
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.40";
1
+ export const SDK_VERSION = "0.1.0-rc.42";
2
2
  export * from "./agent-template.js";
3
3
  export * from "./bootstrap.js";
4
4
  export * from "./cards.js";
@@ -44,6 +44,17 @@ export interface RunningOperationView {
44
44
  }
45
45
  /** The `code` of a rejected shell call. */
46
46
  export type ShellCallError = "busy" | "no_activation" | "cancelled" | "failed";
47
+ /**
48
+ * A change to this machine's owner ceiling, as `capybara-device ceiling set` takes it
49
+ * (`--outside-sandbox on|off`, `--network open|allowlist`, `--project-reach workspace|os-user`):
50
+ * only the fields to change. A field left out is never touched, so a stale value on the page can
51
+ * never narrow it. A widening needs the shell's native confirmation; a narrowing applies at once.
52
+ */
53
+ export interface DeviceCeilingRequest {
54
+ outsideSandbox?: boolean;
55
+ network?: "open" | "allowlist";
56
+ projectReach?: "workspace" | "os-user";
57
+ }
47
58
  /** `device@1`: connect this machine to the deployment as a device. */
48
59
  export interface DeviceCapabilityV1 {
49
60
  status(): Promise<ThisMachineStatus>;
@@ -56,10 +67,7 @@ export interface DeviceCapabilityV1 {
56
67
  pause(): Promise<void>;
57
68
  resume(): Promise<"resumed" | "cancelled">;
58
69
  disconnect(): Promise<void>;
59
- requestCeiling(input: {
60
- fullAccess: boolean;
61
- projectReach: "workspace" | "os-user";
62
- }): Promise<"applied" | "cancelled">;
70
+ requestCeiling(input: DeviceCeilingRequest): Promise<"applied" | "cancelled">;
63
71
  setKeepAwake(mode: KeepAwakeMode): Promise<"applied" | "cancelled">;
64
72
  }
65
73
  /** `notify@1`: a native notification; `path` is the in-app path opened on click. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-sdk",
3
- "version": "0.1.0-rc.40",
3
+ "version": "0.1.0-rc.42",
4
4
  "description": "Capybara plugin SDK: the types and pure functions plugins are written against",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {