From patchwork Thu Apr 27 17:46:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dakota Logan X-Patchwork-Id: 49647 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7C32C27BBE2; Fri, 28 Apr 2023 13:49:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2B43D27BBE9 for ; Fri, 28 Apr 2023 13:49:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psNWu-0004Ia-BW; Fri, 28 Apr 2023 08:48:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psGeI-00016N-JB for guix-patches@gnu.org; Fri, 28 Apr 2023 01:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psGeI-0007gE-58 for guix-patches@gnu.org; Fri, 28 Apr 2023 01:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psGeH-0005l3-Nv for guix-patches@gnu.org; Fri, 28 Apr 2023 01:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63138] [PATCH] gnu: Add chatgpt-shell. Resent-From: Dakota Logan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Apr 2023 05:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63138 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63138@debbugs.gnu.org Cc: Dakota Logan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168265963022068 (code B ref -1); Fri, 28 Apr 2023 05:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2023 05:27:10 +0000 Received: from localhost ([127.0.0.1]:60226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psGdR-0005jq-2b for submit@debbugs.gnu.org; Fri, 28 Apr 2023 01:27:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:33672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ps5i7-00059p-GZ for submit@debbugs.gnu.org; Thu, 27 Apr 2023 13:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ps5i7-0007tc-AT for guix-patches@gnu.org; Thu, 27 Apr 2023 13:47:15 -0400 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ps5hz-0004O1-DA for guix-patches@gnu.org; Thu, 27 Apr 2023 13:47:14 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Q6jqC4JpYzDqtg for ; Thu, 27 Apr 2023 17:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1682617623; bh=WzLuSn+OJZWm7074amv/tKonIb1xCJfPbjU+91KANYQ=; h=From:To:Cc:Subject:Date:From; b=L1fk9EUxBt3u5iqt8sAx+1U82pvReEHtxW81OEHjdh+QFN1cNxCA8/jH1CRs3eD5p aOQnIoKftPHMLBESGbdrmrYMCJxh23KM5wOaChJQ6zZXPSDjPNM7JfmJ65yM+/ISQ3 ccU9tHsNoU3xKhOqdWCp6XFDb8Z+fxv3iJ0Lf1ys= X-Riseup-User-ID: 5D07C442968580C15F682D9B303C11E2F2A8AFD3C29EA5F5DA05F3346BF9357D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Q6jqC0sQPzFqgp; Thu, 27 Apr 2023 17:47:02 +0000 (UTC) From: Dakota Logan Date: Thu, 27 Apr 2023 13:46:50 -0400 Message-Id: <20230427174650.2034958-1-dklogan@riseup.net> MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.129; envelope-from=dklogan@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 28 Apr 2023 01:27:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 28 Apr 2023 08:48:50 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell, emacs-shell-maker): New variables. --- gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) base-commit: d59b4764f3171b1430a6d3b954659b8aab730475 diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3fa367ce74..2f934537a4 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -444,6 +444,41 @@ favourite Scheme implementation, you also need the corresponding geiser package, e.g. emacs-geiser-guile for Guile.") (license license:bsd-3))) +(define-public emacs-shell-maker +(package + (name "emacs-shell-maker") + (version "20230427.808") + (source (origin + (method url-fetch) + (uri (string-append "https://melpa.org/packages/shell-maker-" + version ".el")) + (sha256 + (base32 + "19qamx8rkll2xmkp85dx9qxvlbmcj8d35fksjssa1s05y1akmwad")))) + (build-system emacs-build-system) + (home-page "https://github.com/xenodium/chatgpt-shell") + (synopsis "Emacs wraparound for comint-mode for creating local and cloud shells") + (description "@code{emacs-shell-maker} is a library building on Emacs comint-mode. It allows users to conveniently create shells for local and cloud LLM services, such as ChatGPT.") + (license license:gpl3+))) + +(define-public emacs-chatgpt-shell +(package + (name "emacs-chatgpt-shell") + (version "20230427.808") + (source (origin + (method url-fetch) + (uri (string-append "https://melpa.org/packages/chatgpt-shell-" + version ".el")) + (sha256 + (base32 + "0plhxmn4ggxw5ph002ggh3j9v5g2dghr742r0287hprl7r0wcisz")))) + (build-system emacs-build-system) + (propagated-inputs (list emacs-shell-maker)) + (home-page "https://github.com/xenodium/chatgpt-shell") + (synopsis "ChatGPT shell for Emacs") + (description "@code{emacs-chatgpt-shell} is a client for interacting with the ChatGPT and DALL-E LLM services. Building on comint-mode and the @code{emacs-shell-maker} library, it allows the user to interact with the service via a custom shell or an Org-mode buffer.") + (license license:gpl3+))) + (define-public emacs-gptel (package (name "emacs-gptel")