chore: initial repo skeleton
This commit is contained in:
commit
e1f427511e
8 changed files with 103 additions and 0 deletions
15
.editorconfig
Normal file
15
.editorconfig
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{py,toml}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{ts,tsx,js,jsx,json,yml,yaml,css,md}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
43
.gitignore
vendored
Normal file
43
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# app_data (runtime, not in git except .gitkeep structure)
|
||||
app_data/*
|
||||
!app_data/.gitkeep
|
||||
!app_data/workspaces/
|
||||
app_data/workspaces/*
|
||||
!app_data/workspaces/.gitkeep
|
||||
!app_data/ssh/
|
||||
app_data/ssh/*
|
||||
!app_data/ssh/.gitkeep
|
||||
|
||||
# opencode plugin node_modules
|
||||
.opencode/node_modules/
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.egg-info/
|
||||
*.egg
|
||||
build/
|
||||
dist/
|
||||
.eggs/
|
||||
*.spec
|
||||
|
||||
# Virtual environments
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
# Environment / secrets
|
||||
.env
|
||||
*.env
|
||||
!.env.example
|
||||
!.env.template
|
||||
|
||||
# Testing / quality caches
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
1
.python-version
Normal file
1
.python-version
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.12
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2026 slaid098
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
23
README.md
Normal file
23
README.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# opencode-config
|
||||
|
||||
Docker-based AI coding assistant with persistent memory — opencode configuration.
|
||||
|
||||
## Quick start
|
||||
|
||||
```bash
|
||||
git clone https://github.com/slaid098/opencode-config.git
|
||||
cd opencode-config
|
||||
mkdir -p app_data/{workspaces,ssh}
|
||||
cp .env.example .env # fill in your keys
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Access at http://localhost:4096.
|
||||
|
||||
## Structure
|
||||
|
||||
- `.opencode/` — global opencode config (agents, skills, tools, scripts)
|
||||
- `app_data/workspaces/` — agent working directory
|
||||
- `app_data/ssh/` — SSH keys (not in git)
|
||||
- `app_data/opencode-memory/` — persistent memory (separate git repo)
|
||||
- `src/` — Python RAG CLI (second-brain)
|
||||
0
app_data/.gitkeep
Normal file
0
app_data/.gitkeep
Normal file
0
app_data/ssh/.gitkeep
Normal file
0
app_data/ssh/.gitkeep
Normal file
0
app_data/workspaces/.gitkeep
Normal file
0
app_data/workspaces/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue