@koinzhang/paseo-plugin-customize 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +9 -5
- package/client/design-tokens.ts +6 -0
- package/client/dropdown.tsx +42 -35
- package/client/entry-card.tsx +86 -0
- package/client/entry-row.tsx +17 -5
- package/client/grid.test.ts +19 -0
- package/client/grid.ts +18 -0
- package/client/mechanism-card.tsx +1 -1
- package/client/preview-pane.tsx +11 -4
- package/client/provider-options.test.ts +16 -5
- package/client/provider-options.ts +14 -3
- package/client/screen-id.ts +2 -0
- package/client/selection-settings.test.ts +5 -2
- package/client/sidebar-item.tsx +14 -0
- package/client/slash-command.test.ts +24 -7
- package/client/slash-command.ts +3 -2
- package/client/surface.tsx +142 -90
- package/client/ui.tsx +26 -2
- package/index.client.tsx +15 -12
- package/package.json +2 -2
- package/paseo-plugin.json +1 -1
- package/server/compatibility.test.ts +13 -0
- package/server/handlers.ts +9 -4
- package/server/provider-version.test.ts +74 -0
- package/server/provider-version.ts +60 -0
- package/server/providers/opencode.ts +25 -8
- package/server/providers.test.ts +48 -3
- package/server/scan-kit.ts +2 -1
- package/server/scan-snapshot.test.ts +9 -9
- package/server/scan-snapshot.ts +1 -1
- package/server/tokens.test.ts +146 -0
- package/server/tokens.ts +178 -0
- package/shared/contracts.ts +14 -0
- package/shared/i18n.ts +29 -0
- package/shared/mechanisms.ts +15 -5
- package/shared/selection-settings.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ All notable changes to `@koinzhang/paseo-plugin-customize` are documented in thi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.0] - 2026-11-05
|
|
9
|
+
|
|
10
|
+
Requires Paseo **>= 0.15.0**.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Align with Paseo 0.15: the Customize board is a screen with a sidebar header row (replacing the deprecated `addSurface` / `addSidebarItem`), `/customize` and the Command Center item open it through `openScreen`, and UI components import from `@getpaseo/plugin/client/ui`.
|
|
15
|
+
|
|
16
|
+
## [0.3.0] - 2026-09-28
|
|
17
|
+
|
|
18
|
+
Requires Paseo **>= 0.9.0**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- Entries can switch between the list and a responsive card grid with the button to the right of the search field. Cards show the same name, status, description, path/reason, token estimate, and Agent Plugins badge, reflow from one to three columns with the panel width, and open the same preview. The view choice is saved with Provider and Project.
|
|
23
|
+
- Every provider with a detected version shows it with a `v` prefix between the compatibility icon and the Provider picker, on every category. The version comes from the host provider diagnostic first, then a fallback probe of the provider's local CLI — standard semver, product-prefixed and parenthesized output, and Cursor's date build are understood; missing versions and probe failures hide the area. It refreshes with each scan and persists in the saved snapshot.
|
|
24
|
+
- OpenCode v2 skills with `metadata.opencode/autoinvoke: false` (boolean or string `"false"`) show as Manual only: hidden from the model's available list, but still explicitly loadable by ID. The version is detected from the host diagnostic first, then `opencode --version` on the daemon's PATH; an unknown version leaves flagged skills awaiting confirmation, and v1 ignores the field. The mechanism note explains the matching v1/v2 behavior.
|
|
25
|
+
- The Provider picker groups Built-in providers above ACP ones, sorted by name within each group and separated by a divider.
|
|
26
|
+
- Every Instructions, Rules, Skills, Commands, Subagents, and Plugins row now shows an estimated token count after the status pill. The estimate uses a script-aware heuristic (`ceil(ascii / 4 + cjk * 1.05 + otherNonAsciiBytes / 3)`), calibrated against GPT's `o200k_base` on local Chinese `AGENTS.md` files and a 2168-file corpus (about 10% mean error). Instructions and Rules show one always-on number; Skills, Commands, and Subagents show the advertised metadata (`≈114 tok`) plus the body that arrives on invoke (`+1.2k on invoke`); plugin rows recursively sum their bundled component prompts with the same split. MCP is not counted, because a server's real context cost is its `tools/list` payload rather than anything on disk. Counts are cached by path + mtime + size and persisted with the scan snapshot.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- The Command Center item is titled **Customize** again; the `/customize` slash command keeps its "Open Customize" description.
|
|
31
|
+
- The Provider picker keeps the Built-in / ACP badge flush right by rendering the selected check before it, matching the host menu order.
|
|
32
|
+
- The category toolbar splits into two rows before either section wraps internally; tabs then wrap within their own row and the search field can shrink to its 180 px minimum.
|
|
33
|
+
- The preview copy icon matches the Open and Reveal icons in the same row (the 24×24 hit area and tooltip are unchanged).
|
|
34
|
+
- Scrolled entries keep a gap below the fixed toolbar instead of touching it.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- The Rescan icon in the toolbar now matches the search, chevron, and mechanism icons at 14 px.
|
|
39
|
+
- Entry icons in list rows and cards are 14 px and centered with the title; the view toggle no longer shows a hover tooltip.
|
|
40
|
+
|
|
41
|
+
[0.4.0]: https://github.com/koinzhang/paseo-plugins/releases/tag/customize-v0.4.0
|
|
42
|
+
[0.3.0]: https://github.com/koinzhang/paseo-plugins/releases/tag/customize-v0.3.0
|
|
43
|
+
|
|
8
44
|
## [0.2.1] - 2026-09-28
|
|
9
45
|
|
|
10
46
|
Requires Paseo **>= 0.9.0**.
|
package/README.md
CHANGED
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
One board that scans local agent configuration for a project: **instructions** (AGENTS.md, CLAUDE.md …), **rules**, **skills**, **MCP servers**, **commands**, **subagents**, and **plugins** at project and user level.
|
|
4
4
|
|
|
5
|
-
Requires Paseo >= 0.
|
|
5
|
+
Requires Paseo >= 0.15.0.
|
|
6
6
|
|
|
7
7
|
## What you get
|
|
8
8
|
|
|
9
9
|
- A **Customize** item in the sidebar's top navigation (next to New workspace, History, Search, Schedules) and in the Command Center opens the board.
|
|
10
10
|
- Submit `/customize` in an agent composer to open the board. It selects the agent's Provider and workspace Project when available, updating each independently and keeping the current selection for any unavailable value.
|
|
11
|
-
- Top-right **Provider** and **Project** pickers. The Provider menu lists enabled Paseo providers that Customize can scan, including Cursor, Cline, CodeBuddy Code, Gemini CLI, Goose, Grok Build, Kilo Code, Kiro CLI, Kimi Code, Qwen Code, and TraeCode CLI. It marks each as Built-in or ACP. Choices persist on the Paseo host; before a project is chosen, it defaults to the workspace you were last on. The Project menu lists every Paseo project.
|
|
12
|
-
- Tabs for Instructions / Rules / Skills / MCP / Commands / Subagents / Plugins. Each tab starts with a "how it loads" note for that provider and then **Project** and **User** sections grouped by source directory.
|
|
11
|
+
- Top-right **Provider** and **Project** pickers. The Provider menu lists enabled Paseo providers that Customize can scan, including Cursor, Cline, CodeBuddy Code, Gemini CLI, Goose, Grok Build, Kilo Code, Kiro CLI, Kimi Code, Qwen Code, and TraeCode CLI. It groups Built-in providers above ACP ones, each group sorted by name and separated by a divider, and marks each option as Built-in or ACP. Choices persist on the Paseo host; before a project is chosen, it defaults to the workspace you were last on. The Project menu lists every Paseo project.
|
|
12
|
+
- Tabs for the categories the selected provider supports — Instructions / Rules / Skills / MCP / Commands / Subagents / Plugins. Each tab starts with a "how it loads" note for that provider and then **Project** and **User** sections grouped by source directory.
|
|
13
13
|
- On Skills, a switch beside search shows all skills, automatic skills (Auto and Conditional), or manual-only skills. Disabled and not-loaded skills stay under All. The choice stays on the page and is not saved with Provider or Project.
|
|
14
|
+
- Entries can be shown as a list or as a responsive card grid. The toggle to the right of the search field switches views (grid icon = card view, list icon = list view). Cards carry the same name, status, description, path/reason, token estimate, and Agent Plugins badge, reflow from one to three columns with the panel width, and open the same preview pane. The choice is saved on the Paseo host together with Provider and Project.
|
|
14
15
|
- A link icon to the left of Provider marks agents that search shared skill directories; providers without compatibility support show no icon. Cursor's icon follows its local `thirdPartyExtensibilityEnabled` IDE setting; OpenCode's follows its external-skill environment flags. The icon and skill explanation update on the next scan when those settings change.
|
|
16
|
+
- Every provider with a detected version shows it with a `v` prefix to the left of Provider, between the compatibility icon (when present) and the picker. Versions come from the host diagnostic first, then a local CLI fallback; missing versions and probe/parse failures hide the version area entirely. Version metadata refreshes with each scan and persists in the saved snapshot. Compact layouts keep the compatibility icon, version, and Provider together while the remaining controls can wrap.
|
|
15
17
|
- A skill reachable through several symlinked roots appears once. Customize prefers the provider's native path, then `.agents/skills`, then another path. Same-name skills backed by different files remain separate.
|
|
16
|
-
-
|
|
18
|
+
- OpenCode v2 skills with `metadata.opencode/autoinvoke: false` (boolean or string `"false"`) show as Manual only: hidden from the model's available list, but still explicitly loadable by ID. Customize detects the version from the host's provider diagnostic first, then falls back to `opencode --version` on the daemon's PATH. The mechanism note explains the matching v1/v2 behavior; an unknown version leaves flagged skills awaiting confirmation. v1 ignores this field. OpenCode ignores other agents' `disable-model-invocation`; skill deny permissions still hide and block loading (v1 `permission.skill`, v2 `permissions[]`).
|
|
17
19
|
- Each row shows name, description, directory, and a status:
|
|
18
20
|
|
|
19
21
|
| Status | Meaning |
|
|
@@ -27,6 +29,8 @@ Requires Paseo >= 0.9.0.
|
|
|
27
29
|
|
|
28
30
|
The reason (the exact frontmatter key or config setting) is shown next to the status.
|
|
29
31
|
|
|
32
|
+
- Each row shows an estimated token count after the status pill for Instructions, Rules, Skills, Commands, Subagents, and Plugins. The estimate is a script-aware heuristic — `ceil(ascii / 4 + cjk * 1.05 + otherNonAsciiBytes / 3)` — calibrated against GPT's `o200k_base` on local Chinese `AGENTS.md` files and a 2168-file corpus (about 10% mean error; Claude-family tokenizers run another 10–20% denser on CJK). Instructions and Rules show one number (`≈1.2k tok`) because they are always on. Skills, Commands, and Subagents show two: the advertised `name` + `description` that is always in context (`≈114 tok`) plus the body that arrives when the entry is invoked (`+1.2k on invoke`); manual-only entries show the invoke segment alone, and disabled or not-loaded entries show none. Plugin rows recursively sum the prompt files (`.md` / `.markdown` / `.mdc` / `.rules` / `.txt`) under the package's `skills`, `commands`, `agents`, `rules`, and `instructions` directories with the same split; manifests, code, and `node_modules` are not counted. **MCP is not counted**, because a server's real cost is its `tools/list` payload, which cannot be read from a config file. Counts are cached by path + mtime + size and persisted with the scan snapshot.
|
|
33
|
+
|
|
30
34
|
- Click a row for a preview pane at the bottom (first 64 KiB / 400 lines) with **Open**, **Reveal**, and **Copy path**. MCP previews mask `env` / `headers` values and secret-looking arguments.
|
|
31
35
|
|
|
32
36
|
Scanning is read-only. Preview and open only accept paths returned by a scan.
|
|
@@ -42,7 +46,7 @@ Per-provider mechanisms and their sources are recorded in [`specs/001-customize-
|
|
|
42
46
|
## Install
|
|
43
47
|
|
|
44
48
|
```bash
|
|
45
|
-
paseo plugin add koinzhang/paseo-plugins
|
|
49
|
+
paseo plugin add github:koinzhang/paseo-plugins:customize
|
|
46
50
|
```
|
|
47
51
|
|
|
48
52
|
## Development
|
package/client/design-tokens.ts
CHANGED
|
@@ -62,6 +62,11 @@ export function titleGap(compact = false): number {
|
|
|
62
62
|
|
|
63
63
|
export const ROW_PADDING = { dense: 6, regular: 9 } as const;
|
|
64
64
|
|
|
65
|
+
/** Card-view grid metrics; defined in `grid.ts` so pure tests avoid the React Native import. */
|
|
66
|
+
export { GRID } from "./grid.ts";
|
|
67
|
+
|
|
68
|
+
export const CARD = { padding: 12 } as const;
|
|
69
|
+
|
|
65
70
|
export const RADIUS = {
|
|
66
71
|
swatch: 3,
|
|
67
72
|
control: 6,
|
|
@@ -86,6 +91,7 @@ export const CONTROL = {
|
|
|
86
91
|
hitSlop: 8,
|
|
87
92
|
pillBadgeHeight: 18,
|
|
88
93
|
searchHeight: 30,
|
|
94
|
+
providerVersionMaxWidth: 140,
|
|
89
95
|
} as const;
|
|
90
96
|
|
|
91
97
|
export const iconButton: ViewStyle = {
|
package/client/dropdown.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Icon } from "@getpaseo/plugin/client/
|
|
2
|
-
import { useState, type ReactNode } from "react";
|
|
1
|
+
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
2
|
+
import { Fragment, useState, type ReactNode } from "react";
|
|
3
3
|
import { Platform, Pressable, ScrollView, Text, View } from "react-native";
|
|
4
4
|
import { CONTROL, FONT_WEIGHT, ICON_SIZE, MENU, RADIUS, TEXT } from "./design-tokens.ts";
|
|
5
5
|
import type { Colors } from "./ui.tsx";
|
|
@@ -9,6 +9,8 @@ export interface DropdownOption {
|
|
|
9
9
|
label: string;
|
|
10
10
|
hint?: string;
|
|
11
11
|
badge?: string;
|
|
12
|
+
/** Options are rendered in array order; a group change draws a divider. */
|
|
13
|
+
group?: string;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -92,42 +94,47 @@ export function Dropdown({
|
|
|
92
94
|
}}
|
|
93
95
|
>
|
|
94
96
|
<ScrollView style={{ maxHeight: MENU.visibleRows * MENU.rowHeight + 8 }} contentContainerStyle={{ paddingVertical: 4 }}>
|
|
95
|
-
{options.map((option) => {
|
|
97
|
+
{options.map((option, index) => {
|
|
96
98
|
const selected = option.id === value;
|
|
99
|
+
const startsGroup = index > 0 && option.group !== undefined && option.group !== options[index - 1]?.group;
|
|
97
100
|
return (
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
{option.hint}
|
|
101
|
+
<Fragment key={option.id}>
|
|
102
|
+
{startsGroup ? (
|
|
103
|
+
<View style={{ height: 1, marginVertical: 4, marginHorizontal: 4, backgroundColor: colors.border }} />
|
|
104
|
+
) : null}
|
|
105
|
+
<Pressable
|
|
106
|
+
accessibilityRole="button"
|
|
107
|
+
accessibilityState={{ selected }}
|
|
108
|
+
onPress={() => {
|
|
109
|
+
onChange(option.id);
|
|
110
|
+
setOpen(false);
|
|
111
|
+
}}
|
|
112
|
+
style={({ pressed, hovered }: { pressed: boolean; hovered?: boolean }) => ({
|
|
113
|
+
flexDirection: "row",
|
|
114
|
+
alignItems: "center",
|
|
115
|
+
minHeight: MENU.rowHeight,
|
|
116
|
+
gap: 8,
|
|
117
|
+
marginHorizontal: 4,
|
|
118
|
+
paddingHorizontal: 8,
|
|
119
|
+
paddingVertical: option.hint ? 4 : 0,
|
|
120
|
+
borderRadius: RADIUS.control,
|
|
121
|
+
backgroundColor: pressed || hovered ? colors.surface2 : "transparent",
|
|
122
|
+
})}
|
|
123
|
+
>
|
|
124
|
+
<View style={{ flex: 1, minWidth: 0 }}>
|
|
125
|
+
<Text style={{ ...TEXT.menu, color: colors.foreground }} numberOfLines={1}>
|
|
126
|
+
{option.label}
|
|
125
127
|
</Text>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
{option.hint ? (
|
|
129
|
+
<Text style={{ ...TEXT.caption, color: colors.foregroundMuted }} numberOfLines={1}>
|
|
130
|
+
{option.hint}
|
|
131
|
+
</Text>
|
|
132
|
+
) : null}
|
|
133
|
+
</View>
|
|
134
|
+
{selected ? <Icon name="Check" size={ICON_SIZE.action} color={colors.foreground} /> : null}
|
|
135
|
+
{option.badge ? <Text style={{ ...TEXT.caption, color: colors.foregroundMuted }}>{option.badge}</Text> : null}
|
|
136
|
+
</Pressable>
|
|
137
|
+
</Fragment>
|
|
131
138
|
);
|
|
132
139
|
})}
|
|
133
140
|
</ScrollView>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
2
|
+
import { memo, type ReactNode } from "react";
|
|
3
|
+
import { Pressable, Text, View } from "react-native";
|
|
4
|
+
import type { Entry } from "../shared/contracts.ts";
|
|
5
|
+
import { formatTokenCount, type Messages } from "../shared/i18n.ts";
|
|
6
|
+
import { CARD, ICON_SIZE, RADIUS, TEXT } from "./design-tokens.ts";
|
|
7
|
+
import { CATEGORY_ICONS, entryLabel, entryMeta } from "./entry-row.tsx";
|
|
8
|
+
import { StatusBadge, TokenBadge, type Colors } from "./ui.tsx";
|
|
9
|
+
|
|
10
|
+
/** Card-view twin of `EntryRow`: same facts, wrapped for a responsive grid. */
|
|
11
|
+
export const EntryCard = memo(function EntryCard({
|
|
12
|
+
entry,
|
|
13
|
+
selected,
|
|
14
|
+
onSelect,
|
|
15
|
+
colors,
|
|
16
|
+
m,
|
|
17
|
+
width,
|
|
18
|
+
}: {
|
|
19
|
+
entry: Entry;
|
|
20
|
+
selected: boolean;
|
|
21
|
+
onSelect: (entry: Entry) => void;
|
|
22
|
+
colors: Colors;
|
|
23
|
+
m: Messages;
|
|
24
|
+
width?: number;
|
|
25
|
+
}): ReactNode {
|
|
26
|
+
const muted = entry.status === "inactive" || entry.status === "disabled";
|
|
27
|
+
const atRest = entry.tokens?.atRest ? formatTokenCount(entry.tokens.atRest) : null;
|
|
28
|
+
const onInvoke = entry.tokens?.onInvoke ? formatTokenCount(entry.tokens.onInvoke) : null;
|
|
29
|
+
const plugin = entry.agentPlugin;
|
|
30
|
+
return (
|
|
31
|
+
<Pressable
|
|
32
|
+
accessibilityRole="button"
|
|
33
|
+
accessibilityState={{ selected }}
|
|
34
|
+
accessibilityLabel={entryLabel(entry, m)}
|
|
35
|
+
onPress={() => onSelect(entry)}
|
|
36
|
+
style={({ hovered, pressed }: { hovered?: boolean; pressed: boolean }) => ({
|
|
37
|
+
width,
|
|
38
|
+
flexGrow: width == null ? 1 : 0,
|
|
39
|
+
flexBasis: width == null ? "100%" : undefined,
|
|
40
|
+
padding: CARD.padding,
|
|
41
|
+
borderRadius: RADIUS.block,
|
|
42
|
+
borderWidth: 1,
|
|
43
|
+
borderColor: selected ? colors.accent : colors.border,
|
|
44
|
+
backgroundColor: selected || hovered || pressed ? colors.surface2 : colors.surface1,
|
|
45
|
+
})}
|
|
46
|
+
>
|
|
47
|
+
<View style={{ flexDirection: "row", alignItems: "flex-start", gap: 10 }}>
|
|
48
|
+
<View style={{ paddingTop: 2, opacity: muted ? 0.5 : 1 }}>
|
|
49
|
+
<Icon name={CATEGORY_ICONS[entry.category]} size={ICON_SIZE.inline} color={colors.foregroundMuted} />
|
|
50
|
+
</View>
|
|
51
|
+
<View style={{ flex: 1, minWidth: 0, gap: 3 }}>
|
|
52
|
+
<View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 8 }}>
|
|
53
|
+
<Text
|
|
54
|
+
style={{ ...TEXT.rowTitle, color: muted ? colors.foregroundMuted : colors.foreground, flexShrink: 1 }}
|
|
55
|
+
numberOfLines={1}
|
|
56
|
+
>
|
|
57
|
+
{entry.name}
|
|
58
|
+
</Text>
|
|
59
|
+
<StatusBadge status={entry.status} label={m.statuses[entry.status]} colors={colors} />
|
|
60
|
+
</View>
|
|
61
|
+
{entry.description ? (
|
|
62
|
+
<Text style={{ ...TEXT.meta, color: colors.foregroundMuted }} numberOfLines={2}>
|
|
63
|
+
{entry.description}
|
|
64
|
+
</Text>
|
|
65
|
+
) : null}
|
|
66
|
+
<Text style={{ ...TEXT.meta, color: colors.foregroundMuted }} numberOfLines={2}>
|
|
67
|
+
{entryMeta(entry, m)}
|
|
68
|
+
</Text>
|
|
69
|
+
{atRest || onInvoke || plugin ? (
|
|
70
|
+
<View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 6, paddingTop: 2 }}>
|
|
71
|
+
{atRest ? <TokenBadge label={m.tokens(atRest)} hint={m.tokensHint(atRest)} colors={colors} /> : null}
|
|
72
|
+
{onInvoke ? <TokenBadge label={m.tokensOnInvoke(onInvoke)} hint={m.tokensOnInvokeHint(onInvoke)} colors={colors} /> : null}
|
|
73
|
+
{plugin ? (
|
|
74
|
+
<View style={{ borderRadius: RADIUS.control, borderWidth: 1, borderColor: plugin.validation === "valid" ? colors.accent : colors.statusWarning, paddingHorizontal: 6, paddingVertical: 2, flexShrink: 0 }}>
|
|
75
|
+
<Text style={{ ...TEXT.pillBadge, color: plugin.validation === "valid" ? colors.accent : colors.statusWarning }} numberOfLines={1}>
|
|
76
|
+
{m.agentPluginLabel(plugin.version, plugin.validation)}
|
|
77
|
+
</Text>
|
|
78
|
+
</View>
|
|
79
|
+
) : null}
|
|
80
|
+
</View>
|
|
81
|
+
) : null}
|
|
82
|
+
</View>
|
|
83
|
+
</View>
|
|
84
|
+
</Pressable>
|
|
85
|
+
);
|
|
86
|
+
});
|
package/client/entry-row.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Icon } from "@getpaseo/plugin/client/
|
|
1
|
+
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
2
2
|
import { memo, type ReactNode } from "react";
|
|
3
3
|
import { Pressable, Text, View } from "react-native";
|
|
4
4
|
import type { Category, Entry } from "../shared/contracts.ts";
|
|
5
5
|
import type { Messages } from "../shared/i18n.ts";
|
|
6
|
+
import { formatTokenCount } from "../shared/i18n.ts";
|
|
6
7
|
import { ICON_SIZE, RADIUS, ROW_PADDING, TEXT } from "./design-tokens.ts";
|
|
7
|
-
import { StatusBadge, type Colors } from "./ui.tsx";
|
|
8
|
+
import { StatusBadge, TokenBadge, type Colors } from "./ui.tsx";
|
|
8
9
|
|
|
9
10
|
export const CATEGORY_ICONS: Record<Category, string> = {
|
|
10
11
|
instructions: "FileText",
|
|
@@ -26,6 +27,13 @@ export function entryMeta(entry: Entry, m: Messages, includeFormat = false): str
|
|
|
26
27
|
return parts.join(" · ");
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
/** Shared row / card accessibility label: name, status, token estimate, plugin format. */
|
|
31
|
+
export function entryLabel(entry: Entry, m: Messages): string {
|
|
32
|
+
const atRest = entry.tokens?.atRest ? formatTokenCount(entry.tokens.atRest) : null;
|
|
33
|
+
const onInvoke = entry.tokens?.onInvoke ? formatTokenCount(entry.tokens.onInvoke) : null;
|
|
34
|
+
return `${entry.name}, ${m.statuses[entry.status]}${atRest ? `, ${m.tokens(atRest)}` : ""}${onInvoke ? `, ${m.tokensOnInvoke(onInvoke)}` : ""}${entry.agentPlugin ? `, ${m.agentPluginLabel(entry.agentPlugin.version, entry.agentPlugin.validation)}` : ""}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
export const EntryRow = memo(function EntryRow({
|
|
30
38
|
entry,
|
|
31
39
|
selected,
|
|
@@ -40,11 +48,13 @@ export const EntryRow = memo(function EntryRow({
|
|
|
40
48
|
m: Messages;
|
|
41
49
|
}): ReactNode {
|
|
42
50
|
const muted = entry.status === "inactive" || entry.status === "disabled";
|
|
51
|
+
const atRest = entry.tokens?.atRest ? formatTokenCount(entry.tokens.atRest) : null;
|
|
52
|
+
const onInvoke = entry.tokens?.onInvoke ? formatTokenCount(entry.tokens.onInvoke) : null;
|
|
43
53
|
return (
|
|
44
54
|
<Pressable
|
|
45
55
|
accessibilityRole="button"
|
|
46
56
|
accessibilityState={{ selected }}
|
|
47
|
-
accessibilityLabel={
|
|
57
|
+
accessibilityLabel={entryLabel(entry, m)}
|
|
48
58
|
onPress={() => onSelect(entry)}
|
|
49
59
|
style={({ hovered, pressed }: { hovered?: boolean; pressed: boolean }) => ({
|
|
50
60
|
flexDirection: "row",
|
|
@@ -57,8 +67,8 @@ export const EntryRow = memo(function EntryRow({
|
|
|
57
67
|
backgroundColor: selected ? colors.surface2 : hovered || pressed ? colors.surface1 : "transparent",
|
|
58
68
|
})}
|
|
59
69
|
>
|
|
60
|
-
<View style={{ paddingTop:
|
|
61
|
-
<Icon name={CATEGORY_ICONS[entry.category]} size={ICON_SIZE.
|
|
70
|
+
<View style={{ paddingTop: 2, opacity: muted ? 0.5 : 1 }}>
|
|
71
|
+
<Icon name={CATEGORY_ICONS[entry.category]} size={ICON_SIZE.inline} color={colors.foregroundMuted} />
|
|
62
72
|
</View>
|
|
63
73
|
<View style={{ flex: 1, minWidth: 0, gap: 3 }}>
|
|
64
74
|
<View style={{ flexDirection: "row", alignItems: "center", gap: 8 }}>
|
|
@@ -69,6 +79,8 @@ export const EntryRow = memo(function EntryRow({
|
|
|
69
79
|
{entry.name}
|
|
70
80
|
</Text>
|
|
71
81
|
<StatusBadge status={entry.status} label={m.statuses[entry.status]} colors={colors} />
|
|
82
|
+
{atRest ? <TokenBadge label={m.tokens(atRest)} hint={m.tokensHint(atRest)} colors={colors} /> : null}
|
|
83
|
+
{onInvoke ? <TokenBadge label={m.tokensOnInvoke(onInvoke)} hint={m.tokensOnInvokeHint(onInvoke)} colors={colors} /> : null}
|
|
72
84
|
{entry.agentPlugin ? (
|
|
73
85
|
<View style={{ borderRadius: RADIUS.control, borderWidth: 1, borderColor: entry.agentPlugin.validation === "valid" ? colors.accent : colors.statusWarning, paddingHorizontal: 6, paddingVertical: 2, flexShrink: 0 }}>
|
|
74
86
|
<Text style={{ ...TEXT.pillBadge, color: entry.agentPlugin.validation === "valid" ? colors.accent : colors.statusWarning }} numberOfLines={1}>{m.agentPluginLabel(entry.agentPlugin.version, entry.agentPlugin.validation)}</Text>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { test } from "node:test";
|
|
3
|
+
import { cardWidth, gridColumns, GRID } from "./grid.ts";
|
|
4
|
+
|
|
5
|
+
test("gridColumns: 1 column narrow, up to maxColumns wide", () => {
|
|
6
|
+
assert.equal(gridColumns(0), 1);
|
|
7
|
+
assert.equal(gridColumns(491), 1); // 2 columns need 2 * 240 + 12 = 492
|
|
8
|
+
assert.equal(gridColumns(492), 2);
|
|
9
|
+
assert.equal(gridColumns(743), 2); // 3 columns need 3 * 240 + 2 * 12 = 744
|
|
10
|
+
assert.equal(gridColumns(744), 3);
|
|
11
|
+
assert.equal(gridColumns(1_600), GRID.maxColumns);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test("cardWidth: splits the row minus gaps; undefined before measurement", () => {
|
|
15
|
+
assert.equal(cardWidth(0, 1), undefined);
|
|
16
|
+
assert.equal(cardWidth(492, 2), GRID.minCardWidth);
|
|
17
|
+
assert.equal(cardWidth(744, 3), GRID.minCardWidth);
|
|
18
|
+
assert.equal(cardWidth(1_000, 3), (1_000 - GRID.gap * 2) / 3);
|
|
19
|
+
});
|
package/client/grid.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card-view grid metrics (re-exported by `design-tokens.ts`).
|
|
3
|
+
* Kept in this React Native-free module so Node tests can import the grid math.
|
|
4
|
+
*/
|
|
5
|
+
export const GRID = { minCardWidth: 240, maxColumns: 3, gap: 12, labelGap: 6 } as const;
|
|
6
|
+
|
|
7
|
+
/** Card columns for the measured content width; 0 means not measured yet. */
|
|
8
|
+
export function gridColumns(availableWidth: number): number {
|
|
9
|
+
if (!(availableWidth > 0)) return 1;
|
|
10
|
+
const columns = Math.floor((availableWidth + GRID.gap) / (GRID.minCardWidth + GRID.gap));
|
|
11
|
+
return Math.max(1, Math.min(GRID.maxColumns, columns));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Card width for a column count; undefined until the content width is measured. */
|
|
15
|
+
export function cardWidth(availableWidth: number, columns: number): number | undefined {
|
|
16
|
+
if (!(availableWidth > 0) || columns < 1) return undefined;
|
|
17
|
+
return (availableWidth - GRID.gap * (columns - 1)) / columns;
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon } from "@getpaseo/plugin/client/
|
|
1
|
+
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
2
2
|
import { useState, type ReactNode } from "react";
|
|
3
3
|
import { Platform, Pressable, ScrollView, Text, View } from "react-native";
|
|
4
4
|
import type { Mechanism } from "../shared/mechanisms.ts";
|
package/client/preview-pane.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { openExternalUrl, useRpc } from "@getpaseo/plugin/client";
|
|
2
|
-
import { ScrollView, copyText, useToast } from "@getpaseo/plugin/client/
|
|
2
|
+
import { ScrollView, copyText, useToast } from "@getpaseo/plugin/client/ui";
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
4
|
import type { ReactNode } from "react";
|
|
5
5
|
import { Text, View } from "react-native";
|
|
6
6
|
import { openRpc, previewRpc, type Entry } from "../shared/contracts.ts";
|
|
7
|
-
import { formatBytes, type Messages } from "../shared/i18n.ts";
|
|
8
|
-
import { RADIUS, TEXT } from "./design-tokens.ts";
|
|
7
|
+
import { formatBytes, formatTokenCount, type Messages } from "../shared/i18n.ts";
|
|
8
|
+
import { ICON_SIZE, RADIUS, TEXT } from "./design-tokens.ts";
|
|
9
9
|
import { entryMeta } from "./entry-row.tsx";
|
|
10
|
-
import { ErrorState, IconButton, LoadingState, StatusBadge, TextButton, type Colors } from "./ui.tsx";
|
|
10
|
+
import { ErrorState, IconButton, LoadingState, StatusBadge, TextButton, TokenBadge, type Colors } from "./ui.tsx";
|
|
11
11
|
|
|
12
12
|
export function PreviewPane({
|
|
13
13
|
entry,
|
|
@@ -51,6 +51,12 @@ export function PreviewPane({
|
|
|
51
51
|
{entry.name}
|
|
52
52
|
</Text>
|
|
53
53
|
<StatusBadge status={entry.status} label={m.statuses[entry.status]} colors={colors} />
|
|
54
|
+
{entry.tokens?.atRest ? (
|
|
55
|
+
<TokenBadge label={m.tokens(formatTokenCount(entry.tokens.atRest))} hint={m.tokensHint(formatTokenCount(entry.tokens.atRest))} colors={colors} />
|
|
56
|
+
) : null}
|
|
57
|
+
{entry.tokens?.onInvoke ? (
|
|
58
|
+
<TokenBadge label={m.tokensOnInvoke(formatTokenCount(entry.tokens.onInvoke))} hint={m.tokensOnInvokeHint(formatTokenCount(entry.tokens.onInvoke))} colors={colors} />
|
|
59
|
+
) : null}
|
|
54
60
|
<View style={{ flex: 1 }} />
|
|
55
61
|
<TextButton icon="ExternalLink" label={m.preview.open} onPress={() => run(false)} colors={colors} />
|
|
56
62
|
{!compact && !isUrl ? <TextButton icon="FolderOpen" label={m.preview.reveal} onPress={() => run(true)} colors={colors} /> : null}
|
|
@@ -58,6 +64,7 @@ export function PreviewPane({
|
|
|
58
64
|
icon="Copy"
|
|
59
65
|
label={m.preview.copyPath}
|
|
60
66
|
color={colors.foregroundMuted}
|
|
67
|
+
size={ICON_SIZE.inline}
|
|
61
68
|
onPress={() => {
|
|
62
69
|
copyText(entry.path).then(() => toast.show(m.preview.copied), () => {});
|
|
63
70
|
}}
|
|
@@ -12,10 +12,10 @@ test("only enabled providers with Customize scanners appear, including unavailab
|
|
|
12
12
|
], "Built-in");
|
|
13
13
|
|
|
14
14
|
assert.deepEqual(options, [
|
|
15
|
-
{ id: "codex", label: "My Codex", badge: "Built-in" },
|
|
16
|
-
{ id: "
|
|
17
|
-
{ id: "
|
|
18
|
-
{ id: "gemini", label: "Gemini CLI", badge: "ACP" },
|
|
15
|
+
{ id: "codex", label: "My Codex", badge: "Built-in", group: "builtin" },
|
|
16
|
+
{ id: "pi", label: "Pi", badge: "Built-in", group: "builtin" },
|
|
17
|
+
{ id: "cursor", label: "Cursor", badge: "ACP", group: "acp" },
|
|
18
|
+
{ id: "gemini", label: "Gemini CLI", badge: "ACP", group: "acp" },
|
|
19
19
|
]);
|
|
20
20
|
assert.equal(selectedProvider("claude", options), "codex");
|
|
21
21
|
assert.equal(selectedProvider("cursor", options), "cursor");
|
|
@@ -27,5 +27,16 @@ test("snapshot duplicates and older source omissions keep one option", () => {
|
|
|
27
27
|
{ provider: "cursor", enabled: true },
|
|
28
28
|
{ provider: "cursor", enabled: true, source: "custom" },
|
|
29
29
|
], "内置");
|
|
30
|
-
assert.deepEqual(options, [{ id: "cursor", label: "Cursor", badge: "ACP" }]);
|
|
30
|
+
assert.deepEqual(options, [{ id: "cursor", label: "Cursor", badge: "ACP", group: "acp" }]);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test("each group sorts by display name, built-ins before ACP", () => {
|
|
34
|
+
const options = enabledProviderOptions([
|
|
35
|
+
{ provider: "pi", enabled: true, source: "builtin", label: "zeta" },
|
|
36
|
+
{ provider: "codex", enabled: true, source: "builtin", label: "Alpha" },
|
|
37
|
+
{ provider: "gemini", enabled: true, source: "custom", label: "beta" },
|
|
38
|
+
{ provider: "cursor", enabled: true, source: "custom", label: "Gamma" },
|
|
39
|
+
], "Built-in");
|
|
40
|
+
assert.deepEqual(options.map((option) => option.label), ["Alpha", "zeta", "beta", "Gamma"]);
|
|
41
|
+
assert.deepEqual(options.map((option) => option.group), ["builtin", "builtin", "acp", "acp"]);
|
|
31
42
|
});
|
|
@@ -7,29 +7,40 @@ export interface ProviderSnapshotOptionEntry {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export type ProviderMenuGroup = "builtin" | "acp";
|
|
11
|
+
|
|
10
12
|
export interface ProviderMenuOption {
|
|
11
13
|
id: ProviderId;
|
|
12
14
|
label: string;
|
|
13
15
|
badge: string;
|
|
16
|
+
group: ProviderMenuGroup;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
const BUILTIN_IDS = new Set<ProviderId>(["claude", "codex", "copilot", "opencode", "pi", "omp"]);
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
const GROUP_ORDER: Record<ProviderMenuGroup, number> = { builtin: 0, acp: 1 };
|
|
22
|
+
|
|
23
|
+
/** Only providers with a Customize scanner can be offered; built-ins come first, each group by name. */
|
|
19
24
|
export function enabledProviderOptions(
|
|
20
25
|
entries: readonly ProviderSnapshotOptionEntry[],
|
|
21
26
|
builtinLabel: string,
|
|
22
27
|
): ProviderMenuOption[] {
|
|
23
28
|
const byId = new Map(entries.map((entry) => [entry.provider, entry]));
|
|
24
|
-
|
|
29
|
+
const options = PROVIDER_IDS.flatMap<ProviderMenuOption>((id) => {
|
|
25
30
|
const entry = byId.get(id);
|
|
26
31
|
if (!entry?.enabled) return [];
|
|
32
|
+
const acp = entry.source === "custom" || (entry.source == null && !BUILTIN_IDS.has(id));
|
|
27
33
|
return [{
|
|
28
34
|
id,
|
|
29
35
|
label: entry.label || PROVIDER_LABELS[id],
|
|
30
|
-
badge:
|
|
36
|
+
badge: acp ? "ACP" : builtinLabel,
|
|
37
|
+
group: acp ? "acp" : "builtin",
|
|
31
38
|
}];
|
|
32
39
|
});
|
|
40
|
+
return options.sort((a, b) =>
|
|
41
|
+
GROUP_ORDER[a.group] - GROUP_ORDER[b.group]
|
|
42
|
+
|| a.label.localeCompare(b.label, undefined, { sensitivity: "base" }),
|
|
43
|
+
);
|
|
33
44
|
}
|
|
34
45
|
|
|
35
46
|
export function selectedProvider(saved: ProviderId, options: readonly ProviderMenuOption[]): ProviderId | null {
|
|
@@ -3,14 +3,17 @@ import { test } from "node:test";
|
|
|
3
3
|
import { selectionSettings } from "../shared/selection-settings.ts";
|
|
4
4
|
|
|
5
5
|
test("board selection defaults only before a project is chosen", () => {
|
|
6
|
-
assert.deepEqual(selectionSettings.schema.parse({}), { provider: "claude", projectRoot: null });
|
|
6
|
+
assert.deepEqual(selectionSettings.schema.parse({}), { provider: "claude", projectRoot: null, layout: "list" });
|
|
7
7
|
assert.deepEqual(selectionSettings.schema.parse({ provider: "codex", projectRoot: "" }), {
|
|
8
8
|
provider: "codex",
|
|
9
9
|
projectRoot: "",
|
|
10
|
+
layout: "list",
|
|
10
11
|
});
|
|
11
|
-
assert.deepEqual(selectionSettings.schema.parse({ provider: "pi", projectRoot: "/project" }), {
|
|
12
|
+
assert.deepEqual(selectionSettings.schema.parse({ provider: "pi", projectRoot: "/project", layout: "card" }), {
|
|
12
13
|
provider: "pi",
|
|
13
14
|
projectRoot: "/project",
|
|
15
|
+
layout: "card",
|
|
14
16
|
});
|
|
15
17
|
assert.equal(selectionSettings.schema.safeParse({ provider: "unknown" }).success, false);
|
|
18
|
+
assert.equal(selectionSettings.schema.safeParse({ layout: "grid" }).success, false);
|
|
16
19
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PluginSidebarItemProps } from "@getpaseo/plugin/client";
|
|
2
|
+
import { SidebarRow } from "@getpaseo/plugin/client/ui";
|
|
3
|
+
import { CUSTOMIZE_SCREEN_ID } from "./screen-id.ts";
|
|
4
|
+
|
|
5
|
+
/** Sidebar header row that opens the Customize screen. */
|
|
6
|
+
export function CustomizeSidebarItem({ currentScreen, openScreen }: PluginSidebarItemProps) {
|
|
7
|
+
return (
|
|
8
|
+
<SidebarRow
|
|
9
|
+
icon="FolderCog"
|
|
10
|
+
active={currentScreen?.screenId === CUSTOMIZE_SCREEN_ID}
|
|
11
|
+
onPress={() => openScreen({ screenId: CUSTOMIZE_SCREEN_ID })}
|
|
12
|
+
/>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -9,7 +9,7 @@ function commandContext(provider: string, projectRootPath: string, rpc: (name: s
|
|
|
9
9
|
agent: { provider },
|
|
10
10
|
workspace: { projectRootPath },
|
|
11
11
|
rpc: (contract: { name: string }, input: unknown) => rpc(contract.name, input),
|
|
12
|
-
|
|
12
|
+
openScreen: (input: { screenId: string }) => opened.push(input.screenId),
|
|
13
13
|
} as unknown as PluginAgentCommandContext;
|
|
14
14
|
return { context, opened };
|
|
15
15
|
}
|
|
@@ -27,16 +27,16 @@ test("/customize selects the current agent provider and workspace project", asyn
|
|
|
27
27
|
|
|
28
28
|
assert.deepEqual(calls, [
|
|
29
29
|
{ name: "settings.board-selection.read", input: {} },
|
|
30
|
-
{ name: "settings.board-selection.write", input: { revision: "one", values: { provider: "codex", projectRoot: "/repo" } } },
|
|
30
|
+
{ name: "settings.board-selection.write", input: { revision: "one", values: { provider: "codex", projectRoot: "/repo", layout: "list" } } },
|
|
31
31
|
]);
|
|
32
32
|
assert.deepEqual(opened, ["customize"]);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
test("/customize updates each available selection and keeps the unavailable one", async () => {
|
|
36
36
|
const cases = [
|
|
37
|
-
{ provider: "", project: "/repo", expected: { provider: "claude", projectRoot: "/repo" } },
|
|
38
|
-
{ provider: "codex", project: "", expected: { provider: "codex", projectRoot: "/old" } },
|
|
39
|
-
{ provider: "unknown", project: "/repo", expected: { provider: "claude", projectRoot: "/repo" } },
|
|
37
|
+
{ provider: "", project: "/repo", expected: { provider: "claude", projectRoot: "/repo", layout: "list" } },
|
|
38
|
+
{ provider: "codex", project: "", expected: { provider: "codex", projectRoot: "/old", layout: "list" } },
|
|
39
|
+
{ provider: "unknown", project: "/repo", expected: { provider: "claude", projectRoot: "/repo", layout: "list" } },
|
|
40
40
|
];
|
|
41
41
|
for (const { provider, project, expected } of cases) {
|
|
42
42
|
const calls: Array<{ name: string; input: unknown }> = [];
|
|
@@ -79,12 +79,29 @@ test("/customize retries a conflicting selection with the latest revision", asyn
|
|
|
79
79
|
|
|
80
80
|
assert.equal(reads, 2);
|
|
81
81
|
assert.deepEqual(writes, [
|
|
82
|
-
{ revision: "revision-1", values: { provider: "pi", projectRoot: "/repo" } },
|
|
83
|
-
{ revision: "revision-2", values: { provider: "pi", projectRoot: "/repo" } },
|
|
82
|
+
{ revision: "revision-1", values: { provider: "pi", projectRoot: "/repo", layout: "list" } },
|
|
83
|
+
{ revision: "revision-2", values: { provider: "pi", projectRoot: "/repo", layout: "list" } },
|
|
84
84
|
]);
|
|
85
85
|
assert.deepEqual(opened, ["customize"]);
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
+
test("/customize keeps the stored view layout", async () => {
|
|
89
|
+
const writes: unknown[] = [];
|
|
90
|
+
const { context } = commandContext("codex", "/repo", async (name, input) => {
|
|
91
|
+
if (name.endsWith(".read")) {
|
|
92
|
+
return { status: "ready", revision: "one", values: { provider: "claude", projectRoot: "/old", layout: "card" } };
|
|
93
|
+
}
|
|
94
|
+
writes.push(input);
|
|
95
|
+
return { status: "saved", revision: "two", values: {} };
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
await openCustomizeFromAgent(context);
|
|
99
|
+
|
|
100
|
+
assert.deepEqual(writes, [
|
|
101
|
+
{ revision: "one", values: { provider: "codex", projectRoot: "/repo", layout: "card" } },
|
|
102
|
+
]);
|
|
103
|
+
});
|
|
104
|
+
|
|
88
105
|
test("/customize opens the board when settings cannot be read", async () => {
|
|
89
106
|
const { context, opened } = commandContext("codex", "/repo", async () => {
|
|
90
107
|
throw new Error("offline");
|