MCPcopy Index your code
hub / github.com/anomalyco/opencode / touch

Function touch

packages/opencode/src/plugin/meta.ts:161–167  ·  view source on GitHub ↗
(spec: string, target: string, id: string)

Source from the content-addressed store, hash-verified

159}
160
161export async function touch(spec: string, target: string, id: string): Promise<{ state: State; entry: Entry }> {
162 return touchMany([{ spec, target, id }]).then((item) => {
163 const hit = item[0]
164 if (hit) return hit
165 throw new Error("Failed to touch plugin metadata.")
166 })
167}
168
169export async function setTheme(id: string, name: string, theme: Theme): Promise<void> {
170 const file = storePath()

Callers

nothing calls this directly

Calls 1

touchManyFunction · 0.85

Tested by

no test coverage detected