@amoree-code/ocean 1.7.0 → 1.9.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.
Files changed (30) hide show
  1. package/README.md +3 -1
  2. package/dist/infrastructure/process/service.js +22 -1
  3. package/dist/interfaces/cli/command-registry.js +8 -1
  4. package/dist/interfaces/cli/daily-command.js +7 -73
  5. package/dist/interfaces/cli/harvest-command.js +58 -0
  6. package/dist/interfaces/cli/help-command.js +10 -2
  7. package/dist/interfaces/cli/rhythm-command.js +81 -0
  8. package/dist/interfaces/cli/session-facts-command.js +1 -1
  9. package/node_modules/@ocean/brain/dist/memory/brain-dump.js +55 -0
  10. package/node_modules/@ocean/brain/dist/memory/session-facts.js +44 -3
  11. package/node_modules/@ocean/brain/package.json +1 -1
  12. package/node_modules/@ocean/context/package.json +1 -1
  13. package/node_modules/@ocean/core/package.json +1 -1
  14. package/node_modules/@ocean/loop/dist/hooks/desktop-facts.js +21 -1
  15. package/node_modules/@ocean/loop/dist/hooks/session-facts-hook.js +19 -1
  16. package/node_modules/@ocean/loop/dist/sessions/session-closeout.js +2 -9
  17. package/node_modules/@ocean/loop/package.json +1 -1
  18. package/node_modules/@ocean/market/package.json +1 -1
  19. package/node_modules/@ocean/services/dist/brief/brief.js +5 -1
  20. package/node_modules/@ocean/services/dist/day/day.js +203 -0
  21. package/node_modules/@ocean/services/dist/day/note.js +78 -0
  22. package/node_modules/@ocean/services/dist/distill/distill.js +1 -1
  23. package/node_modules/@ocean/services/dist/harvest/harvest.js +506 -0
  24. package/node_modules/@ocean/services/package.json +1 -1
  25. package/ocean-marketplace.json +66 -30
  26. package/package.json +7 -7
  27. package/skills/core/daily-harvest/SKILL.md +78 -0
  28. package/skills/core/memory-review/SKILL.md +53 -0
  29. package/skills/index.json +12 -0
  30. package/templates/workspace/06-templates/daily.md +0 -5
