* feat(plugins): add local plugin surfaces and RPCs Keep plugin execution scoped to its daemon while allowing one local TypeScript entry point to contribute validated RPCs and native client surfaces. Paseo owns host selection, navigation chrome, and per-installation query caches. * feat(plugins): add Linear attachment source * fix(nix): refresh npm dependency hash * test(server): exclude internal sessions from Hub counts * test(server): distinguish Hub execution sessions * feat(plugins): make local plugins explicitly opt-in Keep plugin loading dormant until configuration enables it, and collect unsupported examples under one directory. * refactor(plugins): establish host boundaries * fix(nix): refresh plugin dependency hash * fix(plugins): complete packaging and startup rollback * feat(plugins): add managed local lifecycle Make trusted local plugins recoverable and authorable through daemon-owned lifecycle operations, host settings, and a capability-gated CLI. Reloads fully stop the previous plugin before starting new code, while generated projects provide strict TSX checking without changing runtime dependency ownership. * fix(nix): refresh plugin dependency hash
1.9 KiB
name, description, user-invocable
| name | description | user-invocable |
|---|---|---|
| paseo-plugin | Build and manage trusted local Paseo plugins. Use when the user asks to create, edit, install, reload, enable, disable, or remove a Paseo plugin. | true |
Paseo plugins
Start by scaffolding a strict, typecheckable TSX project:
paseo plugin init /absolute/path/to/my-plugin
cd /absolute/path/to/my-plugin
npm install
The generated directory contains paseo-plugin.json, index.tsx, paseo-plugin.d.ts,
package.json, and tsconfig.json. The manifest contains one default ID:
{ "id": "my-plugin" }
Default-export one contribution function from index.tsx. Use @paseo/plugin and the host-provided React, React Native, TanStack Query, and Zod dependencies. The function must return cleanup for resources created by plugin code, even when it has nothing to clean up:
import type { PluginContext } from "@paseo/plugin";
import React from "react";
import { Text } from "react-native";
function MainSurface() {
return <Text>Hello from my plugin</Text>;
}
export default function contribute(plugin: PluginContext) {
plugin.addSurface("main", MainSurface);
return () => undefined;
}
Manage the plugin through the daemon CLI:
paseo plugin install /absolute/path/to/plugin
paseo plugin install /absolute/path/to/plugin --id another-runtime-id
paseo plugin reload my-plugin
paseo plugin ls
paseo plugin disable my-plugin
paseo plugin enable my-plugin
paseo plugin remove my-plugin
After source edits, reload explicitly and use the reported load error to correct the plugin. Use enable, disable, and remove for recovery. Never edit $PASEO_HOME/config.json directly. Plugins are trusted code and run without sandboxing.
Run npm run typecheck before every install or reload. The installed packages and local SDK
declarations exist only for static checking; Paseo provides the runtime modules.