@squadrules/mcp 5.3.0 → 5.4.0

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 (51) hide show
  1. package/README.md +33 -78
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/config/mem-boot.d.ts +3 -0
  4. package/dist/config/mem-boot.d.ts.map +1 -0
  5. package/dist/config/mem-boot.js +21 -0
  6. package/dist/config/mem-boot.js.map +1 -0
  7. package/dist/embed-docs/mem/README.md +13 -6
  8. package/dist/embed-docs/mem/adapter-migration.md +20 -19
  9. package/dist/embed-docs/mem/bulk-insert-adapters-via-cli.md +9 -8
  10. package/dist/embed-docs/mem/challenge-type-guide.md +4 -4
  11. package/dist/embed-docs/mem/create-new-protocol.md +42 -33
  12. package/dist/embed-docs/mem/critic-loop-guide.md +263 -0
  13. package/dist/embed-docs/mem/{phase-critic.md → critic-loop.md} +46 -22
  14. package/dist/embed-docs/mem/protocol-linking-guide.md +4 -4
  15. package/dist/embed-docs/mem/refine-search.md +1 -1
  16. package/dist/embed-docs/mem/skill-format-guide.md +2 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +6 -3
  19. package/dist/index.js.map +1 -1
  20. package/dist/resources/embedded-mcp-resources.d.ts +2 -2
  21. package/dist/resources/embedded-mcp-resources.js +12 -12
  22. package/dist/resources/embedded-mcp-resources.js.map +1 -1
  23. package/dist/resources/mem-resources-boot.d.ts.map +1 -1
  24. package/dist/resources/mem-resources-boot.js +19 -14
  25. package/dist/resources/mem-resources-boot.js.map +1 -1
  26. package/dist/services/memory/memory-accessors.d.ts +10 -0
  27. package/dist/services/memory/memory-accessors.d.ts.map +1 -1
  28. package/dist/services/memory/memory-accessors.js +19 -0
  29. package/dist/services/memory/memory-accessors.js.map +1 -1
  30. package/dist/services/memory/store.d.ts.map +1 -1
  31. package/dist/services/memory/store.js +2 -2
  32. package/dist/services/memory/store.js.map +1 -1
  33. package/dist/services/vector-store/lancedb/lance-records-reads.d.ts.map +1 -1
  34. package/dist/services/vector-store/lancedb/lance-records-reads.js +2 -2
  35. package/dist/services/vector-store/lancedb/lance-records-reads.js.map +1 -1
  36. package/dist/tools/mcp-tool-input-teaching.js +8 -8
  37. package/dist/tools/mcp-tool-input-teaching.js.map +1 -1
  38. package/dist/tools/review-evidence-check.d.ts +1 -1
  39. package/dist/tools/review-evidence-check.js +4 -4
  40. package/dist/tools/review-evidence-check.js.map +1 -1
  41. package/dist/tools/train_schema.js +4 -4
  42. package/dist/tools/train_schema.js.map +1 -1
  43. package/dist/tools/tune_schema.js +3 -3
  44. package/dist/tools/tune_schema.js.map +1 -1
  45. package/dist/ui/assets/{AccountPage-DhaO-G9K.js → AccountPage-r5IOzWyQ.js} +1 -1
  46. package/dist/ui/assets/{index-BtwABqCT.js → index-B80vBrUV.js} +2 -2
  47. package/dist/ui/assets/index-CSUUmfdT.css +2 -0
  48. package/dist/ui/index.html +2 -2
  49. package/package.json +1 -1
  50. package/dist/embed-docs/mem/phase-critic-guide.md +0 -199
  51. package/dist/ui/assets/index-fBTJW4Qq.css +0 -2
package/README.md CHANGED
@@ -1,108 +1,63 @@
1
1
  # SquadRules
2
2
 
3
- SquadRules is a framework where AI agents exchange and maintain knowledge of
4
- their team's preferences and procedures. AI agents are its only users. One AI
5
- and one human already form a team; ideally, the human never needs to know
6
- SquadRules exists.
3
+ Help your AI remember how you like things done.
7
4
 
8
- ## Purpose
5
+ SquadRules gives AI assistants a shared place to keep your preferences and your
6
+ team's ways of working. Instead of explaining the same things in every chat,
7
+ your AI can find that knowledge and keep it up to date as your needs change.
8
+ Even you and one AI assistant are a team.
9
9
 
10
- An agent may know how to commit code, yet still need its team's commit rules.
11
- SquadRules makes that knowledge available across tasks and sessions through
12
- stored adapters: instructions for applying preferences and executing workflows.
10
+ Your AI does the work of maintaining this knowledge, so you do not have to
11
+ manage it yourself.
13
12
 
14
- Agents own these adapters. They must maintain them when preferences change or
15
- when missing, ambiguous, or outdated instructions prevent autonomous execution.
16
- Routine adapter maintenance belongs to the agent's work; it should not become
17
- a separate task for the human.
13
+ ## Manual installation
18
14
 
