// src/tools/index.ts
var listRepositoriesTool = {
  name: "list_repositories",
  description: "Get a list of GitHub repositories the user has access to, including owned repos, starred repos, and organization repos.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "repository", "list", "browse"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github:list-repositories"
  }
};
var selectRepositoryTool = {
  name: "select_repository",
  description: 'Select a GitHub repository to view its details, README, and files. Use the full repository name in "owner/repo" format.',
  inputs: {
    type: "object",
    properties: {
      repository: {
        type: "string",
        description: 'The full repository name in "owner/repo" format (e.g., "facebook/react")'
      }
    },
    required: ["repository"]
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" },
      repository: { type: "string" }
    }
  },
  tags: ["github", "repository", "select", "navigate"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "repository:selected"
  }
};
var previewRepositoryTool = {
  name: "preview_repository",
  description: "Preview a GitHub repository's README in the viewer without navigating to it.",
  inputs: {
    type: "object",
    properties: {
      repository: {
        type: "string",
        description: 'The full repository name in "owner/repo" format (e.g., "facebook/react")'
      }
    },
    required: ["repository"]
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "repository", "preview", "readme"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "repository:preview"
  }
};
var searchRepositoriesTool = {
  name: "search_repositories",
  description: "Search through the user's GitHub repositories by name, description, or language.",
  inputs: {
    type: "object",
    properties: {
      query: {
        type: "string",
        description: "The search query to filter repositories"
      }
    },
    required: ["query"]
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "repository", "search", "filter"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github:search-repositories"
  }
};
var openRepositorySwitcherTool = {
  name: "open_repository_switcher",
  description: "Open the repository switcher modal to browse and select a different repository.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "repository", "switch", "modal"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "repository:open-switcher"
  }
};
var requestGitHubLoginTool = {
  name: "request_github_login",
  description: "Prompt the user to sign in to their GitHub account to access repositories.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "auth", "login", "sign-in"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github:login-requested"
  }
};
var listIssuesTool = {
  name: "list_issues",
  description: "Get a list of GitHub issues for the current repository.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "issues", "list", "browse"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github-issues:request"
  }
};
var refreshIssuesTool = {
  name: "refresh_issues",
  description: "Refresh the list of GitHub issues for the current repository.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "issues", "refresh", "update"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github-issues:refresh"
  }
};
var viewIssueMessagesTool = {
  name: "view_issue_messages",
  description: "View the conversation thread (comments, timeline events) for a GitHub issue.",
  inputs: {
    type: "object",
    properties: {
      owner: {
        type: "string",
        description: "The repository owner (user or organization)"
      },
      repo: {
        type: "string",
        description: "The repository name"
      },
      number: {
        type: "number",
        description: "The issue number"
      }
    },
    required: ["owner", "repo", "number"]
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "issues", "messages", "comments", "conversation"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github-messages:request"
  }
};
var viewPullRequestMessagesTool = {
  name: "view_pull_request_messages",
  description: "View the conversation thread (comments, reviews, commits, timeline events) for a GitHub pull request.",
  inputs: {
    type: "object",
    properties: {
      owner: {
        type: "string",
        description: "The repository owner (user or organization)"
      },
      repo: {
        type: "string",
        description: "The repository name"
      },
      number: {
        type: "number",
        description: "The pull request number"
      }
    },
    required: ["owner", "repo", "number"]
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "pull-request", "pr", "messages", "comments", "reviews", "conversation"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github-messages:request"
  }
};
var refreshMessagesTool = {
  name: "refresh_messages",
  description: "Refresh the conversation thread for the currently viewed issue or pull request.",
  inputs: {
    type: "object",
    properties: {},
    required: []
  },
  outputs: {
    type: "object",
    properties: {
      success: { type: "boolean" }
    }
  },
  tags: ["github", "messages", "refresh", "update"],
  tool_call_template: {
    call_template_type: "panel_event",
    event_type: "github-messages:refresh"
  }
};
var githubTools = [
  listRepositoriesTool,
  selectRepositoryTool,
  previewRepositoryTool,
  searchRepositoriesTool,
  openRepositorySwitcherTool,
  requestGitHubLoginTool,
  listIssuesTool,
  refreshIssuesTool,
  viewIssueMessagesTool,
  viewPullRequestMessagesTool,
  refreshMessagesTool
];
var githubToolsMetadata = {
  id: "github-panels",
  name: "GitHub Panels",
  description: "Tools for browsing and managing GitHub repositories",
  tools: githubTools
};
export {
  viewPullRequestMessagesTool,
  viewIssueMessagesTool,
  selectRepositoryTool,
  searchRepositoriesTool,
  requestGitHubLoginTool,
  refreshMessagesTool,
  refreshIssuesTool,
  previewRepositoryTool,
  openRepositorySwitcherTool,
  listRepositoriesTool,
  listIssuesTool,
  githubToolsMetadata,
  githubTools
};
