@esneiderbravo/speclaw 0.1.1 → 0.1.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/README.md +12 -8
- package/dist/cli/commands/init.js +16 -26
- package/dist/cli/commands/{spec.js → lawbook.js} +5 -5
- package/dist/cli/commands/visualize.js +44 -0
- package/dist/cli/index.js +11 -8
- package/dist/modules/compass/register.js +10 -0
- package/dist/modules/compass/visualize.js +218 -0
- package/dist/modules/foundation/assets/AGENTS.template.md +4 -4
- package/dist/modules/foundation/assets/CLAUDE.template.md +3 -3
- package/dist/modules/foundation/assets/LAWS.template.md +3 -3
- package/dist/modules/foundation/assets/docs/standards/base-standards.template.md +10 -5
- package/dist/modules/foundation/assets/docs/standards/conventions.template.md +12 -9
- package/dist/modules/foundation/assets/docs/standards/{spec-workflow.template.md → lawbook.template.md} +8 -8
- package/dist/modules/foundation/assets/docs/standards/testing-standards.template.md +1 -1
- package/dist/modules/foundation/doctor.js +7 -7
- package/dist/modules/foundation/register.js +6 -8
- package/dist/modules/foundation/scaffold.js +2 -3
- package/dist/modules/{spec → lawbook}/assets/commands/archive.md +2 -2
- package/dist/modules/{spec → lawbook}/assets/commands/draft.md +4 -4
- package/dist/modules/{spec → lawbook}/assets/commands/explore.md +1 -1
- package/dist/modules/{spec → lawbook}/assets/commands/sync.md +2 -2
- package/dist/modules/{spec → lawbook}/assets/rules/spec-tasks-mandatory-steps.md +6 -6
- package/dist/modules/{spec → lawbook}/assets/skills/archive/SKILL.md +7 -7
- package/dist/modules/{spec → lawbook}/assets/skills/build/SKILL.md +3 -3
- package/dist/modules/{spec → lawbook}/assets/skills/draft/SKILL.md +8 -8
- package/dist/modules/{spec → lawbook}/assets/skills/explore/SKILL.md +2 -2
- package/dist/modules/lawbook/assets/skills/sync/SKILL.md +21 -0
- package/dist/modules/{spec → lawbook}/engine.js +17 -17
- package/dist/modules/{spec → lawbook}/register.js +12 -12
- package/dist/modules/tools/assets/packs/agents/backend-developer.md +1 -1
- package/dist/modules/tools/assets/packs/agents/frontend-developer.md +1 -1
- package/dist/modules/tools/register.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +2 -2
- package/dist/modules/spec/assets/skills/sync/SKILL.md +0 -21
- /package/dist/modules/{spec → lawbook}/assets/commands/build.md +0 -0
package/dist/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
3
|
import { registerCompass } from "./modules/compass/register.js";
|
|
4
|
-
import { registerSpec } from "./modules/
|
|
4
|
+
import { registerSpec } from "./modules/lawbook/register.js";
|
|
5
5
|
import { registerFoundation } from "./modules/foundation/register.js";
|
|
6
6
|
import { registerTools } from "./modules/tools/register.js";
|
|
7
7
|
/** Build the speclaw MCP server with every module's tools registered. */
|
|
@@ -9,7 +9,7 @@ export function buildServer() {
|
|
|
9
9
|
const server = new McpServer({ name: "speclaw", version: "0.1.0" });
|
|
10
10
|
// Each module contributes its own MCP tools. Adding a module = one line here.
|
|
11
11
|
registerFoundation(server); // init_project, scaffold, configure_agent, doctor
|
|
12
|
-
registerSpec(server); //
|
|
12
|
+
registerSpec(server); // lawbook_init, lawbook_validate, lawbook_sync, lawbook_archive, lawbook_list
|
|
13
13
|
registerCompass(server); // compass_index, explore, search, recall, impact, trace, watch
|
|
14
14
|
registerTools(server); // list_packs, add_pack
|
|
15
15
|
return server;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esneiderbravo/speclaw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "Where specs become law. A self-contained MCP suite that turns any repo into a spec-driven, agent-ready project: its own constitution (foundation), its own local code graph (Compass), its own spec workflow (
|
|
7
|
+
"description": "Where specs become law. A self-contained MCP suite that turns any repo into a spec-driven, agent-ready project: its own constitution (foundation), its own local code graph (Compass), its own spec-driven workflow (Lawbook), and opt-in skill packs (Tools). No external CLIs, no LLM to install.",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"mcp",
|
|
10
10
|
"mcp-server",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sync
|
|
3
|
-
description: Promote a change's delta specs into the canonical specs, without archiving. Use when the user wants to update the source-of-truth specs from a change: "sync the specs", "update the canonical specs", "promote the specs". Part of speclaw's spec module (draft → build → sync → archive).
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# sync — Promote delta specs to canonical
|
|
7
|
-
|
|
8
|
-
Update the project's canonical specifications (`spec/specs/`) with a change's
|
|
9
|
-
delta specs, without archiving the change. Use this when the specs should
|
|
10
|
-
become the source of truth but the change isn't finished (e.g. multi-PR work).
|
|
11
|
-
|
|
12
|
-
## Steps
|
|
13
|
-
|
|
14
|
-
1. Confirm which change to sync (run `spec_list` if unsure).
|
|
15
|
-
2. Run `spec_validate` for the change; do not sync a change whose specs are
|
|
16
|
-
invalid.
|
|
17
|
-
3. Run the `spec_sync` tool for the change. It copies each
|
|
18
|
-
`spec/changes/<name>/specs/<capability>/spec.md` over the canonical
|
|
19
|
-
`spec/specs/<capability>/spec.md` and reports what it promoted.
|
|
20
|
-
4. Report the promoted files to the user. The change stays active — `archive`
|
|
21
|
-
it when it's fully done.
|
|
File without changes
|