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

Function hints

packages/opencode/src/command/index.ts:36–44  ·  view source on GitHub ↗
(template: string)

Source from the content-addressed store, hash-verified

34export type Info = Omit<Schema.Schema.Type<typeof Info>, "template"> & { template: Promise<string> | string }
35
36export function hints(template: string) {
37 const result: string[] = []
38 const numbered = template.match(/\$\d+/g)
39 if (numbered) {
40 for (const match of [...new Set(numbered)].sort()) result.push(match)
41 }
42 if (template.includes("$ARGUMENTS")) result.push("$ARGUMENTS")
43 return result
44}
45
46export const Default = {
47 INIT: "init",

Callers 1

index.tsFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected