@sriinnu/fiche 0.0.0-stage → 0.19.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 +134 -0
- package/LICENSE +22 -0
- package/NOTICE +13 -0
- package/PRIVACY.md +41 -0
- package/README.md +288 -2
- package/SECURITY.md +53 -0
- package/assets/JETBRAINS_MONO_LICENSE.txt +89 -0
- package/assets/SPLEEN_LICENSE.txt +24 -0
- package/assets/UNIFONT_LICENSE.txt +476 -0
- package/assets/fiche-logo-dark.svg +61 -0
- package/assets/fiche-logo-light.svg +61 -0
- package/assets/fiche-logo.svg +71 -0
- package/assets/fiche-mark.svg +48 -0
- package/bin/cli.js +7 -0
- package/bin/mcp.js +8 -0
- package/dist/calibrate.d.ts +30 -0
- package/dist/calibrate.js +588 -0
- package/dist/core/anthropic-vision.d.ts +28 -0
- package/dist/core/anthropic-vision.js +34 -0
- package/dist/core/applicability.d.ts +63 -0
- package/dist/core/applicability.js +151 -0
- package/dist/core/atlas-gray-jbmono10.d.ts +26 -0
- package/dist/core/atlas-gray-jbmono10.js +64 -0
- package/dist/core/atlas-gray-jbmono12.d.ts +26 -0
- package/dist/core/atlas-gray-jbmono12.js +64 -0
- package/dist/core/atlas-gray-jbmono14.d.ts +26 -0
- package/dist/core/atlas-gray-jbmono14.js +64 -0
- package/dist/core/atlas-gray.d.ts +26 -0
- package/dist/core/atlas-gray.js +64 -0
- package/dist/core/atlas-jbmono10.d.ts +34 -0
- package/dist/core/atlas-jbmono10.js +71 -0
- package/dist/core/atlas-jbmono12.d.ts +34 -0
- package/dist/core/atlas-jbmono12.js +71 -0
- package/dist/core/atlas-jbmono14.d.ts +34 -0
- package/dist/core/atlas-jbmono14.js +71 -0
- package/dist/core/atlas.d.ts +34 -0
- package/dist/core/atlas.js +71 -0
- package/dist/core/baseline.d.ts +121 -0
- package/dist/core/baseline.js +200 -0
- package/dist/core/calibration.d.ts +86 -0
- package/dist/core/calibration.js +547 -0
- package/dist/core/casi-delta.d.ts +63 -0
- package/dist/core/casi-delta.js +1271 -0
- package/dist/core/claude-model-profiles.d.ts +53 -0
- package/dist/core/claude-model-profiles.js +160 -0
- package/dist/core/client-tool-round.d.ts +31 -0
- package/dist/core/client-tool-round.js +58 -0
- package/dist/core/codex-cache.d.ts +20 -0
- package/dist/core/codex-cache.js +59 -0
- package/dist/core/context-mmu.d.ts +350 -0
- package/dist/core/context-mmu.js +3028 -0
- package/dist/core/cpt-fit.d.ts +70 -0
- package/dist/core/cpt-fit.js +197 -0
- package/dist/core/env.d.ts +8 -0
- package/dist/core/env.js +15 -0
- package/dist/core/export.d.ts +127 -0
- package/dist/core/export.js +385 -0
- package/dist/core/factsheet.d.ts +77 -0
- package/dist/core/factsheet.js +494 -0
- package/dist/core/gemini-model-profiles.d.ts +20 -0
- package/dist/core/gemini-model-profiles.js +134 -0
- package/dist/core/google.d.ts +76 -0
- package/dist/core/google.js +1380 -0
- package/dist/core/gpt-model-profiles.d.ts +218 -0
- package/dist/core/gpt-model-profiles.js +570 -0
- package/dist/core/gpt-tokens.d.ts +14 -0
- package/dist/core/gpt-tokens.js +165 -0
- package/dist/core/history.d.ts +197 -0
- package/dist/core/history.js +1003 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.js +16 -0
- package/dist/core/library.d.ts +80 -0
- package/dist/core/library.js +131 -0
- package/dist/core/measurement.d.ts +34 -0
- package/dist/core/measurement.js +280 -0
- package/dist/core/messages-chat-bridge.d.ts +23 -0
- package/dist/core/messages-chat-bridge.js +747 -0
- package/dist/core/messages-responses-bridge.d.ts +11 -0
- package/dist/core/messages-responses-bridge.js +893 -0
- package/dist/core/openai-history.d.ts +184 -0
- package/dist/core/openai-history.js +1279 -0
- package/dist/core/openai-savings.d.ts +57 -0
- package/dist/core/openai-savings.js +116 -0
- package/dist/core/openai.d.ts +68 -0
- package/dist/core/openai.js +2523 -0
- package/dist/core/pin.d.ts +199 -0
- package/dist/core/pin.js +1353 -0
- package/dist/core/png.d.ts +14 -0
- package/dist/core/png.js +188 -0
- package/dist/core/prefix-tape.d.ts +102 -0
- package/dist/core/prefix-tape.js +315 -0
- package/dist/core/price-id.d.ts +10 -0
- package/dist/core/price-id.js +26 -0
- package/dist/core/prices.generated.d.ts +36 -0
- package/dist/core/prices.generated.js +369 -0
- package/dist/core/pricing.d.ts +134 -0
- package/dist/core/pricing.js +335 -0
- package/dist/core/profile-base.d.ts +30 -0
- package/dist/core/profile-base.js +67 -0
- package/dist/core/provider-router.d.ts +51 -0
- package/dist/core/provider-router.js +121 -0
- package/dist/core/proxy.d.ts +252 -0
- package/dist/core/proxy.js +2929 -0
- package/dist/core/reader-tier.d.ts +24 -0
- package/dist/core/reader-tier.js +118 -0
- package/dist/core/render.d.ts +280 -0
- package/dist/core/render.js +1302 -0
- package/dist/core/request-guard.d.ts +31 -0
- package/dist/core/request-guard.js +126 -0
- package/dist/core/request-transform.d.ts +43 -0
- package/dist/core/request-transform.js +173 -0
- package/dist/core/schema-compiler.d.ts +64 -0
- package/dist/core/schema-compiler.js +1696 -0
- package/dist/core/schema-strip.d.ts +29 -0
- package/dist/core/schema-strip.js +173 -0
- package/dist/core/session-state.d.ts +219 -0
- package/dist/core/session-state.js +929 -0
- package/dist/core/stage-plugins.d.ts +45 -0
- package/dist/core/stage-plugins.js +205 -0
- package/dist/core/text-history.d.ts +74 -0
- package/dist/core/text-history.js +612 -0
- package/dist/core/text-hygiene.d.ts +160 -0
- package/dist/core/text-hygiene.js +2259 -0
- package/dist/core/toon.d.ts +29 -0
- package/dist/core/toon.js +425 -0
- package/dist/core/tracker.d.ts +223 -0
- package/dist/core/tracker.js +290 -0
- package/dist/core/transform.d.ts +589 -0
- package/dist/core/transform.js +3153 -0
- package/dist/core/types.d.ts +87 -0
- package/dist/core/types.js +8 -0
- package/dist/core/upstream-hosts.d.ts +127 -0
- package/dist/core/upstream-hosts.js +398 -0
- package/dist/core/vision-cost.d.ts +63 -0
- package/dist/core/vision-cost.js +137 -0
- package/dist/dashboard/fragments.d.ts +87 -0
- package/dist/dashboard/fragments.js +1515 -0
- package/dist/dashboard/types.d.ts +217 -0
- package/dist/dashboard/types.js +3 -0
- package/dist/dashboard/vendor.d.ts +3 -0
- package/dist/dashboard/vendor.js +6 -0
- package/dist/dashboard.d.ts +372 -0
- package/dist/dashboard.js +2731 -0
- package/dist/export-collect.d.ts +36 -0
- package/dist/export-collect.js +59 -0
- package/dist/file-tracker.d.ts +42 -0
- package/dist/file-tracker.js +234 -0
- package/dist/kosha-sync.d.ts +74 -0
- package/dist/kosha-sync.js +272 -0
- package/dist/launchd-socket.d.ts +22 -0
- package/dist/launchd-socket.js +210 -0
- package/dist/mcp/cli.d.ts +2 -0
- package/dist/mcp/cli.js +55 -0
- package/dist/mcp/server.d.ts +48 -0
- package/dist/mcp/server.js +987 -0
- package/dist/mmu-store.d.ts +31 -0
- package/dist/mmu-store.js +179 -0
- package/dist/node-fetch.d.ts +22 -0
- package/dist/node-fetch.js +489 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +244396 -0
- package/dist/request-decoding.d.ts +30 -0
- package/dist/request-decoding.js +85 -0
- package/dist/sessions.d.ts +179 -0
- package/dist/sessions.js +837 -0
- package/dist/stats.d.ts +114 -0
- package/dist/stats.js +439 -0
- package/dist/turn-report.d.ts +65 -0
- package/dist/turn-report.js +724 -0
- package/dist/warp/app-launch.d.ts +26 -0
- package/dist/warp/app-launch.js +155 -0
- package/dist/warp/ca.d.ts +74 -0
- package/dist/warp/ca.js +416 -0
- package/dist/warp/connect.d.ts +42 -0
- package/dist/warp/connect.js +686 -0
- package/dist/warp/der.d.ts +57 -0
- package/dist/warp/der.js +151 -0
- package/dist/warp/index.d.ts +79 -0
- package/dist/warp/index.js +650 -0
- package/dist/warp/resolve.d.ts +12 -0
- package/dist/warp/resolve.js +49 -0
- package/dist/warp/route.d.ts +71 -0
- package/dist/warp/route.js +134 -0
- package/dist/worker.d.ts +71 -0
- package/dist/worker.js +174 -0
- package/docs/SECURITY_MODEL.md +84 -0
- package/package.json +122 -4
- package/plugins/fiche-companion/README.md +42 -0
- package/plugins/fiche-companion/assets/logo.svg +48 -0
- package/plugins/fiche-companion/hooks.json +11 -0
- package/plugins/fiche-companion/mcp_config.json +8 -0
- package/plugins/fiche-companion/plugin.json +18 -0
- package/plugins/fiche-companion/scripts/claude-statusline.mjs +35 -0
- package/plugins/fiche-companion/scripts/post-invocation.mjs +122 -0
- package/plugins/fiche-companion/scripts/resolve-turn-report.mjs +132 -0
- package/plugins/fiche-companion/skills/fiche/SKILL.md +61 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 592 180" role="img" aria-label="fiche — Microfiche for coding agents">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="fa-top" x1="0" y1="0" x2="1" y2="0">
|
|
4
|
+
<stop offset="0%" stop-color="#FF4D5A"/>
|
|
5
|
+
<stop offset="52%" stop-color="#FF6B2B"/>
|
|
6
|
+
<stop offset="100%" stop-color="#FFB020"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
<linearGradient id="fa-mid" x1="0" y1="0" x2="1" y2="0">
|
|
9
|
+
<stop offset="0%" stop-color="#9333EA"/>
|
|
10
|
+
<stop offset="52%" stop-color="#C026D3"/>
|
|
11
|
+
<stop offset="100%" stop-color="#F43F8E"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<linearGradient id="fa-bot" x1="0" y1="0" x2="1" y2="0">
|
|
14
|
+
<stop offset="0%" stop-color="#06E3F5"/>
|
|
15
|
+
<stop offset="52%" stop-color="#0EA5E9"/>
|
|
16
|
+
<stop offset="100%" stop-color="#3B82F6"/>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<linearGradient id="fa-gem-top" x1="0" y1="0" x2="1" y2="1">
|
|
19
|
+
<stop offset="0%" stop-color="#FFD166"/>
|
|
20
|
+
<stop offset="100%" stop-color="#FF70A6"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<linearGradient id="fa-gem-bot" x1="0" y1="0" x2="1" y2="1">
|
|
23
|
+
<stop offset="0%" stop-color="#C084FC"/>
|
|
24
|
+
<stop offset="100%" stop-color="#9333EA"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
</defs>
|
|
27
|
+
|
|
28
|
+
<g transform="translate(10, -10) scale(0.78)">
|
|
29
|
+
<path d="M 14 74 H 62 C 88 74, 96 109, 127 109 V 119 C 90 119, 82 102, 62 102 H 14 Z" fill="url(#fa-top)"/>
|
|
30
|
+
<path d="M 14 114 H 62 C 88 114, 96 123, 127 123 V 133 C 96 133, 88 142, 62 142 H 14 Z" fill="url(#fa-mid)"/>
|
|
31
|
+
<path d="M 14 154 H 62 C 82 154, 90 137, 127 137 V 147 C 96 147, 88 182, 62 182 H 14 Z" fill="url(#fa-bot)"/>
|
|
32
|
+
|
|
33
|
+
<path d="M 129 104 V 79 H 227 V 177 H 129 V 152 H 114 V 192 H 242 V 64 H 114 V 104 Z" fill="#0F172A"/>
|
|
34
|
+
|
|
35
|
+
<polygon points="178,102 165,128 152,128" fill="#FF5447"/>
|
|
36
|
+
<polygon points="178,102 191,128 165,128" fill="url(#fa-gem-top)"/>
|
|
37
|
+
<polygon points="178,102 204,128 191,128" fill="#22D3EE"/>
|
|
38
|
+
<polygon points="152,128 165,128 178,154" fill="#F43F5E"/>
|
|
39
|
+
<polygon points="165,128 191,128 178,154" fill="url(#fa-gem-bot)"/>
|
|
40
|
+
<polygon points="191,128 204,128 178,154" fill="#3B82F6"/>
|
|
41
|
+
</g>
|
|
42
|
+
|
|
43
|
+
<text
|
|
44
|
+
x="228"
|
|
45
|
+
y="114"
|
|
46
|
+
font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"
|
|
47
|
+
font-size="104"
|
|
48
|
+
font-weight="800"
|
|
49
|
+
letter-spacing="-3.5"
|
|
50
|
+
fill="#0F172A"
|
|
51
|
+
>fiche</text>
|
|
52
|
+
<text
|
|
53
|
+
x="231"
|
|
54
|
+
y="144"
|
|
55
|
+
font-family="'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace"
|
|
56
|
+
font-size="15.5"
|
|
57
|
+
font-weight="600"
|
|
58
|
+
letter-spacing="2.4"
|
|
59
|
+
fill="#475569"
|
|
60
|
+
>MICROFICHE FOR CODING AGENTS</text>
|
|
61
|
+
</svg>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 592 180" role="img" aria-label="fiche — Microfiche for coding agents">
|
|
2
|
+
<defs>
|
|
3
|
+
<style>
|
|
4
|
+
.fiche-frame { fill: #0F172A; }
|
|
5
|
+
.fiche-wordmark { fill: #0F172A; }
|
|
6
|
+
.fiche-subtitle { fill: #475569; }
|
|
7
|
+
@media (prefers-color-scheme: dark) {
|
|
8
|
+
.fiche-frame { fill: #FFFFFF; }
|
|
9
|
+
.fiche-wordmark { fill: #F8FAFC; }
|
|
10
|
+
.fiche-subtitle { fill: #94A3B8; }
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
13
|
+
<linearGradient id="fa-top" x1="0" y1="0" x2="1" y2="0">
|
|
14
|
+
<stop offset="0%" stop-color="#FF4D5A"/>
|
|
15
|
+
<stop offset="52%" stop-color="#FF6B2B"/>
|
|
16
|
+
<stop offset="100%" stop-color="#FFB020"/>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<linearGradient id="fa-mid" x1="0" y1="0" x2="1" y2="0">
|
|
19
|
+
<stop offset="0%" stop-color="#9333EA"/>
|
|
20
|
+
<stop offset="52%" stop-color="#C026D3"/>
|
|
21
|
+
<stop offset="100%" stop-color="#F43F8E"/>
|
|
22
|
+
</linearGradient>
|
|
23
|
+
<linearGradient id="fa-bot" x1="0" y1="0" x2="1" y2="0">
|
|
24
|
+
<stop offset="0%" stop-color="#06E3F5"/>
|
|
25
|
+
<stop offset="52%" stop-color="#0EA5E9"/>
|
|
26
|
+
<stop offset="100%" stop-color="#3B82F6"/>
|
|
27
|
+
</linearGradient>
|
|
28
|
+
<linearGradient id="fa-gem-top" x1="0" y1="0" x2="1" y2="1">
|
|
29
|
+
<stop offset="0%" stop-color="#FFD166"/>
|
|
30
|
+
<stop offset="100%" stop-color="#FF70A6"/>
|
|
31
|
+
</linearGradient>
|
|
32
|
+
<linearGradient id="fa-gem-bot" x1="0" y1="0" x2="1" y2="1">
|
|
33
|
+
<stop offset="0%" stop-color="#C084FC"/>
|
|
34
|
+
<stop offset="100%" stop-color="#9333EA"/>
|
|
35
|
+
</linearGradient>
|
|
36
|
+
</defs>
|
|
37
|
+
|
|
38
|
+
<g transform="translate(10, -10) scale(0.78)">
|
|
39
|
+
<path d="M 14 74 H 62 C 88 74, 96 109, 127 109 V 119 C 90 119, 82 102, 62 102 H 14 Z" fill="url(#fa-top)"/>
|
|
40
|
+
<path d="M 14 114 H 62 C 88 114, 96 123, 127 123 V 133 C 96 133, 88 142, 62 142 H 14 Z" fill="url(#fa-mid)"/>
|
|
41
|
+
<path d="M 14 154 H 62 C 82 154, 90 137, 127 137 V 147 C 96 147, 88 182, 62 182 H 14 Z" fill="url(#fa-bot)"/>
|
|
42
|
+
|
|
43
|
+
<path class="fiche-frame" d="M 129 104 V 79 H 227 V 177 H 129 V 152 H 114 V 192 H 242 V 64 H 114 V 104 Z"/>
|
|
44
|
+
|
|
45
|
+
<polygon points="178,102 165,128 152,128" fill="#FF5447"/>
|
|
46
|
+
<polygon points="178,102 191,128 165,128" fill="url(#fa-gem-top)"/>
|
|
47
|
+
<polygon points="178,102 204,128 191,128" fill="#22D3EE"/>
|
|
48
|
+
<polygon points="152,128 165,128 178,154" fill="#F43F5E"/>
|
|
49
|
+
<polygon points="165,128 191,128 178,154" fill="url(#fa-gem-bot)"/>
|
|
50
|
+
<polygon points="191,128 204,128 178,154" fill="#3B82F6"/>
|
|
51
|
+
</g>
|
|
52
|
+
|
|
53
|
+
<text
|
|
54
|
+
class="fiche-wordmark"
|
|
55
|
+
x="228"
|
|
56
|
+
y="114"
|
|
57
|
+
font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"
|
|
58
|
+
font-size="104"
|
|
59
|
+
font-weight="800"
|
|
60
|
+
letter-spacing="-3.5"
|
|
61
|
+
>fiche</text>
|
|
62
|
+
<text
|
|
63
|
+
class="fiche-subtitle"
|
|
64
|
+
x="231"
|
|
65
|
+
y="144"
|
|
66
|
+
font-family="'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace"
|
|
67
|
+
font-size="15.5"
|
|
68
|
+
font-weight="600"
|
|
69
|
+
letter-spacing="2.4"
|
|
70
|
+
>MICROFICHE FOR CODING AGENTS</text>
|
|
71
|
+
</svg>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="fiche">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="fa-top" x1="0" y1="0" x2="1" y2="0">
|
|
4
|
+
<stop offset="0%" stop-color="#FF4D5A"/>
|
|
5
|
+
<stop offset="52%" stop-color="#FF6B2B"/>
|
|
6
|
+
<stop offset="100%" stop-color="#FFB020"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
<linearGradient id="fa-mid" x1="0" y1="0" x2="1" y2="0">
|
|
9
|
+
<stop offset="0%" stop-color="#9333EA"/>
|
|
10
|
+
<stop offset="52%" stop-color="#C026D3"/>
|
|
11
|
+
<stop offset="100%" stop-color="#F43F8E"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<linearGradient id="fa-bot" x1="0" y1="0" x2="1" y2="0">
|
|
14
|
+
<stop offset="0%" stop-color="#06E3F5"/>
|
|
15
|
+
<stop offset="52%" stop-color="#0EA5E9"/>
|
|
16
|
+
<stop offset="100%" stop-color="#3B82F6"/>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<linearGradient id="fa-gem-top" x1="0" y1="0" x2="1" y2="1">
|
|
19
|
+
<stop offset="0%" stop-color="#FFD166"/>
|
|
20
|
+
<stop offset="100%" stop-color="#FF70A6"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<linearGradient id="fa-gem-bot" x1="0" y1="0" x2="1" y2="1">
|
|
23
|
+
<stop offset="0%" stop-color="#C084FC"/>
|
|
24
|
+
<stop offset="100%" stop-color="#9333EA"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
</defs>
|
|
27
|
+
|
|
28
|
+
<!-- Dark obsidian squircle tile so the icon stays high-contrast on light & dark UIs -->
|
|
29
|
+
<rect x="8" y="8" width="240" height="240" rx="52" fill="#0B0D14" stroke="#1E293B" stroke-width="3"/>
|
|
30
|
+
|
|
31
|
+
<g transform="translate(22, 22) scale(0.828)">
|
|
32
|
+
<!-- Three luminous S-curve compression ribbons -->
|
|
33
|
+
<path d="M 14 74 H 62 C 88 74, 96 109, 127 109 V 119 C 90 119, 82 102, 62 102 H 14 Z" fill="url(#fa-top)"/>
|
|
34
|
+
<path d="M 14 114 H 62 C 88 114, 96 123, 127 123 V 133 C 96 133, 88 142, 62 142 H 14 Z" fill="url(#fa-mid)"/>
|
|
35
|
+
<path d="M 14 154 H 62 C 82 154, 90 137, 127 137 V 147 C 96 147, 88 182, 62 182 H 14 Z" fill="url(#fa-bot)"/>
|
|
36
|
+
|
|
37
|
+
<!-- Crisp square microfiche frame with open optical aperture slit -->
|
|
38
|
+
<path d="M 129 104 V 79 H 227 V 177 H 129 V 152 H 114 V 192 H 242 V 64 H 114 V 104 Z" fill="#FFFFFF"/>
|
|
39
|
+
|
|
40
|
+
<!-- 6-facet prismatic crystal core -->
|
|
41
|
+
<polygon points="178,102 165,128 152,128" fill="#FF5447"/>
|
|
42
|
+
<polygon points="178,102 191,128 165,128" fill="url(#fa-gem-top)"/>
|
|
43
|
+
<polygon points="178,102 204,128 191,128" fill="#22D3EE"/>
|
|
44
|
+
<polygon points="152,128 165,128 178,154" fill="#F43F5E"/>
|
|
45
|
+
<polygon points="165,128 191,128 178,154" fill="url(#fa-gem-bot)"/>
|
|
46
|
+
<polygon points="191,128 204,128 178,154" fill="#3B82F6"/>
|
|
47
|
+
</g>
|
|
48
|
+
</svg>
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Tiny shim: just runs the bundled Node entry. Real CLI logic lives in src/node.ts.
|
|
3
|
+
import('../dist/node.js').catch((err) => {
|
|
4
|
+
console.error('[fiche] failed to start:', err);
|
|
5
|
+
console.error('[fiche] did you forget to `npm run build`?');
|
|
6
|
+
process.exit(1);
|
|
7
|
+
});
|
package/bin/mcp.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// stdio MCP without the caller having to pass the `mcp` subcommand.
|
|
3
|
+
process.argv.splice(2, 0, 'mcp');
|
|
4
|
+
import('../dist/node.js').catch((err) => {
|
|
5
|
+
console.error('[fiche-mcp] failed to start:', err);
|
|
6
|
+
console.error('[fiche-mcp] did you forget to `pnpm build`?');
|
|
7
|
+
process.exit(1);
|
|
8
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI + atomic file persistence for `fiche calibrate`.
|
|
3
|
+
*
|
|
4
|
+
* Probes vision models across candidate microfiche rendering bands from densest
|
|
5
|
+
* (`spleen-5x8`) to largest (`jetbrains-mono-14`), records the densest passing
|
|
6
|
+
* band (or `text-only` fallback), and persists `~/.config/fiche/calibrated-models.json`
|
|
7
|
+
* atomically with mode `0600`.
|
|
8
|
+
*/
|
|
9
|
+
import { type CalibrationScores, type ImageCalibrationBand } from './core/calibration.js';
|
|
10
|
+
export type CalibrationProvider = 'auto' | 'google' | 'anthropic' | 'openai';
|
|
11
|
+
export type ResolvedCalibrationProvider = Exclude<CalibrationProvider, 'auto'>;
|
|
12
|
+
export interface CalibrateCliDeps {
|
|
13
|
+
readonly filePath?: string;
|
|
14
|
+
readonly fetchImpl?: typeof fetch;
|
|
15
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
16
|
+
readonly stdout?: (line: string) => void;
|
|
17
|
+
readonly stderr?: (line: string) => void;
|
|
18
|
+
readonly now?: () => Date;
|
|
19
|
+
}
|
|
20
|
+
export interface CalibrationAttemptReport {
|
|
21
|
+
readonly band: ImageCalibrationBand;
|
|
22
|
+
readonly cols: number;
|
|
23
|
+
readonly maxHeightPx: number;
|
|
24
|
+
readonly scores: CalibrationScores;
|
|
25
|
+
}
|
|
26
|
+
export declare function defaultCalibratedProfilesPath(env?: NodeJS.ProcessEnv): string;
|
|
27
|
+
export declare function loadCalibratedProfilesFile(filePath?: string): number;
|
|
28
|
+
export declare function saveCalibratedProfilesFile(filePath?: string): void;
|
|
29
|
+
export declare function runCalibrationCli(argv: string[], deps?: CalibrateCliDeps): Promise<number>;
|
|
30
|
+
//# sourceMappingURL=calibrate.d.ts.map
|