sphica 0.4.0 → 0.5.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.
@@ -1,108 +0,0 @@
1
- {
2
- "schema": "trace/1",
3
- "session": {
4
- "host": "claude-code",
5
- "id": "4f2bfe2e-6941-4310-8110-1af8c2245429",
6
- "branch": "feat/local"
7
- },
8
- "work": {
9
- "key": "local",
10
- "title": "Move to a setup that runs entirely on the local machine",
11
- "goal": "Drop the cloud dependencies, look records up through MCP only, and read a local SQLite file",
12
- "current": "Finished the server side and the CLI, and ran them against a local database",
13
- "next": [
14
- "Move distribution to npm",
15
- "Human: confirm before deleting the old environment"
16
- ],
17
- "status": "active"
18
- },
19
- "items": [
20
- {
21
- "key": "local-sqlite",
22
- "kind": "decision",
23
- "status": "accepted",
24
- "at": "2026-09-20T11:00:00+09:00",
25
- "text": "Use a single file with Node's built-in node:sqlite. Each machine is independent, with nothing shared between machines",
26
- "context": "Looking up the same records across machines is no longer needed. A work machine only needs to hold work records",
27
- "options": [
28
- {
29
- "text": "one node:sqlite file",
30
- "chosen": true
31
- },
32
- {
33
- "text": "PostgreSQL in Docker",
34
- "chosen": false,
35
- "why": "users would have to set up Docker and database credentials"
36
- }
37
- ],
38
- "confirmation": "sphica init applied db/schema.sql, and every DB row in doctor passed",
39
- "terms": ["SQLite", "local database", "no server", "offline"],
40
- "downsides": [
41
- "requires Node 24.15 or later",
42
- "records do not carry over to a new machine"
43
- ]
44
- },
45
- {
46
- "key": "no-server",
47
- "kind": "decision",
48
- "status": "accepted",
49
- "at": "2026-09-20T12:30:00+09:00",
50
- "text": "Look records up through MCP (recall and read), with no listening server",
51
- "context": "A localhost server can be hit from other pages open in a browser. Opening no port is smaller than keeping a boundary to defend",
52
- "options": [
53
- {
54
- "text": "MCP tools over stdio",
55
- "chosen": true
56
- },
57
- {
58
- "text": "a web UI on 127.0.0.1",
59
- "chosen": false,
60
- "why": "it would mean keeping Host checks and CSRF checks forever"
61
- }
62
- ],
63
- "confirmation": "recall found the records with no port open",
64
- "downsides": [
65
- "no screen for browsing records; lookups go through search"
66
- ]
67
- },
68
- {
69
- "key": "capture-no-conflict-target",
70
- "kind": "constraint",
71
- "status": "active",
72
- "at": "2026-09-20T12:35:00+09:00",
73
- "text": "Capture writes only to the capture views (the authorizer rejects direct writes to base tables)",
74
- "files": [
75
- {
76
- "path": "server/src/capture.ts",
77
- "role": "applies_to"
78
- }
79
- ],
80
- "confidence": "fact",
81
- "refs": [
82
- "file:server/src/db-write.ts"
83
- ]
84
- },
85
- {
86
- "key": "pgtyped",
87
- "kind": "dead_end",
88
- "at": "2026-09-20T13:00:00+09:00",
89
- "text": "Dropped pgtyped for typing SQL. It cannot handle search queries whose conditions are built at run time, and its docs state query composition is unsupported"
90
- },
91
- {
92
- "key": "listener-check",
93
- "kind": "verification",
94
- "status": "passed",
95
- "at": "2026-09-20T13:20:00+09:00",
96
- "text": "no Sphica process listens on a TCP port",
97
- "command": "lsof -nP -iTCP -sTCP:LISTEN | grep -i sphica",
98
- "verifies": "no-server"
99
- },
100
- {
101
- "key": "windows-untested",
102
- "kind": "question",
103
- "status": "blocking",
104
- "at": "2026-09-20T13:30:00+09:00",
105
- "text": "Does the CLI's terminal output hold up on Windows? (No real machine; CI can only check the printed strings)"
106
- }
107
- ]
108
- }