shardstitch 0.0.9 → 0.0.10

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.
Files changed (3) hide show
  1. package/README.md +71 -65
  2. package/cli.js +15 -8
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,65 +1,71 @@
1
- # ShardStitch
2
-
3
- **"Rate limit reached." "Context window full." "VRAM out of memory."**
4
-
5
- Your code is half-written. Your plan is in your head. ShardStitch captures your entire session — git diff, changed files, dependency graph, intent — and stitches it into the next AI tool. One hotkey. Keep building like nothing happened.
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install shardstitch
11
- npx shardstitch
12
- ```
13
-
14
- ## What it does
15
-
16
- When Claude, Cursor, Codex, or Gemini locks you out mid-session, ShardStitch:
17
-
18
- 1. **Scans your project** — git diff, changed files, recent commits, your notes
19
- 2. **Builds a dependency graph** — impact radius, architecture communities — and warns the next AI what's dangerous to touch
20
- 3. **Generates a continuation prompt** formatted for the target tool
21
- 4. **Injects it** into the tool's pickup file (CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules) for automatic discovery
22
-
23
- Under 30 seconds, end to end.
24
-
25
- ## Not just for switching tools
26
-
27
- The same trick fixes a bloated session in the *same* tool. Long AI chats accumulate a huge context tree — token burn climbs, responses slow down, and eventually you hit "Service is busy" even with quota left. ShardStitch is the clean-restart button: extract a compact context, open a fresh window of the same tool, paste, keep going.
28
-
29
- ## 22 supported AI tools
30
-
31
- Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, Windsurf, Aider, Kiro, Amazon Q Developer, DeepSeek, OpenCode, Trae, Factory Droid, OpenClaw, Amp, Cline, Roo Code, Kilo Code, Crush, Kimi, Qwen Code, and Antigravity.
32
-
33
- **Coming soon:** Cody, Continue, Replit Agent, JetBrains AI, Tabnine.
34
-
35
- ## 7 surfaces
36
-
37
- - **Web dashboard** — scan, generate, copy, download
38
- - **VS Code / Cursor extension** — Alt+G hotkey
39
- - **MCP server** — Claude Code and Cursor call it directly
40
- - **CLI** — `npx shardstitch` or `shardstitch capture`
41
- - **Desktop app** — standalone Windows exe
42
- - **Autosave hooks** — auto-inject on session end
43
- - **Local LLM failover** — Ollama, vLLM, LM Studio (zero cloud)
44
-
45
- ## Key features
46
-
47
- - **Per-agent formatting** — 22 format adapters, one for each tool
48
- - **AI task router** — semantic matching picks the best tool for each task
49
- - **Persistent memory** — project decisions survive across sessions
50
- - **Team coordination** — shared `.shardstitch/` directory
51
- - **Tamper-evident audit trail** — hash-chained timeline logs
52
- - **Dependency graph analysis** — impact radius, god nodes, architecture communities
53
-
54
- ## 100% local
55
-
56
- Your code never leaves your machine. No cloud, no telemetry, no account required. All processing happens on your hardware.
57
-
58
- ## Links
59
-
60
- - Website: https://shardstitch.com
61
- - GitHub: https://github.com/shardstitch/shardstitch
62
- - X / Twitter: https://x.com/ShardStitch
63
- - VS Code / Cursor Extension: https://marketplace.visualstudio.com/items?itemName=shardstitch.shardstitch
64
- - Changelog: https://github.com/shardstitch/shardstitch/releases
65
- - Support: support@shardstitch.com
1
+ # ShardStitch
2
+
3
+ **"Rate limit reached." "Context window full." "VRAM out of memory."**
4
+
5
+ Your code is half-written. Your plan is in your head. ShardStitch captures your entire session — git diff, changed files, dependency graph, intent — and stitches it into the next AI tool. One hotkey. Keep building like nothing happened.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g shardstitch # installs the launcher
11
+ shardstitch install <your-license-key> # after purchase — downloads & activates the app
12
+ shardstitch # launch the dashboard
13
+ ```
14
+
15
+ ShardStitch is a **one-time purchase** (no subscription). `npm install` gives you the
16
+ installer; activate it with the license key from your purchase email. Get a key at
17
+ [shardstitch.com](https://shardstitch.com).
18
+
19
+ ## What it does
20
+
21
+ When Claude, Cursor, Codex, or Gemini locks you out mid-session, ShardStitch:
22
+
23
+ 1. **Scans your project** — git diff, changed files, recent commits, your notes
24
+ 2. **Builds a dependency graph** — impact radius, architecture communities — and warns the next AI what's dangerous to touch
25
+ 3. **Generates a continuation prompt** formatted for the target tool
26
+ 4. **Injects it** into the tool's pickup file (CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules) for automatic discovery
27
+
28
+ Under 30 seconds, end to end.
29
+
30
+ ## Not just for switching tools
31
+
32
+ The same trick fixes a bloated session in the *same* tool. Long AI chats accumulate a huge context tree — token burn climbs, responses slow down, and eventually you hit "Service is busy" even with quota left. ShardStitch is the clean-restart button: extract a compact context, open a fresh window of the same tool, paste, keep going.
33
+
34
+ ## 23 supported AI tools
35
+
36
+ Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, Windsurf, Aider, Kiro, Amazon Q Developer, DeepSeek, OpenCode, Trae, Factory Droid, OpenClaw, Amp, Cline, Roo Code, Kilo Code, Crush, Kimi, Qwen Code, Antigravity, and Grok.
37
+
38
+ ## 7 surfaces
39
+
40
+ - **Web dashboard** — scan, generate, copy, download
41
+ - **VS Code / Cursor extension** — Alt+G hotkey
42
+ - **MCP server** — Claude Code, Cursor, and Windsurf call it directly
43
+ - **CLI** — `npx shardstitch` or `shardstitch capture`
44
+ - **Desktop app** — standalone Windows exe
45
+ - **Autosave hooks** — auto-inject on session end
46
+ - **Local LLM failover** — Ollama, vLLM, LM Studio (zero cloud)
47
+
48
+ ## Key features
49
+
50
+ - **Per-agent formatting** — 22 per-agent format adapters across the 23 supported tools
51
+ - **AI task router** — semantic matching picks the best tool for each task
52
+ - **Persistent memory** — project decisions survive across sessions
53
+ - **Team coordination** — shared `.shardstitch/` directory
54
+ - **Tamper-evident audit trail** — hash-chained timeline logs
55
+ - **Dependency graph analysis** — impact radius, god nodes, architecture communities
56
+
57
+ ## Local-first
58
+
59
+ Your code and conversations never leave your machine — no telemetry, no cloud
60
+ processing. The **only** network call is a single HTTPS request at activation to
61
+ validate your license key; everything else runs entirely on your hardware.
62
+ Activation needs a license key, not an account.
63
+
64
+ ## Links
65
+
66
+ - Website: https://shardstitch.com
67
+ - GitHub: https://github.com/shardstitch/shardstitch
68
+ - X / Twitter: https://x.com/ShardStitch
69
+ - VS Code / Cursor Extension: https://marketplace.visualstudio.com/items?itemName=shardstitch.shardstitch
70
+ - Changelog: https://github.com/shardstitch/shardstitch/releases
71
+ - Support: support@shardstitch.com
package/cli.js CHANGED
@@ -17,13 +17,21 @@ const ACTIVATION_FILE = join(os.homedir(), ".shardstitch", "activation.json");
17
17
  const MACHINE_SALT = "shardstitch-activation/1";
18
18
 
19
19
  // --- Supply-chain hardening -------------------------------------------------
20
- // The binary SHA-256 is baked into this file at release time. No external
21
- // checksums.json needed Polar delivers the file, we verify the hash locally.
22
- // Update these after every build before publishing.
23
- const CHECKSUMS = {
20
+ // The binary is downloaded over HTTPS and its SHA-256 is verified against the
21
+ // hashes EMBEDDED in this published package BEFORE it is ever made executable
22
+ // or run. Embedding (rather than fetching a manifest from the same host that
23
+ // serves the binary) means a compromised download origin cannot swap the
24
+ // binary without also defeating npm's own package integrity — a strictly
25
+ // stronger trust anchor. Downloads (and any redirects) are additionally
26
+ // restricted to an allowlist of trusted hosts. See SECURITY.md.
27
+ //
28
+ // Keep in lockstep with packages/pypi/shardstitch/__init__.py _CHECKSUMS.
29
+ // Regenerate with: python tools/gen_checksums.py. An empty string means "no
30
+ // binary published for this platform yet" — cmdInstall fails CLOSED on it.
31
+ const EMBEDDED_CHECKSUMS = {
24
32
  windows: "14642911d2f2fee8baf92ad30948b96e01dbd66167bab3ab0cbf443a33ea58a6",
25
- linux: "14642911d2f2fee8baf92ad30948b96e01dbd66167bab3ab0cbf443a33ea58a6",
26
- mac: "14642911d2f2fee8baf92ad30948b96e01dbd66167bab3ab0cbf443a33ea58a6",
33
+ linux: "",
34
+ mac: "",
27
35
  };
28
36
  const TRUSTED_DOWNLOAD_HOST_SUFFIXES = [
29
37
  "shardstitch.com",
@@ -184,7 +192,6 @@ function sha256File(path) {
184
192
  });
185
193
  }
186
194
 
187
-
188
195
  async function cmdInstall(key) {
189
196
  key = key.trim();
190
197
  console.log();
@@ -247,7 +254,7 @@ async function cmdInstall(key) {
247
254
  // on our pinned domain BEFORE making it executable or running it. Fails closed.
248
255
  const allowUnverified = process.argv.includes("--allow-unverified");
249
256
  try {
250
- const expected = (CHECKSUMS[PLATFORM] || "").toLowerCase();
257
+ const expected = (EMBEDDED_CHECKSUMS[PLATFORM] || "").toLowerCase();
251
258
  const actual = (await sha256File(exePath)).toLowerCase();
252
259
  if (!expected) {
253
260
  throw new Error(`no published checksum for platform "${PLATFORM}"`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shardstitch",
3
- "version": "0.0.9",
4
- "description": "ShardStitch — capture your AI coding session (git diff, dependency graph, intent) and stitch it into the next tool. 22 AI tools supported. 100% local, zero telemetry. https://shardstitch.com",
3
+ "version": "0.0.10",
4
+ "description": "ShardStitch — capture your AI coding session (git diff, dependency graph, intent) and stitch it into the next tool. 23 AI tools supported. Local-first, no telemetry. https://shardstitch.com",
5
5
  "homepage": "https://shardstitch.com",
6
6
  "bugs": {
7
7
  "url": "https://github.com/shardstitch/shardstitch/issues"