mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #1] [MERGED] Add Factory Droid CLI support #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/1
Author: @yigitkonur
Created: 2/19/2026
Status: ✅ Merged
Merged: 2/19/2026
Merged by: @yigitkonur
Base:
main← Head:feat/droid-integration📝 Commits (3)
288c76ffeat: add Factory Droid CLI support059b910test: add Droid fixtures and expand to 30 conversion pathsf457a5dchore: bump to v2.7.0, update docs for Droid support📊 Changes
16 files changed (+950 additions, -26 deletions)
View changed files
➕
CHANGELOG.md(+23 -0)➕
CLAUDE.md(+135 -0)📝
README.md(+8 -5)📝
package.json(+5 -2)📝
src/__tests__/conversions.test.ts(+8 -2)📝
src/__tests__/e2e-conversions.test.ts(+5 -1)📝
src/__tests__/extract-handoffs.ts(+4 -1)📝
src/__tests__/fixtures/index.ts(+131 -0)📝
src/__tests__/unit-conversions.test.ts(+86 -6)📝
src/cli.ts(+14 -5)➕
src/parsers/droid.ts(+508 -0)📝
src/parsers/index.ts(+1 -0)📝
src/types/index.ts(+1 -1)📝
src/utils/index.ts(+6 -2)📝
src/utils/markdown.ts(+1 -0)📝
src/utils/resume.ts(+14 -1)📄 Description
Hey — this adds full support for Factory AI's Droid CLI as the 6th tool in
continues.What changed
Droid stores sessions as JSONL files at
~/.factory/sessions/<workspace-slug>/with a companion.settings.jsonfor model and token metadata. The format turned out to be very close to Claude Code's — Anthropic-styletool_use/tool_resultcontent blocks — so the parser was straightforward to write.New parser (
src/parsers/droid.ts)Handles all the event types I found in real Droid sessions:
session_start— session ID, title, cwd, ownermessage— user/assistant turns withtext,tool_use,tool_result, andthinkingcontent blockstodo_state— extracts pending tasks from Droid's built-in todo trackingcompaction_state— silently skipped (context window management)Tool calls mapped to
SummaryCollectorcategories:Create→write_file,Read→read_file,Edit/ApplyPatch→edit_fileExecute/Bash→shell,LS→ directory listingcontext7___query-docs) → per-tool categoriesTodoWrite→ skipped (internal bookkeeping)Token usage and model info come from the companion
.settings.jsonrather than the JSONL stream.Everything else
All 7 integration points updated:
SessionSourcetype, parser barrel, session index, resume commands (droid -s <id>), markdown labels, CLI colors + quick-resume subcommand.Testing
Version bump
2.6.7 → 2.7.0 (new platform = minor version). Added postinstall message so people know about Droid support when they upgrade.
Test plan
pnpm build— clean compilepnpm test— 84/84 passcontinues list --source droid— discovers real sessionscontinues scan— shows droid in source breakdownSummary by CodeRabbit
Release Notes v2.7.0
New Features
Documentation
Tests
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.