@amoree-code/ocean 1.6.2 → 1.7.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 (79) hide show
  1. package/README.md +9 -1
  2. package/dist/application/clients/desktop-watcher.js +234 -0
  3. package/dist/application/clients/opencode-plugin.js +4 -3
  4. package/dist/application/layout/layout-plan.js +1 -0
  5. package/dist/application/onboarding/steps.js +20 -1
  6. package/dist/infrastructure/desktop/claude-export.js +84 -0
  7. package/dist/infrastructure/desktop/desktop-chat.js +165 -0
  8. package/dist/infrastructure/desktop/indexeddb.js +158 -0
  9. package/dist/infrastructure/desktop/leveldb.js +247 -0
  10. package/dist/infrastructure/desktop/snappy.js +74 -0
  11. package/dist/interfaces/cli/brief-command.js +17 -0
  12. package/dist/interfaces/cli/capture-command.js +1 -1
  13. package/dist/interfaces/cli/clients-command.js +15 -2
  14. package/dist/interfaces/cli/command-registry.js +29 -2
  15. package/dist/interfaces/cli/desktop-command.js +124 -0
  16. package/dist/interfaces/cli/distill-command.js +36 -0
  17. package/dist/interfaces/cli/express-command.js +18 -0
  18. package/dist/interfaces/cli/help-command.js +30 -2
  19. package/dist/interfaces/cli/interests-command.js +33 -0
  20. package/dist/interfaces/cli/memory-command.js +37 -3
  21. package/dist/interfaces/cli/note-command.js +7 -0
  22. package/dist/interfaces/cli/setup-command.js +2 -1
  23. package/dist/interfaces/cli/telemetry-command.js +23 -0
  24. package/node_modules/@ocean/brain/dist/brain/brain-reindex.js +4 -1
  25. package/node_modules/@ocean/brain/dist/brain/brain-service.js +11 -1
  26. package/node_modules/@ocean/brain/dist/memory/brain-dump.js +73 -24
  27. package/node_modules/@ocean/brain/dist/memory/fact-routing.js +54 -0
  28. package/node_modules/@ocean/brain/dist/memory/frontmatter-flatten.js +89 -0
  29. package/node_modules/@ocean/brain/dist/memory/lessons.js +20 -0
  30. package/node_modules/@ocean/brain/dist/memory/memory-paths.js +3 -1
  31. package/node_modules/@ocean/brain/dist/memory/memory-review.js +19 -2
  32. package/node_modules/@ocean/brain/dist/memory/memory-write.js +45 -3
  33. package/node_modules/@ocean/brain/dist/memory/people.js +70 -0
  34. package/node_modules/@ocean/brain/dist/memory/routing.json +39 -0
  35. package/node_modules/@ocean/brain/dist/memory/session-facts.js +7 -1
  36. package/node_modules/@ocean/brain/dist/memory/session-promotion.js +1 -1
  37. package/node_modules/@ocean/brain/package.json +1 -1
  38. package/node_modules/@ocean/context/package.json +1 -1
  39. package/node_modules/@ocean/core/dist/shared/paths.js +7 -0
  40. package/node_modules/@ocean/core/package.json +1 -1
  41. package/node_modules/@ocean/loop/dist/handoff/handoff-service.js +5 -1
  42. package/node_modules/@ocean/loop/dist/hooks/desktop-facts.js +154 -0
  43. package/node_modules/@ocean/loop/dist/hooks/session-end-hook.js +1 -1
  44. package/node_modules/@ocean/loop/package.json +1 -1
  45. package/node_modules/@ocean/market/package.json +1 -1
  46. package/node_modules/@ocean/services/dist/brief/brief.js +218 -0
  47. package/node_modules/@ocean/services/dist/brief/interest-discovery.js +236 -0
  48. package/node_modules/@ocean/services/dist/brief/source-registry.json +35 -0
  49. package/node_modules/@ocean/services/dist/distill/distill.js +258 -0
  50. package/node_modules/@ocean/services/dist/doctor/workspace-doctor.js +129 -8
  51. package/node_modules/@ocean/services/dist/express/express.js +99 -0
  52. package/node_modules/@ocean/services/dist/infrastructure/mcp/ocean-server.js +17 -1
  53. package/node_modules/@ocean/services/dist/journey/telemetry.js +81 -0
  54. package/node_modules/@ocean/services/dist/obsidian/folder-templates.js +82 -0
  55. package/node_modules/@ocean/services/dist/onboarding/onboarding.js +62 -0
  56. package/node_modules/@ocean/services/package.json +1 -1
  57. package/ocean-marketplace.json +46 -28
  58. package/package.json +7 -7
  59. package/skills/core/weekly-review/SKILL.md +24 -0
  60. package/skills/index.json +6 -0
  61. package/templates/workspace/02-personal/education/study/study.base +15 -0
  62. package/templates/workspace/02-personal/milestones/milestones.base +14 -0
  63. package/templates/workspace/02-personal/people/people.base +18 -0
  64. package/templates/workspace/06-templates/TEMPLATES.md +12 -0
  65. package/templates/workspace/06-templates/capture.md +9 -0
  66. package/templates/workspace/06-templates/daily.md +13 -0
  67. package/templates/workspace/06-templates/decision.md +8 -0
  68. package/templates/workspace/06-templates/failure.md +13 -0
  69. package/templates/workspace/06-templates/intelligence.md +7 -0
  70. package/templates/workspace/06-templates/interest.md +13 -0
  71. package/templates/workspace/06-templates/lesson.md +16 -0
  72. package/templates/workspace/06-templates/milestone.md +10 -0
  73. package/templates/workspace/06-templates/note.md +8 -0
  74. package/templates/workspace/06-templates/person.md +15 -0
  75. package/templates/workspace/06-templates/session.md +10 -0
  76. package/templates/workspace/06-templates/solution.md +14 -0
  77. package/templates/workspace/06-templates/study.md +14 -0
  78. package/templates/workspace/07-notes/.gitkeep +0 -0
  79. package/templates/workspace/MANIFEST.json +14 -0
