mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Reuse now hands the semantic judgment to the coding agent instead of a string heuristic, while keeping the deterministic normalize-exact match as an automatic dedup floor. No LLM/embedding call enters resolve; it stays offline-capable. - lib/match.mjs: shared matchTokens + typesMatch (extracted from adopt.mjs and resolve.mjs so the icon<->image equivalence and token rules can't drift between the do-path and the look-path); adds tokenOverlap ranker. - resolve --candidates: side-effect-free listing of reusable assets across the project manifest AND the global ~/.media cache, ranked by lexical overlap, capped per scope, --json or human table. Never hard-filters on zero overlap (that would pre-empt the agent's judgment); the agent decides. - resolve --reuse <sha>: import a specific global-cache asset by content sha/prefix (from --candidates) into the project via importFromCache, marked source=reused-explicit / provenance.reused_by=agent. - Adherence nudge: on a resolve that misses the exact floor and is about to fetch, print a one-line stderr hint when similar cached assets exist, pointing at --candidates. Offline, stderr (safe under --json), never auto-reuses a fuzzy match. - cache.mjs: export readGlobalManifest; add findGlobalBySha (prefix resolve with ambiguity/miss handling). - Telemetry: media_use_candidates event + reused-explicit source on media_use_resolve (type/scope/counts only, no intent text or paths). - SKILL.md: 'Reuse before you resolve' guidance + trust guardrail (prefer-fresh-when-unsure, entity-exact for brand, cross-project bleed). - Tests: lib/candidates.test.mjs (ranking, no-hard-filter, cap/truncation, icon<->image, sha resolution, formatter); adopt.mjs refactor covered by existing lib/adopt.test.mjs. Full media-use suite green; verified e2e against the live catalog (cross-project resolve->candidates->reuse; hint fires on miss).
86 lines
1.7 KiB
JSON
86 lines
1.7 KiB
JSON
{
|
|
"source": "heygen-com/hyperframes",
|
|
"skills": {
|
|
"embedded-captions": {
|
|
"hash": "d870992d206c9ddc",
|
|
"files": 144
|
|
},
|
|
"faceless-explainer": {
|
|
"hash": "80882d8135b2aeac",
|
|
"files": 18
|
|
},
|
|
"figma": {
|
|
"hash": "26676992c1aed316",
|
|
"files": 1
|
|
},
|
|
"general-video": {
|
|
"hash": "6cb3fbdf9b860ba6",
|
|
"files": 1
|
|
},
|
|
"hyperframes": {
|
|
"hash": "4e0795ead8c8bfa3",
|
|
"files": 1
|
|
},
|
|
"hyperframes-animation": {
|
|
"hash": "0d0bd375f292a04a",
|
|
"files": 116
|
|
},
|
|
"hyperframes-cli": {
|
|
"hash": "493e59cafaab3d10",
|
|
"files": 7
|
|
},
|
|
"hyperframes-core": {
|
|
"hash": "788462fc5c3b9ee1",
|
|
"files": 13
|
|
},
|
|
"hyperframes-creative": {
|
|
"hash": "18a14a79da6cbc06",
|
|
"files": 68
|
|
},
|
|
"hyperframes-keyframes": {
|
|
"hash": "555c0cd491c40cea",
|
|
"files": 3
|
|
},
|
|
"hyperframes-registry": {
|
|
"hash": "e3b389526834109d",
|
|
"files": 10
|
|
},
|
|
"media-use": {
|
|
"hash": "d28c7979e727a6a9",
|
|
"files": 101
|
|
},
|
|
"motion-graphics": {
|
|
"hash": "f5a432862116b39a",
|
|
"files": 23
|
|
},
|
|
"music-to-video": {
|
|
"hash": "42aba6b650599962",
|
|
"files": 132
|
|
},
|
|
"pr-to-video": {
|
|
"hash": "71dce61cff0233f2",
|
|
"files": 22
|
|
},
|
|
"product-launch-video": {
|
|
"hash": "ac4e1e4aa671fe27",
|
|
"files": 20
|
|
},
|
|
"remotion-to-hyperframes": {
|
|
"hash": "6d4b352ecd46c8fb",
|
|
"files": 70
|
|
},
|
|
"slideshow": {
|
|
"hash": "764746e9199213b6",
|
|
"files": 2
|
|
},
|
|
"talking-head-recut": {
|
|
"hash": "fbb95a4c6062c41a",
|
|
"files": 27
|
|
},
|
|
"website-to-video": {
|
|
"hash": "d81ede8e9cabd09b",
|
|
"files": 32
|
|
}
|
|
}
|
|
}
|