tr-plugin-embeddings 0.0.0-stage → 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 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Plugin authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,38 @@
1
- # Temporary Holding Version
1
+ # Embeddings
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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.
6
+
7
+ ## Sharing
8
+
9
+ Offer it to your other Total Recall nodes over the mesh:
10
+
11
+ ```bash
12
+ npx total-recall plugin share embeddings
13
+ ```
14
+
15
+ Peers install it with `npx total-recall plugin install peer:<this-node>/embeddings`.
16
+
17
+ ## Features
18
+
19
+ - **Identifier**: `embeddings`
20
+ - **Version**: see `plugin.json`
21
+ - **Use cases**: operations, ai
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.