laminark 0.1.0 → 2.21.7
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/marketplace.json +15 -0
- package/README.md +71 -36
- package/package.json +7 -9
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/dist/hooks/handler.d.ts +1 -3
- package/plugin/dist/hooks/handler.d.ts.map +1 -1
- package/plugin/dist/hooks/handler.js +22 -310
- package/plugin/dist/hooks/handler.js.map +1 -1
- package/plugin/dist/index.d.ts +1 -3
- package/plugin/dist/index.d.ts.map +1 -1
- package/plugin/dist/index.js +392 -1895
- package/plugin/dist/index.js.map +1 -1
- package/plugin/dist/{observations-CorAAc1A.d.mts → observations-Ch0nc47i.d.mts} +1 -23
- package/plugin/dist/observations-Ch0nc47i.d.mts.map +1 -0
- package/plugin/dist/{tool-registry-e710BvXq.mjs → tool-registry-CZ3mJ4iR.mjs} +13 -932
- package/plugin/dist/tool-registry-CZ3mJ4iR.mjs.map +1 -0
- package/plugin/hooks/hooks.json +6 -6
- package/plugin/scripts/README.md +1 -19
- package/plugin/scripts/bump-version.sh +3 -1
- package/plugin/scripts/ensure-deps.sh +2 -5
- package/plugin/scripts/install.sh +39 -115
- package/plugin/scripts/local-install.sh +58 -93
- package/plugin/scripts/setup-tmpdir.sh +65 -0
- package/plugin/scripts/uninstall.sh +38 -76
- package/plugin/scripts/update.sh +69 -20
- package/plugin/scripts/verify-install.sh +25 -69
- package/plugin/ui/activity.js +0 -12
- package/plugin/ui/app.js +54 -24
- package/plugin/ui/graph.js +186 -413
- package/plugin/ui/help.js +172 -876
- package/plugin/ui/index.html +242 -506
- package/plugin/ui/settings.js +17 -781
- package/plugin/ui/styles.css +44 -990
- package/plugin/ui/timeline.js +2 -2
- package/plugin/CLAUDE.md +0 -10
- package/plugin/commands/recall.md +0 -55
- package/plugin/commands/remember.md +0 -34
- package/plugin/commands/resume.md +0 -45
- package/plugin/commands/stash.md +0 -34
- package/plugin/commands/status.md +0 -33
- package/plugin/dist/observations-CorAAc1A.d.mts.map +0 -1
- package/plugin/dist/tool-registry-e710BvXq.mjs.map +0 -1
- package/plugin/laminark.db +0 -0
- package/plugin/package.json +0 -17
- package/plugin/scripts/dev-sync.sh +0 -58
- package/plugin/ui/help/activity-feed.png +0 -0
- package/plugin/ui/help/analysis-panel.png +0 -0
- package/plugin/ui/help/graph-toolbar.png +0 -0
- package/plugin/ui/help/graph-view.png +0 -0
- package/plugin/ui/help/settings.png +0 -0
- package/plugin/ui/help/timeline.png +0 -0
- package/plugin/ui/tools.js +0 -826
package/plugin/ui/timeline.js
CHANGED
|
@@ -98,7 +98,7 @@ async function loadTimelineData(range) {
|
|
|
98
98
|
sessionsContainer.innerHTML = '';
|
|
99
99
|
|
|
100
100
|
if (!data.sessions.length && !data.observations.length) {
|
|
101
|
-
|
|
101
|
+
showEmptyState(sessionsContainer);
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -403,7 +403,7 @@ function createTopicShiftMarker(shift) {
|
|
|
403
403
|
* Show the empty state message.
|
|
404
404
|
* @param {HTMLElement} container
|
|
405
405
|
*/
|
|
406
|
-
function
|
|
406
|
+
function showEmptyState(container) {
|
|
407
407
|
var msg = document.createElement('p');
|
|
408
408
|
msg.className = 'empty-state';
|
|
409
409
|
msg.textContent = 'No sessions recorded yet. Timeline will populate as you use Claude.';
|
package/plugin/CLAUDE.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Memory & Context
|
|
2
|
-
|
|
3
|
-
When you need to recall prior work, decisions, or context:
|
|
4
|
-
- **First** query Laminark's memory tools (`recall`, `query_graph`, `query_branches`) before resorting to grep/glob searches
|
|
5
|
-
- Use `recall` with keyword searches to find past observations, decisions, and findings
|
|
6
|
-
- Use `query_graph` to find relationships between files, decisions, and problems
|
|
7
|
-
- Use `query_branches` to see work history - what was investigated, fixed, built, and where it left off
|
|
8
|
-
- Use `show_branch` to trace the full arc of a specific work unit (investigation -> diagnosis -> planning -> execution -> verification)
|
|
9
|
-
- Use `save_memory` to persist important decisions, findings, and reference material
|
|
10
|
-
- Only fall back to raw file searches (Grep, Glob) when Laminark has no relevant results
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# /laminark:recall
|
|
2
|
-
|
|
3
|
-
Search Laminark memories by description or topic.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
/laminark:recall {description of what you're looking for}
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
When the user invokes this command:
|
|
12
|
-
|
|
13
|
-
1. Take the text provided after the command as the search query
|
|
14
|
-
2. Call the `search` MCP tool with:
|
|
15
|
-
- `query`: The user's search description
|
|
16
|
-
- `limit`: 10 (show top 10 results)
|
|
17
|
-
3. Present the results to the user in a readable format:
|
|
18
|
-
- Show each result with its relevance score, a content snippet, the source, and when it was created
|
|
19
|
-
- Group results by relevance tier if helpful (highly relevant, somewhat relevant)
|
|
20
|
-
- If results include memories from different sessions, note which session they came from
|
|
21
|
-
|
|
22
|
-
## Response Format
|
|
23
|
-
|
|
24
|
-
Present results like this:
|
|
25
|
-
|
|
26
|
-
**Memory Search: "{query}"**
|
|
27
|
-
|
|
28
|
-
Found {N} relevant memories:
|
|
29
|
-
|
|
30
|
-
1. **[{score}% match]** {content snippet, first 200 chars}
|
|
31
|
-
_{source} | {relative time}_
|
|
32
|
-
|
|
33
|
-
2. **[{score}% match]** {content snippet}
|
|
34
|
-
_{source} | {relative time}_
|
|
35
|
-
|
|
36
|
-
...
|
|
37
|
-
|
|
38
|
-
_Use the search tool for more specific queries, or get_observations for full details on any memory._
|
|
39
|
-
|
|
40
|
-
## Examples
|
|
41
|
-
|
|
42
|
-
User: /laminark:recall authentication decisions
|
|
43
|
-
Action: Call search with query="authentication decisions"
|
|
44
|
-
Response: Show top results about auth-related memories with scores and snippets
|
|
45
|
-
|
|
46
|
-
User: /laminark:recall what database did we choose
|
|
47
|
-
Action: Call search with query="what database did we choose"
|
|
48
|
-
Response: Show results mentioning database selection decisions
|
|
49
|
-
|
|
50
|
-
## Notes
|
|
51
|
-
|
|
52
|
-
- Results use hybrid search (keyword + semantic) for best matching
|
|
53
|
-
- If no results are found, suggest the user try different search terms or check if they have saved any memories yet
|
|
54
|
-
- If no query is provided after the command, ask the user what they'd like to search for
|
|
55
|
-
- For detailed view of any result, Claude can use the get_observations MCP tool with the observation ID
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# /laminark:remember
|
|
2
|
-
|
|
3
|
-
Save a memory to Laminark for future retrieval.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
/laminark:remember {text to remember}
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
When the user invokes this command:
|
|
12
|
-
|
|
13
|
-
1. Take the text provided after the command as the memory content
|
|
14
|
-
2. Call the `save_memory` MCP tool with:
|
|
15
|
-
- `content`: The user's text exactly as provided
|
|
16
|
-
- `source`: "slash:remember" (identifies this as an explicit user save)
|
|
17
|
-
3. Confirm to the user that the memory has been saved
|
|
18
|
-
4. Show a brief snippet of what was saved (first 100 characters)
|
|
19
|
-
|
|
20
|
-
## Examples
|
|
21
|
-
|
|
22
|
-
User: /laminark:remember The auth system uses JWT with 15-minute expiry and refresh tokens stored in httpOnly cookies
|
|
23
|
-
Action: Call save_memory with content="The auth system uses JWT with 15-minute expiry and refresh tokens stored in httpOnly cookies" and source="slash:remember"
|
|
24
|
-
Response: "Saved to memory: 'The auth system uses JWT with 15-minute expiry and refresh tokens stored in httpOnly cookies'"
|
|
25
|
-
|
|
26
|
-
User: /laminark:remember We decided to use Postgres instead of MySQL for the new service because of JSONB support
|
|
27
|
-
Action: Call save_memory with the full text
|
|
28
|
-
Response: "Saved to memory: 'We decided to use Postgres instead of MySQL for the new serv...'"
|
|
29
|
-
|
|
30
|
-
## Notes
|
|
31
|
-
|
|
32
|
-
- Memories saved via /laminark:remember are high-priority in search results (source: "slash:remember")
|
|
33
|
-
- These memories persist across sessions and are included in session context injection
|
|
34
|
-
- If no text is provided after the command, ask the user what they'd like to remember
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# /laminark:resume
|
|
2
|
-
|
|
3
|
-
Resume a previously stashed context thread, or list all available stashed threads.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
/laminark:resume
|
|
8
|
-
/laminark:resume {stash-id}
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
When the user invokes this command:
|
|
13
|
-
|
|
14
|
-
### List mode (no ID provided)
|
|
15
|
-
|
|
16
|
-
1. Call the `topic_context` MCP tool with no arguments (or limit: 5)
|
|
17
|
-
2. Present the stashed threads as a numbered list showing:
|
|
18
|
-
- Topic label
|
|
19
|
-
- How long ago it was stashed
|
|
20
|
-
- Brief summary (first 80 characters)
|
|
21
|
-
3. Tell the user they can resume a specific thread by providing its ID
|
|
22
|
-
|
|
23
|
-
### Resume mode (ID provided)
|
|
24
|
-
|
|
25
|
-
1. Call the `topic_context` MCP tool to look up the stash
|
|
26
|
-
2. Restore the context from the stash observations into the conversation
|
|
27
|
-
3. Confirm to the user which thread was resumed and how many observations were restored
|
|
28
|
-
4. Summarize the key context from the restored thread so the user can pick up where they left off
|
|
29
|
-
|
|
30
|
-
## Examples
|
|
31
|
-
|
|
32
|
-
User: /laminark:resume
|
|
33
|
-
Action: Call topic_context to list stashed threads
|
|
34
|
-
Response: Show numbered list of available threads with topic labels and timestamps
|
|
35
|
-
|
|
36
|
-
User: /laminark:resume abc123def456
|
|
37
|
-
Action: Resume the specific stash, inject its context
|
|
38
|
-
Response: "Resumed: 'JWT authentication' -- Context restored with 5 observations. Here's where you left off: ..."
|
|
39
|
-
|
|
40
|
-
## Notes
|
|
41
|
-
|
|
42
|
-
- Only threads with status "stashed" are shown (already resumed threads are excluded)
|
|
43
|
-
- Resuming a thread marks it as "resumed" so it no longer appears in the list
|
|
44
|
-
- The restored context includes observation snapshots from the time of stashing
|
|
45
|
-
- If no stashed threads exist, inform the user they are working in a single thread
|
package/plugin/commands/stash.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# /laminark:stash
|
|
2
|
-
|
|
3
|
-
Manually stash the current session's context for later retrieval.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
/laminark:stash [optional label]
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
When the user invokes this command:
|
|
12
|
-
|
|
13
|
-
1. Call the `save_memory` MCP tool to persist current observations, then call the stash handler to snapshot the current session
|
|
14
|
-
2. If a label is provided after the command, use it as the stash topic label
|
|
15
|
-
3. If no label is provided, one is generated automatically from the earliest observation
|
|
16
|
-
4. Confirm to the user that their context was stashed
|
|
17
|
-
5. Show the topic label and remind them about /laminark:resume
|
|
18
|
-
|
|
19
|
-
## Examples
|
|
20
|
-
|
|
21
|
-
User: /laminark:stash authentication implementation
|
|
22
|
-
Action: Stash current session context with label "authentication implementation"
|
|
23
|
-
Response: "Context stashed: 'authentication implementation'. Use /laminark:resume to return to it."
|
|
24
|
-
|
|
25
|
-
User: /laminark:stash
|
|
26
|
-
Action: Stash current session context with auto-generated label
|
|
27
|
-
Response: "Context stashed: 'Initial project setup and configur...'. Use /laminark:resume to return to it."
|
|
28
|
-
|
|
29
|
-
## Notes
|
|
30
|
-
|
|
31
|
-
- Stashing preserves a snapshot of the current session's observations
|
|
32
|
-
- The stash remains available across sessions until resumed or deleted
|
|
33
|
-
- Use /laminark:resume to list available stashes or restore a specific one
|
|
34
|
-
- Automatic stashing also occurs when topic shifts are detected during normal work
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# /laminark:status
|
|
2
|
-
|
|
3
|
-
Show Laminark system status: connection info, memory count, token estimates, and capabilities.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
/laminark:status
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
When the user invokes this command:
|
|
12
|
-
|
|
13
|
-
1. Call the `status` MCP tool with no arguments
|
|
14
|
-
2. Present the returned dashboard directly to the user
|
|
15
|
-
|
|
16
|
-
The tool returns a formatted status report including:
|
|
17
|
-
- **Connection**: project path, project hash, database path, uptime
|
|
18
|
-
- **Capabilities**: vector search availability, embedding worker status
|
|
19
|
-
- **Memories**: observation count, embedded count, session count, stashed threads
|
|
20
|
-
- **Tokens**: estimated total tokens across all stored memories
|
|
21
|
-
- **Knowledge Graph**: node and edge counts
|
|
22
|
-
|
|
23
|
-
## Examples
|
|
24
|
-
|
|
25
|
-
User: /laminark:status
|
|
26
|
-
Action: Call the status MCP tool
|
|
27
|
-
Response: Display the formatted status dashboard
|
|
28
|
-
|
|
29
|
-
## Notes
|
|
30
|
-
|
|
31
|
-
- This is a read-only diagnostic command with no side effects
|
|
32
|
-
- Token estimates use the ~4 chars/token heuristic
|
|
33
|
-
- Uptime reflects time since the MCP server process started
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observations-CorAAc1A.d.mts","names":[],"sources":["../../src/shared/types.ts","../../src/storage/observations.ts"],"mappings":";;;;;;;;;;KA0DY,yBAAA;AAAA,KAEA,eAAA;AAAA,UAEK,WAAA;EACf,KAAA;EACA,EAAA;EACA,WAAA;EACA,OAAA;EACA,KAAA;EACA,MAAA;EACA,SAAA;EACA,IAAA,EAAM,eAAA;EACN,SAAA,EAAW,YAAA;EACX,cAAA;EACA,gBAAA;EACA,cAAA,EAAgB,yBAAA;EAChB,YAAA;EACA,SAAA;EACA,SAAA;EACA,SAAA;AAAA;;;;;cAWW,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;KAWxB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,UAM9B,OAAA;EACf,EAAA;EACA,WAAA;EACA,SAAA;EACA,OAAA;EACA,OAAA;AAAA;AAAA,UAOe,YA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