om-memory-system 3.7.0-next.49 → 3.7.0-next.52
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/dist/adapters/opencode/package-skills.d.ts +16 -0
- package/dist/adapters/opencode/package-skills.js +60 -0
- package/dist/adapters/opencode/profile-learning.js +9 -2
- package/dist/adapters/pi/extension.js +5 -1
- package/dist/adapters/pi/profile.js +7 -1
- package/dist/cli/index.js +5 -0
- package/dist/cli/profile-catch-up-command.d.ts +2 -0
- package/dist/cli/profile-catch-up-command.js +110 -0
- package/dist/cli/web-command.js +3 -6
- package/dist/config.d.ts +1 -1
- package/dist/config.js +6 -4
- package/dist/core/memory-tool-text.d.ts +4 -0
- package/dist/core/memory-tool-text.js +6 -0
- package/dist/core/profile-backoff.d.ts +20 -0
- package/dist/core/profile-backoff.js +41 -0
- package/dist/core/profile-failure.d.ts +16 -0
- package/dist/core/profile-failure.js +34 -0
- package/dist/core/trivial-prompt.d.ts +5 -0
- package/dist/core/trivial-prompt.js +8 -0
- package/dist/importer/claude-hook-api.js +13 -2
- package/dist/importer/model-selection.d.ts +2 -0
- package/dist/importer/model-selection.js +15 -4
- package/dist/importer/profile-backlog.d.ts +42 -0
- package/dist/importer/profile-backlog.js +79 -0
- package/dist/importer/profile-catch-up.d.ts +39 -0
- package/dist/importer/profile-catch-up.js +123 -0
- package/dist/importer/profile-import.d.ts +1 -1
- package/dist/importer/profile-import.js +14 -35
- package/dist/importer/settings-health.js +50 -11
- package/dist/importer/web-import-api.d.ts +1 -0
- package/dist/importer/web-import-api.js +1 -0
- package/dist/index.js +4 -1
- package/dist/services/api-tokens.d.ts +35 -0
- package/dist/services/api-tokens.js +185 -0
- package/dist/services/capture-attempt-store.d.ts +3 -1
- package/dist/services/capture-attempt-store.js +12 -5
- package/dist/services/context.js +4 -1
- package/dist/services/embedding-change.d.ts +52 -0
- package/dist/services/embedding-change.js +177 -0
- package/dist/services/embedding.d.ts +23 -1
- package/dist/services/embedding.js +63 -24
- package/dist/services/global-config-writer.d.ts +12 -1
- package/dist/services/global-config-writer.js +32 -4
- package/dist/services/migration-service.js +4 -1
- package/dist/services/settings-snapshot.d.ts +8 -0
- package/dist/services/settings-snapshot.js +11 -0
- package/dist/services/user-prompt/profile-catch-up-lease.d.ts +34 -0
- package/dist/services/user-prompt/profile-catch-up-lease.js +77 -0
- package/dist/services/user-prompt/user-prompt-manager.d.ts +14 -1
- package/dist/services/user-prompt/user-prompt-manager.js +36 -1
- package/dist/services/web-api-auth.d.ts +6 -2
- package/dist/services/web-api-auth.js +11 -9
- package/dist/services/web-password.d.ts +11 -0
- package/dist/services/web-password.js +30 -0
- package/dist/services/web-server.d.ts +8 -0
- package/dist/services/web-server.js +182 -19
- package/dist/v2/adapter.js +3 -0
- package/dist/web/assets/index-B6LyHM22.css +2 -0
- package/dist/web/assets/index-CVvXO3zL.js +125 -0
- package/dist/web/index.html +2 -2
- package/package.json +5 -1
- package/skills/omms-memory/SKILL.md +93 -0
- package/dist/web/assets/index-Bh5aFNPX.js +0 -124
- package/dist/web/assets/index-DG7RjW5B.css +0 -2
package/dist/web/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>omms Memory Explorer</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CVvXO3zL.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B6LyHM22.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "om-memory-system",
|
|
3
|
-
"version": "3.7.0-next.
|
|
3
|
+
"version": "3.7.0-next.52",
|
|
4
4
|
"description": "Opinionated modular memory system for coding agents (OpenCode + Pi)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin.js",
|
|
@@ -124,10 +124,14 @@
|
|
|
124
124
|
"pi": {
|
|
125
125
|
"extensions": [
|
|
126
126
|
"./dist/adapters/pi/extension.js"
|
|
127
|
+
],
|
|
128
|
+
"skills": [
|
|
129
|
+
"./skills"
|
|
127
130
|
]
|
|
128
131
|
},
|
|
129
132
|
"files": [
|
|
130
133
|
"dist",
|
|
134
|
+
"skills",
|
|
131
135
|
"package.json"
|
|
132
136
|
],
|
|
133
137
|
"lint-staged": {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omms-memory
|
|
3
|
+
description: Search and save OMMS project memory. Use before you debug or investigate a problem, when the user refers to earlier work ("we fixed this before", "last time", "remember", "did we"), and before a decision about project conventions. Use after the user makes a decision, you fix a bug, or the user states a preference.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# OMMS project memory
|
|
7
|
+
|
|
8
|
+
OMMS keeps memories for each project: earlier fixes, decisions, and conventions. At the start of a session OMMS adds the closest matches to the context. That list is partial. Search the full store before you work out an answer again.
|
|
9
|
+
|
|
10
|
+
## How to call OMMS
|
|
11
|
+
|
|
12
|
+
- If your tool list has a `memory` tool (Pi and OpenCode), use it.
|
|
13
|
+
- If it does not (Claude Code), run the `om-memory-system memory` command with the Bash tool from the project directory. Each command prints one JSON document. A result with `"success": false` has an `error` field.
|
|
14
|
+
|
|
15
|
+
## When to search
|
|
16
|
+
|
|
17
|
+
Search first:
|
|
18
|
+
|
|
19
|
+
- before you debug or investigate a problem;
|
|
20
|
+
- when the user refers to earlier work, for example "we fixed this before", "last time", "remember", or "did we";
|
|
21
|
+
- before a decision about project conventions, tools, or structure.
|
|
22
|
+
|
|
23
|
+
With the `memory` tool:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
memory({ mode: "search", query: "<keywords>" })
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
With the command:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
om-memory-system memory search "<query>"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- Use technical keywords, for example `"database choice"` or `"webhook retry policy"`.
|
|
36
|
+
- If the first search finds nothing, try two or three other keyword sets: the error text, the file name, the tool name.
|
|
37
|
+
- If the project search finds nothing, search every project: `scope: "all-projects"` with the tool, or `--scope all-projects` with the command.
|
|
38
|
+
- Each result has `id`, `content`, `similarity` (0 to 100), and `type` when the memory has one. Add a limit (`limit: N` or `--limit N`) to get fewer results.
|
|
39
|
+
|
|
40
|
+
## When to save
|
|
41
|
+
|
|
42
|
+
After the user makes a decision, after you fix a bug, or after the user states a preference, save one short memory.
|
|
43
|
+
|
|
44
|
+
With the `memory` tool:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
memory({ mode: "add", content: "<one or two sentences>", type: "<type>", tags: "<tag1,tag2>" })
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
With the command:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
om-memory-system memory add --content "<one or two sentences>" --type <type> --tags "<tag1,tag2>"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- Write the content so that it makes sense without the conversation. Name the files, tools, and reasons.
|
|
57
|
+
- Save a personal working preference that applies to all projects with mode `profile` (`om-memory-system memory profile --content "<preference>"`).
|
|
58
|
+
|
|
59
|
+
Types:
|
|
60
|
+
|
|
61
|
+
| Type | Use for |
|
|
62
|
+
| --------------- | ----------------------------------------- |
|
|
63
|
+
| `decision` | A choice and its reason |
|
|
64
|
+
| `bug-fix` | A bug, its cause, and the fix |
|
|
65
|
+
| `feature` | A feature that was added |
|
|
66
|
+
| `refactor` | A change of structure with no new feature |
|
|
67
|
+
| `configuration` | A setting, environment, or build change |
|
|
68
|
+
| `analysis` | A finding from an investigation |
|
|
69
|
+
| `discussion` | A conclusion from a discussion |
|
|
70
|
+
| `other` | Anything else |
|
|
71
|
+
|
|
72
|
+
## Modes
|
|
73
|
+
|
|
74
|
+
| Mode | Options |
|
|
75
|
+
| ------------- | ------------------------------------------------------------ |
|
|
76
|
+
| `search` | query, limit, scope |
|
|
77
|
+
| `add` | content, type, tags |
|
|
78
|
+
| `list` | limit, scope |
|
|
79
|
+
| `forget` | the memory id |
|
|
80
|
+
| `profile` | no options to show the profile; content to save a preference |
|
|
81
|
+
| `list-shards` | none |
|
|
82
|
+
| `migrate` | the old path or hash, dry run |
|
|
83
|
+
| `export` | the output file |
|
|
84
|
+
| `import` | the input file, dry run |
|
|
85
|
+
| `help` | none |
|
|
86
|
+
|
|
87
|
+
The command takes each option as a flag, for example `--query`, `--limit`, `--scope`, `--id`, and `--directory <path>` for a different project. Run `om-memory-system memory --help` for the full list.
|
|
88
|
+
|
|
89
|
+
## Safety
|
|
90
|
+
|
|
91
|
+
- Never store secrets: API keys, tokens, passwords, or private keys.
|
|
92
|
+
- OMMS removes text inside `<private>...</private>` tags before storage. Content that is fully private is not stored.
|
|
93
|
+
- Do not use `forget` unless the user asks you to remove a memory.
|