openwriter 0.40.1 → 0.40.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index-Dxbv2n2m.js → index-BjaX2BWN.js} +49 -49
- package/dist/client/index.html +1 -1
- package/dist/plugins/authors-voice/dist/index.d.ts +48 -0
- package/dist/plugins/authors-voice/dist/index.js +235 -0
- package/dist/plugins/authors-voice/package.json +24 -0
- package/dist/plugins/authors-voice/skill/LICENSE +21 -0
- package/dist/plugins/authors-voice/skill/README.md +126 -0
- package/dist/plugins/authors-voice/skill/SKILL.md +151 -0
- package/dist/plugins/authors-voice/skill/catalog/ai-tells.md +144 -0
- package/dist/plugins/authors-voice/skill/catalog/anchor-prompt.md +189 -0
- package/dist/plugins/authors-voice/skill/catalog/author-hints.md +119 -0
- package/dist/plugins/authors-voice/skill/catalog/fingerprints.md +175 -0
- package/dist/plugins/authors-voice/skill/catalog/hurdle.md +76 -0
- package/dist/plugins/authors-voice/skill/catalog/post-write-audit.md +105 -0
- package/dist/plugins/authors-voice/skill/docs/analysis.md +31 -0
- package/dist/plugins/authors-voice/skill/docs/anchor-iteration.md +176 -0
- package/dist/plugins/authors-voice/skill/docs/api/import.md +78 -0
- package/dist/plugins/authors-voice/skill/docs/api/protocol.md +140 -0
- package/dist/plugins/authors-voice/skill/docs/api/setup.md +37 -0
- package/dist/plugins/authors-voice/skill/docs/api/tools.md +102 -0
- package/dist/plugins/authors-voice/skill/docs/api/troubleshooting.md +7 -0
- package/dist/plugins/authors-voice/skill/docs/apply-protocol-deep.md +191 -0
- package/dist/plugins/authors-voice/skill/docs/context-hygiene.md +33 -0
- package/dist/plugins/authors-voice/skill/docs/setup.md +74 -0
- package/dist/plugins/authors-voice/skill/docs/tiers.md +13 -0
- package/dist/plugins/authors-voice/skill/package.json +35 -0
- package/dist/plugins/authors-voice/skill/prompts/skeleton.md +29 -0
- package/dist/plugins/authors-voice/skill/voice/README.md +51 -0
- package/dist/plugins/authors-voice/skill/voice/corpus/.gitkeep +0 -0
- package/dist/plugins/github/dist/blog-tools.d.ts +84 -0
- package/dist/plugins/github/dist/blog-tools.js +1208 -0
- package/dist/plugins/github/dist/git-sync.d.ts +46 -0
- package/dist/plugins/github/dist/git-sync.js +335 -0
- package/dist/plugins/github/dist/helpers.d.ts +127 -0
- package/dist/plugins/github/dist/helpers.js +67 -0
- package/dist/plugins/github/dist/index.d.ts +12 -0
- package/dist/plugins/github/dist/index.js +112 -0
- package/dist/plugins/github/package.json +24 -0
- package/dist/plugins/image-gen/dist/index.d.ts +35 -0
- package/dist/plugins/image-gen/dist/index.js +149 -0
- package/dist/plugins/image-gen/package.json +26 -0
- package/dist/plugins/publish/dist/helpers.d.ts +66 -0
- package/dist/plugins/publish/dist/helpers.js +199 -0
- package/dist/plugins/publish/dist/index.d.ts +3 -0
- package/dist/plugins/publish/dist/index.js +1156 -0
- package/dist/plugins/publish/dist/newsletter-tools.d.ts +2 -0
- package/dist/plugins/publish/dist/newsletter-tools.js +394 -0
- package/dist/plugins/publish/package.json +31 -0
- package/dist/plugins/x-api/dist/index.d.ts +27 -0
- package/dist/plugins/x-api/dist/index.js +368 -0
- package/dist/plugins/x-api/dist/server-bridge.d.ts +22 -0
- package/dist/plugins/x-api/dist/server-bridge.js +43 -0
- package/dist/plugins/x-api/package.json +27 -0
- package/dist/server/blog-routes.js +160 -0
- package/dist/server/documents.js +56 -9
- package/dist/server/git-sync.js +273 -0
- package/dist/server/marks.js +182 -0
- package/dist/server/mcp.js +68 -18
- package/dist/server/sync-routes.js +75 -0
- package/package.json +1 -1
- package/skill/SKILL.md +15 -7
- package/skill/docs/enrichment.md +180 -0
- package/skill/docs/footnotes.md +178 -0
- package/skill/docs/setup.md +62 -0
- package/skill/docs/welcome.md +21 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# OpenWriter Setup
|
|
2
|
+
|
|
3
|
+
## Quick install
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx openwriter setup
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This installs openwriter globally, configures the MCP server for Claude Code, and copies this skill — all in one step. After it finishes, the user just needs to restart their Claude Code session.
|
|
10
|
+
|
|
11
|
+
## Claude Code
|
|
12
|
+
|
|
13
|
+
**Fallback (if the command above fails):** Do it manually:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g openwriter
|
|
17
|
+
claude mcp add -s user openwriter -- openwriter --no-open
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If `claude mcp add` can't run (e.g. nested session error), edit `~/.claude.json` directly. Add `openwriter` as the **first entry** in `mcpServers`:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"mcpServers": {
|
|
25
|
+
"openwriter": {
|
|
26
|
+
"command": "openwriter",
|
|
27
|
+
"args": ["--no-open"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## OpenCode
|
|
34
|
+
|
|
35
|
+
Same binary, different config format. Add to `opencode.json` at the project root:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"$schema": "https://opencode.ai/config.json",
|
|
40
|
+
"mcp": {
|
|
41
|
+
"openwriter": {
|
|
42
|
+
"type": "local",
|
|
43
|
+
"command": ["openwriter", "--no-open"],
|
|
44
|
+
"enabled": true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
OpenCode auto-discovers the skill at `~/.claude/skills/openwriter/SKILL.md` — no copy needed.
|
|
51
|
+
|
|
52
|
+
The enrichment minion is NOT auto-discovered. Place it at one of:
|
|
53
|
+
|
|
54
|
+
- `~/.config/opencode/agents/openwriter-enrichment-minion.md` (global, all projects)
|
|
55
|
+
- `.opencode/agents/openwriter-enrichment-minion.md` (this project only, repo root)
|
|
56
|
+
|
|
57
|
+
Source file lives at `~/.claude/skills/openwriter/agents/openwriter-enrichment-minion.md` after `npx openwriter setup`. Copy it to one of the paths above and restart OpenCode. The filename becomes the agent name OpenCode resolves when the parent dispatches it.
|
|
58
|
+
|
|
59
|
+
## After setup
|
|
60
|
+
|
|
61
|
+
1. Restart your Claude Code or OpenCode session (MCP servers load on startup)
|
|
62
|
+
2. Open http://localhost:5050 in your browser
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Welcome to OpenWriter
|
|
2
|
+
|
|
3
|
+
What you're looking at right now is how we collaborate. These green highlights are my proposed changes — I write, you review. Use the review panel on the right to navigate (j/k), accept (a), or reject (r) each change. Try it now.
|
|
4
|
+
|
|
5
|
+
## Create Documents
|
|
6
|
+
|
|
7
|
+
Hit the **+** button in the sidebar to create different document types: blog posts, newsletters, tweets, LinkedIn posts, and articles. Each type has its own compose view tailored to that format. Or just ask me to write something and I'll create the right doc type for you.
|
|
8
|
+
|
|
9
|
+
## Workspaces
|
|
10
|
+
|
|
11
|
+
Organize your documents into workspaces with containers and tags. This is especially powerful for book writing — each chapter is a document, grouped into sections as containers. I can see your full workspace structure and work across multiple docs.
|
|
12
|
+
|
|
13
|
+
## Plugins
|
|
14
|
+
|
|
15
|
+
**Author's Voice** — Feed me your writing samples and I'll write in your voice. Not an approximation — I pull your actual patterns, cadence, and word choices from your corpus.
|
|
16
|
+
|
|
17
|
+
**Publish** — Send newsletters to your subscriber list, post to X/Twitter, publish blog posts to GitHub, and schedule content. All from inside the editor, no copy-pasting to other platforms.
|
|
18
|
+
|
|
19
|
+
## What's Next
|
|
20
|
+
|
|
21
|
+
Ask me to write something. A blog post, a tweet thread, a newsletter — whatever you're working on. I'll create a doc for it and we'll iterate together.
|