Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- AI Chat: attach a saved query as a chip via `@`. Type `@` and pick a saved SQL query to send its name and body to the AI alongside your message.
- AI Chat: user-defined slash commands. Create your own commands in Settings -> AI -> Custom Slash Commands. Templates support `{{query}}`, `{{schema}}`, `{{database}}`, and `{{body}}` placeholders that get substituted at send time.
- AI Chat: tool calling can now run write queries (`execute_query`) and destructive DDL (`confirm_destructive_operation` after the AI passes the verbatim phrase). The connection's safe mode policy still gates execution, so the user remains the final approver.
- AI Chat: inline assistant in the SQL editor. Select text and press Ctrl+Enter to ask the AI to rewrite it. Review the proposed diff and accept or reject.
- AI Chat: per-connection rules. Add custom guidance (table conventions, PII columns, naming) in the connection's AI Rules tab; the AI sees it on every chat turn for that connection.

### Changed
Expand Down
46 changes: 0 additions & 46 deletions TablePro/Core/AI/InlineAssistant/AIPromptTemplates+Rewrite.swift

This file was deleted.

190 changes: 0 additions & 190 deletions TablePro/Core/AI/InlineAssistant/InlineAssistantSession.swift

This file was deleted.

17 changes: 0 additions & 17 deletions TablePro/Views/Editor/AIEditorContextMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ final class AIEditorContextMenu: NSMenu, NSMenuDelegate {
var fullText: (() -> String?)?
var onExplainWithAI: ((String) -> Void)?
var onOptimizeWithAI: ((String) -> Void)?
var onRewriteWithAI: (() -> Void)?
var onSaveAsFavorite: ((String) -> Void)?
var onFormatSQL: (() -> Void)?

Expand Down Expand Up @@ -95,18 +94,6 @@ final class AIEditorContextMenu: NSMenu, NSMenuDelegate {
optimizeItem.target = self
optimizeItem.image = NSImage(systemSymbolName: "bolt", accessibilityDescription: nil)
menu.addItem(optimizeItem)

if onRewriteWithAI != nil {
let rewriteItem = NSMenuItem(
title: String(localized: "Rewrite with AI..."),
action: #selector(handleRewriteWithAI),
keyEquivalent: String(format: "%c", 0x0D)
)
rewriteItem.keyEquivalentModifierMask = .control
rewriteItem.target = self
rewriteItem.image = NSImage(systemSymbolName: "wand.and.stars", accessibilityDescription: nil)
menu.addItem(rewriteItem)
}
}

// MARK: - AI Actions
Expand All @@ -121,10 +108,6 @@ final class AIEditorContextMenu: NSMenu, NSMenuDelegate {
onOptimizeWithAI?(text)
}

@objc private func handleRewriteWithAI() {
onRewriteWithAI?()
}

@objc private func handleFormatSQL() {
onFormatSQL?()
}
Expand Down
Loading
Loading