Skip to content

Commit a34b43e

Browse files
committed
Add
0 parents  commit a34b43e

65 files changed

Lines changed: 8329 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# openreason configuration
2+
3+
# api keys (required)
4+
OPENAI_API_KEY=your_openai_key_here
5+
ANTHROPIC_API_KEY=your_anthropic_key_here
6+
GOOGLE_API_KEY=your_google_key_here
7+
XAI_API_KEY=your_xai_key_here
8+
9+
# llm provider selection
10+
PROVIDER=openai
11+
12+
# model selection
13+
OPENREASON_SIMPLE_MODEL=gpt-4o-mini
14+
OPENREASON_MODERATE_MODEL=gpt-4o
15+
OPENREASON_COMPLEX_MODEL=gpt-4o
16+
17+
# confidence weights
18+
OPENREASON_WEIGHT_LOGICAL=0.4
19+
OPENREASON_WEIGHT_RULE=0.4
20+
OPENREASON_WEIGHT_EMPATHY=0.2
21+
22+
# memory settings
23+
OPENREASON_MEMORY_ENABLED=true
24+
OPENREASON_MEMORY_PATH=./data/openreason_memory.db
25+
OPENREASON_BLUEPRINT_THRESH=0.85
26+
OPENREASON_EVOL_INTERVAL=100
27+
28+
# performance
29+
OPENREASON_MAX_RETRIES=3
30+
OPENREASON_TIMEOUT=30000
31+
OPENREASON_CACHING=true
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: 🐛 Bug Report
2+
description: Create a report to help us improve
3+
title: "[BUG] "
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
11+
- type: textarea
12+
id: what-happened
13+
attributes:
14+
label: What happened?
15+
description: Also tell us, what did you expect to happen?
16+
placeholder: Tell us what you see!
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: steps-to-reproduce
22+
attributes:
23+
label: Steps to Reproduce
24+
description: Please provide clear steps to reproduce the issue
25+
placeholder: |
26+
1. Go to '...'
27+
2. Click on '....'
28+
3. Scroll down to '....'
29+
4. See error
30+
validations:
31+
required: true
32+
33+
- type: dropdown
34+
id: component
35+
attributes:
36+
label: Component
37+
description: Which part of the application is affected?
38+
options:
39+
- Frontend (React/UI)
40+
- Backend (API/Server)
41+
- Database
42+
- Authentication
43+
- File Upload
44+
- Chat/WebSocket
45+
- AI/LLM Integration
46+
- Other
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: environment
52+
attributes:
53+
label: Environment
54+
description: Please provide information about your environment
55+
placeholder: |
56+
- OS: [e.g. Windows 10, macOS 12.0, Ubuntu 20.04]
57+
- Browser: [e.g. Chrome 96, Firefox 95, Safari 15]
58+
- Node.js version: [if applicable]
59+
- Docker version: [if using Docker]
60+
validations:
61+
required: false
62+
63+
- type: textarea
64+
id: logs
65+
attributes:
66+
label: Relevant log output
67+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
68+
render: shell
69+
70+
- type: checkboxes
71+
id: terms
72+
attributes:
73+
label: Code of Conduct
74+
description: By submitting this issue, you agree to follow our Code of Conduct
75+
options:
76+
- label: I agree to follow this project's Code of Conduct
77+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💬 Discussions
4+
url: https://github.com/CaviraOSS/openmemory/discussions
5+
about: Ask questions and discuss ideas with the community
6+
- name: 📖 Documentation
7+
url: https://github.com/openmemory/openmemory/wiki
8+
about: Check out the project documentation
9+
- name: 🔒 Security Issue
10+
url: https://github.com/CaviraOSS/openmemory/security/advisories/new
11+
about: Report a security vulnerability privately
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: ✨ Feature Request
2+
description: Suggest an idea for this project
3+
title: "[FEATURE] "
4+
labels: ["enhancement", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for suggesting a new feature! Please provide as much detail as possible.
10+
11+
- type: textarea
12+
id: problem
13+
attributes:
14+
label: Is your feature request related to a problem?
15+
description: A clear and concise description of what the problem is
16+
placeholder: I'm always frustrated when...
17+
validations:
18+
required: false
19+
20+
- type: textarea
21+
id: solution
22+
attributes:
23+
label: Describe the solution you'd like
24+
description: A clear and concise description of what you want to happen
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: alternatives
30+
attributes:
31+
label: Describe alternatives you've considered
32+
description: A clear and concise description of any alternative solutions or features you've considered
33+
validations:
34+
required: false
35+
36+
- type: dropdown
37+
id: component
38+
attributes:
39+
label: Component
40+
description: Which part of the application would this feature affect?
41+
options:
42+
- Frontend (React/UI)
43+
- Backend (API/Server)
44+
- Database
45+
- Authentication
46+
- File Upload
47+
- Chat/WebSocket
48+
- AI/LLM Integration
49+
- Documentation
50+
- DevOps/Infrastructure
51+
- Other
52+
validations:
53+
required: true
54+
55+
- type: dropdown
56+
id: priority
57+
attributes:
58+
label: Priority
59+
description: How important is this feature to you?
60+
options:
61+
- Low
62+
- Medium
63+
- High
64+
- Critical
65+
validations:
66+
required: true
67+
68+
- type: textarea
69+
id: additional-context
70+
attributes:
71+
label: Additional context
72+
description: Add any other context, screenshots, or examples about the feature request here
73+
validations:
74+
required: false
75+
76+
- type: checkboxes
77+
id: terms
78+
attributes:
79+
label: Code of Conduct
80+
description: By submitting this issue, you agree to follow our Code of Conduct
81+
options:
82+
- label: I agree to follow this project's Code of Conduct
83+
required: true

.github/pull_request_template.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## 📋 Description
2+
3+
<!-- Provide a brief description of the changes in this PR -->
4+
5+
## 🔄 Type of Change
6+
7+
<!-- Mark the relevant option with an "x" -->
8+
9+
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
10+
- [ ] ✨ New feature (non-breaking change which adds functionality)
11+
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] 📚 Documentation update
13+
- [ ] 🎨 Style/UI changes
14+
- [ ] ♻️ Code refactoring
15+
- [ ] ⚡ Performance improvements
16+
- [ ] 🧪 Test updates
17+
- [ ] 🔧 Build/CI changes
18+
19+
## 🧪 Testing
20+
21+
<!-- Describe the tests you ran and/or added -->
22+
23+
- [ ] I have tested this change locally
24+
- [ ] I have added tests that prove my fix is effective or that my feature works
25+
- [ ] New and existing unit tests pass locally with my changes
26+
27+
## 📱 Screenshots (if applicable)
28+
29+
<!-- Add screenshots for UI changes -->
30+
31+
## 🔍 Code Review Checklist
32+
33+
<!-- For reviewers -->
34+
35+
- [ ] Code follows the project's coding standards
36+
- [ ] Self-review of the code has been performed
37+
- [ ] Code is properly commented, particularly in hard-to-understand areas
38+
- [ ] Changes generate no new warnings
39+
- [ ] Any dependent changes have been merged and published
40+
41+
## 📚 Related Issues
42+
43+
<!-- Link any related issues using "Closes #issue_number" or "Fixes #issue_number" -->
44+
45+
## 🚀 Deployment Notes
46+
47+
<!-- Any special deployment considerations -->
48+
49+
## 📋 Additional Context
50+
51+
<!-- Add any other context about the PR here -->

