Skip to content

The agent that grows with you

chore(desktop): drop committed tsc output from src/plugins

emozilla30c441411535
diff --git a/apps/desktop/src/plugins/accent/plugin.js b/apps/desktop/src/plugins/accent/plugin.js
deleted file mode 100644
index c6bf79477de..00000000000
--- a/apps/desktop/src/plugins/accent/plugin.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { jsx as _jsx } from "react/jsx-runtime";
-import { $accentOverride, PALETTE_AREA, setAccentOverride, STATUSBAR_AREAS } from '@hermes/plugin-sdk';
-import { AccentPickerTrigger } from './picker';
-const plugin = {
- id: 'accent',
- name: 'Accent Picker',
- description: 'Pick the theme accent from an OKLCH color picker in the status bar; the palette re-derives live. Authoring tool — the color is not persisted.',
- defaultEnabled: false,
- register(ctx) {
- // The override is a scratch value, not a setting. Dropping it on unregister
- // means disabling the plugin (or reloading) returns every surface to the
- // authored theme instead of stranding a color with no control to clear it.
- ctx.onDispose(() => setAccentOverride(null));
- ctx.registerMany([
- {
- id: 'picker',
- area: STATUSBAR_AREAS.right,
- order: 90,
- render: () => _jsx(AccentPickerTrigger, {})
- },
- {
- id: 'reset',
- area: PALETTE_AREA,
- data: {
- id: 'accent.reset',
- label: 'Accent: reset to the theme default',
- keywords: ['accent', 'color', 'theme', 'reset', 'default'],
- run: () => setAccentOverride(null)
- }
- },
- {
- id: 'copy',
- area: PALETTE_AREA,
- data: {
- id: 'accent.copy',
- label: 'Accent: copy the current color',
- keywords: ['accent', 'color', 'hex', 'copy', 'clipboard'],
- run: () => {
- const hex = $accentOverride.get();
- if (hex) {
- void navigator.clipboard?.writeText(hex);
- }
- }
- }
- }
- ]);
- }
-};
-export default plugin;
diff --git a/apps/desktop/src/plugins/kanban/plugin.js b/apps/desktop/src/plugins/kanban/plugin.js
deleted file mode 100644
index 4d95df48f92..00000000000
--- a/apps/desktop/src/plugins/kanban/plugin.js
+++ /dev/null
@@ -1,118 +0,0 @@
-import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
-/**
- * Kanban — the founding plugin use case, now pure SDK-consumer work: a
- * first-class `/kanban` board page + sidebar nav row + a live statusbar count,
- * all reusing the existing `plugins/kanban/dashboard/plugin_api.py` REST router
- * through `ctx.rest` (namespace-scoped to `/api/plugins/kanban`). No new
- * backend, no core edits.
- *
- * Ships OFF by default (`defaultEnabled: false`): it inventories in
- * Settings ▸ Plugins and registers nothing until the user flips the switch.
- */
-import './kanban.css';
-import { cn, Codicon, host, KEYBINDS_AREA, PALETTE_AREA, ROUTES_AREA, SIDEBAR_NAV_AREA, STATUSBAR_AREAS, Tip, useQuery, useValue } from '@hermes/plugin-sdk';
-import { $boardSlug, bindApi, boardKey, fetchBoard } from './api';
-import { KanbanBoardPage } from './board';
-import { KANBAN_LOCALES } from './i18n';
-import { $newTaskLane, useKanban } from './ui';
-// Live "N running / ready" pill — one glance at fleet activity from anywhere,
-// clicks through to the board. Shares the board query (one cache, one poll with
-// the page); hidden when nothing is in flight (or unloaded).
-function KanbanCount() {
- const k = useKanban();
- const slug = useValue($boardSlug);
- // Socket-invalidated like the page (same cache); slow socketless heartbeat.
- const { data: board } = useQuery({
- queryFn: () => fetchBoard(false),
- queryKey: boardKey(slug, false),
- refetchInterval: 60_000
- });
- if (!board) {
- return null;
- }
- const count = (name) => board.columns.find(col => col.name === name)?.tasks.length ?? 0;
- const active = count('running') + count('ready');
- if (active === 0) {
- return null;
- }
- return (_jsx(Tip, { label: k.countTip(count('running'), count('ready')), children: _jsxs("button", { className: cn('inline-flex h-full items-center gap-1 rounded-none px-1.5 text-[0.6875rem] tabular-nums transition-colors', 'text-(--ui-text-tertiary) hover:bg-(--chrome-action-hover) hover:text-foreground'), onClick: () => host.navigate('/kanban'), type: "button", children: [_jsx(Codicon, { name: "project", size: "0.7rem" }), _jsx("span", { children: active })] }) }));
-}
-const plugin = {
- id: 'kanban',
- name: 'Kanban',
- description: 'Multi-agent task board — board page, sidebar entry, and a live in-flight count in the status bar.',
- defaultEnabled: false,
- register(ctx) {
- ctx.i18n.register(KANBAN_LOCALES);
- ctx.onDispose(bindApi(ctx.rest, ctx.storage, ctx.socket, { os: ctx.os, t: ctx.i18n.t }));
- // The plugin command pattern: ONE action id (`kanban.newTask`) wired into
- // two areas — a keybind (dispatch + rebindable panel row) and a palette row
- // whose `action` field points back at it, so ⌘K shows the live combo. The
- // handler is route-independent: it navigates to the page and parks the
- // request in `$newTaskLane`, so the hotkey works from anywhere, not just
- // while the board happens to be mounted.
- //
- // ⌘⌥N / Ctrl+Alt+N: `mod+n` is `session.new` and `mod+shift+n` is
- // `session.newWindow`, both core built-ins a plugin can't shadow. Adding
- // Alt keeps the "N for new" mnemonic on a chord core leaves free — it uses
- // `alt` only for the `mod+alt+1…9` profile slots, never with a letter. That
- // makes ⌘⌥<letter> the natural namespace for plugin commands.
- const newTask = () => {
- $newTaskLane.set('triage');
- host.navigate('/kanban');
- };
- ctx.registerMany([
- {
- id: 'page',
- area: ROUTES_AREA,
- data: { path: '/kanban' },
- render: () => _jsx(KanbanBoardPage, {})
- },
- {
- id: 'nav',
- area: SIDEBAR_NAV_AREA,
- order: 50,
- data: { codicon: 'project', label: 'Kanban', path: '/kanban' }
- },
- {
- id: 'count',
- area: STATUSBAR_AREAS.right,
- order: 80,
- render: () => _jsx(KanbanCount, {})
- },
- {
- id: 'open',
- area: PALETTE_AREA,
- data: {
- id: 'kanban.open',
- label: 'Kanban: Open board',
- keywords: ['kanban', 'board', 'tasks', 'agents'],
- run: () => host.navigate('/kanban')
- }
- },
- {
- id: 'new-task',
- area: PALETTE_AREA,
- data: {
- id: 'kanban.newTask',
- action: 'kanban.newTask',
- label: ctx.i18n.t('newTaskCommand'),
- keywords: ['kanban', 'task', 'new', 'create', 'triage'],
- run: newTask
- }
- },
- {
- id: 'new-task',
- area: KEYBINDS_AREA,
- data: {
- id: 'kanban.newTask',
- category: 'view',
- defaults: ['mod+alt+n'],
- label: ctx.i18n.t('newTaskCommand'),
- run: newTask
- }
- }
- ]);
- }
-};
-export default plugin;