Compare commits

...

20 Commits

Author SHA1 Message Date
github-actions[bot]
6b6d0adbfb chore(release): Update version to v1.4.372 2026-01-04 20:15:36 +00:00
Kayvan Sylvan
55c94e65da Merge pull request #1913 from majiayu000/fix-1910-bug-rest-api-chat-endpoint-doe-0101-2307
fix: REST API /chat endpoint doesn't pass 'search' parameter to ChatOptions
2026-01-04 12:12:54 -08:00
Kayvan Sylvan
2118013547 chore: incoming 1913 changelog entry 2026-01-04 12:05:33 -08:00
Kayvan Sylvan
82a9f02879 Merge branch 'main' into fix-1910-bug-rest-api-chat-endpoint-doe-0101-2307 2026-01-04 12:05:04 -08:00
github-actions[bot]
602304e417 chore(release): Update version to v1.4.371 2026-01-04 19:25:44 +00:00
Kayvan Sylvan
c0d00aeb1f Merge pull request #1923 from ksylvan/kayvan/fix-generate-changelog-db-sync-issues
ChangeLog Generation stability
2026-01-04 11:22:43 -08:00
Kayvan Sylvan
1ec8ecba24 chore: format fix 2026-01-04 11:16:18 -08:00
Kayvan Sylvan
ad1465a2e5 chore: incoming 1923 changelog entry 2026-01-04 11:13:03 -08:00
Kayvan Sylvan
12b6cf4a0a fix: improve date parsing and prevent early return when PR numbers exist
## CHANGES

- Add SQLite datetime formats to version date parsing logic
- Loop through multiple date formats until one succeeds
- Include SQLite fractional seconds format support
- Prevent early return when version has PR numbers to output
- Simplify error handling for date parsing failures
2026-01-04 11:07:49 -08:00
github-actions[bot]
a6ad1d77f9 chore(release): Update version to v1.4.370 2026-01-04 17:19:48 +00:00
Kayvan Sylvan
af3403ae44 Merge pull request #1921 from ksylvan/kayvan/fix-for-earliest-pr-merge-time
chore: remove redundant `--sync-db` step from changelog workflow
2026-01-04 09:17:11 -08:00
Kayvan Sylvan
c971781072 chore: incoming 1921 changelog entry 2026-01-04 09:10:58 -08:00
Kayvan Sylvan
fd0ac8aa3b feat: clean up heal_person pattern by removing duplicate content
## CHANGES

- Remove duplicate IDENTITY and PURPOSE section from input block
- Remove redundant STEPS instructions from template
- Remove duplicate OUTPUT INSTRUCTIONS from pattern file
- Simplify INPUT section to single placeholder
- Clean up unnecessary whitespace and formatting
2026-01-04 09:09:35 -08:00
Kayvan Sylvan
0991c52e6f chore: remove redundant --sync-db step from changelog workflow
- Remove duplicate database sync command from version workflow
- Simplify changelog generation to single process-prs step
- Keep database file staging after changelog generation
2026-01-04 08:45:36 -08:00
github-actions[bot]
c60e8d1bf7 chore(release): Update version to v1.4.369 2026-01-04 07:33:42 +00:00
Kayvan Sylvan
a5ac60cedf Merge pull request #1919 from ksylvan/kayvan/one-more-ci-cd-changelog-fix
Fix the `last_pr_sync` setting during PR incoming processing
2026-01-03 23:30:54 -08:00
Kayvan Sylvan
96ce0838b5 chore: incoming 1919 changelog entry 2026-01-03 23:28:42 -08:00
Kayvan Sylvan
3d88f8e2fc fix: update SetLastPRSync to use version date instead of current time
- Change last_pr_sync to use versionDate instead of time.Now()
- Ensure future runs fetch PRs merged after the version date
- Add clarifying comments explaining the sync timing logic
2026-01-03 23:23:19 -08:00
Kayvan Sylvan
0776e77872 Merge branch 'main' into fix-1910-bug-rest-api-chat-endpoint-doe-0101-2307 2026-01-03 17:09:28 -08:00
majiayu000
6ea5551f06 fix: pass Search and SearchLocation parameters to ChatOptions in /chat endpoint
Signed-off-by: majiayu000 <1835304752@qq.com>
2026-01-01 23:09:30 +08:00
10 changed files with 60 additions and 39 deletions

View File

@@ -94,7 +94,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go run ./cmd/generate_changelog --process-prs ${{ steps.increment_version.outputs.new_tag }}
go run ./cmd/generate_changelog --sync-db
git add ./cmd/generate_changelog/changelog.db
- name: Commit changes
run: |

View File