.github/workflows/contribute.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
contrib-readme-job:
8+
runs-on: ubuntu-latest
9+
name: A job to automate contrib in readme
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
steps:
14+
- name: Contribute List
15+
uses: akhilmhdh/contributors-readme-action@v2.3.11
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: publish openreason
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches: [main]
8+
paths:
9+
- "src/**"
10+
- "package.json"
11+
- "tsconfig.json"
12+
workflow_dispatch:
13+
14+
jobs:
15+
publish-npm:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "22"
23+
registry-url: "https://registry.npmjs.org"
24+
25+
- name: get version
26+
id: version
27+
run: |
28+
VERSION=$(node -p "require('./package.json').version")
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
echo "Publishing openreason@$VERSION"
31+
32+
- name: install deps
33+
run: npm ci
34+
35+
- name: build
36+
run: npm run build
37+
38+
- name: publish
39+
run: npm publish --access public
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
43+
- name: notify
44+
run: |
45+
echo "✅ Published openreason@${{ steps.version.outputs.version }}"

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
data
3+
.env
4+
temp
5+
dist
6+
reasonbench
7+
build

.npmignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Source and development files
2+
src/
3+
tests/
4+
temp/
5+
*.backup
6+
7+
# Config and dev files
8+
tsconfig.json
9+
.editorconfig
10+
.vscode/
11+
.idea/
12+
13+
# Documentation (only README is included)
14+
architecture.md
15+
CONTRIBUTING.md
16+
CODE_OF_CONDUCT.md
17+
SECURITY.md
18+
19+
# Git and CI
20+
.git/
21+
.gitignore
22+
.gitattributes
23+
.github/
24+
25+
# Test files
26+
*.test.ts
27+
*.spec.ts
28+
coverage/
29+
30+
# Build artifacts
31+
node_modules/
32+
*.log
33+
34+
# Environment
35+
.env
36+
.env.example
37+
38+
# OS files
39+
.DS_Store
40+
Thumbs.db
41+
42+
# Data
43+
data/
44+
public/

0 commit comments

Comments
 (0)