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

Function intro

packages/opencode/src/cli/cmd/run/demo.ts:1103–1119  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

1101}
1102
1103function intro(state: State): void {
1104 note(
1105 state.footer,
1106 [
1107 "Demo slash commands enabled for interactive mode.",
1108 `- /permission [kind] (${PERMISSIONS.join(", ")})`,
1109 `- /question [kind] (${QUESTIONS.join(", ")})`,
1110 `- /fmt <kind> (${KINDS.join(", ")})`,
1111 "Examples:",
1112 "- /permission bash",
1113 "- /question custom",
1114 "- /fmt markdown",
1115 "- /fmt table",
1116 "- /fmt text your custom text",
1117 ].join("\n"),
1118 )
1119}
1120
1121export function createRunDemo(input: Input) {
1122 const state: State = {

Callers 3

startFunction · 0.70
promptFunction · 0.70
plug.tsFile · 0.50

Calls 1

noteFunction · 0.70

Tested by

no test coverage detected