Plugin Scaffolding Types (src/types.ts)

clawdstrike · packages/cli/create-plugin/src/types.ts · typescript · Apache-2.0
dev-tools, cli, lang:typescript, tag:plugin

Defines TypeScript interfaces and union types for the create-plugin CLI, specifying plugin templates and contribution points for scaffolding new extensions.

// Source: https://github.com/backbay-labs/clawdstrike | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Shared types for the create-plugin CLI scaffolding tool.
 */

/** The six supported plugin template types. */
export type PluginType =
  | "guard"
  | "detection"
  | "ui"
  | "intel"
  | "compliance"
  | "full";

/** All available contribution point identifiers. */
export type ContributionPoint =
  | "guards"
  | "commands"
  | "fileTypes"
  | "threatIntelSources"
  | "editorTabs"
  | "bottomPanelTabs"
  | "rightSidebarPanels"
  | "statusBarItems"
  | "activityBarItems";

/** Options collected from interactive prompts or CLI flags. */
export interface ScaffoldOptions {
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key