@amoree-code/ocean 1.12.0 → 2.0.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/README.md +1 -1
- package/dist/interfaces/cli/browser-command.js +34 -1
- package/dist/interfaces/cli/browser-findings.js +19 -7
- package/dist/interfaces/cli/command-registry.js +12 -1
- package/dist/interfaces/cli/help-command.js +3 -3
- package/market/mcp/chrome-devtools/ocean.capability.json +33 -4
- package/node_modules/@ocean/brain/dist/infrastructure/brain/brain-index.js +29 -2
- package/node_modules/@ocean/brain/dist/memory/brain-dump.js +5 -2
- package/node_modules/@ocean/brain/package.json +1 -1
- package/node_modules/@ocean/context/package.json +1 -1
- package/node_modules/@ocean/core/dist/shared/clean-title.js +17 -0
- package/node_modules/@ocean/core/package.json +1 -1
- package/node_modules/@ocean/loop/dist/tasks/verify-task.js +31 -27
- package/node_modules/@ocean/loop/package.json +1 -1
- package/node_modules/@ocean/market/dist/mcp/chrome-debugging.js +148 -15
- package/node_modules/@ocean/market/dist/mcp/mcp-launch.js +9 -1
- package/node_modules/@ocean/market/package.json +1 -1
- package/node_modules/@ocean/services/dist/distill/distill.js +2 -1
- package/node_modules/@ocean/services/dist/harvest/harvest.js +3 -14
- package/node_modules/@ocean/services/dist/projects/projects-overview.js +172 -0
- package/node_modules/@ocean/services/package.json +1 -1
- package/ocean-marketplace.json +66 -39
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ prints its usage and never runs it. To hand `--help` to a wrapped client, put it
|
|
|
132
132
|
| `ocean uninstall` | undo `setup` and `clients apply` outside the workspace; `--purge` also deletes the workspace | Reads; `--yes` writes (also outside: client configs, shell profile, login service) |
|
|
133
133
|
| `ocean onboard` | run the pending first-run steps | Writes; `--status` reads |
|
|
134
134
|
| `ocean context` | the workspace context for this folder; `cost` measures each client's always-on context | Reads |
|
|
135
|
-
| `ocean project` | resolve, bind, register, rename, move and index projects | Reads; `bind`, `register`, `rename`, `unbind`, `--write` write |
|
|
135
|
+
| `ocean project` | resolve, bind, register, rename, move and index projects; `status`: each one's git state, open tasks, last session and next action | Reads; `bind`, `register`, `rename`, `unbind`, `--write` write |
|
|
136
136
|
| `ocean tasks` | list, create, claim, checkpoint, verify and complete tasks | Reads; `new`, `claim`, `checkpoint`, `complete`, `archive --apply` write |
|
|
137
137
|
| `ocean loop` | repeated agent runs on one task | Runs; `start` needs `--approve` |
|
|
138
138
|
| `ocean policy` | list the charter's policies or print one | Reads |
|
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
import { openSessionStore } from "@ocean/loop/infrastructure/persistence/session-store.js";
|
|
2
|
+
import { BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE, browserLabel, browserProfileRoot, CHROMIUM_BROWSERS, listeningBrowsers, resolveBrowserChoice, selectedBrowserProfile, } from "@ocean/market/mcp/chrome-debugging.js";
|
|
3
|
+
import { keychainStore } from "@ocean/market/security/secrets.js";
|
|
2
4
|
import { BrowserService, } from "@ocean/services/browser/browser-service.js";
|
|
3
5
|
import { BrowserSessionManager, browserDownloadsPath, } from "@ocean/services/browser/browser-session.js";
|
|
4
6
|
import { BrowserTaskRunner } from "@ocean/services/browser/browser-task-runner.js";
|
|
5
7
|
import { PlaywrightBrowserProvider } from "../../infrastructure/providers/playwright-browser-provider.js";
|
|
8
|
+
// `ocean browser use <name|path>`: which Chromium browser `dev.ocean/chrome-devtools` attaches
|
|
9
|
+
// to, stored on this machine (macOS keychain) and read by every client's launch. `use chrome`
|
|
10
|
+
// clears it back to the default. `ocean browser attach` lists what can be attached right now.
|
|
11
|
+
async function runBrowserChoice(action, args) {
|
|
12
|
+
const store = keychainStore();
|
|
13
|
+
const read = () => store.get(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE);
|
|
14
|
+
if (action === "attach") {
|
|
15
|
+
const selected = selectedBrowserProfile({ stored: read });
|
|
16
|
+
return print({
|
|
17
|
+
selected: { browser: browserLabel(selected), profile: selected },
|
|
18
|
+
listening: await listeningBrowsers(),
|
|
19
|
+
known: CHROMIUM_BROWSERS.map((each) => each.id),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const choice = args[0];
|
|
23
|
+
if (!choice)
|
|
24
|
+
throw new Error(`Usage: ocean browser use <${CHROMIUM_BROWSERS.map((each) => each.id).join("|")}|/absolute/profile/path>`);
|
|
25
|
+
const root = resolveBrowserChoice(choice);
|
|
26
|
+
if (root === browserProfileRoot("chrome"))
|
|
27
|
+
store.remove(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE);
|
|
28
|
+
else
|
|
29
|
+
store.set(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE, root);
|
|
30
|
+
return print({
|
|
31
|
+
browser: browserLabel(root),
|
|
32
|
+
profile: root,
|
|
33
|
+
in: store.name,
|
|
34
|
+
next: "turn on remote debugging in that browser's inspect page (e.g. brave://inspect/#remote-debugging), then restart open clients",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
6
37
|
export async function runBrowserCommand(action, args) {
|
|
38
|
+
if (action === "use" || action === "attach")
|
|
39
|
+
return runBrowserChoice(action, args);
|
|
7
40
|
const store = await openSessionStore();
|
|
8
41
|
const manager = new BrowserSessionManager(store, new BrowserService(new PlaywrightBrowserProvider()));
|
|
9
42
|
const runner = new BrowserTaskRunner(manager);
|
|
@@ -114,6 +147,6 @@ function print(value) {
|
|
|
114
147
|
console.log(JSON.stringify(value, null, 2));
|
|
115
148
|
}
|
|
116
149
|
function usage() {
|
|
117
|
-
console.error("Usage: ocean browser detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run");
|
|
150
|
+
console.error("Usage: ocean browser use|attach|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run");
|
|
118
151
|
}
|
|
119
152
|
//# sourceMappingURL=browser-command.js.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
2
3
|
import { mcpServerFile } from "@ocean/market/adapters/mcp-adapter.js";
|
|
3
4
|
import { marketplacePaths } from "@ocean/market/install/default-marketplace.js";
|
|
4
|
-
import { chromeDebuggingListening } from "@ocean/market/mcp/chrome-debugging.js";
|
|
5
|
-
|
|
5
|
+
import { BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE, browserLabel, chromeDebuggingListening, listeningBrowsers, selectedBrowserProfile, } from "@ocean/market/mcp/chrome-debugging.js";
|
|
6
|
+
import { keychainStore } from "@ocean/market/security/secrets.js";
|
|
7
|
+
// Marketplace capabilities that attach to the owner's running browser (T-298).
|
|
6
8
|
export const BROWSER_CAPABILITIES = [
|
|
7
9
|
"dev.ocean/chrome-devtools",
|
|
8
10
|
"dev.ocean/browser",
|
|
9
11
|
];
|
|
10
|
-
// `ocean doctor`: once a browser capability is installed, whether
|
|
11
|
-
//
|
|
12
|
+
// `ocean doctor`: once a browser capability is installed, whether the chosen browser is there
|
|
13
|
+
// to attach to — and, when it is not, whether another Chromium browser is. Nothing installed is
|
|
14
|
+
// nothing to report.
|
|
12
15
|
export async function browserFindings(options = {}) {
|
|
13
16
|
const serversRoot = options.serversRoot ?? marketplacePaths().mcpServers;
|
|
14
17
|
const installed = BROWSER_CAPABILITIES.filter((name) => existsSync(mcpServerFile(serversRoot, name)));
|
|
@@ -17,8 +20,17 @@ export async function browserFindings(options = {}) {
|
|
|
17
20
|
const finding = (severity, message) => [
|
|
18
21
|
{ code: "BROWSER", severity, message, fixable: false },
|
|
19
22
|
];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
const probe = options.listening ?? chromeDebuggingListening;
|
|
24
|
+
const root = options.profileRoot ??
|
|
25
|
+
selectedBrowserProfile({
|
|
26
|
+
stored: () => keychainStore().get(BROWSER_CAPABILITY, BROWSER_PROFILE_VARIABLE),
|
|
27
|
+
});
|
|
28
|
+
const label = browserLabel(root);
|
|
29
|
+
if (await probe(path.join(root, "DevToolsActivePort")))
|
|
30
|
+
return finding("OK", `${installed.join(", ")} installed and ${label} debugging is listening`);
|
|
31
|
+
const other = (await listeningBrowsers({ listening: probe })).find((each) => each.root !== root);
|
|
32
|
+
return other
|
|
33
|
+
? finding("WARN", `${installed.join(", ")} attaches to ${label}, but only ${other.label} has debugging on: run \`ocean browser use ${other.id}\``)
|
|
34
|
+
: finding("WARN", `${installed.join(", ")} installed, but ${label} is closed or its inspect page's remote-debugging is off (a sandboxed shell that blocks loopback also sees this)`);
|
|
23
35
|
}
|
|
24
36
|
//# sourceMappingURL=browser-findings.js.map
|
|
@@ -27,6 +27,7 @@ import { listInboxCandidates, promoteInboxNote, } from "@ocean/services/obsidian
|
|
|
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";
|
|
29
29
|
import { writeObsidianNote } from "@ocean/services/obsidian/vault-writer.js";
|
|
30
|
+
import { overviewTable, projectsOverview, writeRegistryBlock, } from "@ocean/services/projects/projects-overview.js";
|
|
30
31
|
import { clientFindings, repairClients, } from "../../application/clients/clients.js";
|
|
31
32
|
import { desktopWatcherFindings } from "../../application/clients/desktop-watcher.js";
|
|
32
33
|
import { nativeFindings } from "../../application/clients/native.js";
|
|
@@ -598,6 +599,16 @@ async function commandProject() {
|
|
|
598
599
|
const result = await migrateProjectBindings(process.argv.includes("--write"));
|
|
599
600
|
console.log(JSON.stringify(result, null, 2));
|
|
600
601
|
}
|
|
602
|
+
else if (action === "status") {
|
|
603
|
+
// Every project's git state, open tasks, last session and next action, derived now (T-317).
|
|
604
|
+
const rows = await projectsOverview();
|
|
605
|
+
if (process.argv.includes("--write"))
|
|
606
|
+
console.log(`updated ${await writeRegistryBlock(rows)}`);
|
|
607
|
+
else if (process.argv.includes("--json"))
|
|
608
|
+
console.log(JSON.stringify(rows, null, 2));
|
|
609
|
+
else
|
|
610
|
+
console.log(overviewTable(rows));
|
|
611
|
+
}
|
|
601
612
|
else if (action === "index") {
|
|
602
613
|
if (process.argv.includes("--write"))
|
|
603
614
|
console.log(JSON.stringify(await writeProjectIndex(), null, 2));
|
|
@@ -605,7 +616,7 @@ async function commandProject() {
|
|
|
605
616
|
console.log(await renderProjectIndex());
|
|
606
617
|
}
|
|
607
618
|
else {
|
|
608
|
-
console.error("Usage: ocean project resolve [path]|bind <name> <path> [--add]|register [path]|unbind <path>|rename <id> <new-id>|move <id> <category> [--write]|list [--category <name>]|migrate [--write]|index [--write]");
|
|
619
|
+
console.error("Usage: ocean project resolve [path]|bind <name> <path> [--add]|register [path]|unbind <path>|rename <id> <new-id>|move <id> <category> [--write]|list [--category <name>]|status [--json] [--write]|migrate [--write]|index [--write]");
|
|
609
620
|
process.exitCode = 1;
|
|
610
621
|
}
|
|
611
622
|
}
|
|
@@ -43,8 +43,8 @@ export const commandHelp = {
|
|
|
43
43
|
"ocean context [--json] | cost [--json] [--budget <bytes>] [--project <dir>]",
|
|
44
44
|
],
|
|
45
45
|
project: [
|
|
46
|
-
"Resolve, bind, register, rename and
|
|
47
|
-
"ocean project resolve [path]|bind <name> <path> [--add]|register [path]|unbind <path>|rename <id> <new-id>|list|migrate [--write]|index [--write]",
|
|
46
|
+
"Resolve, bind, register, rename, index projects, and show each one's live status.",
|
|
47
|
+
"ocean project resolve [path]|bind <name> <path> [--add]|register [path]|unbind <path>|rename <id> <new-id>|list|status [--json] [--write]|migrate [--write]|index [--write]",
|
|
48
48
|
],
|
|
49
49
|
tasks: [
|
|
50
50
|
"List, create, claim, checkpoint, verify and complete tasks.",
|
|
@@ -134,7 +134,7 @@ export const commandHelp = {
|
|
|
134
134
|
],
|
|
135
135
|
browser: [
|
|
136
136
|
"Drive a browser session; uploads and submits need --approve.",
|
|
137
|
-
"ocean browser detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run",
|
|
137
|
+
"ocean browser use|attach|detect|open|show|events|close|approve|navigate|read|observe|extract|click|type|replace-text|select|scroll|wait|upload|download|submit|run",
|
|
138
138
|
],
|
|
139
139
|
memory: [
|
|
140
140
|
"Search, read, review and maintain memory records and the brain index.",
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "mcp",
|
|
3
3
|
"name": "dev.ocean/chrome-devtools",
|
|
4
|
-
"description": "Control the owner's real, signed-in Chrome through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached
|
|
4
|
+
"description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow each new connection. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
|
|
5
5
|
"permissions": {
|
|
6
6
|
"filesystem": {
|
|
7
|
-
"read": [
|
|
7
|
+
"read": [
|
|
8
|
+
"~/Library/Application Support/Google",
|
|
9
|
+
"~/Library/Application Support/Chromium",
|
|
10
|
+
"~/Library/Application Support/BraveSoftware",
|
|
11
|
+
"~/Library/Application Support/Microsoft Edge",
|
|
12
|
+
"~/Library/Application Support/Vivaldi",
|
|
13
|
+
"~/Library/Application Support/com.operasoftware.Opera",
|
|
14
|
+
"~/Library/Application Support/Arc"
|
|
15
|
+
]
|
|
8
16
|
},
|
|
9
17
|
"network": ["registry.npmjs.org", "localhost", "127.0.0.1"],
|
|
18
|
+
"env": [
|
|
19
|
+
"CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
|
|
20
|
+
"OCEAN_BROWSER_USER_DATA_DIR"
|
|
21
|
+
],
|
|
10
22
|
"exec": ["npx"]
|
|
11
23
|
},
|
|
12
24
|
"server": {
|
|
13
25
|
"name": "dev.ocean/chrome-devtools",
|
|
14
|
-
"description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running
|
|
26
|
+
"description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
|
|
15
27
|
"packages": [
|
|
16
28
|
{
|
|
17
29
|
"registryType": "npm",
|
|
@@ -19,7 +31,24 @@
|
|
|
19
31
|
"version": "0.1.0",
|
|
20
32
|
"transport": {
|
|
21
33
|
"type": "stdio"
|
|
22
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"packageArguments": [
|
|
36
|
+
{
|
|
37
|
+
"type": "named",
|
|
38
|
+
"name": "--userDataDir",
|
|
39
|
+
"value": "{OCEAN_BROWSER_USER_DATA_DIR}",
|
|
40
|
+
"isRequired": false,
|
|
41
|
+
"description": "Profile root of the Chromium browser to attach to; unset attaches to Chrome. Set with `ocean browser use <name|path>`."
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"environmentVariables": [
|
|
45
|
+
{
|
|
46
|
+
"name": "CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
|
|
47
|
+
"default": "1",
|
|
48
|
+
"isRequired": false,
|
|
49
|
+
"description": "Skips upstream's update check (an npm child process and a registry fetch) on every start; the version is pinned."
|
|
50
|
+
}
|
|
51
|
+
]
|
|
23
52
|
}
|
|
24
53
|
],
|
|
25
54
|
"_meta": {
|
|
@@ -2,6 +2,25 @@ import { rename, rm } from "node:fs/promises";
|
|
|
2
2
|
import { DatabaseSync } from "node:sqlite";
|
|
3
3
|
import { BRAIN_INDEX_SCHEMA_VERSION, } from "@ocean/core/domain/ports/brain-index-port.js";
|
|
4
4
|
import * as sqliteVec from "sqlite-vec";
|
|
5
|
+
// Sole file in the brain subsystem that imports node:sqlite (and, when vectors are enabled,
|
|
6
|
+
// sqlite-vec) directly — everything else in application/brain/ talks to the
|
|
7
|
+
// domain/ports/brain-index-port.ts contract, wired to this module only through
|
|
8
|
+
// composition/runtime.ts (enforced by tests/architecture.test.mjs). The index is a
|
|
9
|
+
// disposable, rebuildable cache: nothing here is the source of truth, and nothing outside
|
|
10
|
+
// `reindex` (application/brain/brain-reindex.ts) ever writes to it.
|
|
11
|
+
// bm25 column weights for chunks_fts (title, heading, body): a word in a record's title says
|
|
12
|
+
// far more about what the record is than the same word somewhere in its body.
|
|
13
|
+
const BM25_WEIGHTS = [8, 3, 1];
|
|
14
|
+
// English question and function words, dropped only from the any-word fallback.
|
|
15
|
+
const STOPWORDS = new Set(("a an and are as at be by can could did do does for from had has have how i if in is it " +
|
|
16
|
+
"its me my of on or our should so that the their them then there these they this to was " +
|
|
17
|
+
"we were what when where which who why will with would you your about").split(" "));
|
|
18
|
+
// A crude Latin-script stem: long words lose their last two letters so inflections share a
|
|
19
|
+
// prefix ("decide"/"decision" → "deci"). Other scripts are left alone — their prefixes already
|
|
20
|
+
// match inflected forms.
|
|
21
|
+
function stem(word) {
|
|
22
|
+
return /^[a-z]{6,}$/.test(word) ? word.slice(0, -2) : word;
|
|
23
|
+
}
|
|
5
24
|
function createSchema(db, withVectors, dims) {
|
|
6
25
|
db.exec(`
|
|
7
26
|
CREATE TABLE meta (key TEXT PRIMARY KEY, value TEXT NOT NULL);
|
|
@@ -191,7 +210,8 @@ export class BrainIndexReader {
|
|
|
191
210
|
try {
|
|
192
211
|
return this.db
|
|
193
212
|
.prepare(`
|
|
194
|
-
SELECT c.chunk_id AS chunkId, c.doc_id AS docId,
|
|
213
|
+
SELECT c.chunk_id AS chunkId, c.doc_id AS docId,
|
|
214
|
+
bm25(chunks_fts, ${BM25_WEIGHTS.join(", ")}) AS rank
|
|
195
215
|
FROM chunks_fts JOIN chunks c ON c.chunk_id = chunks_fts.rowid
|
|
196
216
|
WHERE chunks_fts MATCH ?${scopeFilter}
|
|
197
217
|
ORDER BY rank LIMIT ?
|
|
@@ -208,7 +228,14 @@ export class BrainIndexReader {
|
|
|
208
228
|
// A question rarely shares every word with its answer (T-296 eval: natural questions found
|
|
209
229
|
// nothing). Fill up with any-word matches, bm25-ranked so rarer shared words weigh more;
|
|
210
230
|
// one-letter prefixes would match everything and are left out.
|
|
211
|
-
|
|
231
|
+
// Question words ("what did I … where my …") match nearly every record and would rank
|
|
232
|
+
// noise first, so they are dropped here, and a long Latin word matches by its stem
|
|
233
|
+
// ("decide" → "deci"*, which also finds "decision").
|
|
234
|
+
const anyWord = [
|
|
235
|
+
...new Set(words
|
|
236
|
+
.filter((word) => word.length > 1 && !STOPWORDS.has(word))
|
|
237
|
+
.map(stem)),
|
|
238
|
+
];
|
|
212
239
|
if (anyWord.length < 2)
|
|
213
240
|
return all;
|
|
214
241
|
const seen = new Set(all.map((hit) => hit.chunkId));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { redactRuntimeText } from "@ocean/core/domain/redaction/redaction.js";
|
|
4
|
+
import { cleanTitle } from "@ocean/core/shared/clean-title.js";
|
|
4
5
|
import { localDate, localMoment, localTime, } from "@ocean/core/shared/local-date.js";
|
|
5
6
|
import { DAILY_DIR, INBOX_DIR, oceanPath, oceanRoot, } from "@ocean/core/shared/paths.js";
|
|
6
7
|
import { findGitRoot } from "@ocean/core/shared/project-resolution.js";
|
|
@@ -89,7 +90,9 @@ export async function writeBrainDump(input) {
|
|
|
89
90
|
const status = session.status === "completed" && (input.exitCode ?? 0) === 0
|
|
90
91
|
? "completed"
|
|
91
92
|
: "failed";
|
|
92
|
-
const title = isGenericContent(workLog)
|
|
93
|
+
const title = isGenericContent(workLog)
|
|
94
|
+
? project
|
|
95
|
+
: cleanTitle(workLog, project);
|
|
93
96
|
// A session record (T-314): flat frontmatter Obsidian can read, then fixed sections. The
|
|
94
97
|
// narrative comes from one model call when there was one; otherwise from the events.
|
|
95
98
|
const quote = (value) => JSON.stringify(value);
|
|
@@ -198,7 +201,7 @@ export async function writeDigestRecord(input) {
|
|
|
198
201
|
const { digest } = input;
|
|
199
202
|
const date = localDate(localMoment(input.endedAt));
|
|
200
203
|
const time = localTime(localMoment(input.startedAt));
|
|
201
|
-
const title = safeText(digest.title || digest.goal,
|
|
204
|
+
const title = cleanTitle(safeText(digest.title || digest.goal, 400), input.project || "Conversation");
|
|
202
205
|
const quote = (value) => JSON.stringify(value);
|
|
203
206
|
const list = (heading, items) => items.length
|
|
204
207
|
? [
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// A title made from a client's raw first turn carries the harness's tags (`<system-reminder>…`,
|
|
2
|
+
// `<browser_instruction>…`, `<ide_opened_file>…`). The words inside a closed tag are the
|
|
3
|
+
// harness's, except a slash command's name and arguments; an opening tag left unclosed (the
|
|
4
|
+
// turn was cut short) takes everything after it. What is left, or the fallback, is the title.
|
|
5
|
+
export function cleanTitle(raw, fallback, max = 120) {
|
|
6
|
+
const text = raw
|
|
7
|
+
.replace(/<([\w-]+)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g, (whole, tag) => /^(command-name|command-args)$/.test(tag)
|
|
8
|
+
? whole.replace(/<[^>]+>/g, " ")
|
|
9
|
+
: " ")
|
|
10
|
+
.replace(/<[\w-]+(?:\s[^>]*)?>[\s\S]*$/, " ")
|
|
11
|
+
.replace(/<[^>]+>/g, " ")
|
|
12
|
+
.replace(/^[\s#>*-]+/, "")
|
|
13
|
+
.replace(/\s+/g, " ")
|
|
14
|
+
.trim();
|
|
15
|
+
return (text || fallback).slice(0, max);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=clean-title.js.map
|
|
@@ -8,10 +8,9 @@ import { expandHome, hasControlCharacters, projectVerify, readProjectManifest, }
|
|
|
8
8
|
const execFile = promisify(execFileCallback);
|
|
9
9
|
// Only commands whose first token is on this list are ever executed by the
|
|
10
10
|
// verifier — including every link of a `&&`/`||`/`;`/`|` chain, since each
|
|
11
|
-
// link runs as its own command.
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// command. Command substitution and redirection (`` ` ``, `$(`, `>`, `<`) are
|
|
11
|
+
// link runs as its own command. Only a `verify:` field or a fenced block in
|
|
12
|
+
// `## Verification` is read, and the allowlist still keeps an arbitrary line
|
|
13
|
+
// there from running. Command substitution and redirection (`` ` ``, `$(`, `>`, `<`) are
|
|
15
14
|
// rejected outright: they let an allowlisted first token smuggle an
|
|
16
15
|
// unrelated command in (e.g. `` bash -c "rm -rf $HOME" ``).
|
|
17
16
|
const COMMAND_ALLOWLIST = new Set([
|
|
@@ -45,10 +44,10 @@ const defaultRunner = async (command, cwd) => {
|
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* Pull runnable commands out of a task's verification declaration. A `verify:`
|
|
48
|
-
* frontmatter field (string or comma-separated list) wins; otherwise
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
47
|
+
* frontmatter field (string or comma-separated list) wins; otherwise each non-empty
|
|
48
|
+
* line inside a fenced code block of the `## Verification` section. Inline-backtick
|
|
49
|
+
* spans are prose, never commands: on T-308 a prose span naming `npm publish` was run
|
|
50
|
+
* (T-317).
|
|
52
51
|
*/
|
|
53
52
|
function candidateCommands(source) {
|
|
54
53
|
const frontmatter = source
|
|
@@ -66,29 +65,13 @@ function candidateCommands(source) {
|
|
|
66
65
|
if (!section)
|
|
67
66
|
return [];
|
|
68
67
|
const fenced = [];
|
|
69
|
-
|
|
70
|
-
let lastIndex = 0;
|
|
71
|
-
for (const match of section.matchAll(/```[^\n]*\n([\s\S]*?)```/g)) {
|
|
72
|
-
outsideFences += section.slice(lastIndex, match.index);
|
|
73
|
-
lastIndex = match.index + match[0].length;
|
|
68
|
+
for (const match of section.matchAll(/```[^\n]*\n([\s\S]*?)```/g))
|
|
74
69
|
for (const line of match[1].split("\n")) {
|
|
75
70
|
const trimmed = line.trim();
|
|
76
|
-
if (trimmed)
|
|
71
|
+
if (trimmed && !trimmed.startsWith("#"))
|
|
77
72
|
fenced.push(trimmed);
|
|
78
73
|
}
|
|
79
|
-
|
|
80
|
-
outsideFences += section.slice(lastIndex);
|
|
81
|
-
const spans = [...outsideFences.matchAll(/`([^`]+)`/g)]
|
|
82
|
-
.map((match) => match[1].trim())
|
|
83
|
-
.filter(readsAsCommand);
|
|
84
|
-
return [...fenced, ...spans];
|
|
85
|
-
}
|
|
86
|
-
// An inline span is prose unless it reads like a command line: a lowercase program name
|
|
87
|
-
// followed by arguments (`curl evil.sh` still counts, and is refused), or an allowlisted
|
|
88
|
-
// program on its own. `→`, `[redacted]` or `CLAUDE.md` neither run nor block completion.
|
|
89
|
-
const COMMAND_SHAPE = /^(?:\.{0,2}\/)?[a-z][\w./+-]*\s+\S/;
|
|
90
|
-
function readsAsCommand(span) {
|
|
91
|
-
return (COMMAND_SHAPE.test(span) || COMMAND_ALLOWLIST.has(span.split(/\s+/)[0]));
|
|
74
|
+
return fenced;
|
|
92
75
|
}
|
|
93
76
|
export function extractVerificationCommands(source) {
|
|
94
77
|
return candidateCommands(source).filter((command) => isAllowedCommand(command));
|
|
@@ -112,6 +95,25 @@ function projectDirectory(manifest) {
|
|
|
112
95
|
// Commands that carry their own program text: fine in a task someone wrote at the keyboard,
|
|
113
96
|
// not in project.json, which a session reads on its own.
|
|
114
97
|
const INLINE_PROGRAM_FLAG = /^(--eval|--print|-[a-zA-Z]*[ep][a-zA-Z]*)$/;
|
|
98
|
+
// A check proves the work; it never publishes, signs in or changes the machine. These
|
|
99
|
+
// package-manager verbs and a global install are refused from every source (T-317).
|
|
100
|
+
const PACKAGE_MANAGERS = new Set(["npm", "pnpm", "yarn"]);
|
|
101
|
+
const OUTWARD_VERBS = new Set([
|
|
102
|
+
"publish",
|
|
103
|
+
"unpublish",
|
|
104
|
+
"deprecate",
|
|
105
|
+
"login",
|
|
106
|
+
"logout",
|
|
107
|
+
"adduser",
|
|
108
|
+
"owner",
|
|
109
|
+
"token",
|
|
110
|
+
"dist-tag",
|
|
111
|
+
]);
|
|
112
|
+
function isOutward(program, args) {
|
|
113
|
+
if (args.some((arg) => arg === "-g" || arg === "--global"))
|
|
114
|
+
return true;
|
|
115
|
+
return (PACKAGE_MANAGERS.has(program) && args.some((arg) => OUTWARD_VERBS.has(arg)));
|
|
116
|
+
}
|
|
115
117
|
function isAllowedCommand(command, origin = "task") {
|
|
116
118
|
if (UNSAFE_METACHARACTERS.test(command))
|
|
117
119
|
return false;
|
|
@@ -127,6 +129,8 @@ function isAllowedCommand(command, origin = "task") {
|
|
|
127
129
|
const [program, ...args] = link.split(/\s+/);
|
|
128
130
|
if (!COMMAND_ALLOWLIST.has(program))
|
|
129
131
|
return false;
|
|
132
|
+
if (isOutward(program, args))
|
|
133
|
+
return false;
|
|
130
134
|
if (origin === "task")
|
|
131
135
|
return true;
|
|
132
136
|
if (program === "bash" || program === "sh")
|
|
@@ -2,23 +2,142 @@ import { readFile } from "node:fs/promises";
|
|
|
2
2
|
import { connect } from "node:net";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
// The capability that attaches to the owner's running browser, and the value that names which
|
|
6
|
+
// browser: a profile root, passed to chrome-devtools-mcp as `--userDataDir`. Unset means Chrome.
|
|
7
|
+
export const BROWSER_CAPABILITY = "dev.ocean/chrome-devtools";
|
|
8
|
+
export const BROWSER_PROFILE_VARIABLE = "OCEAN_BROWSER_USER_DATA_DIR";
|
|
9
|
+
// Chromium browsers and where each keeps its profile root, which is where the browser writes
|
|
10
|
+
// DevToolsActivePort while its inspect page's remote debugging is on. Windows paths are under
|
|
11
|
+
// %LOCALAPPDATA% unless marked roaming; Linux paths are under ~/.config.
|
|
12
|
+
export const CHROMIUM_BROWSERS = [
|
|
13
|
+
{
|
|
14
|
+
id: "chrome",
|
|
15
|
+
label: "Chrome",
|
|
16
|
+
roots: {
|
|
17
|
+
darwin: ["Google", "Chrome"],
|
|
18
|
+
win32: ["Google", "Chrome", "User Data"],
|
|
19
|
+
linux: ["google-chrome"],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "chrome-beta",
|
|
24
|
+
label: "Chrome Beta",
|
|
25
|
+
roots: {
|
|
26
|
+
darwin: ["Google", "Chrome Beta"],
|
|
27
|
+
win32: ["Google", "Chrome Beta", "User Data"],
|
|
28
|
+
linux: ["google-chrome-beta"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "chrome-canary",
|
|
33
|
+
label: "Chrome Canary",
|
|
34
|
+
roots: {
|
|
35
|
+
darwin: ["Google", "Chrome Canary"],
|
|
36
|
+
win32: ["Google", "Chrome SxS", "User Data"],
|
|
37
|
+
linux: ["google-chrome-canary"],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "chromium",
|
|
42
|
+
label: "Chromium",
|
|
43
|
+
roots: {
|
|
44
|
+
darwin: ["Chromium"],
|
|
45
|
+
win32: ["Chromium", "User Data"],
|
|
46
|
+
linux: ["chromium"],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "brave",
|
|
51
|
+
label: "Brave",
|
|
52
|
+
roots: {
|
|
53
|
+
darwin: ["BraveSoftware", "Brave-Browser"],
|
|
54
|
+
win32: ["BraveSoftware", "Brave-Browser", "User Data"],
|
|
55
|
+
linux: ["BraveSoftware", "Brave-Browser"],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "edge",
|
|
60
|
+
label: "Microsoft Edge",
|
|
61
|
+
roots: {
|
|
62
|
+
darwin: ["Microsoft Edge"],
|
|
63
|
+
win32: ["Microsoft", "Edge", "User Data"],
|
|
64
|
+
linux: ["microsoft-edge"],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "vivaldi",
|
|
69
|
+
label: "Vivaldi",
|
|
70
|
+
roots: {
|
|
71
|
+
darwin: ["Vivaldi"],
|
|
72
|
+
win32: ["Vivaldi", "User Data"],
|
|
73
|
+
linux: ["vivaldi"],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "opera",
|
|
78
|
+
label: "Opera",
|
|
79
|
+
roaming: true,
|
|
80
|
+
roots: {
|
|
81
|
+
darwin: ["com.operasoftware.Opera"],
|
|
82
|
+
win32: ["Opera Software", "Opera Stable"],
|
|
83
|
+
linux: ["opera"],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "arc",
|
|
88
|
+
label: "Arc",
|
|
89
|
+
roots: { darwin: ["Arc", "User Data"] },
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
// A browser's profile root on this platform, or undefined when it has none here.
|
|
93
|
+
export function browserProfileRoot(id, home = os.homedir(), platform = process.platform, env = process.env) {
|
|
94
|
+
const browser = CHROMIUM_BROWSERS.find((each) => each.id === id);
|
|
95
|
+
const parts = platform === "darwin" || platform === "win32"
|
|
96
|
+
? browser?.roots[platform]
|
|
97
|
+
: browser?.roots.linux;
|
|
98
|
+
if (!browser || !parts)
|
|
99
|
+
return undefined;
|
|
100
|
+
const base = platform === "darwin"
|
|
101
|
+
? path.join(home, "Library", "Application Support")
|
|
10
102
|
: platform === "win32"
|
|
11
|
-
?
|
|
12
|
-
env.
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
]
|
|
17
|
-
: [home, ".config", "google-chrome"];
|
|
18
|
-
return path.join(...parts, "DevToolsActivePort");
|
|
103
|
+
? browser.roaming
|
|
104
|
+
? (env.APPDATA ?? path.join(home, "AppData", "Roaming"))
|
|
105
|
+
: (env.LOCALAPPDATA ?? path.join(home, "AppData", "Local"))
|
|
106
|
+
: path.join(home, ".config");
|
|
107
|
+
return path.join(base, ...parts);
|
|
19
108
|
}
|
|
20
|
-
//
|
|
21
|
-
//
|
|
109
|
+
// `ocean browser use <name|path>`: a known browser's profile root, or an absolute path as given
|
|
110
|
+
// (a custom profile, or a Chromium browser not in the list).
|
|
111
|
+
export function resolveBrowserChoice(choice, home = os.homedir(), platform = process.platform, env = process.env) {
|
|
112
|
+
if (path.isAbsolute(choice))
|
|
113
|
+
return path.resolve(choice);
|
|
114
|
+
const root = browserProfileRoot(choice.toLowerCase(), home, platform, env);
|
|
115
|
+
if (root)
|
|
116
|
+
return root;
|
|
117
|
+
const known = CHROMIUM_BROWSERS.filter((each) => browserProfileRoot(each.id, home, platform, env)).map((each) => each.id);
|
|
118
|
+
throw new Error(`unknown browser "${choice}" on ${platform}: use one of ${known.join(", ")}, or an absolute profile path`);
|
|
119
|
+
}
|
|
120
|
+
// The name a profile root goes by, for messages.
|
|
121
|
+
export function browserLabel(root, home = os.homedir(), platform = process.platform, env = process.env) {
|
|
122
|
+
const browser = CHROMIUM_BROWSERS.find((each) => browserProfileRoot(each.id, home, platform, env) === root);
|
|
123
|
+
return browser ? browser.label : `the browser at ${root}`;
|
|
124
|
+
}
|
|
125
|
+
// The browser chosen for this machine: the environment, then the stored choice, then Chrome.
|
|
126
|
+
export function selectedBrowserProfile(options = {}) {
|
|
127
|
+
const env = options.env ?? process.env;
|
|
128
|
+
const home = options.home ?? os.homedir();
|
|
129
|
+
const platform = options.platform ?? process.platform;
|
|
130
|
+
return (env[BROWSER_PROFILE_VARIABLE] ??
|
|
131
|
+
options.stored?.() ??
|
|
132
|
+
browserProfileRoot("chrome", home, platform, env));
|
|
133
|
+
}
|
|
134
|
+
// The browser writes the port of its debugging server here while its inspect page's remote
|
|
135
|
+
// debugging is on; `chrome-devtools-mcp --autoConnect` reads the same file to attach to it.
|
|
136
|
+
export function devToolsPortFile(home = os.homedir(), platform = process.platform, env = process.env, profileRoot = browserProfileRoot("chrome", home, platform, env)) {
|
|
137
|
+
return path.join(profileRoot, "DevToolsActivePort");
|
|
138
|
+
}
|
|
139
|
+
// A plain TCP connect: it tells whether a browser's debugging server is up without opening a
|
|
140
|
+
// DevTools session, so it never raises the browser's permission prompt.
|
|
22
141
|
export async function chromeDebuggingListening(file = devToolsPortFile()) {
|
|
23
142
|
let port;
|
|
24
143
|
try {
|
|
@@ -40,4 +159,18 @@ export async function chromeDebuggingListening(file = devToolsPortFile()) {
|
|
|
40
159
|
socket.once("error", () => finish(false));
|
|
41
160
|
});
|
|
42
161
|
}
|
|
162
|
+
// Every known browser on this platform whose debugging server is listening right now.
|
|
163
|
+
export async function listeningBrowsers(options = {}) {
|
|
164
|
+
const home = options.home ?? os.homedir();
|
|
165
|
+
const platform = options.platform ?? process.platform;
|
|
166
|
+
const env = options.env ?? process.env;
|
|
167
|
+
const probe = options.listening ?? chromeDebuggingListening;
|
|
168
|
+
const found = await Promise.all(CHROMIUM_BROWSERS.map(async (browser) => {
|
|
169
|
+
const root = browserProfileRoot(browser.id, home, platform, env);
|
|
170
|
+
return root && (await probe(path.join(root, "DevToolsActivePort")))
|
|
171
|
+
? { id: browser.id, label: browser.label, root }
|
|
172
|
+
: undefined;
|
|
173
|
+
}));
|
|
174
|
+
return found.filter((each) => each !== undefined);
|
|
175
|
+
}
|
|
43
176
|
//# sourceMappingURL=chrome-debugging.js.map
|
|
@@ -3,12 +3,20 @@ import path from "node:path";
|
|
|
3
3
|
import { remoteUrlAllowed, } from "../adapters/mcp-adapter.js";
|
|
4
4
|
import { PermissionPolicy } from "../security/permissions.js";
|
|
5
5
|
const remoteTransports = ["streamable-http", "sse"];
|
|
6
|
+
const EXACT_VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
6
7
|
// Where each runner takes its own (runtime) arguments: before the package for npx and uvx,
|
|
7
8
|
// after `run` for docker, so container flags such as `-e` or `-v` reach `docker run`.
|
|
8
9
|
const runners = {
|
|
10
|
+
// An exact version never changes once published, so npx uses its cache when it holds it
|
|
11
|
+
// instead of asking the registry on every server start (~0.3–0.5 s each, T-316).
|
|
9
12
|
npm: (identifier, version, runtime) => ({
|
|
10
13
|
command: "npx",
|
|
11
|
-
args: [
|
|
14
|
+
args: [
|
|
15
|
+
...runtime,
|
|
16
|
+
"-y",
|
|
17
|
+
...(version && EXACT_VERSION.test(version) ? ["--prefer-offline"] : []),
|
|
18
|
+
version ? `${identifier}@${version}` : identifier,
|
|
19
|
+
],
|
|
12
20
|
}),
|
|
13
21
|
pypi: (identifier, version, runtime) => ({
|
|
14
22
|
command: "uvx",
|
|
@@ -2,6 +2,7 @@ import { mkdir, readdir, readFile, rename } from "node:fs/promises";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { proposeMemory } from "@ocean/brain/memory/memory-write.js";
|
|
4
4
|
import { MemoryContractError } from "@ocean/core/domain/mcp/memory-contract.js";
|
|
5
|
+
import { cleanTitle } from "@ocean/core/shared/clean-title.js";
|
|
5
6
|
import { atomicWrite, parseFrontmatter } from "@ocean/core/shared/fs-utils.js";
|
|
6
7
|
import { DAILY_DIR, INBOX_DIR, KNOWLEDGE_DIR, oceanPath, PERSONAL_DIR, } from "@ocean/core/shared/paths.js";
|
|
7
8
|
import { listMilestones } from "../express/express.js";
|
|
@@ -68,7 +69,7 @@ export async function distillWeek(options) {
|
|
|
68
69
|
continue;
|
|
69
70
|
if (!inWeek(fields.date))
|
|
70
71
|
continue;
|
|
71
|
-
const title = /^# (.+)$/m.exec(text)?.[1]
|
|
72
|
+
const title = cleanTitle(/^# (.+)$/m.exec(text)?.[1] ?? "", fields.project || path.basename(file, ".md"));
|
|
72
73
|
sessions.push({ file, text, title, status: fields.status ?? "" });
|
|
73
74
|
}
|
|
74
75
|
const briefs = (await markdownIn(oceanPath(DAILY_DIR, "briefs"))).filter((file) => inWeek(/(\d{4}-\d{2}-\d{2})/.exec(path.basename(file))?.[1]));
|
|
@@ -2,6 +2,7 @@ import { copyFile, mkdir, readdir, readFile, rename, rm, } from "node:fs/promise
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { syncMemoryIndexes } from "@ocean/brain/memory/index-sync.js";
|
|
4
4
|
import { containsKnownSecret } from "@ocean/core/domain/redaction/redaction.js";
|
|
5
|
+
import { cleanTitle } from "@ocean/core/shared/clean-title.js";
|
|
5
6
|
import { atomicWrite, parseFrontmatter, withFileLock, } from "@ocean/core/shared/fs-utils.js";
|
|
6
7
|
import { DAILY_DIR, INBOX_DIR, KNOWLEDGE_DIR, oceanPath, SYSTEM_DIR, } from "@ocean/core/shared/paths.js";
|
|
7
8
|
import { keepTicks, noteFile, putBlock, readBlock } from "../day/note.js";
|
|
@@ -42,18 +43,6 @@ async function markdownIn(dir, skipArchive = true) {
|
|
|
42
43
|
}
|
|
43
44
|
return files.sort();
|
|
44
45
|
}
|
|
45
|
-
// A title made from a client's raw first turn carries its tags (`<command-message>…`,
|
|
46
|
-
// `<ide_opened_file>…`); what is left after them, or the project, is the title.
|
|
47
|
-
export function cleanTitle(raw, fallback) {
|
|
48
|
-
const text = raw
|
|
49
|
-
.replace(/<([\w-]+)>[\s\S]*?<\/\1>/g, (whole, tag) => /^(command-name|command-args)$/.test(tag)
|
|
50
|
-
? whole.replace(/<[^>]+>/g, " ")
|
|
51
|
-
: " ")
|
|
52
|
-
.replace(/<[^>]+>/g, " ")
|
|
53
|
-
.replace(/\s+/g, " ")
|
|
54
|
-
.trim();
|
|
55
|
-
return (text || fallback).slice(0, 120);
|
|
56
|
-
}
|
|
57
46
|
export async function daySessions(date) {
|
|
58
47
|
const sessions = [];
|
|
59
48
|
for (const file of await markdownIn(path.join(sessionsRoot(), date.slice(0, 7)))) {
|
|
@@ -217,7 +206,7 @@ async function fileItem(item, ledger) {
|
|
|
217
206
|
if (current.includes(link))
|
|
218
207
|
return { file: relativeOf(match), action: "same" };
|
|
219
208
|
const copy = stateDir("versions", ledger.date, relativeOf(match));
|
|
220
|
-
await mkdir(path.dirname(copy), { recursive: true });
|
|
209
|
+
await mkdir(path.dirname(copy), { recursive: true, mode: 0o700 });
|
|
221
210
|
await copyFile(match, copy);
|
|
222
211
|
ledger.updated.push({ file: relativeOf(match), copy: relativeOf(copy) });
|
|
223
212
|
let next = setField(current, "last_verified", item.session.date);
|
|
@@ -376,7 +365,7 @@ export async function harvestDay(options) {
|
|
|
376
365
|
if (action === "strengthened")
|
|
377
366
|
result.strengthened.push(file);
|
|
378
367
|
}
|
|
379
|
-
await mkdir(path.dirname(ledgerFile(date)), { recursive: true });
|
|
368
|
+
await mkdir(path.dirname(ledgerFile(date)), { recursive: true, mode: 0o700 });
|
|
380
369
|
await atomicWrite(ledgerFile(date), `${JSON.stringify(previous, null, 2)}\n`);
|
|
381
370
|
const file = noteFile(date);
|
|
382
371
|
await mkdir(path.dirname(file), { recursive: true });
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { execFile as execFileCallback } from "node:child_process";
|
|
2
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
|
+
import { atomicWrite, parseFrontmatter } from "@ocean/core/shared/fs-utils.js";
|
|
6
|
+
import { localDate } from "@ocean/core/shared/local-date.js";
|
|
7
|
+
import { DAILY_DIR, oceanPath, PROJECTS_DIR, projectSubdir, } from "@ocean/core/shared/paths.js";
|
|
8
|
+
import { expandHome, listProjectManifests, } from "@ocean/core/shared/project-resolution.js";
|
|
9
|
+
import { listTasks } from "@ocean/loop/tasks/list-tasks.js";
|
|
10
|
+
const execFile = promisify(execFileCallback);
|
|
11
|
+
const ACTIVE_DAYS = 60;
|
|
12
|
+
const WARM_DAYS = 365;
|
|
13
|
+
const OPEN_STATES = new Set(["active", "todo", "paused", "blocked"]);
|
|
14
|
+
async function git(cwd, args) {
|
|
15
|
+
try {
|
|
16
|
+
const { stdout } = await execFile("git", ["-C", cwd, ...args], {
|
|
17
|
+
timeout: 10_000,
|
|
18
|
+
});
|
|
19
|
+
return stdout.trim();
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
async function gitState(dir) {
|
|
26
|
+
const root = await git(dir, ["rev-parse", "--show-toplevel"]);
|
|
27
|
+
if (!root)
|
|
28
|
+
return undefined;
|
|
29
|
+
const [branch, status, lastCommit, remote] = await Promise.all([
|
|
30
|
+
git(dir, ["branch", "--show-current"]),
|
|
31
|
+
git(dir, ["status", "--porcelain"]),
|
|
32
|
+
git(dir, ["log", "-1", "--format=%cs"]),
|
|
33
|
+
git(dir, ["remote", "get-url", "origin"]),
|
|
34
|
+
]);
|
|
35
|
+
return {
|
|
36
|
+
branch: branch || "(detached)",
|
|
37
|
+
dirty: status ? status.split("\n").filter(Boolean).length : 0,
|
|
38
|
+
lastCommit: lastCommit ?? "",
|
|
39
|
+
// A remote URL can carry a token (https://user:token@host/…): keep only host and path.
|
|
40
|
+
remote: (remote ?? "")
|
|
41
|
+
.replace(/^[a-z+]+:\/\/[^@/]*@/, "")
|
|
42
|
+
.replace(/^[a-z+]+:\/\//, "")
|
|
43
|
+
.replace(/^git@/, "")
|
|
44
|
+
.replace(/\.git$/, ""),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function activityOf(lastCommit, today = localDate()) {
|
|
48
|
+
if (!lastCommit)
|
|
49
|
+
return "no git";
|
|
50
|
+
const days = (Date.parse(`${today}T00:00:00Z`) - Date.parse(`${lastCommit}T00:00:00Z`)) /
|
|
51
|
+
86_400_000;
|
|
52
|
+
return days <= ACTIVE_DAYS
|
|
53
|
+
? "active"
|
|
54
|
+
: days <= WARM_DAYS
|
|
55
|
+
? "warm"
|
|
56
|
+
: "dormant";
|
|
57
|
+
}
|
|
58
|
+
function section(source, heading) {
|
|
59
|
+
return (new RegExp(`\\n## ${heading}\\n+([\\s\\S]*?)(?=\\n## |$)`)
|
|
60
|
+
.exec(source)?.[1]
|
|
61
|
+
?.trim()
|
|
62
|
+
.replace(/\s+/g, " ") ?? "");
|
|
63
|
+
}
|
|
64
|
+
// The next action of the most recently updated open task, prefixed with its id.
|
|
65
|
+
async function nextAction(id) {
|
|
66
|
+
const open = (await listTasks(undefined, id))
|
|
67
|
+
.filter((task) => OPEN_STATES.has(task.state))
|
|
68
|
+
.sort((a, b) => b.updatedAt.localeCompare(a.updatedAt));
|
|
69
|
+
const first = open.find((task) => task.state === "active") ?? open[0];
|
|
70
|
+
if (!first)
|
|
71
|
+
return { open: 0, next: "" };
|
|
72
|
+
const file = oceanPath(PROJECTS_DIR, projectSubdir(oceanPath(PROJECTS_DIR), id), "tasks", first.id, "task.md");
|
|
73
|
+
const text = await readFile(file, "utf8").catch(() => "");
|
|
74
|
+
const next = section(text, "Next action") || first.title;
|
|
75
|
+
return { open: open.length, next: `${first.id}: ${next}`.slice(0, 160) };
|
|
76
|
+
}
|
|
77
|
+
// Newest session date per project name, from the session records' frontmatter.
|
|
78
|
+
async function lastSessions() {
|
|
79
|
+
const latest = new Map();
|
|
80
|
+
const root = oceanPath(DAILY_DIR, "sessions");
|
|
81
|
+
const months = await readdir(root).catch(() => []);
|
|
82
|
+
for (const month of months.filter((name) => /^\d{4}-\d{2}$/.test(name))) {
|
|
83
|
+
for (const name of await readdir(path.join(root, month)).catch(() => [])) {
|
|
84
|
+
if (!name.endsWith(".md"))
|
|
85
|
+
continue;
|
|
86
|
+
const head = (await readFile(path.join(root, month, name), "utf8").catch(() => "")).slice(0, 800);
|
|
87
|
+
const fields = parseFrontmatter(head);
|
|
88
|
+
const project = fields.project?.trim();
|
|
89
|
+
const date = fields.date?.trim();
|
|
90
|
+
if (!project || !date)
|
|
91
|
+
continue;
|
|
92
|
+
if ((latest.get(project) ?? "") < date)
|
|
93
|
+
latest.set(project, date);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return latest;
|
|
97
|
+
}
|
|
98
|
+
export async function projectsOverview(today = localDate()) {
|
|
99
|
+
const [manifests, sessions] = await Promise.all([
|
|
100
|
+
listProjectManifests(),
|
|
101
|
+
lastSessions(),
|
|
102
|
+
]);
|
|
103
|
+
const rows = await Promise.all(manifests.map(async (manifest) => {
|
|
104
|
+
const dir = manifest.paths[0] ? expandHome(manifest.paths[0]) : "";
|
|
105
|
+
const [gitInfo, tasks] = await Promise.all([
|
|
106
|
+
dir ? gitState(dir) : Promise.resolve(undefined),
|
|
107
|
+
nextAction(manifest.id),
|
|
108
|
+
]);
|
|
109
|
+
// Sessions are recorded under their working folder's name, which is usually the id.
|
|
110
|
+
const names = [
|
|
111
|
+
manifest.id,
|
|
112
|
+
manifest.name,
|
|
113
|
+
...manifest.paths.map((p) => path.basename(expandHome(p))),
|
|
114
|
+
];
|
|
115
|
+
const lastSession = names
|
|
116
|
+
.map((name) => sessions.get(name) ?? "")
|
|
117
|
+
.sort()
|
|
118
|
+
.at(-1);
|
|
119
|
+
return {
|
|
120
|
+
id: manifest.id,
|
|
121
|
+
path: manifest.paths[0] ?? "",
|
|
122
|
+
git: gitInfo,
|
|
123
|
+
activity: activityOf(gitInfo?.lastCommit, today),
|
|
124
|
+
openTasks: tasks.open,
|
|
125
|
+
nextAction: tasks.next,
|
|
126
|
+
lastSession: lastSession ?? "",
|
|
127
|
+
};
|
|
128
|
+
}));
|
|
129
|
+
const rank = { active: 0, warm: 1, dormant: 2, "no git": 3 };
|
|
130
|
+
return rows.sort((a, b) => rank[a.activity] - rank[b.activity] ||
|
|
131
|
+
(b.git?.lastCommit ?? "").localeCompare(a.git?.lastCommit ?? "") ||
|
|
132
|
+
a.id.localeCompare(b.id));
|
|
133
|
+
}
|
|
134
|
+
const cell = (value) => value.replace(/\|/g, "\\|") || "—";
|
|
135
|
+
export function overviewTable(rows) {
|
|
136
|
+
return [
|
|
137
|
+
"| Project | Activity | Branch | Dirty | Last commit | Last session | Open tasks | Next action |",
|
|
138
|
+
"|---|---|---|---|---|---|---|---|",
|
|
139
|
+
...rows.map((row) => [
|
|
140
|
+
`**${row.id}**`,
|
|
141
|
+
row.activity,
|
|
142
|
+
row.git ? `\`${row.git.branch}\`` : "",
|
|
143
|
+
row.git ? String(row.git.dirty) : "",
|
|
144
|
+
row.git?.lastCommit ?? "",
|
|
145
|
+
row.lastSession,
|
|
146
|
+
String(row.openTasks),
|
|
147
|
+
row.nextAction,
|
|
148
|
+
]
|
|
149
|
+
.map(cell)
|
|
150
|
+
.join(" | ")
|
|
151
|
+
.replace(/^/, "| ")
|
|
152
|
+
.replace(/$/, " |")),
|
|
153
|
+
].join("\n");
|
|
154
|
+
}
|
|
155
|
+
const BEGIN = "<!-- ocean:project-status:begin (generated by `ocean project status --write`) -->";
|
|
156
|
+
const END = "<!-- ocean:project-status:end -->";
|
|
157
|
+
// Puts the generated table into registry.md between its markers, appending them the first time.
|
|
158
|
+
// Everything outside the markers is the owner's and is left as it is.
|
|
159
|
+
export async function writeRegistryBlock(rows, today = localDate()) {
|
|
160
|
+
const file = oceanPath(PROJECTS_DIR, "registry.md");
|
|
161
|
+
const current = await readFile(file, "utf8").catch(() => "# Project registry\n");
|
|
162
|
+
const block = `${BEGIN}\n## Live (generated ${today})\n\n${overviewTable(rows)}\n${END}`;
|
|
163
|
+
const start = current.indexOf(BEGIN);
|
|
164
|
+
const end = current.indexOf(END);
|
|
165
|
+
const next = start >= 0 && end > start
|
|
166
|
+
? `${current.slice(0, start)}${block}${current.slice(end + END.length)}`
|
|
167
|
+
: `${current.replace(/\n*$/, "")}\n\n${block}\n`;
|
|
168
|
+
if (next !== current)
|
|
169
|
+
await atomicWrite(file, next);
|
|
170
|
+
return file;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=projects-overview.js.map
|
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": "
|
|
8
|
+
"version": "2.0.1",
|
|
9
9
|
"engines": {
|
|
10
|
-
"ocean": ">=
|
|
10
|
+
"ocean": ">=2.0.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": "
|
|
26
|
+
"version": "2.0.1",
|
|
27
27
|
"engines": {
|
|
28
|
-
"ocean": ">=
|
|
28
|
+
"ocean": ">=2.0.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": "
|
|
44
|
+
"version": "2.0.1",
|
|
45
45
|
"engines": {
|
|
46
|
-
"ocean": ">=
|
|
46
|
+
"ocean": ">=2.0.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": "
|
|
62
|
+
"version": "2.0.1",
|
|
63
63
|
"engines": {
|
|
64
|
-
"ocean": ">=
|
|
64
|
+
"ocean": ">=2.0.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": "
|
|
80
|
+
"version": "2.0.1",
|
|
81
81
|
"engines": {
|
|
82
|
-
"ocean": ">=
|
|
82
|
+
"ocean": ">=2.0.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": "
|
|
98
|
+
"version": "2.0.1",
|
|
99
99
|
"engines": {
|
|
100
|
-
"ocean": ">=
|
|
100
|
+
"ocean": ">=2.0.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": "
|
|
116
|
+
"version": "2.0.1",
|
|
117
117
|
"engines": {
|
|
118
|
-
"ocean": ">=
|
|
118
|
+
"ocean": ">=2.0.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": "
|
|
134
|
+
"version": "2.0.1",
|
|
135
135
|
"engines": {
|
|
136
|
-
"ocean": ">=
|
|
136
|
+
"ocean": ">=2.0.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": "
|
|
152
|
+
"version": "2.0.1",
|
|
153
153
|
"engines": {
|
|
154
|
-
"ocean": ">=
|
|
154
|
+
"ocean": ">=2.0.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": "
|
|
170
|
+
"version": "2.0.1",
|
|
171
171
|
"engines": {
|
|
172
|
-
"ocean": ">=
|
|
172
|
+
"ocean": ">=2.0.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": "
|
|
188
|
+
"version": "2.0.1",
|
|
189
189
|
"engines": {
|
|
190
|
-
"ocean": ">=
|
|
190
|
+
"ocean": ">=2.0.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": "
|
|
206
|
+
"version": "2.0.1",
|
|
207
207
|
"engines": {
|
|
208
|
-
"ocean": ">=
|
|
208
|
+
"ocean": ">=2.0.1"
|
|
209
209
|
},
|
|
210
210
|
"source": {
|
|
211
211
|
"type": "path",
|
|
@@ -221,11 +221,17 @@
|
|
|
221
221
|
{
|
|
222
222
|
"kind": "mcp",
|
|
223
223
|
"name": "dev.ocean/chrome-devtools",
|
|
224
|
-
"description": "Control the owner's real, signed-in Chrome through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached
|
|
224
|
+
"description": "Control the owner's real, signed-in Chromium browser (Chrome by default; Brave, Edge, Arc, Vivaldi, Opera or Chromium through `ocean browser use`) through the ocean-browser-mcp package (pinned Chrome DevTools MCP): tabs, navigation, clicks, forms, uploads, screenshots, console and network errors. Reads every open tab and acts inside any signed-in session of the attached browser, for every client wired to it. The browser asks to allow each new connection. The filesystem permission is declared for consent but not enforced at runtime, and the npm package is pinned by version, not by digest.",
|
|
225
225
|
"permissions": {
|
|
226
226
|
"filesystem": {
|
|
227
227
|
"read": [
|
|
228
|
-
"~/Library/Application Support/Google
|
|
228
|
+
"~/Library/Application Support/Google",
|
|
229
|
+
"~/Library/Application Support/Chromium",
|
|
230
|
+
"~/Library/Application Support/BraveSoftware",
|
|
231
|
+
"~/Library/Application Support/Microsoft Edge",
|
|
232
|
+
"~/Library/Application Support/Vivaldi",
|
|
233
|
+
"~/Library/Application Support/com.operasoftware.Opera",
|
|
234
|
+
"~/Library/Application Support/Arc"
|
|
229
235
|
]
|
|
230
236
|
},
|
|
231
237
|
"network": [
|
|
@@ -233,24 +239,28 @@
|
|
|
233
239
|
"localhost",
|
|
234
240
|
"127.0.0.1"
|
|
235
241
|
],
|
|
242
|
+
"env": [
|
|
243
|
+
"CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
|
|
244
|
+
"OCEAN_BROWSER_USER_DATA_DIR"
|
|
245
|
+
],
|
|
236
246
|
"exec": [
|
|
237
247
|
"npx"
|
|
238
248
|
]
|
|
239
249
|
},
|
|
240
|
-
"version": "
|
|
250
|
+
"version": "2.0.1",
|
|
241
251
|
"engines": {
|
|
242
|
-
"ocean": ">=
|
|
252
|
+
"ocean": ">=2.0.1"
|
|
243
253
|
},
|
|
244
254
|
"source": {
|
|
245
255
|
"type": "path",
|
|
246
256
|
"path": "market/mcp/chrome-devtools"
|
|
247
257
|
},
|
|
248
258
|
"integrity": {
|
|
249
|
-
"sha256": "
|
|
259
|
+
"sha256": "313b05fa4a835eac5597d2080c7cef1e080bd10cfa5138745e8df68410299fa6"
|
|
250
260
|
},
|
|
251
261
|
"spec": {
|
|
252
262
|
"name": "dev.ocean/chrome-devtools",
|
|
253
|
-
"description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running
|
|
263
|
+
"description": "ocean-browser-mcp runs Chrome DevTools MCP 1.12.0 attached to the owner's running Chromium browser, with usage statistics and CrUX lookups off, so page URLs stay on this machine.",
|
|
254
264
|
"packages": [
|
|
255
265
|
{
|
|
256
266
|
"registryType": "npm",
|
|
@@ -258,7 +268,24 @@
|
|
|
258
268
|
"version": "0.1.0",
|
|
259
269
|
"transport": {
|
|
260
270
|
"type": "stdio"
|
|
261
|
-
}
|
|
271
|
+
},
|
|
272
|
+
"packageArguments": [
|
|
273
|
+
{
|
|
274
|
+
"type": "named",
|
|
275
|
+
"name": "--userDataDir",
|
|
276
|
+
"value": "{OCEAN_BROWSER_USER_DATA_DIR}",
|
|
277
|
+
"isRequired": false,
|
|
278
|
+
"description": "Profile root of the Chromium browser to attach to; unset attaches to Chrome. Set with `ocean browser use <name|path>`."
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"environmentVariables": [
|
|
282
|
+
{
|
|
283
|
+
"name": "CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS",
|
|
284
|
+
"default": "1",
|
|
285
|
+
"isRequired": false,
|
|
286
|
+
"description": "Skips upstream's update check (an npm child process and a registry fetch) on every start; the version is pinned."
|
|
287
|
+
}
|
|
288
|
+
]
|
|
262
289
|
}
|
|
263
290
|
],
|
|
264
291
|
"_meta": {
|
|
@@ -272,9 +299,9 @@
|
|
|
272
299
|
"kind": "mcp",
|
|
273
300
|
"name": "dev.ocean/mcp-gateway",
|
|
274
301
|
"description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
|
|
275
|
-
"version": "
|
|
302
|
+
"version": "2.0.1",
|
|
276
303
|
"engines": {
|
|
277
|
-
"ocean": ">=
|
|
304
|
+
"ocean": ">=2.0.1"
|
|
278
305
|
},
|
|
279
306
|
"source": {
|
|
280
307
|
"type": "path",
|
|
@@ -316,9 +343,9 @@
|
|
|
316
343
|
"kind": "mcp",
|
|
317
344
|
"name": "dev.ocean/obsidian",
|
|
318
345
|
"description": "Ocean's Obsidian vault bridge over MCP.",
|
|
319
|
-
"version": "
|
|
346
|
+
"version": "2.0.1",
|
|
320
347
|
"engines": {
|
|
321
|
-
"ocean": ">=
|
|
348
|
+
"ocean": ">=2.0.1"
|
|
322
349
|
},
|
|
323
350
|
"source": {
|
|
324
351
|
"type": "path",
|
|
@@ -360,9 +387,9 @@
|
|
|
360
387
|
"kind": "mcp",
|
|
361
388
|
"name": "dev.ocean/ocean",
|
|
362
389
|
"description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
|
|
363
|
-
"version": "
|
|
390
|
+
"version": "2.0.1",
|
|
364
391
|
"engines": {
|
|
365
|
-
"ocean": ">=
|
|
392
|
+
"ocean": ">=2.0.1"
|
|
366
393
|
},
|
|
367
394
|
"source": {
|
|
368
395
|
"type": "path",
|
|
@@ -414,9 +441,9 @@
|
|
|
414
441
|
"npx"
|
|
415
442
|
]
|
|
416
443
|
},
|
|
417
|
-
"version": "
|
|
444
|
+
"version": "2.0.1",
|
|
418
445
|
"engines": {
|
|
419
|
-
"ocean": ">=
|
|
446
|
+
"ocean": ">=2.0.1"
|
|
420
447
|
},
|
|
421
448
|
"source": {
|
|
422
449
|
"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": "
|
|
4
|
+
"version": "2.0.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": "
|
|
49
|
-
"@ocean/context": "
|
|
50
|
-
"@ocean/core": "
|
|
51
|
-
"@ocean/loop": "
|
|
52
|
-
"@ocean/market": "
|
|
53
|
-
"@ocean/services": "
|
|
48
|
+
"@ocean/brain": "2.0.1",
|
|
49
|
+
"@ocean/context": "2.0.1",
|
|
50
|
+
"@ocean/core": "2.0.1",
|
|
51
|
+
"@ocean/loop": "2.0.1",
|
|
52
|
+
"@ocean/market": "2.0.1",
|
|
53
|
+
"@ocean/services": "2.0.1",
|
|
54
54
|
"playwright-core": "^1.48.0",
|
|
55
55
|
"sqlite-vec": "0.1.9",
|
|
56
56
|
"zod": "^4.6.5"
|