@koinzhang/paseo-plugin-customize 0.1.0 → 0.2.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 +13 -0
- package/README.md +1 -0
- package/client/category-visibility.test.ts +7 -1
- package/client/entries.test.ts +20 -1
- package/client/entries.ts +29 -2
- package/client/surface.tsx +61 -39
- package/client/ui.tsx +65 -0
- package/package.json +1 -1
- package/paseo-plugin.json +1 -0
- package/shared/i18n.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.2.0] - 2026-09-28
|
|
9
|
+
|
|
10
|
+
Requires Paseo **>= 0.9.0**.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Skills list can switch between all skills, automatic skills (auto and conditional), and manual-only skills.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Switching providers keeps the current category when the next provider supports it; otherwise it selects that provider’s first available category. Switching projects also keeps the current category.
|
|
19
|
+
|
|
8
20
|
## [0.1.0] - 2026-09-25
|
|
9
21
|
|
|
10
22
|
Requires Paseo **>= 0.9.0**.
|
|
@@ -21,4 +33,5 @@ Requires Paseo **>= 0.9.0**.
|
|
|
21
33
|
- Private, persistent scan snapshots with a last-scan tooltip, background refresh after 10 minutes, and retry after failures.
|
|
22
34
|
- Skill aliases that resolve to the same file appear once, while distinct files with the same name remain separate.
|
|
23
35
|
|
|
36
|
+
[0.2.0]: https://github.com/koinzhang/paseo-plugins/releases/tag/customize-v0.2.0
|
|
24
37
|
[0.1.0]: https://www.npmjs.com/package/@koinzhang/paseo-plugin-customize/v/0.1.0
|
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ Requires Paseo >= 0.9.0.
|
|
|
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
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
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.
|
|
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.
|
|
13
14
|
- 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.
|
|
14
15
|
- 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.
|
|
15
16
|
- For OpenCode 1.18, every discovered and permitted skill is advertised automatically, even if its frontmatter contains another agent's `disable-model-invocation` setting. The skill body loads only when the agent calls the `skill` tool; `permission.skill: deny` still hides a skill.
|
|
@@ -19,7 +19,13 @@ test("keeps confirmed capabilities visible when their local scan is incomplete",
|
|
|
19
19
|
assert.equal(visibleCategories("opencode").includes("plugins"), true);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
test("
|
|
22
|
+
test("keeps the current category when the next provider still offers it", () => {
|
|
23
|
+
assert.equal(resolveCategory("codex", "skills"), "skills");
|
|
24
|
+
assert.equal(resolveCategory("cursor", "mcp"), "mcp");
|
|
25
|
+
assert.equal(resolveCategory("opencode", "rules"), "rules");
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test("selects the first visible category when the next provider lacks it", () => {
|
|
23
29
|
assert.equal(resolveCategory("pi", "mcp"), "instructions");
|
|
24
30
|
assert.equal(resolveCategory("kiro", "commands"), "instructions");
|
|
25
31
|
assert.equal(resolveCategory("cursor", "commands"), "commands");
|
package/client/entries.test.ts
CHANGED
|
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
|
|
|
2
2
|
import { test } from "node:test";
|
|
3
3
|
import type { Entry } from "../shared/contracts.ts";
|
|
4
4
|
import { messagesFor, resolveAppLanguage } from "../shared/i18n.ts";
|
|
5
|
-
import { countByCategory, groupEntries, projectLabel } from "./entries.ts";
|
|
5
|
+
import { countByCategory, countSkillInvocation, groupEntries, matchesSkillInvocation, projectLabel } from "./entries.ts";
|
|
6
6
|
|
|
7
7
|
const entry = (over: Partial<Entry>): Entry => ({
|
|
8
8
|
id: over.name ?? "x",
|
|
@@ -31,6 +31,25 @@ test("groupEntries: project before user, sources grouped, query filters", () =>
|
|
|
31
31
|
assert.deepEqual(countByCategory(entries), { instructions: 0, rules: 1, skills: 3, mcp: 0, commands: 0, subagents: 0, plugins: 0 });
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
+
test("skill invocation: auto includes conditional, manual is exact, other statuses stay in all", () => {
|
|
35
|
+
const entries = [
|
|
36
|
+
entry({ name: "auto" }),
|
|
37
|
+
entry({ name: "conditional", status: "conditional" }),
|
|
38
|
+
entry({ name: "manual", status: "manual" }),
|
|
39
|
+
entry({ name: "disabled", status: "disabled" }),
|
|
40
|
+
entry({ name: "rule", category: "rules", status: "manual" }),
|
|
41
|
+
];
|
|
42
|
+
assert.equal(matchesSkillInvocation(entries[0]!, "auto"), true);
|
|
43
|
+
assert.equal(matchesSkillInvocation(entries[1]!, "auto"), true);
|
|
44
|
+
assert.equal(matchesSkillInvocation(entries[2]!, "auto"), false);
|
|
45
|
+
assert.equal(matchesSkillInvocation(entries[3]!, "auto"), false);
|
|
46
|
+
assert.equal(matchesSkillInvocation(entries[2]!, "manual"), true);
|
|
47
|
+
assert.deepEqual(countSkillInvocation(entries), { all: 4, auto: 2, manual: 1 });
|
|
48
|
+
assert.deepEqual(groupEntries(entries, "skills", "", "auto").map((group) => group.count), [2, 0]);
|
|
49
|
+
assert.deepEqual(groupEntries(entries, "skills", "manual", "manual")[0]?.sources[0]?.entries.map((item) => item.name), ["manual"]);
|
|
50
|
+
assert.equal(groupEntries(entries, "rules", "", "auto")[0]?.count, 1);
|
|
51
|
+
});
|
|
52
|
+
|
|
34
53
|
test("projectLabel / resolveAppLanguage", () => {
|
|
35
54
|
assert.equal(projectLabel("/Users/me/repo/"), "repo");
|
|
36
55
|
assert.equal(resolveAppLanguage("zh-CN"), "zh-CN");
|
package/client/entries.ts
CHANGED
|
@@ -13,6 +13,27 @@ export interface ScopeGroup {
|
|
|
13
13
|
|
|
14
14
|
const SCOPE_ORDER: readonly Scope[] = ["project", "user"];
|
|
15
15
|
|
|
16
|
+
export const SKILL_INVOCATION_FILTERS = ["all", "auto", "manual"] as const;
|
|
17
|
+
export type SkillInvocationFilter = (typeof SKILL_INVOCATION_FILTERS)[number];
|
|
18
|
+
|
|
19
|
+
/** Auto includes conditional discovery. Manual is explicit invocation only. */
|
|
20
|
+
export function matchesSkillInvocation(entry: Entry, filter: SkillInvocationFilter): boolean {
|
|
21
|
+
if (filter === "all") return true;
|
|
22
|
+
if (filter === "manual") return entry.status === "manual";
|
|
23
|
+
return entry.status === "auto" || entry.status === "conditional";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function countSkillInvocation(entries: readonly Entry[]): Record<SkillInvocationFilter, number> {
|
|
27
|
+
const counts: Record<SkillInvocationFilter, number> = { all: 0, auto: 0, manual: 0 };
|
|
28
|
+
for (const entry of entries) {
|
|
29
|
+
if (entry.category !== "skills") continue;
|
|
30
|
+
counts.all++;
|
|
31
|
+
if (matchesSkillInvocation(entry, "auto")) counts.auto++;
|
|
32
|
+
else if (matchesSkillInvocation(entry, "manual")) counts.manual++;
|
|
33
|
+
}
|
|
34
|
+
return counts;
|
|
35
|
+
}
|
|
36
|
+
|
|
16
37
|
export function countByCategory(entries: readonly Entry[]): Record<Category, number> {
|
|
17
38
|
const out = Object.fromEntries(CATEGORIES.map((category) => [category, 0])) as Record<Category, number>;
|
|
18
39
|
for (const entry of entries) out[entry.category]++;
|
|
@@ -25,12 +46,18 @@ export function matchesQuery(entry: Entry, query: string): boolean {
|
|
|
25
46
|
return [entry.name, entry.dir, entry.source, entry.description ?? ""].some((field) => field.toLowerCase().includes(needle));
|
|
26
47
|
}
|
|
27
48
|
|
|
28
|
-
/** Project first, then user; within a scope, sources keep discovery order. */
|
|
29
|
-
export function groupEntries(
|
|
49
|
+
/** Project first, then user; within a scope, sources keep discovery order. Skill invocation applies only to skills. */
|
|
50
|
+
export function groupEntries(
|
|
51
|
+
entries: readonly Entry[],
|
|
52
|
+
category: Category,
|
|
53
|
+
query: string,
|
|
54
|
+
skillFilter: SkillInvocationFilter = "all",
|
|
55
|
+
): ScopeGroup[] {
|
|
30
56
|
return SCOPE_ORDER.map((scope) => {
|
|
31
57
|
const sources = new Map<string, Entry[]>();
|
|
32
58
|
for (const entry of entries) {
|
|
33
59
|
if (entry.category !== category || entry.scope !== scope || !matchesQuery(entry, query)) continue;
|
|
60
|
+
if (category === "skills" && !matchesSkillInvocation(entry, skillFilter)) continue;
|
|
34
61
|
const list = sources.get(entry.source) ?? [];
|
|
35
62
|
list.push(entry);
|
|
36
63
|
sources.set(entry.source, list);
|
package/client/surface.tsx
CHANGED
|
@@ -7,27 +7,23 @@ import { resolveCategory, visibleCategories } from "../shared/category-visibilit
|
|
|
7
7
|
import { cachedScanRpc, scanRpc, type Category, type Entry } from "../shared/contracts.ts";
|
|
8
8
|
import { messagesFor } from "../shared/i18n.ts";
|
|
9
9
|
import { MECHANISMS, mechanismFor } from "../shared/mechanisms.ts";
|
|
10
|
-
import {
|
|
10
|
+
import { type ProviderId } from "../shared/providers.ts";
|
|
11
11
|
import { selectionSettings } from "../shared/selection-settings.ts";
|
|
12
12
|
import { CONTROL, ICON_SIZE, PREVIEW_FRACTION, RADIUS, TEXT, pageLayout, titleGap } from "./design-tokens.ts";
|
|
13
13
|
import { Dropdown, type DropdownOption } from "./dropdown.tsx";
|
|
14
|
-
import { countByCategory, groupEntries, projectLabel } from "./entries.ts";
|
|
14
|
+
import { countByCategory, countSkillInvocation, groupEntries, matchesSkillInvocation, projectLabel, SKILL_INVOCATION_FILTERS, type SkillInvocationFilter } from "./entries.ts";
|
|
15
15
|
import { EntryRow } from "./entry-row.tsx";
|
|
16
16
|
import { MechanismCard } from "./mechanism-card.tsx";
|
|
17
17
|
import { PreviewPane } from "./preview-pane.tsx";
|
|
18
18
|
import { enabledProviderOptions, selectedProvider } from "./provider-options.ts";
|
|
19
19
|
import { newestScan, REVISIT_QUERY_POLICY, SCAN_QUERY_POLICY, shouldScanSnapshot } from "./query-policy.ts";
|
|
20
|
-
import { CategoryTabs, ErrorState, IconButton, InlineEmpty, LoadingState, SectionHeader } from "./ui.tsx";
|
|
20
|
+
import { CategoryTabs, ErrorState, IconButton, InlineEmpty, LoadingState, SectionHeader, SegmentedControl } from "./ui.tsx";
|
|
21
21
|
import { useAppLanguage } from "./use-app-language.ts";
|
|
22
22
|
import { readLastWorkspaceId } from "./web.ts";
|
|
23
23
|
|
|
24
24
|
const NO_PROJECT = "";
|
|
25
25
|
const WORKSPACE_PAGE_LIMIT = 200;
|
|
26
26
|
|
|
27
|
-
const lastCategory: Record<ProviderId, Category> = Object.fromEntries(
|
|
28
|
-
PROVIDER_IDS.map((id) => [id, "instructions"]),
|
|
29
|
-
) as Record<ProviderId, Category>;
|
|
30
|
-
|
|
31
27
|
/** Sidebar surface; an unselected project defaults to the last workspace. */
|
|
32
28
|
export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNode {
|
|
33
29
|
const colors = theme.colors;
|
|
@@ -78,6 +74,7 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
78
74
|
const [category, setCategoryState] = useState<Category>("instructions");
|
|
79
75
|
const activeCategory = resolveCategory(provider, category);
|
|
80
76
|
const [query, setQuery] = useState("");
|
|
77
|
+
const [skillFilter, setSkillFilter] = useState<SkillInvocationFilter>("all");
|
|
81
78
|
const [selected, setSelected] = useState<Entry | null>(null);
|
|
82
79
|
|
|
83
80
|
const setProvider = (id: string) => {
|
|
@@ -86,15 +83,12 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
86
83
|
setSelected(null);
|
|
87
84
|
};
|
|
88
85
|
const setCategory = (next: Category) => {
|
|
89
|
-
lastCategory[provider] = next;
|
|
90
86
|
setCategoryState(next);
|
|
91
87
|
setSelected(null);
|
|
92
88
|
};
|
|
93
89
|
|
|
94
90
|
useEffect(() => {
|
|
95
|
-
|
|
96
|
-
lastCategory[provider] = restored;
|
|
97
|
-
setCategoryState(restored);
|
|
91
|
+
setCategoryState((current) => resolveCategory(provider, current));
|
|
98
92
|
setSelected(null);
|
|
99
93
|
setQuery("");
|
|
100
94
|
}, [provider]);
|
|
@@ -134,7 +128,11 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
134
128
|
const displayed = newestScan(saved.data?.snapshot, result.data);
|
|
135
129
|
const entries = displayed?.entries ?? [];
|
|
136
130
|
const counts = useMemo(() => countByCategory(entries), [entries]);
|
|
137
|
-
const
|
|
131
|
+
const skillCounts = useMemo(() => countSkillInvocation(entries), [entries]);
|
|
132
|
+
const groups = useMemo(
|
|
133
|
+
() => groupEntries(entries, activeCategory, query, skillFilter),
|
|
134
|
+
[entries, activeCategory, query, skillFilter],
|
|
135
|
+
);
|
|
138
136
|
const mechanism = mechanismFor(provider, activeCategory, displayed?.compatibility);
|
|
139
137
|
const compatibility = displayed?.compatibility;
|
|
140
138
|
const compatibilityState = compatibility?.source === "builtIn" ? "supported"
|
|
@@ -146,6 +144,11 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
146
144
|
if (fresh !== selected) setSelected(fresh ?? null);
|
|
147
145
|
}, [displayed, selected]);
|
|
148
146
|
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
if (!selected || selected.category !== "skills" || matchesSkillInvocation(selected, skillFilter)) return;
|
|
149
|
+
setSelected(null);
|
|
150
|
+
}, [selected, skillFilter]);
|
|
151
|
+
|
|
149
152
|
const onSelect = useCallback((entry: Entry) => {
|
|
150
153
|
setSelected((prev) => (prev?.id === entry.id ? null : entry));
|
|
151
154
|
}, []);
|
|
@@ -156,7 +159,13 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
156
159
|
count: displayed ? counts[id] : undefined,
|
|
157
160
|
muted: !MECHANISMS[provider][id].supported,
|
|
158
161
|
}));
|
|
159
|
-
const
|
|
162
|
+
const queryActive = query.trim().length > 0;
|
|
163
|
+
const listNarrowed = queryActive || (activeCategory === "skills" && skillFilter !== "all");
|
|
164
|
+
const skillFilterOptions = SKILL_INVOCATION_FILTERS.map((id) => ({
|
|
165
|
+
id,
|
|
166
|
+
label: m.skillFilters[id],
|
|
167
|
+
count: displayed ? skillCounts[id] : undefined,
|
|
168
|
+
}));
|
|
160
169
|
|
|
161
170
|
if (settings.status === "loading") return <LoadingState color={colors.foregroundMuted} />;
|
|
162
171
|
if (settings.status !== "ready") {
|
|
@@ -243,31 +252,44 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
243
252
|
</View>
|
|
244
253
|
|
|
245
254
|
{mechanism.supported ? (
|
|
246
|
-
<View
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
255
|
+
<View style={{ flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 8 }}>
|
|
256
|
+
<View
|
|
257
|
+
style={{
|
|
258
|
+
flexGrow: 1,
|
|
259
|
+
flexBasis: 180,
|
|
260
|
+
flexDirection: "row",
|
|
261
|
+
alignItems: "center",
|
|
262
|
+
gap: 6,
|
|
263
|
+
height: CONTROL.searchHeight,
|
|
264
|
+
paddingHorizontal: 10,
|
|
265
|
+
borderRadius: RADIUS.control,
|
|
266
|
+
borderWidth: 1,
|
|
267
|
+
borderColor: colors.border,
|
|
268
|
+
backgroundColor: colors.surface1,
|
|
269
|
+
}}
|
|
270
|
+
>
|
|
271
|
+
<Icon name="Search" size={ICON_SIZE.inline} color={colors.foregroundMuted} />
|
|
272
|
+
<TextInput
|
|
273
|
+
value={query}
|
|
274
|
+
onChangeText={setQuery}
|
|
275
|
+
placeholder={m.search}
|
|
276
|
+
placeholderTextColor={colors.foregroundMuted}
|
|
277
|
+
accessibilityLabel={m.search}
|
|
278
|
+
autoCorrect={false}
|
|
279
|
+
autoCapitalize="none"
|
|
280
|
+
style={{ flex: 1, ...TEXT.small, color: colors.foreground, paddingVertical: 0 }}
|
|
281
|
+
/>
|
|
282
|
+
{queryActive ? <IconButton icon="X" label={m.preview.close} color={colors.foregroundMuted} size={ICON_SIZE.inline} onPress={() => setQuery("")} /> : null}
|
|
283
|
+
</View>
|
|
284
|
+
{activeCategory === "skills" ? (
|
|
285
|
+
<SegmentedControl
|
|
286
|
+
label={m.skillInvocation}
|
|
287
|
+
options={skillFilterOptions}
|
|
288
|
+
value={skillFilter}
|
|
289
|
+
onChange={setSkillFilter}
|
|
290
|
+
colors={colors}
|
|
291
|
+
/>
|
|
292
|
+
) : null}
|
|
271
293
|
</View>
|
|
272
294
|
) : null}
|
|
273
295
|
|
|
@@ -286,7 +308,7 @@ export function CustomizeSurface({ theme, layout }: PluginSurfaceProps): ReactNo
|
|
|
286
308
|
/>
|
|
287
309
|
{group.count === 0 ? (
|
|
288
310
|
<InlineEmpty
|
|
289
|
-
text={
|
|
311
|
+
text={listNarrowed ? m.noMatches : group.scope === "project" && !projectRoot ? m.noProject : m.emptyScope(m.scopes[group.scope])}
|
|
290
312
|
color={colors.foregroundMuted}
|
|
291
313
|
/>
|
|
292
314
|
) : (
|
package/client/ui.tsx
CHANGED
|
@@ -225,6 +225,71 @@ export function CategoryTabs<T extends string>({
|
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
/** Compact list-mode switch. Height matches the search field. */
|
|
229
|
+
export function SegmentedControl<T extends string>({
|
|
230
|
+
options,
|
|
231
|
+
value,
|
|
232
|
+
onChange,
|
|
233
|
+
colors,
|
|
234
|
+
label,
|
|
235
|
+
}: {
|
|
236
|
+
options: ReadonlyArray<{ id: T; label: string; count?: number }>;
|
|
237
|
+
value: T;
|
|
238
|
+
onChange: (id: T) => void;
|
|
239
|
+
colors: Pick<Colors, "foreground" | "foregroundMuted" | "border" | "surface1" | "surface2">;
|
|
240
|
+
label: string;
|
|
241
|
+
}): ReactNode {
|
|
242
|
+
return (
|
|
243
|
+
<View
|
|
244
|
+
accessibilityRole="tablist"
|
|
245
|
+
accessibilityLabel={label}
|
|
246
|
+
style={{
|
|
247
|
+
flexDirection: "row",
|
|
248
|
+
alignItems: "stretch",
|
|
249
|
+
height: CONTROL.searchHeight,
|
|
250
|
+
borderRadius: RADIUS.control,
|
|
251
|
+
borderWidth: 1,
|
|
252
|
+
borderColor: colors.border,
|
|
253
|
+
backgroundColor: colors.surface1,
|
|
254
|
+
overflow: "hidden",
|
|
255
|
+
flexShrink: 0,
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
258
|
+
{options.map((option, index) => {
|
|
259
|
+
const active = option.id === value;
|
|
260
|
+
return (
|
|
261
|
+
<Pressable
|
|
262
|
+
key={option.id}
|
|
263
|
+
accessibilityRole="tab"
|
|
264
|
+
accessibilityState={{ selected: active }}
|
|
265
|
+
onPress={() => onChange(option.id)}
|
|
266
|
+
style={{
|
|
267
|
+
flexDirection: "row",
|
|
268
|
+
alignItems: "center",
|
|
269
|
+
gap: 6,
|
|
270
|
+
paddingHorizontal: 10,
|
|
271
|
+
borderLeftWidth: index === 0 ? 0 : 1,
|
|
272
|
+
borderLeftColor: colors.border,
|
|
273
|
+
backgroundColor: active ? colors.surface2 : "transparent",
|
|
274
|
+
}}
|
|
275
|
+
>
|
|
276
|
+
<Text
|
|
277
|
+
style={{
|
|
278
|
+
...TEXT.small,
|
|
279
|
+
fontWeight: active ? FONT_WEIGHT.semibold : FONT_WEIGHT.medium,
|
|
280
|
+
color: active ? colors.foreground : colors.foregroundMuted,
|
|
281
|
+
}}
|
|
282
|
+
>
|
|
283
|
+
{option.label}
|
|
284
|
+
</Text>
|
|
285
|
+
{option.count != null ? <Text style={{ ...TEXT.count, color: colors.foregroundMuted }}>{option.count}</Text> : null}
|
|
286
|
+
</Pressable>
|
|
287
|
+
);
|
|
288
|
+
})}
|
|
289
|
+
</View>
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
228
293
|
export function statusColor(status: Status, colors: Colors): string {
|
|
229
294
|
switch (status) {
|
|
230
295
|
case "auto":
|
package/package.json
CHANGED
package/paseo-plugin.json
CHANGED
package/shared/i18n.ts
CHANGED
|
@@ -37,6 +37,8 @@ export interface Messages {
|
|
|
37
37
|
refresh: string;
|
|
38
38
|
lastScanned: (date: string) => string;
|
|
39
39
|
search: string;
|
|
40
|
+
skillInvocation: string;
|
|
41
|
+
skillFilters: Record<"all" | "auto" | "manual", string>;
|
|
40
42
|
categories: Record<Category, string>;
|
|
41
43
|
scopes: Record<Scope | "managed", string>;
|
|
42
44
|
statuses: Record<Status, string>;
|
|
@@ -83,6 +85,8 @@ const en: Messages = {
|
|
|
83
85
|
refresh: "Rescan",
|
|
84
86
|
lastScanned: (date) => `Last scanned: ${date}`,
|
|
85
87
|
search: "Filter by name or path",
|
|
88
|
+
skillInvocation: "Skill invocation",
|
|
89
|
+
skillFilters: { all: "All", auto: "Auto", manual: "Manual" },
|
|
86
90
|
categories: { instructions: "Instructions", rules: "Rules", skills: "Skills", mcp: "MCP", commands: "Commands", subagents: "Subagents", plugins: "Plugins" },
|
|
87
91
|
scopes: { project: "Project", user: "User", managed: "Managed" },
|
|
88
92
|
statuses: {
|
|
@@ -190,6 +194,8 @@ const zh: Messages = {
|
|
|
190
194
|
refresh: "重新扫描",
|
|
191
195
|
lastScanned: (date) => `上次扫描:${date}`,
|
|
192
196
|
search: "按名称或路径筛选",
|
|
197
|
+
skillInvocation: "技能调用方式",
|
|
198
|
+
skillFilters: { all: "全部", auto: "自动", manual: "仅手动" },
|
|
193
199
|
categories: { instructions: "指令", rules: "规则", skills: "Skills", mcp: "MCP", commands: "命令", subagents: "子代理", plugins: "插件" },
|
|
194
200
|
scopes: { project: "项目级", user: "用户级", managed: "托管" },
|
|
195
201
|
statuses: {
|