19
- Autonomy operates within the team's actual authorization boundaries. A workflow
20
- must identify a genuinely missing decision or permission instead of inventing
21
- one. Learning a preference does not authorize an unrelated action.
15
+ You need [Node.js](https://nodejs.org/) 24 or newer and an AI app that supports
16
+ MCP, the connection that lets your AI use SquadRules.
22
17
 
23
- ## How it works
18
+ ### 1. Connect SquadRules
24
19
 
25
- - **Find:** `activate` discovers adapters relevant to an intent.
26
- - **Execute:** `forward` supplies a layer's contract and guides continuation.
27
- - **Finalize:** `reward` records the run's outcome.
28
- - **Maintain:** `train`, `tune`, `export`, `delete`, and `spaces` support adapter
29
- and space management according to their tool contracts.
30
-
31
- Semantic search discovers relevant knowledge. Explicit links compose known
32
- workflow dependencies. Agents perform the work required by each layer and
33
- submit evidence; advancing through a workflow does not itself prove that the
34
- underlying task succeeded.
35
-
36
- Use the connected server's schemas and returned instructions for actual calls.
37
- The [SquadRules skill](.agents/skills/squadrules/SKILL.md) contains agent entry
38
- instructions; [tool documentation](src/embed-docs/tools/) and
39
- [built-in adapters](src/embed-docs/mem/) live with the implementation.
40
-
41
- ## Local setup
42
-
43
- Requires Node.js 24 or newer. Install the package:
44
-
45
- ```bash
46
- npm install -g @squadrules/mcp
47
- ```
48
-
49
- Configure the agent host to launch the MCP server:
20
+ Add this to your AI app's MCP configuration:
50
21
 
51
22
  ```json
52
23
  {
53
24
  "mcpServers": {
54
- "SquadRules": {
55
- "command": "squadrules",
56
- "args": ["serve"],
57
- "env": {}
25
+ "squadrules": {
26
+ "command": "npx",
27
+ "args": [
28
+ "-y",
29
+ "@squadrules/mcp@latest"
30
+ ]
58
31
  }
59
32
  }
60
33
  }
61
34
  ```
62
35
 
63
- With no environment overrides, this uses stdio, embedded LanceDB storage, and
64
- local fastembed embeddings. No database service, Docker, or API key is needed.
65
- The embedding model downloads on first use and is cached locally. The host
66
- must be able to find the installed `squadrules` executable.
36
+ Restart the app if it asks you to. The first start may take a little longer
37
+ while SquadRules downloads what it needs.
38
+
39
+ ### 2. Add the skill
67
40
 
68
- Install the routing skill using a compatible skill loader, for example:
41
+ The skill tells your AI when to use SquadRules. Run this in a terminal and
42
+ follow the prompts to select your AI app:
69
43
 
70
44
  ```bash
71
45
  npx skills add SquadRules/mcp --skill squadrules
72
46
  ```
73
47
 
74
- The skill directs agents to consult team knowledge even for familiar work.
75
- Its loading and invocation depend on the host; installing an MCP server alone
76
- does not guarantee that every agent will consult it.
77
-
78
- ## Runtime modes
79
-
80
- | Mode | Behavior |
81
- | --- | --- |
82
- | Local stdio | Host launches `squadrules serve`; embedded storage, authentication off, no HTTP listener. |
83
- | HTTP | `squadrules serve --transport http`; serves MCP at `/mcp`, REST at `/api/*`, and the UI at `/ui`; authentication defaults on. |
84
-
85
- Local stdio rejects `AUTH_ENABLED=true` and a nonempty `QDRANT_URL`. Configure
86
- HTTP mode for an authenticated deployment or an external Qdrant backend.
87
- See [runtime configuration](src/config/runtime-mode.ts) and the
88
- [environment template](scripts/env/.env.template) for settings.
89
- For CLI commands, run `squadrules --help`.
48
+ Use an app that supports both MCP and skills. If you are unsure where to add
49
+ the configuration or run the command, ask your AI assistant to help you set up
50
+ SquadRules for your app.
90
51
 
91
- Container packaging and Helm deployment are maintained in
92
- [SquadRules/containers](https://github.com/SquadRules/containers) and
93
- [SquadRules/charts](https://github.com/SquadRules/charts).
52
+ ## Try it
94
53
 
95
- ## Repository work
54
+ > Let's build our first SquadRules flow together. Ask me what I do often,
55
+ > help me improve it, and save the flow for next time.
96
56
 
97
- Read [CONTRIBUTING.md](CONTRIBUTING.md) for development and validation and
98
- [AGENTS.md](AGENTS.md) for repository agent instructions.
99
- [Architecture decisions](docs/adr/) remain available as reference material.
100
- Documents under `docs-to-be-reviewed/` are pending review and must not be used
101
- as authoritative instructions.
57
+ ## Contributing
102
58
 
103
- The ownership principles above guide the ongoing agent instruction review.
104
- Individual built-in adapters and skills may still need alignment; this is
105
- not a claim that runtime enforcement is already complete.
59
+ See [Contributing](CONTRIBUTING.md) and our
60
+ [development principles](AGENTS.md#development-constitution).
106
61
 
107
62
  ## License and trademark
108
63