@amoree-code/ocean 1.9.1 → 1.10.1
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/application/clients/desktop-watcher.js +16 -1
- package/dist/interfaces/cli/command-registry.js +8 -7
- package/node_modules/@ocean/brain/package.json +1 -1
- package/node_modules/@ocean/context/package.json +1 -1
- package/node_modules/@ocean/core/package.json +1 -1
- package/node_modules/@ocean/loop/package.json +1 -1
- package/node_modules/@ocean/market/package.json +1 -1
- package/node_modules/@ocean/services/dist/obsidian/folder-templates.js +78 -0
- package/node_modules/@ocean/services/package.json +1 -1
- package/ocean-marketplace.json +34 -34
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { execFile } from "node:child_process";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
|
+
import { accessSync, constants, realpathSync } from "node:fs";
|
|
3
4
|
import { readFile, unlink } from "node:fs/promises";
|
|
4
5
|
import path from "node:path";
|
|
5
6
|
import { promisify } from "node:util";
|
|
@@ -29,11 +30,25 @@ const xml = (text) => text
|
|
|
29
30
|
export function desktopStoreDir(home) {
|
|
30
31
|
return path.join(home, "Library", "Application Support", "Claude", "IndexedDB", "https_claude.ai_0.indexeddb.leveldb");
|
|
31
32
|
}
|
|
33
|
+
// Only the folder that holds `claude`, resolved through symlinks: the shell's PATH carries
|
|
34
|
+
// per-shell folders (fnm_multishells/<pid>, editor extension shims) that differ in every
|
|
35
|
+
// shell, so copying it whole made the plist never match and doctor report it missing.
|
|
36
|
+
function claudeDirs(pathDirs) {
|
|
37
|
+
for (const dir of pathDirs)
|
|
38
|
+
try {
|
|
39
|
+
accessSync(path.join(dir, "claude"), constants.X_OK);
|
|
40
|
+
return [realpathSync(dir)];
|
|
41
|
+
}
|
|
42
|
+
catch { }
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
32
45
|
export function desktopWatcherPlist(env) {
|
|
33
46
|
const args = [...oceanInvocation(env), "desktop", "capture"];
|
|
34
47
|
const strings = (items) => items.map((item) => `<string>${xml(item)}</string>`).join("");
|
|
35
48
|
// launchd starts jobs with a bare PATH; the capture's model call needs the client's CLI.
|
|
36
|
-
const pathValue = [
|
|
49
|
+
const pathValue = [
|
|
50
|
+
...new Set([...claudeDirs(env.pathDirs), "/usr/bin", "/bin"]),
|
|
51
|
+
].join(":");
|
|
37
52
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
38
53
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
39
54
|
<!-- Written by \`ocean clients apply\`; \`ocean clients restore\` removes it. -->
|
|
@@ -22,7 +22,7 @@ import { hasFailures, repairWorkspace, workspaceReport, } from "@ocean/services/
|
|
|
22
22
|
import { runObsidianMcpServer } from "@ocean/services/infrastructure/mcp/obsidian-server.js";
|
|
23
23
|
import { runOceanMcpServer } from "@ocean/services/infrastructure/mcp/ocean-server.js";
|
|
24
24
|
import { parseConflictSide, resolveConflict, } from "@ocean/services/obsidian/conflict-log.js";
|
|
25
|
-
import { syncFolderTemplates } from "@ocean/services/obsidian/folder-templates.js";
|
|
25
|
+
import { syncFolderTemplates, syncQuickAddChoices, } from "@ocean/services/obsidian/folder-templates.js";
|
|
26
26
|
import { listInboxCandidates, promoteInboxNote, } from "@ocean/services/obsidian/inbox-promotion.js";
|
|
27
27
|
import { connectObsidianVault, discoverObsidianVault, loadObsidianConnection, } from "@ocean/services/obsidian/vault-discovery.js";
|
|
28
28
|
import { syncObsidianVault, watchObsidianVault, } from "@ocean/services/obsidian/vault-sync.js";
|
|
@@ -377,13 +377,14 @@ async function commandObsidian() {
|
|
|
377
377
|
else {
|
|
378
378
|
try {
|
|
379
379
|
if (action === "templates") {
|
|
380
|
-
// T-314: Templater folder templates generated from routing.json; a dry run
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
});
|
|
384
|
-
|
|
380
|
+
// T-314: Templater folder templates and QuickAdd choices generated from routing.json; a dry run
|
|
381
|
+
// until --yes.
|
|
382
|
+
const apply = process.argv.includes("--yes");
|
|
383
|
+
const result = await syncFolderTemplates({ apply });
|
|
384
|
+
const quickadd = await syncQuickAddChoices({ apply });
|
|
385
|
+
console.log(JSON.stringify({ ...result, quickadd }, null, 2));
|
|
385
386
|
if (!result.written)
|
|
386
|
-
console.error("Dry run: pass --yes to write the Templater config.");
|
|
387
|
+
console.error("Dry run: pass --yes to write the Templater and QuickAdd config.");
|
|
387
388
|
return;
|
|
388
389
|
}
|
|
389
390
|
if (action === "connect") {
|
|
@@ -62,6 +62,84 @@ export async function syncFolderTemplates(options) {
|
|
|
62
62
|
}, null, 2)}\n`);
|
|
63
63
|
return { file: relative, ...plan, written: true };
|
|
64
64
|
}
|
|
65
|
+
// QuickAdd choices, one "Ocean: New <type>" per routed type with a template, so the command
|
|
66
|
+
// palette offers the same table Templater uses. Types only Ocean writes (sessions, briefs, weekly
|
|
67
|
+
// and monthly reviews) and captures (the Quick capture choice) get none. Choices Ocean did not
|
|
68
|
+
// generate are kept; a generated one is replaced. Nothing is written if QuickAdd is not installed.
|
|
69
|
+
const QUICKADD_CONFIG = [".obsidian", "plugins", "quickadd", "data.json"];
|
|
70
|
+
const OCEAN_WRITTEN = new Set([
|
|
71
|
+
"session",
|
|
72
|
+
"brief",
|
|
73
|
+
"weekly",
|
|
74
|
+
"monthly",
|
|
75
|
+
"capture",
|
|
76
|
+
]);
|
|
77
|
+
const choiceId = (type) => `ocean-quickadd-${type}`;
|
|
78
|
+
function templateChoice(type, folder, template) {
|
|
79
|
+
const name = type[0].toUpperCase() + type.slice(1);
|
|
80
|
+
return {
|
|
81
|
+
id: choiceId(type),
|
|
82
|
+
name: `Ocean: New ${name}`,
|
|
83
|
+
type: "Template",
|
|
84
|
+
command: true,
|
|
85
|
+
templatePath: template,
|
|
86
|
+
folder: {
|
|
87
|
+
enabled: true,
|
|
88
|
+
folders: [folder],
|
|
89
|
+
chooseWhenCreatingNote: false,
|
|
90
|
+
createInSameFolderAsActiveFile: false,
|
|
91
|
+
chooseFromSubfolders: false,
|
|
92
|
+
},
|
|
93
|
+
fileNameFormat: {
|
|
94
|
+
enabled: true,
|
|
95
|
+
format: type === "daily" ? "{{DATE:YYYY-MM-DD}}" : "{{NAME}}",
|
|
96
|
+
},
|
|
97
|
+
appendLink: false,
|
|
98
|
+
openFile: true,
|
|
99
|
+
fileOpening: {
|
|
100
|
+
location: "tab",
|
|
101
|
+
direction: "vertical",
|
|
102
|
+
mode: "default",
|
|
103
|
+
focus: true,
|
|
104
|
+
},
|
|
105
|
+
fileExistsBehavior: { kind: "prompt" },
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export async function syncQuickAddChoices(options) {
|
|
109
|
+
const relative = QUICKADD_CONFIG.join("/");
|
|
110
|
+
const file = oceanPath(...QUICKADD_CONFIG);
|
|
111
|
+
let config;
|
|
112
|
+
try {
|
|
113
|
+
config = JSON.parse(await readFile(file, "utf8"));
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
if (error.code === "ENOENT")
|
|
117
|
+
return { file: relative, choices: [], written: false };
|
|
118
|
+
throw new Error(`${relative} is not valid JSON`);
|
|
119
|
+
}
|
|
120
|
+
const generated = [];
|
|
121
|
+
for (const type of RECORD_TYPES) {
|
|
122
|
+
if (OCEAN_WRITTEN.has(type))
|
|
123
|
+
continue;
|
|
124
|
+
const folder = recordFolder(type)?.replace(/\/$/, "");
|
|
125
|
+
const template = `${TEMPLATES_DIR}/${type}.md`;
|
|
126
|
+
if (folder && (await exists(oceanPath(template))))
|
|
127
|
+
generated.push(templateChoice(type, folder, template));
|
|
128
|
+
}
|
|
129
|
+
const ours = new Set(RECORD_TYPES.map(choiceId));
|
|
130
|
+
const current = Array.isArray(config.choices)
|
|
131
|
+
? config.choices
|
|
132
|
+
: [];
|
|
133
|
+
const choices = [
|
|
134
|
+
...current.filter((choice) => !ours.has(String(choice?.id))),
|
|
135
|
+
...generated,
|
|
136
|
+
];
|
|
137
|
+
const names = generated.map((choice) => String(choice.name));
|
|
138
|
+
if (!options.apply)
|
|
139
|
+
return { file: relative, choices: names, written: false };
|
|
140
|
+
await atomicWrite(file, `${JSON.stringify({ ...config, choices }, null, 2)}\n`);
|
|
141
|
+
return { file: relative, choices: names, written: true };
|
|
142
|
+
}
|
|
65
143
|
// A quick note from anywhere (`ocean note "<text>"`): one file in 00-inbox/captures with the
|
|
66
144
|
// capture frontmatter, named by time and its first words. Secrets are redacted before writing.
|
|
67
145
|
export async function writeCapture(text, now = new Date()) {
|
package/ocean-marketplace.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
{
|
|
6
6
|
"kind": "skill",
|
|
7
7
|
"name": "dev.ocean.skills.business-logic",
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.10.1",
|
|
9
9
|
"engines": {
|
|
10
|
-
"ocean": ">=1.
|
|
10
|
+
"ocean": ">=1.10.1"
|
|
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.
|
|
26
|
+
"version": "1.10.1",
|
|
27
27
|
"engines": {
|
|
28
|
-
"ocean": ">=1.
|
|
28
|
+
"ocean": ">=1.10.1"
|
|
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.
|
|
44
|
+
"version": "1.10.1",
|
|
45
45
|
"engines": {
|
|
46
|
-
"ocean": ">=1.
|
|
46
|
+
"ocean": ">=1.10.1"
|
|
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.daily-harvest",
|
|
62
|
-
"version": "1.
|
|
62
|
+
"version": "1.10.1",
|
|
63
63
|
"engines": {
|
|
64
|
-
"ocean": ">=1.
|
|
64
|
+
"ocean": ">=1.10.1"
|
|
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.design-thinking",
|
|
80
|
-
"version": "1.
|
|
80
|
+
"version": "1.10.1",
|
|
81
81
|
"engines": {
|
|
82
|
-
"ocean": ">=1.
|
|
82
|
+
"ocean": ">=1.10.1"
|
|
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.graft",
|
|
98
|
-
"version": "1.
|
|
98
|
+
"version": "1.10.1",
|
|
99
99
|
"engines": {
|
|
100
|
-
"ocean": ">=1.
|
|
100
|
+
"ocean": ">=1.10.1"
|
|
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.loop",
|
|
116
|
-
"version": "1.
|
|
116
|
+
"version": "1.10.1",
|
|
117
117
|
"engines": {
|
|
118
|
-
"ocean": ">=1.
|
|
118
|
+
"ocean": ">=1.10.1"
|
|
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.memory-review",
|
|
134
|
-
"version": "1.
|
|
134
|
+
"version": "1.10.1",
|
|
135
135
|
"engines": {
|
|
136
|
-
"ocean": ">=1.
|
|
136
|
+
"ocean": ">=1.10.1"
|
|
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.session-handoff",
|
|
152
|
-
"version": "1.
|
|
152
|
+
"version": "1.10.1",
|
|
153
153
|
"engines": {
|
|
154
|
-
"ocean": ">=1.
|
|
154
|
+
"ocean": ">=1.10.1"
|
|
155
155
|
},
|
|
156
156
|
"source": {
|
|
157
157
|
"type": "path",
|
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
{
|
|
168
168
|
"kind": "skill",
|
|
169
169
|
"name": "dev.ocean.skills.use-browser",
|
|
170
|
-
"version": "1.
|
|
170
|
+
"version": "1.10.1",
|
|
171
171
|
"engines": {
|
|
172
|
-
"ocean": ">=1.
|
|
172
|
+
"ocean": ">=1.10.1"
|
|
173
173
|
},
|
|
174
174
|
"source": {
|
|
175
175
|
"type": "path",
|
|
@@ -185,9 +185,9 @@
|
|
|
185
185
|
{
|
|
186
186
|
"kind": "skill",
|
|
187
187
|
"name": "dev.ocean.skills.verification",
|
|
188
|
-
"version": "1.
|
|
188
|
+
"version": "1.10.1",
|
|
189
189
|
"engines": {
|
|
190
|
-
"ocean": ">=1.
|
|
190
|
+
"ocean": ">=1.10.1"
|
|
191
191
|
},
|
|
192
192
|
"source": {
|
|
193
193
|
"type": "path",
|
|
@@ -203,9 +203,9 @@
|
|
|
203
203
|
{
|
|
204
204
|
"kind": "skill",
|
|
205
205
|
"name": "dev.ocean.skills.weekly-review",
|
|
206
|
-
"version": "1.
|
|
206
|
+
"version": "1.10.1",
|
|
207
207
|
"engines": {
|
|
208
|
-
"ocean": ">=1.
|
|
208
|
+
"ocean": ">=1.10.1"
|
|
209
209
|
},
|
|
210
210
|
"source": {
|
|
211
211
|
"type": "path",
|
|
@@ -237,9 +237,9 @@
|
|
|
237
237
|
"npx"
|
|
238
238
|
]
|
|
239
239
|
},
|
|
240
|
-
"version": "1.
|
|
240
|
+
"version": "1.10.1",
|
|
241
241
|
"engines": {
|
|
242
|
-
"ocean": ">=1.
|
|
242
|
+
"ocean": ">=1.10.1"
|
|
243
243
|
},
|
|
244
244
|
"source": {
|
|
245
245
|
"type": "path",
|
|
@@ -272,9 +272,9 @@
|
|
|
272
272
|
"kind": "mcp",
|
|
273
273
|
"name": "dev.ocean/mcp-gateway",
|
|
274
274
|
"description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
|
|
275
|
-
"version": "1.
|
|
275
|
+
"version": "1.10.1",
|
|
276
276
|
"engines": {
|
|
277
|
-
"ocean": ">=1.
|
|
277
|
+
"ocean": ">=1.10.1"
|
|
278
278
|
},
|
|
279
279
|
"source": {
|
|
280
280
|
"type": "path",
|
|
@@ -316,9 +316,9 @@
|
|
|
316
316
|
"kind": "mcp",
|
|
317
317
|
"name": "dev.ocean/obsidian",
|
|
318
318
|
"description": "Ocean's Obsidian vault bridge over MCP.",
|
|
319
|
-
"version": "1.
|
|
319
|
+
"version": "1.10.1",
|
|
320
320
|
"engines": {
|
|
321
|
-
"ocean": ">=1.
|
|
321
|
+
"ocean": ">=1.10.1"
|
|
322
322
|
},
|
|
323
323
|
"source": {
|
|
324
324
|
"type": "path",
|
|
@@ -360,9 +360,9 @@
|
|
|
360
360
|
"kind": "mcp",
|
|
361
361
|
"name": "dev.ocean/ocean",
|
|
362
362
|
"description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
|
|
363
|
-
"version": "1.
|
|
363
|
+
"version": "1.10.1",
|
|
364
364
|
"engines": {
|
|
365
|
-
"ocean": ">=1.
|
|
365
|
+
"ocean": ">=1.10.1"
|
|
366
366
|
},
|
|
367
367
|
"source": {
|
|
368
368
|
"type": "path",
|
|
@@ -414,9 +414,9 @@
|
|
|
414
414
|
"npx"
|
|
415
415
|
]
|
|
416
416
|
},
|
|
417
|
-
"version": "1.
|
|
417
|
+
"version": "1.10.1",
|
|
418
418
|
"engines": {
|
|
419
|
-
"ocean": ">=1.
|
|
419
|
+
"ocean": ">=1.10.1"
|
|
420
420
|
},
|
|
421
421
|
"source": {
|
|
422
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.
|
|
4
|
+
"version": "1.10.1",
|
|
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.
|
|
49
|
-
"@ocean/context": "1.
|
|
50
|
-
"@ocean/core": "1.
|
|
51
|
-
"@ocean/loop": "1.
|
|
52
|
-
"@ocean/market": "1.
|
|
53
|
-
"@ocean/services": "1.
|
|
48
|
+
"@ocean/brain": "1.10.1",
|
|
49
|
+
"@ocean/context": "1.10.1",
|
|
50
|
+
"@ocean/core": "1.10.1",
|
|
51
|
+
"@ocean/loop": "1.10.1",
|
|
52
|
+
"@ocean/market": "1.10.1",
|
|
53
|
+
"@ocean/services": "1.10.1",
|
|
54
54
|
"playwright-core": "^1.48.0",
|
|
55
55
|
"sqlite-vec": "0.1.9",
|
|
56
56
|
"zod": "^4.6.5"
|