tr-plugin-embeddings 0.1.0 → 0.2.5
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/DESIGN.md +110 -0
- package/README.md +20 -2
- package/cli.mjs +403 -173
- package/package.json +14 -5
- package/plugin.json +51 -10
- package/skills/embeddings/SKILL.md +25 -0
- package/ui/chunks/benchmark.md +49 -0
- package/ui/chunks/coverage.md +53 -0
- package/ui/chunks/models.md +43 -0
- package/ui/chunks/pull.md +41 -0
- package/ui/chunks/status.md +59 -0
- package/ui/home.js +353 -0
- package/ui/card.js +0 -414
package/DESIGN.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Embeddings
|
|
3
|
+
description: Local embedding provider, model roster and vault vector coverage for a Total Recall brain.
|
|
4
|
+
colors:
|
|
5
|
+
primary: "#06b6d4"
|
|
6
|
+
primary-hover: "#22d3ee"
|
|
7
|
+
background: "#07171d"
|
|
8
|
+
surface: "#0e2a35"
|
|
9
|
+
line: "#164e63"
|
|
10
|
+
text: "#ecfeff"
|
|
11
|
+
muted: "#67e8f9"
|
|
12
|
+
on-primary: "#07171d"
|
|
13
|
+
ok: "#10b981"
|
|
14
|
+
warn: "#f59e0b"
|
|
15
|
+
danger: "#ef4444"
|
|
16
|
+
typography:
|
|
17
|
+
body:
|
|
18
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
|
|
19
|
+
fontSize: 13px
|
|
20
|
+
fontWeight: 400
|
|
21
|
+
label:
|
|
22
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
|
|
23
|
+
fontSize: 11px
|
|
24
|
+
fontWeight: 700
|
|
25
|
+
mono:
|
|
26
|
+
fontFamily: "'JetBrains Mono', 'Fira Code', monospace"
|
|
27
|
+
fontSize: 12px
|
|
28
|
+
fontWeight: 600
|
|
29
|
+
figure:
|
|
30
|
+
fontFamily: "'JetBrains Mono', 'Fira Code', monospace"
|
|
31
|
+
fontSize: 28px
|
|
32
|
+
fontWeight: 800
|
|
33
|
+
rounded:
|
|
34
|
+
sm: 4px
|
|
35
|
+
md: 6px
|
|
36
|
+
lg: 8px
|
|
37
|
+
spacing:
|
|
38
|
+
xs: 4px
|
|
39
|
+
sm: 8px
|
|
40
|
+
md: 12px
|
|
41
|
+
lg: 16px
|
|
42
|
+
components:
|
|
43
|
+
section:
|
|
44
|
+
backgroundColor: "{colors.surface}"
|
|
45
|
+
textColor: "{colors.text}"
|
|
46
|
+
rounded: "{rounded.md}"
|
|
47
|
+
padding: "{spacing.md}"
|
|
48
|
+
locality-chip:
|
|
49
|
+
textColor: "{colors.ok}"
|
|
50
|
+
typography: "{typography.label}"
|
|
51
|
+
rounded: "{rounded.md}"
|
|
52
|
+
padding: "{spacing.xs}"
|
|
53
|
+
coverage-figure:
|
|
54
|
+
textColor: "{colors.text}"
|
|
55
|
+
typography: "{typography.figure}"
|
|
56
|
+
count-row:
|
|
57
|
+
textColor: "{colors.muted}"
|
|
58
|
+
typography: "{typography.mono}"
|
|
59
|
+
model-row:
|
|
60
|
+
backgroundColor: "{colors.background}"
|
|
61
|
+
textColor: "{colors.text}"
|
|
62
|
+
typography: "{typography.mono}"
|
|
63
|
+
rounded: "{rounded.sm}"
|
|
64
|
+
padding: "{spacing.sm}"
|
|
65
|
+
button-primary:
|
|
66
|
+
backgroundColor: "{colors.primary}"
|
|
67
|
+
textColor: "{colors.on-primary}"
|
|
68
|
+
typography: "{typography.label}"
|
|
69
|
+
rounded: "{rounded.sm}"
|
|
70
|
+
padding: "{spacing.sm}"
|
|
71
|
+
button-primary-hover:
|
|
72
|
+
backgroundColor: "{colors.primary-hover}"
|
|
73
|
+
notice:
|
|
74
|
+
backgroundColor: "{colors.background}"
|
|
75
|
+
textColor: "{colors.muted}"
|
|
76
|
+
rounded: "{rounded.sm}"
|
|
77
|
+
padding: "{spacing.sm}"
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# Embeddings
|
|
81
|
+
|
|
82
|
+
## Overview
|
|
83
|
+
|
|
84
|
+
An operator console for the vectors behind Total Recall search. It answers four questions, in this order: which provider serves vectors and whether text stays on this machine, how much of the vault has a usable vector, which models the endpoint offers, and how fast the selected model embeds. Every figure comes from the plugin's own JSON operations. Anything not reported renders as a dash, never as a guess.
|
|
85
|
+
|
|
86
|
+
## Colors
|
|
87
|
+
|
|
88
|
+
Deep teal surfaces with a cyan primary. Locality and health use the state colors: `ok` for local and current, `warn` for remote, unknown or partial, and `danger` for unreachable or failed. Text uses `text` on `surface`, with `muted` for labels and secondary counts.
|
|
89
|
+
|
|
90
|
+
## Typography
|
|
91
|
+
|
|
92
|
+
Sans-serif for prose and labels. Monospace for anything an operator might copy: endpoints, model names, counts and timings. A single large monospace `figure` carries the usable-coverage percentage.
|
|
93
|
+
|
|
94
|
+
## Components
|
|
95
|
+
|
|
96
|
+
- `section`: a bordered surface panel per question (provider, coverage, models, benchmark, pull).
|
|
97
|
+
- `locality-chip`: the local, remote, unknown or disabled verdict, colored by state.
|
|
98
|
+
- `coverage-figure`: the usable-vector percentage.
|
|
99
|
+
- `count-row`: one labelled count (usable, stale, wrong width, missing, orphaned).
|
|
100
|
+
- `model-row`: one model with its width, capability and selection.
|
|
101
|
+
- `button-primary`: an operator-triggered action. Touch targets are at least 44px.
|
|
102
|
+
- `notice`: unavailable, failed or explanatory text.
|
|
103
|
+
|
|
104
|
+
## Do's and Don'ts
|
|
105
|
+
|
|
106
|
+
- Do show a non-`ok` index state by name. Don't render it as 0%.
|
|
107
|
+
- Do keep provider state separate from credentials. Hosted fallback keys belong to the Auth owner and are never displayed.
|
|
108
|
+
- Don't claim "on-device" unless `locality` is `local`.
|
|
109
|
+
- Don't run benchmark or pull on load.
|
|
110
|
+
- Respect `prefers-reduced-motion`.
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Embeddings
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Quick start and local verification](docs/QUICKSTART.md)
|
|
4
|
+
|
|
5
|
+
Inspect a configured embedding endpoint, manage a local model installation, and report index coverage.
|
|
4
6
|
|
|
5
7
|
## Sharing
|
|
6
8
|
|
|
@@ -15,6 +17,22 @@ Peers install it with `npx total-recall plugin install peer:<this-node>/embeddin
|
|
|
15
17
|
## Features
|
|
16
18
|
|
|
17
19
|
- **Identifier**: `embeddings`
|
|
18
|
-
- **Version**:
|
|
20
|
+
- **Version**: see `plugin.json`
|
|
19
21
|
- **Use cases**: operations, ai
|
|
20
22
|
- **CLI Command**: `npx total-recall embeddings`
|
|
23
|
+
|
|
24
|
+
Coverage classifies the existing index by current content and vector width. Total Recall owns index rebuilds. Status reports remote inference when the configured endpoint is remote or a loopback service advertises an upstream model. The benchmark sends fixed sample text only to a local model. Pull targets the first configured loopback endpoint and reports an unreachable target without trying another. [Current audit](docs/projects/in-progress/EMBEDDINGS_CARD/EMBEDDINGS_CARD_AUDIT.md#backend-and-cli-reassessment-2026-11-05)
|
|
25
|
+
|
|
26
|
+
## Using this from an agent
|
|
27
|
+
|
|
28
|
+
Send work here to check embedding models and how much of a vault is indexed, or to pull and benchmark a local model.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
total-recall embeddings status
|
|
32
|
+
total-recall embeddings models
|
|
33
|
+
total-recall embeddings coverage
|
|
34
|
+
total-recall embeddings pull <configured-model>
|
|
35
|
+
total-recall embeddings benchmark
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This plugin owns no raw commands.
|