aboutsummaryrefslogtreecommitdiff
path: root/tests/testutil-ai-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-23 20:12:58 -0400
committerCraig Jennings <c@cjennings.net>2026-06-23 20:12:58 -0400
commit10fa6f4e2e7150ad99827721ada1ae4badcc5e90 (patch)
tree960065c8e69f1e7a4150ecf522e2f813c239b5ee /tests/testutil-ai-config.el
parentf4cc70c69e7707dd4a686637e14885f5443fcca6 (diff)
downloaddotemacs-10fa6f4e2e7150ad99827721ada1ae4badcc5e90.tar.gz
dotemacs-10fa6f4e2e7150ad99827721ada1ae4badcc5e90.zip
chore(ai): archive gptel and remove it from the live config
I archived gptel to archive/gptel/ since I rarely use it. Moved there: the six gptel modules (ai-config, ai-conversations, ai-conversations-browser, ai-mcp, ai-quick-ask, ai-rewrite), the gptel-tools/ directory, custom/gptel-prompts.el, their test files and utilities, and the four gptel-only specs. Scrubbed from the live config: the ai-config require in init.el, which also drops the whole C-; a keymap; the gptel-mode emojify hook in font-config.el; the gptel-tools entries in the Makefile clean target and the coverage runner; and the gptel feature notes in README. Cancelled the open gptel tasks in todo.org (the AI Open Work issues, the feature-extension brainstorm, the velox gptel-magit bug). ai-term stays. It is the ghostel Claude launcher, independent of gptel. Verified: every module loads, a batch init launch reaches completion clean, and the full test suite shows only pre-existing coverage failures unrelated to this change.
Diffstat (limited to 'tests/testutil-ai-config.el')
-rw-r--r--tests/testutil-ai-config.el81
1 files changed, 0 insertions, 81 deletions
diff --git a/tests/testutil-ai-config.el b/tests/testutil-ai-config.el
deleted file mode 100644
index c7486222..00000000
--- a/tests/testutil-ai-config.el
+++ /dev/null
@@ -1,81 +0,0 @@
-;;; testutil-ai-config.el --- Test stubs for ai-config.el tests -*- lexical-binding: t; -*-
-
-;;; Commentary:
-;; Provides gptel and dependency stubs so ai-config.el can be loaded in
-;; batch mode without the real gptel package. Must be required BEFORE
-;; ai-config so stubs are in place when use-package :config runs.
-
-;;; Code:
-
-(setq load-prefer-newer t)
-
-;; Keep ai-config tests isolated from personal optional GPTel tool files.
-(defvar cj/gptel-tools-directory (make-temp-file "gptel-tools-empty-" t))
-(defvar cj/gptel-local-tool-features nil)
-
-;; Pre-cache API keys so auth-source is never consulted
-(defvar cj/anthropic-api-key-cached "test-anthropic-key")
-(defvar cj/openai-api-key-cached "test-openai-key")
-
-;; Stub gptel variables (must exist before use-package :custom runs)
-(defvar gptel-backend nil)
-(defvar gptel-model nil)
-(defvar gptel-mode nil)
-(defvar gptel-prompt-prefix-alist nil)
-(defvar gptel--debug nil)
-(defvar gptel-default-mode nil)
-(defvar gptel-expert-commands nil)
-(defvar gptel-track-media nil)
-(defvar gptel-include-reasoning nil)
-(defvar gptel-log-level nil)
-(defvar gptel-confirm-tool-calls nil)
-(defvar gptel-directives nil)
-(defvar gptel--system-message nil)
-(defvar gptel-context--alist nil)
-(defvar gptel-mode-map (make-sparse-keymap))
-(defvar gptel-post-response-functions nil)
-
-;; Stub gptel functions
-(defun gptel-make-anthropic (name &rest _args)
- "Stub: return a vector mimicking a gptel backend struct."
- (vector 'cl-struct-gptel-backend name))
-
-(defun gptel-make-openai (name &rest _args)
- "Stub: return a vector mimicking a gptel backend struct."
- (vector 'cl-struct-gptel-backend name))
-
-(defun gptel-send (&rest _) "Stub." nil)
-(defun gptel-menu (&rest _) "Stub." nil)
-(defun gptel (&rest _) "Stub." nil)
-(defun gptel-system-prompt (&rest _) "Stub." nil)
-(defun gptel-rewrite (&rest _) "Stub." nil)
-(defun gptel-add-file (&rest _) "Stub." nil)
-(defun gptel-add (&rest _) "Stub." nil)
-(defun gptel-backend-models (_backend) "Stub." nil)
-
-(provide 'gptel)
-(provide 'gptel-context)
-
-;; Stub custom keymap (defined in user's keybinding config)
-(defvar cj/custom-keymap (make-sparse-keymap))
-
-;; Stub which-key
-(unless (fboundp 'which-key-add-key-based-replacements)
- (defun which-key-add-key-based-replacements (&rest _) "Stub." nil))
-(provide 'which-key)
-
-;; Stub gptel-prompts
-(defun gptel-prompts-update (&rest _) "Stub." nil)
-(defun gptel-prompts-add-update-watchers (&rest _) "Stub." nil)
-(provide 'gptel-prompts)
-
-;; NOTE: gptel-magit is NOT stubbed here. ai-config.el now uses
-;; with-eval-after-load 'magit instead of use-package gptel-magit,
-;; so the magit integration only activates when magit is provided.
-;; See test-ai-config-gptel-magit-lazy-loading.el for magit stub tests.
-
-;; Stub ai-conversations
-(provide 'ai-conversations)
-
-(provide 'testutil-ai-config)
-;;; testutil-ai-config.el ends here