conversationSilenceMessage (lib/conversation-controller.mjs)

pi-coding-agent-forge · pi-package-natural-conversation/lib/conversation-controller.mjs · javascript · MIT
voice

Module exposing: conversationSilenceMessage, normalizeAllowedTools, createConversationController, DEFAULT_ALLOWED_TOOLS, CONVERSATION_STATUS_KEY, CONVERSATION_STYLES, CONVERSATION_STYLE_IDS, DEFAULT_CONVERSATION_STYLE

// Source: https://github.com/Firstp1ck/pi-coding-agent-forge | License: MIT | Copyright 2026 Firstpick
// Provided via justclaw.it.com; keep this notice with the code.
export const DEFAULT_ALLOWED_TOOLS = Object.freeze(["read", "grep", "find", "ls"]);
export const CONVERSATION_STATUS_KEY = "natural-conversation";

/**
 * Spoken style presets (plan Phase 2). Each preset appends one short style
 * instruction to the conversation system prompt; "natural" is the baseline
 * and adds nothing. Keep prompts TTS-shaped: they describe how to talk, they
 * never relax the read-only or spoken-output rules above them.
 */
export const CONVERSATION_STYLES = Object.freeze({
  natural: Object.freeze({
    label: "balanced spoken answers (default)",
    prompt: "",
  }),
  concise: Object.freeze({
    la

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key