MCPcopy Create free account
hub / github.com/dyoshikawa/rulesync / asOpencodeEntries

Function asOpencodeEntries

src/features/opencode-config.ts:64–69  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

62 * value is not a usable object.
63 */
64export function asOpencodeEntries(value: unknown): Record<string, unknown> | null {
65 if (value === null || typeof value !== "object" || Array.isArray(value)) {
66 return null;
67 }
68 return value as Record<string, unknown>;
69}
70
71/** Matches a string whose entire value is an OpenCode `{file:...}` reference. */
72const OPENCODE_FILE_TEMPLATE_PATTERN = /^\s*\{file:(.+?)\}\s*$/;

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…