@@ -1,5 +1,40 @@
# Changelog
## v1.4.372 (2026-01-04)
### PR [#1913](https://github.com/danielmiessler/Fabric/pull/1913) by [majiayu000](https://github.com/majiayu000): fix: REST API /chat endpoint doesn't pass 'search' parameter to ChatOptions
- Fix: REST API /chat endpoint now properly passes Search and SearchLocation parameters to ChatOptions
## v1.4.371 (2026-01-04)
### PR [#1923](https://github.com/danielmiessler/Fabric/pull/1923) by [ksylvan](https://github.com/ksylvan): ChangeLog Generation stability
- Fix: improve date parsing and prevent early return when PR numbers exist
- Add SQLite datetime formats to version date parsing logic
- Loop through multiple date formats until one succeeds
- Include SQLite fractional seconds format support
- Prevent early return when version has PR numbers to output
## v1.4.370 (2026-01-04)
### PR [#1921](https://github.com/danielmiessler/Fabric/pull/1921) by [ksylvan](https://github.com/ksylvan): chore: remove redundant `--sync-db` step from changelog workflow
- Remove redundant `--sync-db` step from changelog workflow
- Remove duplicate database sync command from version workflow
- Simplify changelog generation to single process-prs step
- Clean up `heal_person` pattern by removing duplicate content sections
- Remove duplicate IDENTITY, PURPOSE, STEPS, and OUTPUT INSTRUCTIONS from pattern file
## v1.4.369 (2026-01-04)
### PR [#1919](https://github.com/danielmiessler/Fabric/pull/1919) by [ksylvan](https://github.com/ksylvan): Fix the `last_pr_sync` setting during PR incoming processing
- Fix: update `SetLastPRSync` to use version date instead of current time
- Change last_pr_sync to use versionDate instead of time.Now()
- Ensure future runs fetch PRs merged after the version date
- Add clarifying comments explaining the sync timing logic
## v1.4.368 (2026-01-04)
### PR [#1918](https://github.com/danielmiessler/Fabric/pull/1918) by [ksylvan](https://github.com/ksylvan): Maintenance: Fix ChangeLog Generation during CI/CD

View File

@@ -1,3 +1,3 @@
package main
var version = "v1.4.368"
var version = "v1.4.372"

Binary file not shown.

View File

@@ -202,14 +202,23 @@ func (c *Cache) GetVersions() (map[string]*git.Version, error) {
}
if dateStr.Valid {
// Try RFC3339Nano first (for nanosecond precision), then fall back to RFC3339
v.Date, err = time.Parse(time.RFC3339Nano, dateStr.String)
if err != nil {
v.Date, err = time.Parse(time.RFC3339, dateStr.String)
if err != nil {
fmt.Fprintf(os.Stderr, "Error parsing date '%s' for version '%s': %v. Expected format: RFC3339 or RFC3339Nano.\n", dateStr.String, v.Name, err)
// Try multiple date formats: SQLite format, RFC3339Nano, and RFC3339
dateFormats := []string{
"2006-01-02 15:04:05-07:00", // SQLite DATETIME format
"2006-01-02 15:04:05.999999999-07:00", // SQLite with fractional seconds
time.RFC3339Nano,
time.RFC3339,
}
var parseErr error
for _, format := range dateFormats {
v.Date, parseErr = time.Parse(format, dateStr.String)
if parseErr == nil {
break // Successfully parsed
}
}
if parseErr != nil {
fmt.Fprintf(os.Stderr, "Error parsing date '%s' for version '%s': %v\n", dateStr.String, v.Name, parseErr)
}
}
if prNumbersJSON != "" {

View File

@@ -470,7 +470,8 @@ func (g *Generator) generateRawVersionContent(version *git.Version) string {
}
// There are occasionally no PRs or direct commits other than version bumps, so we handle that gracefully
if len(prCommits) == 0 && len(directCommits) == 0 {
// However, don't return early if we have PRs to output from version.PRNumbers
if len(prCommits) == 0 && len(directCommits) == 0 && len(version.PRNumbers) == 0 {
return ""
}

View File

@@ -291,8 +291,9 @@ func (g *Generator) CreateNewChangelogEntry(version string) error {
fmt.Fprintf(os.Stderr, "Warning: Failed to update last_processed_tag: %v\n", err)
}
// Update last_pr_sync to current time
if err := g.cache.SetLastPRSync(time.Now()); err != nil {
// Update last_pr_sync to the version date (not current time)
// This ensures future runs will fetch PRs merged after this version
if err := g.cache.SetLastPRSync(versionDate); err != nil {
fmt.Fprintf(os.Stderr, "Warning: Failed to update last_pr_sync: %v\n", err)
}
}

View File

@@ -24,30 +24,4 @@ Take a step back and think step-by-step about how to achieve the best possible r
# INPUT
INPUT:# IDENTITY and PURPOSE
You are an AI assistant whose primary responsibility is to interpret and analyze psychological profiles and/or psychology data files provided as input. Your role is to carefully process this data and use your expertise to develop a tailored plan aimed at spiritual and mental healing, as well as overall life improvement for the subject. You must approach each case with sensitivity, applying psychological knowledge and holistic strategies to create actionable, personalized recommendations that address both mental and spiritual well-being. Your focus is on structured, compassionate, and practical guidance that can help the individual make meaningful improvements in their life.
Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.
# STEPS
- Carefully review the psychological-profile and/or psychology data file provided as input.
- Analyze the data to identify key issues, strengths, and areas needing improvement related to the subject's mental and spiritual well-being.
- Develop a comprehensive plan that includes specific strategies for spiritual healing, mental health improvement, and overall life enhancement.
- Structure your output to clearly outline recommendations, resources, and actionable steps tailored to the individual's unique profile.
# OUTPUT INSTRUCTIONS
- Only output Markdown.
- Ensure your output is organized, clear, and easy to follow, using headings, subheadings, and bullet points where appropriate.
- Ensure you follow ALL these instructions when creating your output.
# INPUT
INPUT:
INPUT

View File

@@ -145,6 +145,8 @@ func (h *ChatHandler) HandleChat(c *gin.Context) {
FrequencyPenalty: request.FrequencyPenalty,
PresencePenalty: request.PresencePenalty,
Thinking: request.Thinking,
Search: request.Search,
SearchLocation: request.SearchLocation,
UpdateChan: streamChan,
Quiet: true,
}

View File

@@ -1 +1 @@
"1.4.368"
"1.4.372"