sphica 0.0.0 → 0.1.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.
- package/.claude-plugin/plugin.json +20 -0
- package/.codex-plugin/plugin.json +14 -0
- package/README.md +217 -2
- package/THIRD_PARTY_NOTICES.md +5432 -0
- package/db/migrations/0002_drop_artifact_rows.sql +3 -0
- package/db/migrations/0003_rebuild_source_item.sql +45 -0
- package/db/migrations/0004_knowledge_terms.sql +46 -0
- package/db/migrations/0005_terms_function.sql +20 -0
- package/db/schema.sql +349 -0
- package/dist/capture.js +11822 -0
- package/dist/cli.js +117889 -0
- package/dist/mcp.js +46724 -0
- package/hooks/codex.json +65 -0
- package/hooks/hooks.json +75 -0
- package/mcp/claude.json +8 -0
- package/mcp/codex.json +9 -0
- package/package.json +28 -2
- package/skills/review/SKILL.md +496 -0
- package/skills/review/references/peer-model.md +128 -0
- package/skills/review/reviewers/adversarial.md +150 -0
- package/skills/review/reviewers/cleanup.md +85 -0
- package/skills/review/reviewers/conventions.md +108 -0
- package/skills/review/reviewers/precedent.md +140 -0
- package/skills/review/reviewers/security.md +96 -0
- package/skills/review/reviewers/validator.md +107 -0
- package/skills/trace/SKILL.md +110 -0
- package/skills/trace/agents/openai.yaml +2 -0
- package/skills/trace/example.json +108 -0
package/hooks/codex.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"command": "node \"${PLUGIN_ROOT}/dist/capture.js\" codex",
|
|
9
|
+
"commandWindows": "powershell.exe -NoProfile -NonInteractive -Command node $env:PLUGIN_ROOT/dist/capture.js codex",
|
|
10
|
+
"timeout": 10
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"UserPromptSubmit": [
|
|
16
|
+
{
|
|
17
|
+
"hooks": [
|
|
18
|
+
{
|
|
19
|
+
"type": "command",
|
|
20
|
+
"command": "node \"${PLUGIN_ROOT}/dist/capture.js\" codex",
|
|
21
|
+
"commandWindows": "powershell.exe -NoProfile -NonInteractive -Command node $env:PLUGIN_ROOT/dist/capture.js codex",
|
|
22
|
+
"timeout": 10
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"PostToolUse": [
|
|
28
|
+
{
|
|
29
|
+
"matcher": "^apply_patch$",
|
|
30
|
+
"hooks": [
|
|
31
|
+
{
|
|
32
|
+
"type": "command",
|
|
33
|
+
"command": "node \"${PLUGIN_ROOT}/dist/capture.js\" codex",
|
|
34
|
+
"commandWindows": "powershell.exe -NoProfile -NonInteractive -Command node $env:PLUGIN_ROOT/dist/capture.js codex",
|
|
35
|
+
"timeout": 10
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"Stop": [
|
|
41
|
+
{
|
|
42
|
+
"hooks": [
|
|
43
|
+
{
|
|
44
|
+
"type": "command",
|
|
45
|
+
"command": "node \"${PLUGIN_ROOT}/dist/capture.js\" codex",
|
|
46
|
+
"commandWindows": "powershell.exe -NoProfile -NonInteractive -Command node $env:PLUGIN_ROOT/dist/capture.js codex",
|
|
47
|
+
"timeout": 10
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"Interrupt": [
|
|
53
|
+
{
|
|
54
|
+
"hooks": [
|
|
55
|
+
{
|
|
56
|
+
"type": "command",
|
|
57
|
+
"command": "node \"${PLUGIN_ROOT}/dist/capture.js\" codex",
|
|
58
|
+
"commandWindows": "powershell.exe -NoProfile -NonInteractive -Command node $env:PLUGIN_ROOT/dist/capture.js codex",
|
|
59
|
+
"timeout": 3
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/capture.js\"",
|
|
9
|
+
"timeout": 10
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"UserPromptSubmit": [
|
|
15
|
+
{
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/capture.js\"",
|
|
20
|
+
"async": true
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"PostToolUse": [
|
|
26
|
+
{
|
|
27
|
+
"matcher": "Edit|Write|MultiEdit|NotebookEdit|AskUserQuestion",
|
|
28
|
+
"hooks": [
|
|
29
|
+
{
|
|
30
|
+
"type": "command",
|
|
31
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/capture.js\"",
|
|
32
|
+
"async": true
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"Stop": [
|
|
38
|
+
{
|
|
39
|
+
"hooks": [
|
|
40
|
+
{
|
|
41
|
+
"type": "command",
|
|
42
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/capture.js\"",
|
|
43
|
+
"async": true
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"PreToolUse": [
|
|
49
|
+
{
|
|
50
|
+
"matcher": "Edit|Write|MultiEdit",
|
|
51
|
+
"hooks": [
|
|
52
|
+
{
|
|
53
|
+
"type": "mcp_tool",
|
|
54
|
+
"server": "plugin:sphica:sphica",
|
|
55
|
+
"tool": "check_path",
|
|
56
|
+
"input": { "path": "${tool_input.file_path}", "cwd": "${cwd}", "hook": true },
|
|
57
|
+
"timeout": 5
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"matcher": "NotebookEdit",
|
|
63
|
+
"hooks": [
|
|
64
|
+
{
|
|
65
|
+
"type": "mcp_tool",
|
|
66
|
+
"server": "plugin:sphica:sphica",
|
|
67
|
+
"tool": "check_path",
|
|
68
|
+
"input": { "path": "${tool_input.notebook_path}", "cwd": "${cwd}", "hook": true },
|
|
69
|
+
"timeout": 5
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
package/mcp/claude.json
ADDED
package/mcp/codex.json
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sphica",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Records Claude Code and Codex sessions on your machine and recalls past decisions, rejected options, constraints, and what was said.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"sphica": "./dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"db",
|
|
13
|
+
"skills",
|
|
14
|
+
"hooks",
|
|
15
|
+
"mcp",
|
|
16
|
+
".claude-plugin",
|
|
17
|
+
".codex-plugin",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"README.md",
|
|
20
|
+
"THIRD_PARTY_NOTICES.md"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=24.15"
|
|
24
|
+
},
|
|
6
25
|
"repository": {
|
|
7
26
|
"type": "git",
|
|
8
27
|
"url": "git+https://github.com/iroha924/sphica.git"
|
|
9
28
|
},
|
|
10
|
-
"
|
|
29
|
+
"keywords": [
|
|
30
|
+
"knowledge",
|
|
31
|
+
"rag",
|
|
32
|
+
"conversations",
|
|
33
|
+
"decisions",
|
|
34
|
+
"sqlite",
|
|
35
|
+
"mcp"
|
|
36
|
+
]
|
|
11
37
|
}
|