speclock 1.3.0 → 1.3.1

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 (2) hide show
  1. package/README.md +66 -28
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SpecLock
2
2
 
3
- **AI Continuity Engine** — The MCP server that kills AI amnesia.
3
+ **AI Continuity Engine** — MCP server + npm package that kills AI amnesia. Works with Lovable, Claude Code, Cursor, Bolt.new, and more.
4
4
 
5
5
  > Developed by **Sandeep Roy** ([github.com/sgroy10](https://github.com/sgroy10))
6
6
 
@@ -94,7 +94,28 @@ The MCP server gives the AI tools for memory and constraint checking. The projec
94
94
 
95
95
  **Windsurf / Cline / Any MCP tool** — Same pattern as above.
96
96
 
97
- ### 2. Add Project Instructions (Required)
97
+ **Bolt.new / Aider / Any platform with npm** (NEW in v1.3.0):
98
+
99
+ No MCP needed. Just tell the AI:
100
+
101
+ ```
102
+ "Install speclock and set up project memory"
103
+ ```
104
+
105
+ Or run it yourself:
106
+
107
+ ```bash
108
+ npx speclock setup --goal "Build my app"
109
+ ```
110
+
111
+ This creates:
112
+ - `SPECLOCK.md` — AI rules file (the AI reads this automatically)
113
+ - `.speclock/brain.json` — Project memory
114
+ - `.speclock/context/latest.md` — Context file for the AI
115
+
116
+ **That's it.** The AI reads `SPECLOCK.md`, follows the rules, and uses CLI commands (`npx speclock lock "..."`, `npx speclock check "..."`, etc.) instead of MCP tools. Tested and working on Bolt.new — the AI ran 17 commands automatically on first install.
117
+
118
+ ### 2. Add Project Instructions (Required for MCP platforms)
98
119
 
99
120
  > **This is the critical step.** Without project instructions, the AI has the tools but won't use them automatically. With them, SpecLock becomes an active guardrail.
100
121
 
@@ -202,7 +223,7 @@ AI: 🔓 Unlocked. Proceeding with auth file changes.
202
223
  | `speclock_checkpoint` | Create named git tag for rollback |
203
224
  | `speclock_repo_status` | Branch, commit, changed files, diff |
204
225
 
205
- ### Intelligence (NEW in v1.1)
226
+ ### Intelligence
206
227
  | Tool | Purpose |
207
228
  |------|---------|
208
229
  | `speclock_suggest_locks` | AI-powered lock suggestions from patterns |
@@ -262,50 +283,67 @@ Multi-Agent Timeline:
262
283
 
263
284
  ## CLI Commands
264
285
 
265
- ```
286
+ ```bash
287
+ # Setup (NEW in v1.3.0)
288
+ speclock setup --goal "Build my app" Full one-shot setup (init + SPECLOCK.md + context)
289
+
290
+ # Memory Management
266
291
  speclock init Initialize SpecLock
267
292
  speclock goal <text> Set project goal
268
293
  speclock lock <text> [--tags a,b] Add a SpecLock constraint
269
294
  speclock lock remove <id> Remove a lock
270
295
  speclock decide <text> Record a decision
271
296
  speclock note <text> Add a note
272
- speclock facts deploy --provider X Set deploy facts
297
+
298
+ # Change Tracking
299
+ speclock log-change <text> --files x Log a significant change (NEW in v1.3.0)
273
300
  speclock context Generate and print context pack
301
+
302
+ # Protection
303
+ speclock check <text> Check for lock conflicts (NEW in v1.3.0)
304
+
305
+ # Other
306
+ speclock facts deploy --provider X Set deploy facts
274
307
  speclock watch Start file watcher
275
308
  speclock serve [--project <path>] Start MCP server
276
309
  speclock status Show brain summary
277
310
  ```
278
311
 
279
- ## Why MCP?
312
+ ## Three Integration Modes
280
313
 
281
- MCP (Model Context Protocol) is the universal integration standard for AI tools. One SpecLock MCP server works with:
314
+ SpecLock works everywhere because it adapts to your platform:
282
315
 
283
- - Claude Code
284
- - Cursor
285
- - Windsurf
286
- - Cline
287
- - Codex
288
- - Any MCP-compatible tool
316
+ | Mode | Platforms | How It Works |
317
+ |------|-----------|--------------|
318
+ | **MCP Remote** | Lovable, bolt.diy, Base44 | Connect via URL — no install needed |
319
+ | **MCP Local** | Claude Code, Cursor, Windsurf, Cline | `npx speclock serve` — 19 tools via MCP |
320
+ | **npm File-Based** | Bolt.new, Aider, Rocket.new | `npx speclock setup` — AI reads SPECLOCK.md + uses CLI |
289
321
 
290
322
  SpecLock is infrastructure, not a competitor. It makes **every** AI coding tool better.
291
323
 
292
324
  ## Architecture
293
325
 
294
326
  ```
295
- ┌─────────────────────────────────────────────────────────┐
296
- AI Tool (Claude Code, Cursor, etc.)
297
- └────────────────────┬────────────────────────────────────┘
298
- MCP Protocol (stdio)
299
- ┌────────────────────▼────────────────────────────────────┐
300
- │ SpecLock MCP Server (19 tools) │
301
- │ Memory | Tracking | Protection | Git | Intelligence │
302
- └────────────────────┬────────────────────────────────────┘
303
-
304
- .speclock/
305
- ├── brain.json (structured memory)
306
- ├── events.log (immutable audit trail)
307
- ├── patches/ (git diffs per event)
308
- └── context/ (generated context packs)
327
+ ┌─────────────────────────────────────────────────────┐
328
+ AI Tool (Bolt.new, Lovable, Claude Code)
329
+ └──────────────┬──────────────────┬────────────────────┘
330
+
331
+ MCP Protocol File-Based (npm)
332
+ (19 tool calls) (reads SPECLOCK.md +
333
+ .speclock/context/latest.md,
334
+ runs CLI commands)
335
+
336
+ ┌──────────────▼──────────────────▼────────────────────┐
337
+ SpecLock Core Engine │
338
+ │ Memory | Tracking | Protection | Git | Intelligence │
339
+ └──────────────────────┬───────────────────────────────┘
340
+
341
+ .speclock/
342
+ ├── brain.json (structured memory)
343
+ ├── events.log (immutable audit trail)
344
+ ├── patches/ (git diffs per event)
345
+ └── context/
346
+ └── latest.md (human-readable context)
309
347
  ```
310
348
 
311
349
  ## Contributing
@@ -326,4 +364,4 @@ MIT License - see [LICENSE](LICENSE) file.
326
364
 
327
365
  ---
328
366
 
329
- *SpecLock — Because no AI session should ever forget.*
367
+ *SpecLock v1.3.0 — Because no AI session should ever forget.*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speclock",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "AI continuity engine — MCP server + CLI that kills AI amnesia. Maintains project memory, enforces constraints, and detects drift across AI coding sessions.",
5
5
  "type": "module",
6
6
  "main": "src/mcp/server.js",