From bad01040e3e81b7e35e07756f94920fb38115544 Mon Sep 17 00:00:00 2001 From: Joshua Fuller Date: Sat, 5 Oct 2024 17:29:12 -0500 Subject: [PATCH 01/20] Corrected spelling and grammatical errors for consistency and clarity Description: Changed "agreed within the meeting" to "agreed upon within the meeting" to improve grammatical accuracy. Added missing periods to ensure consistency across list items. Corrected the spelling of "highliting" to "highlighting." Fixed the spelling of "exxactly" to "exactly." Updated phrasing in "Write NEXT STEPS a 2-3 sentences" to "Write NEXT STEPS as 2-3 sentences" for grammatical correctness. These changes improve the readability and consistency of the document, ensuring all instructions are clear and error-free. --- patterns/transcribe_minutes/system.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patterns/transcribe_minutes/system.md b/patterns/transcribe_minutes/system.md index 6a7a5cae..6e66aa71 100644 --- a/patterns/transcribe_minutes/system.md +++ b/patterns/transcribe_minutes/system.md @@ -8,15 +8,15 @@ Take a step back and think step-by-step about how to achieve the best possible r - Fully digest the content provided. -- Extract all actionables agreed within the meeting. +- Extract all actionables agreed upon within the meeting. - Extract any interesting ideas brought up in the meeting. -- In a section called TITLE, write a 1 to 5 word title for the meeting +- In a section called TITLE, write a 1 to 5 word title for the meeting. - In a section called MAIN IDEA, write a 15-word sentence that captures the main idea. -- In a section called MINUTES, write 20 to 50 bullet points, highliting of the most surprising, insightful, and/or interesting ideas that come up in the conversation. If there are less than 50 then collect all of them. Make sure you extract at least 20. +- In a section called MINUTES, write 20 to 50 bullet points, highlighting of the most surprising, insightful, and/or interesting ideas that come up in the conversation. If there are less than 50 then collect all of them. Make sure you extract at least 20. - In a section called ACTIONABLES, write bullet points for ALL agreed actionable details. This includes cases where a speaker agrees to do or look into something. If there is a deadline mentioned, include it here. @@ -24,16 +24,16 @@ Take a step back and think step-by-step about how to achieve the best possible r - In a section called CHALLENGES, identify and document any challenges or issues discussed during the meeting. Note any potential solutions or strategies proposed to address these challenges. -- In a section caled NEXT STEPS, outline the next steps and actions to be taken after the meeting +- In a section called NEXT STEPS, outline the next steps and actions to be taken after the meeting. # OUTPUT INSTRUCTIONS - Only output Markdown. -- Write MINUTES as exxactly 15 words. +- Write MINUTES as exactly 15 words. - Write ACTIONABLES as exactly 15 words. - Write DECISIONS as exactly 15 words. - Write CHALLENGES as 2-3 sentences. -- Write NEXT STEPS a 2-3 sentences. +- Write NEXT STEPS as 2-3 sentences. - Do not give warnings or notes; only output the requested sections. - Do not repeat ideas, quotes, facts, or resources. - You use bulleted lists for output, not numbered lists. From ae0c9009d938d18782e811c31e415673206fbdfd Mon Sep 17 00:00:00 2001 From: Daniel Miessler Date: Sun, 6 Oct 2024 12:50:05 -0700 Subject: [PATCH 02/20] Added extract_core_message. --- patterns/extract_core_message/system.md | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patterns/extract_core_message/system.md diff --git a/patterns/extract_core_message/system.md b/patterns/extract_core_message/system.md new file mode 100644 index 00000000..895b17d0 --- /dev/null +++ b/patterns/extract_core_message/system.md @@ -0,0 +1,39 @@ +# IDENTITY + +You are an expert at looking at a presentation, an essay, or a full body of lifetime work, and clearly and accurately articulating what the core message is. + +# GOAL + +- Produce a clear sentence that perfectly articulates the core message as presented in a given text or body of work. + +# EXAMPLE + +If the input is all of Victor Frankl's work, then the core message would be: + +Finding meaning in suffering is key to human resilience, purpose, and enduring life’s challenges. + +END EXAMPLE + +# STEPS + +- Fully digest the input. + +- Determine if the input is a single text or a body of work. + +- Based on which it is, parse the thing that's supposed to be parsed. + +- Extract the core message from the parsed text into a single sentence. + +# OUTPUT + +- Output a single, 15-word sentence that perfectly articulates the core message as presented in the input. + +# OUTPUT INSTRUCTIONS + +- The sentence should be a single sentence that is 15 words or fewer, with no special formatting or anything else. + +- Do not include any setup to the sentence, e.g., "The core message is to…", etc. Just list the core message and nothing else. + +- ONLY OUTPUT THE CORE MESSAGE, not a setup to it, commentary on it, or anything else. + +- Do not ask questions or complain in any way about the task. From 70d43c52526dad36082a12acf64cdbc8c3ce48d5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 6 Oct 2024 19:50:30 +0000 Subject: [PATCH 03/20] Update version to v1.4.52 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index add07e05..ee2287fa 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.51" +var version = "v1.4.52" From d90e8081aca9f7b547717f348b4da94185ba9343 Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Mon, 7 Oct 2024 11:16:57 +0200 Subject: [PATCH 04/20] fix: fix NP if response is empty, close #1026, #1027 --- core/chatter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/chatter.go b/core/chatter.go index c786cd47..dbb9a87c 100644 --- a/core/chatter.go +++ b/core/chatter.go @@ -52,6 +52,7 @@ func (o *Chatter) Send(request *common.ChatRequest, opts *common.ChatOptions) (s if message == "" { session = nil err = fmt.Errorf("empty response") + return } session.Append(&common.Message{Role: goopenai.ChatMessageRoleAssistant, Content: message}) From 4aa0b99c744b6ca5131df03131bec36dd91ebcfe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 7 Oct 2024 09:17:11 +0000 Subject: [PATCH 05/20] Update version to v1.4.53 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index ee2287fa..f872bde4 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.52" +var version = "v1.4.53" From d347ef0dcc9cd6ffb1a8f41d12e8da56b0be659f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 7 Oct 2024 16:44:19 +0000 Subject: [PATCH 06/20] Update version to v1.4.54 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index f872bde4..4f6d6daa 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.53" +var version = "v1.4.54" From 83cd8a19123a4a860dd55448f94cd936d8399a60 Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Wed, 9 Oct 2024 12:29:02 +0300 Subject: [PATCH 07/20] fix: Close #1036 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2534135b..126201ee 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ pbpaste | fabric --stream --pattern analyze_claims 3. Run the `extract_wisdom` Pattern with the `--stream` option to get immediate and streaming results from any Youtube video (much like in the original introduction video). ```bash -fabric -y "https://youtube.com/watch?v=uXs-zPc63kM" | --stream --pattern extract_wisdom +fabric -y "https://youtube.com/watch?v=uXs-zPc63kM" --stream --pattern extract_wisdom ``` 4. Create patterns- you must create a .md file with the pattern and save it to ~/.config/fabric/patterns/[yourpatternname]. From 34f804be3ac3d1d05a12be44c5e6c6b31411e2da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 9 Oct 2024 09:29:17 +0000 Subject: [PATCH 08/20] Update version to v1.4.55 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index 4f6d6daa..ec8300e1 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.54" +var version = "v1.4.55" From e1fa674a3f837a6858688235503f196bf1b5e5f9 Mon Sep 17 00:00:00 2001 From: hallelujah-shih Date: Thu, 10 Oct 2024 19:31:21 +0800 Subject: [PATCH 09/20] support set default output language # Conflicts: # cli/cli.go # core/fabric.go --- cli/cli.go | 14 +++++++++++--- core/fabric.go | 9 +++++++++ lang/language.go | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 lang/language.go diff --git a/cli/cli.go b/cli/cli.go index 1e6debc7..4ed34325 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -146,8 +146,12 @@ func Cli(version string) (err error) { if !currentFlags.YouTubeComments || currentFlags.YouTubeTranscript { var transcript string var language = "en" - if currentFlags.Language != "" { - language = currentFlags.Language + if currentFlags.Language != "" || fabric.DefaultLanguage.Value != "" { + if currentFlags.Language != "" { + language = currentFlags.Language + } else { + language = fabric.DefaultLanguage.Value + } } if transcript, err = fabric.YouTube.GrabTranscript(videoId, language); err != nil { return @@ -208,7 +212,11 @@ func Cli(version string) (err error) { } var session *db.Session - if session, err = chatter.Send(currentFlags.BuildChatRequest(strings.Join(os.Args[1:], " ")), currentFlags.BuildChatOptions()); err != nil { + chatReq := currentFlags.BuildChatRequest(strings.Join(os.Args[1:], " ")) + if chatReq.Language == "" { + chatReq.Language = fabric.DefaultLanguage.Value + } + if session, err = chatter.Send(chatReq, currentFlags.BuildChatOptions()); err != nil { return } diff --git a/core/fabric.go b/core/fabric.go index 7e3f87a1..c0435366 100644 --- a/core/fabric.go +++ b/core/fabric.go @@ -7,6 +7,7 @@ import ( "github.com/danielmiessler/fabric/common" "github.com/danielmiessler/fabric/db" "github.com/danielmiessler/fabric/jina" + "github.com/danielmiessler/fabric/lang" "github.com/danielmiessler/fabric/vendors/anthropic" "github.com/danielmiessler/fabric/vendors/azure" "github.com/danielmiessler/fabric/vendors/dryrun" @@ -49,6 +50,7 @@ func NewFabricBase(db *db.Db) (ret *Fabric) { VendorsAll: NewVendorsManager(), PatternsLoader: NewPatternsLoader(db.Patterns), YouTube: youtube.NewYouTube(), + Language: lang.NewLanguage(), Jina: jina.NewClient(), } @@ -75,6 +77,7 @@ type Fabric struct { VendorsAll *VendorsManager *PatternsLoader *youtube.YouTube + *lang.Language Jina *jina.Client Db *db.Db @@ -101,6 +104,7 @@ func (o *Fabric) SaveEnvFile() (err error) { o.YouTube.SetupFillEnvFileContent(&envFileContent) o.Jina.SetupFillEnvFileContent(&envFileContent) + o.Language.SetupFillEnvFileContent(&envFileContent) err = o.Db.SaveEnv(envFileContent.String()) return @@ -125,6 +129,10 @@ func (o *Fabric) Setup() (err error) { return } + if err = o.Language.SetupOrSkip(); err != nil { + return + } + err = o.SaveEnvFile() return @@ -200,6 +208,7 @@ func (o *Fabric) configure() (err error) { //YouTube and Jina are not mandatory, so ignore not configured error _ = o.YouTube.Configure() _ = o.Jina.Configure() + _ = o.Language.Configure() return } diff --git a/lang/language.go b/lang/language.go new file mode 100644 index 00000000..48d76e8e --- /dev/null +++ b/lang/language.go @@ -0,0 +1,41 @@ +package lang + +import ( + "github.com/danielmiessler/fabric/common" + "golang.org/x/text/language" +) + +func NewLanguage() (ret *Language) { + + label := "Language" + ret = &Language{} + + ret.Configurable = &common.Configurable{ + Label: label, + EnvNamePrefix: common.BuildEnvVariablePrefix(label), + ConfigureCustom: ret.configure, + } + + ret.DefaultLanguage = ret.Configurable.AddSetupQuestionCustom("Output", false, + "Enter your default want output lang (for example: zh_CN)") + + return +} + +type Language struct { + *common.Configurable + DefaultLanguage *common.SetupQuestion +} + +func (o *Language) configure() error { + if o.DefaultLanguage.Value != "" { + langTag, err := language.Parse(o.DefaultLanguage.Value) + if err == nil { + o.DefaultLanguage.Value = langTag.String() + } else { + o.DefaultLanguage.Value = "" + } + } + + return nil +} From 9f94cfb7189baada337fa06e8a9e5b2d0836db01 Mon Sep 17 00:00:00 2001 From: hallelujah-shih Date: Thu, 10 Oct 2024 19:45:39 +0800 Subject: [PATCH 10/20] fmt --- core/fabric.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/fabric.go b/core/fabric.go index c0435366..c3f94c24 100644 --- a/core/fabric.go +++ b/core/fabric.go @@ -3,6 +3,9 @@ package core import ( "bytes" "fmt" + "os" + "strconv" + "github.com/atotto/clipboard" "github.com/danielmiessler/fabric/common" "github.com/danielmiessler/fabric/db" @@ -20,8 +23,6 @@ import ( "github.com/danielmiessler/fabric/vendors/siliconcloud" "github.com/danielmiessler/fabric/youtube" "github.com/pkg/errors" - "os" - "strconv" ) const DefaultPatternsGitRepoUrl = "https://github.com/danielmiessler/fabric.git" From 8f0cc857427aa79696f7594caebf8b11fe5b1024 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 11 Oct 2024 18:54:25 +0000 Subject: [PATCH 11/20] Update version to v1.4.56 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index ec8300e1..5aedbdd2 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.55" +var version = "v1.4.56" From c0bd61ba49e5e65cd53aa5c458232804f56c815e Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Fri, 11 Oct 2024 22:27:20 +0300 Subject: [PATCH 12/20] docs: Close #1035, provide better example for pattern variables --- README.md | 2 +- cli/flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 126201ee..cbfe6e96 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ Usage: Application Options: -p, --pattern= Choose a pattern from the available patterns - -v, --variable= Values for pattern variables, e.g. -v=$name:John -v=$age:30 + -v, --variable= Values for pattern variables, e.g. -v=#role:expert -v=#points:30" -C, --context= Choose a context from the available contexts --session= Choose a session from the available sessions -S, --setup Run setup for all reconfigurable parts of fabric diff --git a/cli/flags.go b/cli/flags.go index 4f3422fb..ba19c818 100644 --- a/cli/flags.go +++ b/cli/flags.go @@ -15,7 +15,7 @@ import ( // Flags create flags struct. the users flags go into this, this will be passed to the chat struct in cli type Flags struct { Pattern string `short:"p" long:"pattern" description:"Choose a pattern from the available patterns" default:""` - PatternVariables map[string]string `short:"v" long:"variable" description:"Values for pattern variables, e.g. -v=$name:John -v=$age:30"` + PatternVariables map[string]string `short:"v" long:"variable" description:"Values for pattern variables, e.g. -v=#role:expert -v=#points:30"` Context string `short:"C" long:"context" description:"Choose a context from the available contexts" default:""` Session string `long:"session" description:"Choose a session from the available sessions"` Setup bool `short:"S" long:"setup" description:"Run setup for all reconfigurable parts of fabric"` From d1c527c421cf57ec7e112174e53052870ce2110d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 11 Oct 2024 19:27:41 +0000 Subject: [PATCH 13/20] Update version to v1.4.57 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index 5aedbdd2..e4318016 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.56" +var version = "v1.4.57" From 6dbd24e5412577b692bb55feb38dbe42e3267ffa Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Fri, 11 Oct 2024 23:25:25 +0300 Subject: [PATCH 14/20] fix: Close #1040. Configure vendors separately that were not configured yet --- cli/cli.go | 4 +--- core/fabric.go | 2 +- core/vendors.go | 24 +++++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 4ed34325..9b6ad6b1 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -264,8 +264,6 @@ func Setup(db *db.Db, skipUpdatePatterns bool) (ret *core.Fabric, err error) { func SetupVendor(db *db.Db, vendorName string) (ret *core.Fabric, err error) { ret = core.NewFabricForSetup(db) - if err = ret.SetupVendor(vendorName); err != nil { - return - } + err = ret.SetupVendor(vendorName) return } diff --git a/core/fabric.go b/core/fabric.go index c3f94c24..36abb875 100644 --- a/core/fabric.go +++ b/core/fabric.go @@ -188,7 +188,7 @@ func (o *Fabric) SetupVendors() (err error) { } func (o *Fabric) SetupVendor(vendorName string) (err error) { - if err = o.VendorsAll.SetupVendor(vendorName); err != nil { + if err = o.VendorsAll.SetupVendor(vendorName, o.Vendors); err != nil { return } err = o.SaveEnvFile() diff --git a/core/vendors.go b/core/vendors.go index 48a8c007..469e9a85 100644 --- a/core/vendors.go +++ b/core/vendors.go @@ -90,26 +90,28 @@ func (o *VendorsManager) Setup() (ret map[string]vendors.Vendor, err error) { ret = map[string]vendors.Vendor{} for _, vendor := range o.Vendors { fmt.Println() - if vendorErr := vendor.Setup(); vendorErr == nil { - fmt.Printf("[%v] configured\n", vendor.GetName()) - ret[vendor.GetName()] = vendor - } else { - fmt.Printf("[%v] skipped\n", vendor.GetName()) - } + o.setupVendorTo(vendor, ret) } return } -func (o *VendorsManager) SetupVendor(vendorName string) (err error) { +func (o *VendorsManager) setupVendorTo(vendor vendors.Vendor, configuredVendors map[string]vendors.Vendor) { + if vendorErr := vendor.Setup(); vendorErr == nil { + fmt.Printf("[%v] configured\n", vendor.GetName()) + configuredVendors[vendor.GetName()] = vendor + } else { + delete(configuredVendors, vendor.GetName()) + fmt.Printf("[%v] skipped\n", vendor.GetName()) + } +} + +func (o *VendorsManager) SetupVendor(vendorName string, configuredVendors map[string]vendors.Vendor) (err error) { vendor := o.FindByName(vendorName) if vendor == nil { err = fmt.Errorf("vendor %s not found", vendorName) return } - err = vendor.Setup() - if err != nil { - return - } + o.setupVendorTo(vendor, configuredVendors) return } From d33175e5b62da7644c051e9daf9b5a188d5670dc Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Fri, 11 Oct 2024 23:28:56 +0300 Subject: [PATCH 15/20] chore: we don't need tp configure DryRun vendor --- core/fabric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fabric.go b/core/fabric.go index 36abb875..04213a66 100644 --- a/core/fabric.go +++ b/core/fabric.go @@ -67,7 +67,7 @@ func NewFabricBase(db *db.Db) (ret *Fabric) { "Enter the index the name of your default model") ret.VendorsAll.AddVendors(openai.NewClient(), azure.NewClient(), ollama.NewClient(), groq.NewClient(), - gemini.NewClient(), anthropic.NewClient(), siliconcloud.NewClient(), openrouter.NewClient(), mistral.NewClient(), dryrun.NewClient()) + gemini.NewClient(), anthropic.NewClient(), siliconcloud.NewClient(), openrouter.NewClient(), mistral.NewClient()) return } From 2155ff9fc028641a77b4388b1f735f23b5873aa8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 11 Oct 2024 20:30:50 +0000 Subject: [PATCH 16/20] Update version to v1.4.58 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index e4318016..bb33b3cb 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.57" +var version = "v1.4.58" From b5fe3f2ad826749139836a62ae215dc1bbdc7adf Mon Sep 17 00:00:00 2001 From: Daniel Miessler Date: Fri, 11 Oct 2024 15:59:26 -0700 Subject: [PATCH 17/20] Added ctw to Raycast. --- patterns/raycast/capture_thinkers_work | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 patterns/raycast/capture_thinkers_work diff --git a/patterns/raycast/capture_thinkers_work b/patterns/raycast/capture_thinkers_work new file mode 100755 index 00000000..6cc44ced --- /dev/null +++ b/patterns/raycast/capture_thinkers_work @@ -0,0 +1,27 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Capture Thinkers Work +# @raycast.mode fullOutput + +# Optional parameters: +# @raycast.icon 🧠 +# @raycast.argument1 { "type": "text", "placeholder": "Input text", "optional": false, "percentEncoded": true} + +# Documentation: +# @raycast.description Run fabric capture_thinkers_work on the input text +# @raycast.author Daniel Miessler +# @raycast.authorURL https://github.com/danielmiessler + +# Set PATH to include common locations and $HOME/go/bin +PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/go/bin:$PATH" + +# Use the PATH to find and execute fabric +if command -v fabric >/dev/null 2>&1; then + fabric -sp capture_thinkers_work "${1}" +else + echo "Error: fabric command not found in PATH" + echo "Current PATH: $PATH" + exit 1 +fi From 72f1429db96482f4c9a54639e0e8212618444ae5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 11 Oct 2024 22:59:41 +0000 Subject: [PATCH 18/20] Update version to v1.4.59 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index bb33b3cb..232ab0e3 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.58" +var version = "v1.4.59" From 161ce65ae6ecb0a723dac65538a4074481e997b4 Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Sat, 12 Oct 2024 18:26:56 +0300 Subject: [PATCH 19/20] fix: IsChatRequest rule; Close #1042 is --- cli/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/flags.go b/cli/flags.go index ba19c818..2d692d6f 100644 --- a/cli/flags.go +++ b/cli/flags.go @@ -141,6 +141,6 @@ func (o *Flags) AppendMessage(message string) { } func (o *Flags) IsChatRequest() (ret bool) { - ret = o.Message != "" || o.Session != "" + ret = (o.Message != "" || o.Context != "") && (o.Session != "" || o.Pattern != "") return } From 525f972d222a6a6e326274ef990cb54eec27c236 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 12 Oct 2024 15:27:28 +0000 Subject: [PATCH 20/20] Update version to v1.4.60 and commit --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index 232ab0e3..c07b9586 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.59" +var version = "v1.4.60"