Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
/docs/superpowers/
/.worktrees/

# opencode CLI's own local state (node_modules, package.json/lock, plans dir)
/.opencode/

# Per-repo agentflare-backend project link (Vercel-style .vercel/project.json
# equivalent) — machine-local, not something to share via git.
/.agentflare/

# Local onpush doc-generation tooling (machine-specific, not part of the project)
/.onpush/
/onpush_run.log
Expand Down
41 changes: 41 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["crates/ponytail", "crates/agent-registry", "crates/skill-registry", "crates/gateway-registry", "crates/caveman", "crates/agentflare-artifacts"]
members = ["crates/ponytail", "crates/agent-registry", "crates/skill-registry", "crates/gateway-registry", "crates/caveman", "crates/agentflare-artifacts", "crates/agentflare-backend", "crates/agentflare-db-kit"]
resolver = "2"

[package]
Expand Down Expand Up @@ -66,6 +66,8 @@ caveman = { package = "agentflare-caveman", path = "crates/caveman" }
regex = "1"
sysinfo = { version = "0.34", optional = true, default-features = false, features = ["system"] }
agentflare-artifacts = { path = "crates/agentflare-artifacts" }
agentflare-backend = { package = "agentflare-backend", path = "crates/agentflare-backend" }
db_kit = { package = "agentflare-db-kit", path = "crates/agentflare-db-kit" }
agent-detector = "0.2.1"

[features]
Expand Down
16 changes: 16 additions & 0 deletions crates/agentflare-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Initial crate scaffold with 8-table schema (workspaces, projects, states, items, labels, webhooks, assets, project_sequences) + 3 junction tables (item_labels, item_assignees, item_dependencies)
- CRUD for all entities with soft-delete, partial unique indexes, UUIDv7 primary keys
- State machine with 6 fixed groups + custom names, seeded on project creation
- Per-project auto-increment sequence IDs
- Error type with NotFound, Duplicate, InvalidTransition variants
23 changes: 23 additions & 0 deletions crates/agentflare-backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "agentflare-backend"
version = "0.1.0"
edition = "2024"
rust-version = "1.91"
license = "MIT"
description = "Universal agent backend: workspace/project/item schema + CRUD, ported from Plane's domain model."
publish = false

[dependencies]
rusqlite = { version = "0.40", features = ["bundled"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4", "v7"] }
thiserror = "2"
ureq = { version = "2", features = ["json"] }
sha2 = "0.10"
hmac = "0.12"
hex = "0.4"
url = "2"

[dev-dependencies]
tempfile = "3"
Loading
Loading