predicate-skill 1.2.0 → 2.0.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.
- package/.claude-plugin/plugin.json +6 -5
- package/README.md +88 -17
- package/cli.bundle.mjs +29269 -234
- package/dashboard/index.html +180 -0
- package/hooks/codex-cli/README.md +30 -0
- package/hooks/codex-cli/config.toml.template +10 -0
- package/hooks/codex-cli/pre-compact.sh +4 -0
- package/hooks/codex-cli/session-start.sh +7 -0
- package/hooks/codex-cli/stop.sh +4 -0
- package/hooks/cursor/README.md +46 -0
- package/hooks/cursor/mcp.json.template +12 -0
- package/hooks/cursor/pre-compact.sh +7 -0
- package/hooks/cursor/session-start.sh +7 -0
- package/hooks/cursor/stop.sh +5 -0
- package/hooks/gemini-cli/README.md +38 -0
- package/hooks/gemini-cli/pre-compact.sh +5 -0
- package/hooks/gemini-cli/session-start.sh +6 -0
- package/hooks/gemini-cli/settings.json.template +17 -0
- package/hooks/gemini-cli/stop.sh +20 -0
- package/hooks/hooks.json +25 -7
- package/hooks/opencode/README.md +40 -0
- package/hooks/opencode/opencode.json.template +18 -0
- package/hooks/opencode/pre-compact.sh +5 -0
- package/hooks/opencode/session-start.sh +6 -0
- package/hooks/opencode/stop.sh +20 -0
- package/hooks/post-tool-use.sh +10 -0
- package/hooks/pre-tool-use.sh +11 -0
- package/hooks/session-start.sh +7 -19
- package/hooks/stop.sh +20 -0
- package/hooks/vscode-copilot/README.md +43 -0
- package/hooks/vscode-copilot/pre-compact.sh +4 -0
- package/hooks/vscode-copilot/session-start.sh +7 -0
- package/hooks/vscode-copilot/settings.json.template +12 -0
- package/hooks/vscode-copilot/stop.sh +5 -0
- package/package.json +2 -1
- package/server.bundle.mjs +28422 -18694
- package/skills/predicate/SKILL.md +193 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# VS Code Copilot adapter
|
|
2
|
+
|
|
3
|
+
## Install MCP server
|
|
4
|
+
|
|
5
|
+
Merge `settings.json.template` into your VS Code `settings.json`
|
|
6
|
+
(User or Workspace), replacing `__PLUGIN_DIR__` with the absolute path
|
|
7
|
+
to this package. Restart VS Code. The 8 `kg_*` tools will be available
|
|
8
|
+
to Copilot Chat.
|
|
9
|
+
|
|
10
|
+
## Hooks
|
|
11
|
+
|
|
12
|
+
VS Code Copilot does not expose SessionStart, PreCompact, or Stop
|
|
13
|
+
lifecycle events as of writing. The three scripts in this directory
|
|
14
|
+
are provided so you can:
|
|
15
|
+
|
|
16
|
+
1. Run `session-start.sh` manually before opening Copilot Chat and
|
|
17
|
+
paste the output into a prompt as initial context.
|
|
18
|
+
|
|
19
|
+
2. Wire `pre-compact.sh` and `stop.sh` to cron for periodic KG
|
|
20
|
+
maintenance — see `../cursor/README.md` for cron examples.
|
|
21
|
+
|
|
22
|
+
3. Use them in VS Code tasks (`.vscode/tasks.json`):
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"version": "2.0.0",
|
|
27
|
+
"tasks": [
|
|
28
|
+
{
|
|
29
|
+
"label": "predicate: session start",
|
|
30
|
+
"type": "shell",
|
|
31
|
+
"command": "bash ${workspaceFolder}/packages/predicate-skill/hooks/vscode-copilot/session-start.sh"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "predicate: maintain",
|
|
35
|
+
"type": "shell",
|
|
36
|
+
"command": "bash ${workspaceFolder}/packages/predicate-skill/hooks/vscode-copilot/pre-compact.sh"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If VS Code adds lifecycle hooks for Copilot Chat in the future, this
|
|
43
|
+
adapter is ready to wire them — script logic is unchanged.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# VS Code Copilot session-start adapter. VS Code has no native SessionStart
|
|
3
|
+
# hook today — run this manually before invoking Copilot Chat, or wire it
|
|
4
|
+
# to a VS Code task in tasks.json.
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
predicate sessionstart 2>/dev/null || \
|
|
7
|
+
echo "Predicate: Fuseki not reachable; run \`predicate up\` first."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "predicate-skill",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Local reasoning knowledge graph (RDF/OWL) for AI agents — Claude Code plugin + MCP server + predicate CLI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nordic Agents Research",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"commands",
|
|
31
31
|
"hooks",
|
|
32
32
|
"compose",
|
|
33
|
+
"dashboard",
|
|
33
34
|
"LICENSE",
|
|
34
35
|
"README.md"
|
|
35
36
|
],
|