Official
terminal
Built-in integrated terminal (JavaScript UI plugin).
The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/terminal@0.2.1
Permissions in 0.2.1
Take care. This plugin asks for permissions that can do anything your account can. The app asks you to hold Enable for two seconds or to type the plugin's name before it turns on.
Files
contract.ts598 B
// The divergence/terminal service: other plugins run a command in a new
// terminal, which opens in the detail pane with the command typed into its
// shell, so the user sees it run and the shell stays when it ends. Zod is
// the contract; the host checks every call against it.
import * as z from "zod";
import { defineService } from "divergence/services";
export const Terminal = defineService("divergence/terminal", "1.0.0", {
methods: {
run: { params: z.object({ command: z.string(), title: z.string().optional() }), result: z.null() },
},
});
export type Terminal = typeof Terminal;
No comments yet.