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.
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "sphica": {
4
+ "command": "node",
5
+ "args": ["${CLAUDE_PLUGIN_ROOT}/dist/mcp.js"]
6
+ }
7
+ }
8
+ }
package/mcp/codex.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "mcpServers": {
3
+ "sphica": {
4
+ "command": "node",
5
+ "args": ["./dist/mcp.js"],
6
+ "cwd": "."
7
+ }
8
+ }
9
+ }
package/package.json CHANGED
@@ -1,11 +1,37 @@
1
1
  {
2
2
  "name": "sphica",
3
- "version": "0.0.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
- "files": ["README.md", "LICENSE"]
29
+ "keywords": [
30
+ "knowledge",
31
+ "rag",
32
+ "conversations",
33
+ "decisions",
34
+ "sqlite",
35
+ "mcp"
36
+ ]
11
37
  }