@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.
- package/agent-docs/concepts.md +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/shell-capabilities.d.ts +12 -4
- package/package.json +1 -1
package/agent-docs/concepts.md
CHANGED
|
@@ -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
|
|
68
|
-
|
|
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
package/dist/index.js
CHANGED
|
@@ -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. */
|