@@ -0,0 +1,81 @@
1
+ import { proposeMemory } from "@ocean/brain/memory/memory-write.js";
2
+ import { MemoryContractError } from "@ocean/core/domain/mcp/memory-contract.js";
3
+ // Session telemetry (T-314): what keeps going wrong in Ocean's own sessions becomes a proposed
4
+ // backlog line for the owner — never a task, never applied without review. Read from the session
5
+ // store: an error seen in at least MIN_REPEATS sessions, and providers whose sessions fail or are
6
+ // left unfinished.
7
+ const MIN_REPEATS = 3;
8
+ const STUCK_AFTER_MS = 6 * 60 * 60 * 1000;
9
+ const ERROR_TYPES = new Set(["error", "provider_blocked", "closeout_warning"]);
10
+ // The same failure with different ids, paths or numbers counts as one.
11
+ export function errorShape(text) {
12
+ return text
13
+ .replace(/\/[^\s:'"]+/g, "<path>")
14
+ .replace(/[0-9a-f]{8}-[0-9a-f-]{27,}/gi, "<id>")
15
+ .replace(/\d+/g, "<n>")
16
+ .replace(/\s+/g, " ")
17
+ .trim()
18
+ .slice(0, 120);
19
+ }
20
+ export function analyzeSessions(sessions, eventsOf, sinceIso, now = Date.now()) {
21
+ const recent = sessions.filter((session) => session.createdAt >= sinceIso);
22
+ const errors = new Map();
23
+ for (const session of recent)
24
+ for (const event of eventsOf(session.sessionId)) {
25
+ if (!ERROR_TYPES.has(event.type))
26
+ continue;
27
+ const shape = errorShape(event.data);
28
+ if (!shape)
29
+ continue;
30
+ const seen = errors.get(shape) ?? new Set();
31
+ seen.add(session.sessionId);
32
+ errors.set(shape, seen);
33
+ }
34
+ const findings = [...errors]
35
+ .filter(([, ids]) => ids.size >= MIN_REPEATS)
36
+ .sort((a, b) => b[1].size - a[1].size)
37
+ .map(([shape, ids]) => ({
38
+ line: `Recurring error in ${ids.size} sessions: ${shape}`,
39
+ sessions: ids.size,
40
+ }));
41
+ const byProvider = new Map();
42
+ for (const session of recent) {
43
+ const entry = byProvider.get(session.provider) ?? { failed: 0, total: 0 };
44
+ entry.total++;
45
+ // A running session counts only once it has run longer than any real session would.
46
+ const stuck = session.status === "running" &&
47
+ now - Date.parse(session.createdAt) > STUCK_AFTER_MS;
48
+ if (session.status === "failed" || stuck)
49
+ entry.failed++;
50
+ byProvider.set(session.provider, entry);
51
+ }
52
+ for (const [provider, { failed, total }] of byProvider)
53
+ if (failed >= MIN_REPEATS && failed / total >= 0.25)
54
+ findings.push({
55
+ line: `${provider}: ${failed} of ${total} sessions failed or never finished`,
56
+ sessions: failed,
57
+ });
58
+ return findings;
59
+ }
60
+ export async function proposeTelemetry(findings, apply) {
61
+ if (!apply)
62
+ return findings.map((finding) => finding.line);
63
+ const proposed = [];
64
+ for (const finding of findings)
65
+ try {
66
+ const { candidate } = await proposeMemory({
67
+ content: finding.line,
68
+ origin: "inferred",
69
+ source: "session-telemetry",
70
+ reason: "seen repeatedly in Ocean's own sessions",
71
+ meta: { kind: "todo", project: "ocean" },
72
+ });
73
+ proposed.push(candidate);
74
+ }
75
+ catch (error) {
76
+ if (!(error instanceof MemoryContractError))
77
+ throw error;
78
+ }
79
+ return proposed;
80
+ }
81
+ //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1,82 @@
1
+ import { mkdir, readFile } from "node:fs/promises";
2
+ import path from "node:path";
3
+ import { RECORD_TYPES, recordFolder, } from "@ocean/brain/memory/fact-routing.js";
4
+ import { redactSecrets } from "@ocean/core/domain/redaction/redaction.js";
5
+ import { atomicWrite } from "@ocean/core/shared/fs-utils.js";
6
+ import { INBOX_DIR, oceanPath, TEMPLATES_DIR, } from "@ocean/core/shared/paths.js";
7
+ import { projectSlug } from "@ocean/core/shared/project-resolution.js";
8
+ const TEMPLATER_CONFIG = [
9
+ ".obsidian",
10
+ "plugins",
11
+ "templater-obsidian",
12
+ "data.json",
13
+ ];
14
+ async function exists(file) {
15
+ return readFile(file).then(() => true, () => false);
16
+ }
17
+ // One entry per routed type whose template exists in 06-templates; entries the owner made for
18
+ // other folders are kept, and a routed folder's entry is replaced.
19
+ export async function planFolderTemplates(current) {
20
+ const routed = [];
21
+ const missing = [];
22
+ for (const type of RECORD_TYPES) {
23
+ const folder = recordFolder(type)?.replace(/\/$/, "");
24
+ if (!folder)
25
+ continue;
26
+ const template = `${TEMPLATES_DIR}/${type}.md`;
27
+ if (await exists(oceanPath(template)))
28
+ routed.push({ folder, template });
29
+ else
30
+ missing.push(type);
31
+ }
32
+ const ours = new Set(routed.map((entry) => entry.folder));
33
+ return {
34
+ entries: [...current.filter((entry) => !ours.has(entry.folder)), ...routed],
35
+ missing,
36
+ };
37
+ }
38
+ export async function syncFolderTemplates(options) {
39
+ const file = oceanPath(...TEMPLATER_CONFIG);
40
+ let config = {};
41
+ try {
42
+ config = JSON.parse(await readFile(file, "utf8"));
43
+ }
44
+ catch (error) {
45
+ if (error.code !== "ENOENT")
46
+ throw new Error(`${TEMPLATER_CONFIG.join("/")} is not valid JSON`);
47
+ }
48
+ const current = Array.isArray(config.folder_templates)
49
+ ? config.folder_templates.filter((entry) => typeof entry?.folder === "string" &&
50
+ typeof entry?.template === "string")
51
+ : [];
52
+ const plan = await planFolderTemplates(current);
53
+ const relative = TEMPLATER_CONFIG.join("/");
54
+ if (!options.apply)
55
+ return { file: relative, ...plan, written: false };
56
+ await mkdir(path.dirname(file), { recursive: true });
57
+ await atomicWrite(file, `${JSON.stringify({
58
+ ...config,
59
+ templates_folder: config.templates_folder ?? TEMPLATES_DIR,
60
+ enable_folder_templates: true,
61
+ folder_templates: plan.entries,
62
+ }, null, 2)}\n`);
63
+ return { file: relative, ...plan, written: true };
64
+ }
65
+ // A quick note from anywhere (`ocean note "<text>"`): one file in 00-inbox/captures with the
66
+ // capture frontmatter, named by time and its first words. Secrets are redacted before writing.
67
+ export async function writeCapture(text, now = new Date()) {
68
+ const body = redactSecrets(text.trim());
69
+ if (!body)
70
+ throw new Error('Usage: ocean note "<text>"');
71
+ const stamp = now.toISOString().replace(/[-:]/g, "").slice(0, 15);
72
+ const slug = projectSlug(body.split(/\s+/).slice(0, 6).join(" ")).slice(0, 40) || "note";
73
+ const relative = `${INBOX_DIR}/captures/${stamp}-${slug}.md`;
74
+ const file = oceanPath(relative);
75
+ await mkdir(path.dirname(file), { recursive: true });
76
+ if (await exists(file))
77
+ throw new Error(`${relative} already exists`);
78
+ const title = body.split("\n")[0].slice(0, 80);
79
+ await atomicWrite(file, `---\ntype: capture\ncreated: ${now.toISOString()}\nsource: cli\ntags: []\n---\n\n# ${title}\n\n${body}\n`);
80
+ return relative;
81
+ }
82
+ //# sourceMappingURL=folder-templates.js.map
@@ -0,0 +1,62 @@
1
+ import { factTarget } from "@ocean/brain/memory/fact-routing.js";
2
+ import { proposeMemory } from "@ocean/brain/memory/memory-write.js";
3
+ import { MemoryContractError } from "@ocean/core/domain/mcp/memory-contract.js";
4
+ import { proposeInterests, topicProposal, } from "../brief/interest-discovery.js";
5
+ // Onboarding for any user (T-314): the `interests` step of `ocean onboard` asks three questions
6
+ // (the identity step already asks the role). The answers are the user's own words, but they still
7
+ // go to review like every other proposal: goals as a fact candidate, stack and topics as interest
8
+ // candidates. Nothing is written as memory here.
9
+ export const ONBOARDING_QUESTIONS = [
10
+ {
11
+ key: "stack",
12
+ question: "Which tools and frameworks do you use? (comma separated)",
13
+ },
14
+ {
15
+ key: "goals",
16
+ question: "What are you working towards this year? (one per line or ; separated)",
17
+ },
18
+ {
19
+ key: "topics",
20
+ question: "Which topics do you want to follow? (comma separated)",
21
+ },
22
+ ];
23
+ const items = (text, split) => [
24
+ ...new Set((text ?? "")
25
+ .split(split)
26
+ .map((item) => item.replace(/\s+/g, " ").trim())
27
+ .filter((item) => item && item.length <= 80)),
28
+ ].slice(0, 20);
29
+ export async function onboard(answers) {
30
+ const facts = [];
31
+ const fact = async (type, title, content) => {
32
+ try {
33
+ const { candidate } = await proposeMemory({
34
+ content,
35
+ origin: "inferred",
36
+ source: "setup-onboarding",
37
+ target: await factTarget({ type, title }),
38
+ reason: "answered at ocean setup --onboard",
39
+ meta: { type },
40
+ });
41
+ facts.push(candidate);
42
+ }
43
+ catch (error) {
44
+ if (!(error instanceof MemoryContractError))
45
+ throw error;
46
+ }
47
+ };
48
+ const goals = items(answers.goals, /[;\n]/);
49
+ if (goals.length)
50
+ await fact("goal", "goals", `# Goals\n\n${goals.map((goal) => `- **${goal}**`).join("\n")}\n`);
51
+ const topics = [
52
+ ...items(answers.stack, /[,;\n]/).map((topic) => topicProposal(topic, "named in your stack at setup")),
53
+ ...items(answers.topics, /[,;\n]/).map((topic) => topicProposal(topic, "a topic you asked to follow at setup")),
54
+ ];
55
+ const interests = await proposeInterests(topics, {
56
+ apply: true,
57
+ origin: "onboarding",
58
+ source: "setup-onboarding",
59
+ });
60
+ return { facts, interests };
61
+ }
62
+ //# sourceMappingURL=onboarding.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/services",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -5,9 +5,9 @@
5
5
  {
6
6
  "kind": "skill",
7
7
  "name": "dev.ocean.skills.business-logic",
8
- "version": "1.6.2",
8
+ "version": "1.7.0",
9
9
  "engines": {
10
- "ocean": ">=1.6.2"
10
+ "ocean": ">=1.7.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.6.2",
26
+ "version": "1.7.0",
27
27
  "engines": {
28
- "ocean": ">=1.6.2"
28
+ "ocean": ">=1.7.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.6.2",
44
+ "version": "1.7.0",
45
45
  "engines": {
46
- "ocean": ">=1.6.2"
46
+ "ocean": ">=1.7.0"
47
47
  },
48
48
  "source": {
49
49
  "type": "path",
@@ -59,9 +59,9 @@
59
59
  {
60
60
  "kind": "skill",
61
61
  "name": "dev.ocean.skills.design-thinking",
62
- "version": "1.6.2",
62
+ "version": "1.7.0",
63
63
  "engines": {
64
- "ocean": ">=1.6.2"
64
+ "ocean": ">=1.7.0"
65
65
  },
66
66
  "source": {
67
67
  "type": "path",
@@ -77,9 +77,9 @@
77
77
  {
78
78
  "kind": "skill",
79
79
  "name": "dev.ocean.skills.graft",
80
- "version": "1.6.2",
80
+ "version": "1.7.0",
81
81
  "engines": {
82
- "ocean": ">=1.6.2"
82
+ "ocean": ">=1.7.0"
83
83
  },
84
84
  "source": {
85
85
  "type": "path",
@@ -95,9 +95,9 @@
95
95
  {
96
96
  "kind": "skill",
97
97
  "name": "dev.ocean.skills.loop",
98
- "version": "1.6.2",
98
+ "version": "1.7.0",
99
99
  "engines": {
100
- "ocean": ">=1.6.2"
100
+ "ocean": ">=1.7.0"
101
101
  },
102
102
  "source": {
103
103
  "type": "path",
@@ -113,9 +113,9 @@
113
113
  {
114
114
  "kind": "skill",
115
115
  "name": "dev.ocean.skills.session-handoff",
116
- "version": "1.6.2",
116
+ "version": "1.7.0",
117
117
  "engines": {
118
- "ocean": ">=1.6.2"
118
+ "ocean": ">=1.7.0"
119
119
  },
120
120
  "source": {
121
121
  "type": "path",
@@ -131,9 +131,9 @@
131
131
  {
132
132
  "kind": "skill",
133
133
  "name": "dev.ocean.skills.use-browser",
134
- "version": "1.6.2",
134
+ "version": "1.7.0",
135
135
  "engines": {
136
- "ocean": ">=1.6.2"
136
+ "ocean": ">=1.7.0"
137
137
  },
138
138
  "source": {
139
139
  "type": "path",
@@ -149,9 +149,9 @@
149
149
  {
150
150
  "kind": "skill",
151
151
  "name": "dev.ocean.skills.verification",
152
- "version": "1.6.2",
152
+ "version": "1.7.0",
153
153
  "engines": {
154
- "ocean": ">=1.6.2"
154
+ "ocean": ">=1.7.0"
155
155
  },
156
156
  "source": {
157
157
  "type": "path",
@@ -164,6 +164,24 @@
164
164
  "directory": "verification"
165
165
  }
166
166
  },
167
+ {
168
+ "kind": "skill",
169
+ "name": "dev.ocean.skills.weekly-review",
170
+ "version": "1.7.0",
171
+ "engines": {
172
+ "ocean": ">=1.7.0"
173
+ },
174
+ "source": {
175
+ "type": "path",
176
+ "path": "skills/core/weekly-review"
177
+ },
178
+ "integrity": {
179
+ "sha256": "b7cb9dc2e0e425648cbbf7081c4445fb3ebdb1cdaa333265f2ca9163e01974ea"
180
+ },
181
+ "spec": {
182
+ "directory": "weekly-review"
183
+ }
184
+ },
167
185
  {
168
186
  "kind": "mcp",
169
187
  "name": "dev.ocean/chrome-devtools",
@@ -183,9 +201,9 @@
183
201
  "npx"
184
202
  ]
185
203
  },
186
- "version": "1.6.2",
204
+ "version": "1.7.0",
187
205
  "engines": {
188
- "ocean": ">=1.6.2"
206
+ "ocean": ">=1.7.0"
189
207
  },
190
208
  "source": {
191
209
  "type": "path",
@@ -218,9 +236,9 @@
218
236
  "kind": "mcp",
219
237
  "name": "dev.ocean/mcp-gateway",
220
238
  "description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
221
- "version": "1.6.2",
239
+ "version": "1.7.0",
222
240
  "engines": {
223
- "ocean": ">=1.6.2"
241
+ "ocean": ">=1.7.0"
224
242
  },
225
243
  "source": {
226
244
  "type": "path",
@@ -262,9 +280,9 @@
262
280
  "kind": "mcp",
263
281
  "name": "dev.ocean/obsidian",
264
282
  "description": "Ocean's Obsidian vault bridge over MCP.",
265
- "version": "1.6.2",
283
+ "version": "1.7.0",
266
284
  "engines": {
267
- "ocean": ">=1.6.2"
285
+ "ocean": ">=1.7.0"
268
286
  },
269
287
  "source": {
270
288
  "type": "path",
@@ -306,9 +324,9 @@
306
324
  "kind": "mcp",
307
325
  "name": "dev.ocean/ocean",
308
326
  "description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
309
- "version": "1.6.2",
327
+ "version": "1.7.0",
310
328
  "engines": {
311
- "ocean": ">=1.6.2"
329
+ "ocean": ">=1.7.0"
312
330
  },
313
331
  "source": {
314
332
  "type": "path",
@@ -360,9 +378,9 @@
360
378
  "npx"
361
379
  ]
362
380
  },
363
- "version": "1.6.2",
381
+ "version": "1.7.0",
364
382
  "engines": {
365
- "ocean": ">=1.6.2"
383
+ "ocean": ">=1.7.0"
366
384
  },
367
385
  "source": {
368
386
  "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.6.2",
4
+ "version": "1.7.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.6.2",
49
- "@ocean/context": "1.6.2",
50
- "@ocean/core": "1.6.2",
51
- "@ocean/loop": "1.6.2",
52
- "@ocean/market": "1.6.2",
53
- "@ocean/services": "1.6.2",
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",
54
54
  "playwright-core": "^1.48.0",
55
55
  "sqlite-vec": "0.1.9",
56
56
  "zod": "^4.6.5"
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: weekly-review
3
+ description: Walk the owner through the week to inbox zero - the weekly digest, pending memory candidates, and inbox captures - deciding each item with him.
4
+ version: 1.0.0
5
+ category: core
6
+ ---
7
+
8
+ # Weekly review
9
+
10
+ Take the owner from a full inbox to zero, one decision at a time. He decides; you prepare.
11
+
12
+ 1. Run `ocean distill --week` (dry run) and show what it would do; on his yes, run it with
13
+ `--yes`. Open the digest it wrote in `01-daily/weekly/`.
14
+ 2. Walk `ocean memory review list`, oldest first. For each candidate, show its title, source and
15
+ proposed target in two lines, then ask: approve (`ocean memory review approve <id>`, with
16
+ `--type <type>` or `--to <path>` when it has no target), edit, or reject. Never approve
17
+ without his answer.
18
+ 3. Walk `00-inbox/captures/`: for each capture, file it where its type lives (routing.json),
19
+ turn it into a task or backlog line, or mark it `status: processed`.
20
+ 4. Run `ocean interests decay` (dry run) and the brief's keep/skip feedback he gives.
21
+ 5. Finish with `ocean doctor`: report `INBOX_STALE`, `FRONTMATTER_MISSING`, `TYPE_LOCATION`, and
22
+ one next step.
23
+
24
+ Ask one question at a time. Batch nothing he has not seen.
package/skills/index.json CHANGED
@@ -52,5 +52,11 @@
52
52
  "description": "Turn implementation claims into focused, repeatable verification checks.",
53
53
  "version": "1.0.0",
54
54
  "category": "core"
55
+ },
56
+ {
57
+ "name": "weekly-review",
58
+ "description": "Walk the owner through the week to inbox zero - the weekly digest, pending memory candidates, and inbox captures - deciding each item with him.",
59
+ "version": "1.0.0",
60
+ "category": "core"
55
61
  }
56
62
  ]
@@ -0,0 +1,15 @@
1
+ filters:
2
+ and:
3
+ - type == "study"
4
+ views:
5
+ - type: table
6
+ name: Study
7
+ order:
8
+ - file.name
9
+ - goal
10
+ - status
11
+ - started
12
+ - target_date
13
+ sort:
14
+ - property: target_date
15
+ direction: ASC
@@ -0,0 +1,14 @@
1
+ filters:
2
+ and:
3
+ - type == "milestone"
4
+ views:
5
+ - type: table
6
+ name: Timeline
7
+ order:
8
+ - file.name
9
+ - date
10
+ - kind
11
+ - status
12
+ sort:
13
+ - property: date
14
+ direction: DESC
@@ -0,0 +1,18 @@
1
+ filters:
2
+ and:
3
+ - file.inFolder("02-personal/people")
4
+ - type == "person"
5
+ views:
6
+ - type: table
7
+ name: People
8
+ order:
9
+ - file.name
10
+ - aliases
11
+ - role
12
+ - org
13
+ - relation
14
+ - projects
15
+ - last_seen
16
+ sort:
17
+ - property: last_seen
18
+ direction: DESC
@@ -13,6 +13,18 @@ Standardized templates for common document types used across Ocean workflows.
13
13
  | **project-claude.md** | Claude-specific project template — for project context and instructions |
14
14
  | **session.md** | Session record template — what happened, what was decided, what's next |
15
15
  | **task.md** | Task record template — scope, goal, constraints, artifacts, verification |
16
+ | **capture.md** | Quick capture into `00-inbox/captures/` |
17
+ | **daily.md** | Daily note in `01-daily/` |
18
+ | **note.md** | Your own note in `07-notes/` (agents never write there) |
19
+ | **lesson.md** · **solution.md** · **failure.md** | Knowledge records in `05-knowledge/` |
20
+ | **person.md** | One person in `02-personal/people/` (aliases in English and Arabic) |
21
+ | **interest.md** | One interest in `02-personal/interests/` (priority, keywords, sources) |
22
+ | **milestone.md** · **study.md** | Your journey: milestones and study plans |
23
+
24
+ Each record template starts with frontmatter whose `type:` decides its folder
25
+ (`kernel/packages/brain/src/memory/routing.json`); `ocean doctor` reports `TYPE_LOCATION`
26
+ when a record sits elsewhere and `FRONTMATTER_MISSING` when it has none. `{{date}}` and
27
+ `{{title}}` are filled by Obsidian's Templates plugin.
16
28
 
17
29
  ## Usage
18
30
 
@@ -0,0 +1,9 @@
1
+ ---
2
+ type: capture
3
+ created: {{date}}
4
+ source:
5
+ tags: []
6
+ ---
7
+
8
+ # {{title}}
9
+
@@ -0,0 +1,13 @@
1
+ ---
2
+ type: daily
3
+ date: {{date}}
4
+ tags: []
5
+ ---
6
+
7
+ # {{date}}
8
+
9
+ ## Plan
10
+
11
+ ## Log
12
+
13
+ ## Notes
@@ -1,3 +1,11 @@
1
+ ---
2
+ type: decision
3
+ status: current
4
+ created: {{date}}
5
+ updated: {{date}}
6
+ tags: []
7
+ ---
8
+
1
9
  ### <Decision title>
2
10
  **Date:** YYYY-MM-DD
3
11
  **Context:** <what forced a choice>
@@ -0,0 +1,13 @@
1
+ ---
2
+ type: failure
3
+ created: {{date}}
4
+ tags: []
5
+ ---
6
+
7
+ # {{title}}
8
+
9
+ ## What failed
10
+
11
+ ## Root cause
12
+
13
+ ## Prevention
@@ -1,3 +1,10 @@
1
+ ---
2
+ type: research
3
+ status: current
4
+ created: {{date}}
5
+ tags: []
6
+ ---
7
+
1
8
  # <Topic>
2
9
 
3
10
  **Date:** YYYY-MM-DD
@@ -0,0 +1,13 @@
1
+ ---
2
+ type: interest
3
+ priority: medium
4
+ keywords: []
5
+ sources: []
6
+ cadence: weekly
7
+ origin: owner
8
+ weight: 1
9
+ last_signal: {{date}}
10
+ ---
11
+
12
+ # {{title}}
13
+
@@ -0,0 +1,16 @@
1
+ ---
2
+ type: lesson
3
+ status: current
4
+ confidence: medium
5
+ created: {{date}}
6
+ last_verified: {{date}}
7
+ tags: []
8
+ ---
9
+
10
+ # {{title}}
11
+
12
+ **Situation:** <when this applies>
13
+
14
+ **Lesson:** <what to do>
15
+
16
+ **Evidence:** <what showed it>
@@ -0,0 +1,10 @@
1
+ ---
2
+ type: milestone
3
+ date: {{date}}
4
+ kind:
5
+ status: done
6
+ tags: []
7
+ ---
8
+
9
+ # {{title}}
10
+