@@ -5,9 +5,9 @@
5
5
  {
6
6
  "kind": "skill",
7
7
  "name": "dev.ocean.skills.business-logic",
8
- "version": "1.7.0",
8
+ "version": "1.9.0",
9
9
  "engines": {
10
- "ocean": ">=1.7.0"
10
+ "ocean": ">=1.9.0"
11
11
  },
12
12
  "source": {
13
13
  "type": "path",
@@ -23,9 +23,9 @@
23
23
  {
24
24
  "kind": "skill",
25
25
  "name": "dev.ocean.skills.catch-up",
26
- "version": "1.7.0",
26
+ "version": "1.9.0",
27
27
  "engines": {
28
- "ocean": ">=1.7.0"
28
+ "ocean": ">=1.9.0"
29
29
  },
30
30
  "source": {
31
31
  "type": "path",
@@ -41,9 +41,9 @@
41
41
  {
42
42
  "kind": "skill",
43
43
  "name": "dev.ocean.skills.core-thinking",
44
- "version": "1.7.0",
44
+ "version": "1.9.0",
45
45
  "engines": {
46
- "ocean": ">=1.7.0"
46
+ "ocean": ">=1.9.0"
47
47
  },
48
48
  "source": {
49
49
  "type": "path",
@@ -56,12 +56,30 @@
56
56
  "directory": "core-thinking"
57
57
  }
58
58
  },
59
+ {
60
+ "kind": "skill",
61
+ "name": "dev.ocean.skills.daily-harvest",
62
+ "version": "1.9.0",
63
+ "engines": {
64
+ "ocean": ">=1.9.0"
65
+ },
66
+ "source": {
67
+ "type": "path",
68
+ "path": "skills/core/daily-harvest"
69
+ },
70
+ "integrity": {
71
+ "sha256": "4314c029393052b95bb675ead75a9ecbfb5138457c7367fd761d6efa8f2580ba"
72
+ },
73
+ "spec": {
74
+ "directory": "daily-harvest"
75
+ }
76
+ },
59
77
  {
60
78
  "kind": "skill",
61
79
  "name": "dev.ocean.skills.design-thinking",
62
- "version": "1.7.0",
80
+ "version": "1.9.0",
63
81
  "engines": {
64
- "ocean": ">=1.7.0"
82
+ "ocean": ">=1.9.0"
65
83
  },
66
84
  "source": {
67
85
  "type": "path",
@@ -77,9 +95,9 @@
77
95
  {
78
96
  "kind": "skill",
79
97
  "name": "dev.ocean.skills.graft",
80
- "version": "1.7.0",
98
+ "version": "1.9.0",
81
99
  "engines": {
82
- "ocean": ">=1.7.0"
100
+ "ocean": ">=1.9.0"
83
101
  },
84
102
  "source": {
85
103
  "type": "path",
@@ -95,9 +113,9 @@
95
113
  {
96
114
  "kind": "skill",
97
115
  "name": "dev.ocean.skills.loop",
98
- "version": "1.7.0",
116
+ "version": "1.9.0",
99
117
  "engines": {
100
- "ocean": ">=1.7.0"
118
+ "ocean": ">=1.9.0"
101
119
  },
102
120
  "source": {
103
121
  "type": "path",
@@ -110,12 +128,30 @@
110
128
  "directory": "loop"
111
129
  }
112
130
  },
131
+ {
132
+ "kind": "skill",
133
+ "name": "dev.ocean.skills.memory-review",
134
+ "version": "1.9.0",
135
+ "engines": {
136
+ "ocean": ">=1.9.0"
137
+ },
138
+ "source": {
139
+ "type": "path",
140
+ "path": "skills/core/memory-review"
141
+ },
142
+ "integrity": {
143
+ "sha256": "9d43b15aa4fe676a4e260943f072452fba749c83b99df94f2fc18a82a3efb8cd"
144
+ },
145
+ "spec": {
146
+ "directory": "memory-review"
147
+ }
148
+ },
113
149
  {
114
150
  "kind": "skill",
115
151
  "name": "dev.ocean.skills.session-handoff",
116
- "version": "1.7.0",
152
+ "version": "1.9.0",
117
153
  "engines": {
118
- "ocean": ">=1.7.0"
154
+ "ocean": ">=1.9.0"
119
155
  },
120
156
  "source": {
121
157
  "type": "path",
@@ -131,9 +167,9 @@
131
167
  {
132
168
  "kind": "skill",
133
169
  "name": "dev.ocean.skills.use-browser",
134
- "version": "1.7.0",
170
+ "version": "1.9.0",
135
171
  "engines": {
136
- "ocean": ">=1.7.0"
172
+ "ocean": ">=1.9.0"
137
173
  },
138
174
  "source": {
139
175
  "type": "path",
@@ -149,9 +185,9 @@
149
185
  {
150
186
  "kind": "skill",
151
187
  "name": "dev.ocean.skills.verification",
152
- "version": "1.7.0",
188
+ "version": "1.9.0",
153
189
  "engines": {
154
- "ocean": ">=1.7.0"
190
+ "ocean": ">=1.9.0"
155
191
  },
156
192
  "source": {
157
193
  "type": "path",
@@ -167,9 +203,9 @@
167
203
  {
168
204
  "kind": "skill",
169
205
  "name": "dev.ocean.skills.weekly-review",
170
- "version": "1.7.0",
206
+ "version": "1.9.0",
171
207
  "engines": {
172
- "ocean": ">=1.7.0"
208
+ "ocean": ">=1.9.0"
173
209
  },
174
210
  "source": {
175
211
  "type": "path",
@@ -201,9 +237,9 @@
201
237
  "npx"
202
238
  ]
203
239
  },
204
- "version": "1.7.0",
240
+ "version": "1.9.0",
205
241
  "engines": {
206
- "ocean": ">=1.7.0"
242
+ "ocean": ">=1.9.0"
207
243
  },
208
244
  "source": {
209
245
  "type": "path",
@@ -236,9 +272,9 @@
236
272
  "kind": "mcp",
237
273
  "name": "dev.ocean/mcp-gateway",
238
274
  "description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
239
- "version": "1.7.0",
275
+ "version": "1.9.0",
240
276
  "engines": {
241
- "ocean": ">=1.7.0"
277
+ "ocean": ">=1.9.0"
242
278
  },
243
279
  "source": {
244
280
  "type": "path",
@@ -280,9 +316,9 @@
280
316
  "kind": "mcp",
281
317
  "name": "dev.ocean/obsidian",
282
318
  "description": "Ocean's Obsidian vault bridge over MCP.",
283
- "version": "1.7.0",
319
+ "version": "1.9.0",
284
320
  "engines": {
285
- "ocean": ">=1.7.0"
321
+ "ocean": ">=1.9.0"
286
322
  },
287
323
  "source": {
288
324
  "type": "path",
@@ -324,9 +360,9 @@
324
360
  "kind": "mcp",
325
361
  "name": "dev.ocean/ocean",
326
362
  "description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
327
- "version": "1.7.0",
363
+ "version": "1.9.0",
328
364
  "engines": {
329
- "ocean": ">=1.7.0"
365
+ "ocean": ">=1.9.0"
330
366
  },
331
367
  "source": {
332
368
  "type": "path",
@@ -378,9 +414,9 @@
378
414
  "npx"
379
415
  ]
380
416
  },
381
- "version": "1.7.0",
417
+ "version": "1.9.0",
382
418
  "engines": {
383
- "ocean": ">=1.7.0"
419
+ "ocean": ">=1.9.0"
384
420
  },
385
421
  "source": {
386
422
  "type": "path",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@amoree-code/ocean",
3
3
  "description": "Local-first memory, tasks and session capture shared by every AI coding client: one private workspace for Claude, Codex, Gemini and more.",
4
- "version": "1.7.0",
4
+ "version": "1.9.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "AMEER ABDULKAREEM JABBAR LAMI",
@@ -45,12 +45,12 @@
45
45
  "@langchain/core": "1.2.14",
46
46
  "@langchain/langgraph": "1.4.19",
47
47
  "@modelcontextprotocol/sdk": "1.32.0",
48
- "@ocean/brain": "1.7.0",
49
- "@ocean/context": "1.7.0",
50
- "@ocean/core": "1.7.0",
51
- "@ocean/loop": "1.7.0",
52
- "@ocean/market": "1.7.0",
53
- "@ocean/services": "1.7.0",
48
+ "@ocean/brain": "1.9.0",
49
+ "@ocean/context": "1.9.0",
50
+ "@ocean/core": "1.9.0",
51
+ "@ocean/loop": "1.9.0",
52
+ "@ocean/market": "1.9.0",
53
+ "@ocean/services": "1.9.0",
54
54
  "playwright-core": "^1.48.0",
55
55
  "sqlite-vec": "0.1.9",
56
56
  "zod": "^4.6.5"
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: daily-harvest
3
+ description: Turn everything the inbox and the daily folder hold - sessions from every AI client, imported memories, candidates, corrections - into filed knowledge and a better system, with no manual review, then archive. Use when the owner says harvest, process the inbox, file everything, improve the knowledge, or clean up 00-inbox and 01-daily.
4
+ version: 1.0.0
5
+ category: core
6
+ ---
7
+
8
+ # Daily harvest
9
+
10
+ The owner decided (2026-11-16) that Ocean files what it learns on its own. You do not ask him to
11
+ review each item. You decide where each fact belongs, write it there, and report what you did
12
+ with a way to undo it. Only a contradiction stops and waits for him.
13
+
14
+ ## Where everything lives
15
+
16
+ - A session from any client (Claude Code, Claude Desktop, Codex, Gemini, …) is one record in
17
+ `01-daily/sessions/YYYY-MM/`, its client in `provider`.
18
+ - A fact is filed by **topic, not by which AI said it**: `routing.json` maps its type to a folder
19
+ (identity, preference, goal, education, career, project memory, decision, solution, discovery,
20
+ …). Its frontmatter keeps where it came from: `origin: imported|harvested`, `source:
21
+ <client>`, the date.
22
+ - Raw memory pulled from a client waits in `00-inbox/native/<client>/` until harvested, then
23
+ moves to `00-inbox/archive/native/<client>/<YYYY-MM>/`.
24
+
25
+ ## 1. The mechanical pass
26
+
27
+ `ocean rhythm --yes` runs it all with no model, each part once per period (the service runs it
28
+ at every session start and end, and hourly): the morning block of today's note, every day not yet
29
+ harvested plus today so far, the archive, last week's digest, last month's review.
30
+
31
+ The daily note has one shape: `## Today` and `## Brief` (morning, under the title), then the day's
32
+ account — `## Day summary` (sessions per client, decisions, fixes, lessons, captures), `## Open
33
+ loops` (every Next, `- [ ]`, carried each morning until ticked), `## Corrections`, `## Time` — and
34
+ last `## Notes`, which is the owner's and never written. Claude Desktop chats and long Claude Code
35
+ sessions are in it through the digest their fact capture returns in the same call.
36
+
37
+ Read the JSON of `ocean harvest --pending --yes` (or the day's note): that is your work list.
38
+
39
+ ## 2. The judgement pass
40
+
41
+ Work through these in order. For every fact: search first (`ocean memory search`), then either
42
+ strengthen the record that holds it (merge into one current statement, fresh `updated` /
43
+ `last_verified`) or create the record where `routing.json` puts its type. Never duplicate.
44
+
45
+ 1. **Candidates** (`ocean memory review list`): a duplicate of a record → reject; new and
46
+ consistent → approve with `--type` (or `--to`), then merge cleanly (the memory-review skill's
47
+ step 3); unsure what it means → leave it and list it in the report.
48
+ 2. **Native memory** in `00-inbox/native/<client>/` and the files in `02-personal/imported/`:
49
+ split each into facts, file each by topic with `origin: imported` and its client, then move the
50
+ raw file to the archive. A project fact goes to that project's `memory/`.
51
+ 3. **Legacy session records** (no Decisions / Learned sections): read a month at a time; pull out
52
+ decisions, fixes and lessons; file them as above; add `harvested: <date>` to each record read.
53
+ 4. **Corrections** in the day summaries: one the owner gave twice, or with "always" / "never",
54
+ becomes a feedback record in `02-personal/work/` (rule, **Why:**, **How to apply:**). A rule
55
+ for every client goes to the backlog as a charter change, not into the charter itself.
56
+ 5. **The system itself**: an error recurring across sessions (`ocean telemetry --yes`); the same
57
+ manual steps in three or more sessions → a backlog line `skill: <what it would do>`; a failure
58
+ in `05-knowledge/failures/` with no linked solution → look for the fix in the sessions.
59
+ 6. **Knowledge hygiene**: merge records that say the same thing; list decisions whose
60
+ `last_verified` is over 90 days old; fix broken links; run `ocean memory sync --apply`.
61
+ 7. **The owner's journey**: a study session (IELTS, Letspeak) adds to his study log; finished,
62
+ notable work becomes a milestone (`status: done`); a project's state goes to its `memory/`.
63
+
64
+ **Stop and do not write** when a fact contradicts a record or one of his notes in `07-notes/`:
65
+ propose it with `contradicts` so it waits in `02-personal/CONFLICTS.md`. Never write a secret;
66
+ about other people, only what the work needs; never invent a detail.
67
+
68
+ ## 3. Archive
69
+
70
+ Run `ocean harvest archive --yes`: harvested days older than 30 days leave `01-daily/` for
71
+ `01-daily/archive/<YYYY-MM>/` (notes) and `01-daily/sessions/archive/<YYYY-MM>/` (records, still
72
+ searched). Nothing is deleted.
73
+
74
+ ## 4. Report
75
+
76
+ In the owner's language, short: days harvested, records created and strengthened (by folder),
77
+ facts filed from other AIs, corrections turned into rules, backlog lines added, what waits in
78
+ CONFLICTS.md, what moved to the archive, and `ocean harvest undo <date>` for any day he wants back.
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: memory-review
3
+ description: Review pending memory candidates with the owner one at a time - compare each with the record it would change, recommend, and merge approved facts cleanly into that record. Use when he says review candidates, review my memory, go through the proposals, or clear the inbox candidates.
4
+ version: 1.0.0
5
+ category: core
6
+ ---
7
+
8
+ # Memory review
9
+
10
+ Candidates are facts Ocean proposed (inferred, imported or harvested). None is memory until the
11
+ owner approves it. You prepare each decision; he makes it.
12
+
13
+ ## 1. Survey
14
+
15
+ Run `ocean memory review list`. Before asking anything, group what you see:
16
+
17
+ - **Duplicates**: the same source harvested twice (same `harvested from` path, same text). Decide
18
+ them once, together.
19
+ - **Already recorded**: read the target record (or search with `ocean memory search <q>`). A
20
+ candidate that adds nothing new is a reject to recommend, not a question to ask blind.
21
+ - **Age**: oldest first. Tell him the total and how many are older than seven days.
22
+
23
+ ## 2. One candidate at a time
24
+
25
+ For each, read the candidate file and the record it would change. Show, in plain words in his
26
+ language:
27
+
28
+ 1. **Now**: what the record says today (or that there is none).
29
+ 2. **Proposed**: what the candidate adds or changes, with its source and date.
30
+ 3. **Recommendation**: approve, merge, reject, or ask, with one line of why. Flag what may be
31
+ stale ("as of October; still true?").
32
+
33
+ Then ask one question and wait. Never approve without his answer; never batch items he has not
34
+ seen.
35
+
36
+ ## 3. Apply his answer
37
+
38
+ - **Approve, no target**: `ocean memory review approve <id> --type <type>` (`routing.json` picks
39
+ the folder) or `--to <path>`. A project fact goes to that project's `memory/`.
40
+ - **Approve, existing record**: `ocean memory review approve <id>` appends the candidate's text
41
+ to the record. Then merge by hand: fold the new facts into the right lines, delete what they
42
+ replace, remove the appended raw paragraph, keep the frontmatter flat and set `updated` and
43
+ `last_verified` to today. The record must read as one current statement, not a log.
44
+ - **Edit**: write his corrected version into the record, then reject the candidate.
45
+ - **Reject**: `ocean memory review reject <id>`.
46
+ - **His extra answers** (a date, "I cancelled that") go into the record too, dated.
47
+
48
+ Show him the few lines that changed after each one; nothing else.
49
+
50
+ ## 4. Close
51
+
52
+ Run `ocean memory doctor` and report the count still waiting. Never write secrets, never record
53
+ facts about third parties beyond what work needs, and never invent a detail he did not give.
package/skills/index.json CHANGED
@@ -17,6 +17,12 @@
17
17
  "version": "1.0.0",
18
18
  "category": "core"
19
19
  },
20
+ {
21
+ "name": "daily-harvest",
22
+ "description": "Turn everything the inbox and the daily folder hold - sessions from every AI client, imported memories, candidates, corrections - into filed knowledge and a better system, with no manual review, then archive. Use when the owner says harvest, process the inbox, file everything, improve the knowledge, or clean up 00-inbox and 01-daily.",
23
+ "version": "1.0.0",
24
+ "category": "core"
25
+ },
20
26
  {
21
27
  "name": "design-thinking",
22
28
  "description": "Frame a problem, clarify the desired outcome, compare simple solutions, and define success before implementation.",
@@ -35,6 +41,12 @@
35
41
  "version": "1.0.0",
36
42
  "category": "core"
37
43
  },
44
+ {
45
+ "name": "memory-review",
46
+ "description": "Review pending memory candidates with the owner one at a time - compare each with the record it would change, recommend, and merge approved facts cleanly into that record. Use when he says review candidates, review my memory, go through the proposals, or clear the inbox candidates.",
47
+ "version": "1.0.0",
48
+ "category": "core"
49
+ },
38
50
  {
39
51
  "name": "session-handoff",
40
52
  "description": "Produce a compact continuation packet with the next action and verification commands.",
@@ -1,13 +1,8 @@
1
1
  ---
2
2
  type: daily
3
3
  date: {{date}}
4
- tags: []
5
4
  ---
6
5
 
7
6
  # {{date}}
8
7
 
9
- ## Plan
10
-
11
- ## Log
12
-
13
8
  ## Notes