Repository navigation
Commit 2549f56
authored
feat(search): answer intents and repositories in the search box (#440)
* feat(registry): understand search intents and repository refs
The search box promises skills or repos, but a repo ref fell through to a
semantic search and called its own Skills loose matches, and a sentence was
searched word by word. A new internal /api/skills/search classifies the query
first: a URL or owner/repo answers with that Repository and its Skills, @login
with that owner, and a sentence passes through a small Workers AI model that
turns it into search terms and soft boosts before the existing hybrid search.
The model is cached per normalised query for a month, abandoned after 800ms,
skipped for names, refs and URLs, and gated by the guest rate limiter. The
frozen v1 skills.search answer is unchanged.
* feat(search): show run commands and repositories in the search box
Each Skill row now carries its run chip, and a Repository the registry holds
gets its own row, so the box answers both halves of its placeholder. The
panel becomes a grid because an option cannot contain a control: arrow
right moves to the run chip and Enter copies it.
The hero and header boxes share one composable for keys, selection and
navigation, so they stop disagreeing about what Enter does. The header
field widens while open, rows keep their names readable at phone width,
and the preview pane with its empty half is gone.
* fix(skills): name the meaning search without AI copy
COPY.md bans AI as a modifier on skilld. The search box now sends sentences
to this mode, so its label says what the mode does.1 parent 301a27f commit 2549f56
24 files changed
Lines changed: 2205 additions & 639 deletions
File tree
- app
- components
- composables
- utils
- layers
- marketing/app/pages/skills
- registry/server
- api/skills
- presenters
- schemas
- utils
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
107 | 26 | | |
108 | 27 | | |
109 | 28 | | |
| |||
124 | 43 | | |
125 | 44 | | |
126 | 45 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 46 | | |
132 | 47 | | |
133 | 48 | | |
| |||
150 | 65 | | |
151 | 66 | | |
152 | 67 | | |
| 68 | + | |
153 | 69 | | |
154 | | - | |
| 70 | + | |
155 | 71 | | |
156 | 72 | | |
157 | 73 | | |
| |||
164 | 80 | | |
165 | 81 | | |
166 | 82 | | |
| 83 | + | |
| 84 | + | |
167 | 85 | | |
168 | 86 | | |
169 | 87 | | |
| |||
185 | 103 | | |
186 | 104 | | |
187 | 105 | | |
188 | | - | |
| 106 | + | |
189 | 107 | | |
190 | 108 | | |
191 | 109 | | |
| |||
0 commit comments