mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
p2 (Pi Mobile on Chord v2) moves from pi-private into pi as one commit. Root scripts that loop all workspaces use --if-present; npm test, ./test.sh and the release script cover packages/* only (p2: cd apps/p2 && npm test); sync-versions also updates apps' workspace pins.
17 lines
608 B
TypeScript
17 lines
608 B
TypeScript
import { bool } from "@earendil-works/pi-schema";
|
|
import { local, record } from "@p2/app/v1";
|
|
|
|
/**
|
|
* Which of this worker's conversations are offered PowerShell (host-internal), by conversation ID: those working on
|
|
* Windows (their location's machine) with the shell tool (`bash`) enabled.
|
|
*/
|
|
export const PowerShell = local("p2.powershell", {
|
|
// 2: per conversation location.
|
|
version: 2,
|
|
params: {},
|
|
members: { offered: record(bool()) },
|
|
});
|
|
|
|
/** The extension offering Durable's `powershell` tool. */
|
|
export const POWERSHELL_EXTENSION = "p2-powershell";
|
|
export const POWERSHELL_TOOL = "powershell";
|