Skip to content

terminal

The terminal plugin: a command line's data, built from the same primitives as everything else, which every process has.

On this page 6
TypeScript
import { terminalPlugin } from "copilotz/plugins/interfaces";

What it keeps

It keeps 2 collections, 1 of them on the record.

CollectionKept asFields
outputin memory, gone on restartperson, text, kind, item, hints, at
shelldocumentsopen, listed, space

Its named queries read for callers, as the rules let them:

QueryWho outside runs it
shell.minepeople, keys or routines, depending on input

What it lets callers do

Of its 2 Actions, people may call all 2; agents, contacts and someone signed out may call none.

ActionPersonAgentContactAnyoneKeyWhat it does
shell.printdependsnononodependsPrints text, or an item through its kind's View, on a person's screen.
shell.setdependsnononodependsChanges a person's shell state: what's open, what was listed.

An agent works for a person, and calls what both may. A key calls only what its scope names. "depends": its allow reads the input to decide.

Where it shows

It has no Views: it shows nowhere on its own.

What it needs

Nothing to set: it works as it comes.

What it requires

It builds on no other plugin.

It ships with copilotz@1.0.0-rc.34.

Listing

It keeps every listing rule.