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
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Run cargo from packages/deckd so rustup picks up its rust-toolchain.toml.
- name: Show Rust toolchain
working-directory: packages/deckd
run: rustc --version && cargo --version
- name: Build deckd
run: cargo build --locked --manifest-path packages/deckd/Cargo.toml
working-directory: packages/deckd
run: cargo build --locked
- name: Test deckd
working-directory: packages/deckd
run: cargo test --locked
- name: Preserve deckd for collaboration replay
uses: actions/upload-artifact@v4
with:
Expand Down
12 changes: 12 additions & 0 deletions docs/deck-daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,18 @@ History (compat with today’s historyd client in
| `POST /file-list-at` | `{ dir, revisionId }` | paths — **close the CLI gap** |
| `POST /restore-plan` | `{ dir, revisionId }` | `{ writes, deletes }` |

Explicit commits, for a writer that stages content itself and must record each
write exactly once. These address a bare history repo by path rather than a
depot; the [deckd README](../packages/deckd/README.md#explicit-commits) has the
full contract:

| Route | Body (sketch) | Result |
| ----------------- | -------------------------------------------------------------------- | --------------------------------------------------------- |
| `POST /commit` | `{ repo, parent, operationId, author, message, trailers?, changes }` | `{ revision, tree, created, replayed }`, or a typed error |
| `POST /outcome` | `{ repo, operationId }` | `committed` + revision, or `absent` (fences the ID) |
| `POST /head` | `{ repo }` | `{ revision, tree }` |
| `POST /tree-hash` | `{ repo, revision }` | `{ tree }`, the git tree ID |

Build (deferred — **not** on the Hub serve path):

| Route | Body (sketch) | Result |
Expand Down
Loading
Loading