@amoree-code/ocean 1.5.0 → 1.6.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 (29) hide show
  1. package/dist/application/clients/hooks.js +8 -2
  2. package/dist/infrastructure/mcp/remote-mcp-client.js +35 -0
  3. package/dist/infrastructure/providers/session-facts-completer.js +70 -0
  4. package/dist/interfaces/cli/clients-command.js +35 -1
  5. package/dist/interfaces/cli/command-registry.js +25 -2
  6. package/dist/interfaces/cli/mcp-gateway-command.js +9 -1
  7. package/dist/interfaces/cli/memory-command.js +19 -1
  8. package/dist/interfaces/cli/running-server-findings.js +19 -0
  9. package/dist/interfaces/cli/session-facts-command.js +65 -0
  10. package/node_modules/@ocean/brain/dist/memory/memory-audit.js +38 -3
  11. package/node_modules/@ocean/brain/dist/memory/memory-paths.js +4 -0
  12. package/node_modules/@ocean/brain/dist/memory/memory-review.js +5 -0
  13. package/node_modules/@ocean/brain/dist/memory/session-facts.js +236 -0
  14. package/node_modules/@ocean/brain/package.json +1 -1
  15. package/node_modules/@ocean/context/package.json +1 -1
  16. package/node_modules/@ocean/core/package.json +1 -1
  17. package/node_modules/@ocean/loop/dist/hooks/session-end-hook.js +34 -22
  18. package/node_modules/@ocean/loop/dist/hooks/session-facts-hook.js +176 -0
  19. package/node_modules/@ocean/loop/package.json +1 -1
  20. package/node_modules/@ocean/market/dist/mcp/mcp-gateway.js +127 -14
  21. package/node_modules/@ocean/market/package.json +1 -1
  22. package/node_modules/@ocean/services/dist/doctor/workspace-doctor.js +51 -3
  23. package/node_modules/@ocean/services/dist/infrastructure/mcp/call-ledger.js +26 -2
  24. package/node_modules/@ocean/services/dist/infrastructure/mcp/mcp-client.js +27 -2
  25. package/node_modules/@ocean/services/dist/infrastructure/mcp/ocean-server.js +9 -3
  26. package/node_modules/@ocean/services/dist/infrastructure/mcp/server-version.js +11 -8
  27. package/node_modules/@ocean/services/package.json +1 -1
  28. package/ocean-marketplace.json +28 -28
  29. package/package.json +7 -7
@@ -186,9 +186,9 @@ export async function gatewayMembers(options) {
186
186
  });
187
187
  return { members, skipped };
188
188
  }
189
- // Every text a model reads for a tool: its name, its description and each key and string inside
190
- // its input schema (property names, titles, enums and defaults included).
191
- function toolTexts(tool) {
189
+ // Every text a model reads for a tool, resource or prompt: each named field, and each key and
190
+ // string nested inside it (a tool's schema property names, titles, enums and defaults included).
191
+ function modelTexts(fields) {
192
192
  const texts = [];
193
193
  const walk = (value, at) => {
194
194
  if (typeof value === "string")
@@ -203,9 +203,8 @@ function toolTexts(tool) {
203
203
  walk(item, `${at}.${key}`);
204
204
  }
205
205
  };
206
- walk(tool.name, "name");
207
- walk(tool.description, "description");
208
- walk(tool.inputSchema, "inputSchema");
206
+ for (const [at, value] of Object.entries(fields))
207
+ walk(value, at);
209
208
  return texts;
210
209
  }
211
210
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
@@ -235,6 +234,12 @@ export class McpGateway {
235
234
  options;
236
235
  #routes = new Map();
237
236
  #tools = [];
237
+ // Resource URIs are exposed unchanged (a server's own texts point at them), so a URI two
238
+ // members both list stays with the first. Prompts are namespaced like tools.
239
+ #resourceRoutes = new Map();
240
+ #resources = [];
241
+ #promptRoutes = new Map();
242
+ #prompts = [];
238
243
  #clients = [];
239
244
  #started;
240
245
  // Who is on the other end, from `initialize`; fixed once members start.
@@ -264,7 +269,26 @@ export class McpGateway {
264
269
  this.#clients.push(...clients);
265
270
  const results = await Promise.allSettled(members.map(async (member, index) => {
266
271
  await withTimeout(clients[index].connect(), timeoutMs, `${member.capability} did not start`);
267
- return withTimeout(clients[index].listTools(), timeoutMs, `${member.capability} did not list its tools`);
272
+ const tools = await withTimeout(clients[index].listTools(), timeoutMs, `${member.capability} did not list its tools`);
273
+ // A member that cannot list resources or prompts keeps its tools.
274
+ const optional = async (what, list) => {
275
+ if (!list)
276
+ return [];
277
+ try {
278
+ return await withTimeout(list(), timeoutMs, `${member.capability} did not list its ${what}`);
279
+ }
280
+ catch (error) {
281
+ this.#log(`${member.capability} ${what} left out: ${errorMessage(error)}`);
282
+ return [];
283
+ }
284
+ };
285
+ const client = clients[index];
286
+ const listing = {
287
+ tools,
288
+ resources: await optional("resources", client.listResources?.bind(client)),
289
+ prompts: await optional("prompts", client.listPrompts?.bind(client)),
290
+ };
291
+ return listing;
268
292
  }));
269
293
  results.forEach((result, index) => {
270
294
  const member = members[index];
@@ -273,16 +297,54 @@ export class McpGateway {
273
297
  clients[index].close();
274
298
  return;
275
299
  }
276
- for (const tool of result.value)
300
+ for (const tool of result.value.tools)
277
301
  this.#expose(member, clients[index], tool);
302
+ for (const resource of result.value.resources)
303
+ this.#exposeResource(member, clients[index], resource);
304
+ for (const prompt of result.value.prompts)
305
+ this.#exposePrompt(member, clients[index], prompt);
278
306
  });
279
307
  }
280
- #expose(member, client, tool) {
281
- const findings = toolTexts(tool).flatMap(({ at, text }) => scanText(at, text));
282
- if (findings.length) {
283
- this.#log(`${member.capability} tool ${tool.name} hidden: ${findings.map((finding) => `${finding.rule} in ${finding.source} ("${finding.excerpt}")`).join("; ")}`);
308
+ // True when a text the model would read carries injected instructions; then it is hidden.
309
+ #injected(member, kind, name, fields) {
310
+ const findings = modelTexts(fields).flatMap(({ at, text }) => scanText(at, text));
311
+ if (!findings.length)
312
+ return false;
313
+ this.#log(`${member.capability} ${kind} ${name} hidden: ${findings.map((finding) => `${finding.rule} in ${finding.source} ("${finding.excerpt}")`).join("; ")}`);
314
+ return true;
315
+ }
316
+ #exposeResource(member, client, resource) {
317
+ if (!isRecord(resource) || typeof resource.uri !== "string")
318
+ return;
319
+ if (this.#injected(member, "resource", resource.uri, resource))
320
+ return;
321
+ if (this.#resourceRoutes.has(resource.uri)) {
322
+ this.#log(`${member.capability} lists resource ${resource.uri} already routed; kept the first`);
284
323
  return;
285
324
  }
325
+ this.#resourceRoutes.set(resource.uri, client);
326
+ this.#resources.push(resource);
327
+ }
328
+ #exposePrompt(member, client, prompt) {
329
+ if (!isRecord(prompt) || typeof prompt.name !== "string")
330
+ return;
331
+ if (this.#injected(member, "prompt", prompt.name, prompt))
332
+ return;
333
+ const name = `${member.prefix}__${prompt.name}`;
334
+ if (this.#promptRoutes.has(name)) {
335
+ this.#log(`${member.capability} lists prompt ${prompt.name} twice; kept the first`);
336
+ return;
337
+ }
338
+ this.#promptRoutes.set(name, { client, prompt: prompt.name });
339
+ this.#prompts.push({ ...prompt, name });
340
+ }
341
+ #expose(member, client, tool) {
342
+ if (this.#injected(member, "tool", tool.name, {
343
+ name: tool.name,
344
+ description: tool.description,
345
+ inputSchema: tool.inputSchema,
346
+ }))
347
+ return;
286
348
  const name = `${member.prefix}__${tool.name}`;
287
349
  if (this.#routes.has(name)) {
288
350
  this.#log(`${member.capability} lists ${tool.name} twice; kept the first`);
@@ -302,6 +364,28 @@ export class McpGateway {
302
364
  throw new GatewayError(-32602, `Unknown MCP tool: ${name}`);
303
365
  return route.client.forwardToolCall(route.tool, args);
304
366
  }
367
+ async resources() {
368
+ await this.start();
369
+ return [...this.#resources];
370
+ }
371
+ async readResource(uri) {
372
+ await this.start();
373
+ const client = this.#resourceRoutes.get(uri);
374
+ if (!client?.readResource)
375
+ throw new GatewayError(-32602, `Unknown MCP resource: ${uri}`);
376
+ return client.readResource(uri);
377
+ }
378
+ async prompts() {
379
+ await this.start();
380
+ return [...this.#prompts];
381
+ }
382
+ async getPrompt(name, args) {
383
+ await this.start();
384
+ const route = this.#promptRoutes.get(name);
385
+ if (!route?.client.getPrompt)
386
+ throw new GatewayError(-32602, `Unknown MCP prompt: ${name}`);
387
+ return route.client.getPrompt(route.prompt, args);
388
+ }
305
389
  async handle(request) {
306
390
  // MCP 2025-06-18 has no batches; anything but one request object is invalid.
307
391
  if (!isRecord(request))
@@ -350,12 +434,14 @@ export class McpGateway {
350
434
  void this.start();
351
435
  return {
352
436
  protocolVersion: "2025-06-18",
353
- capabilities: { tools: {} },
437
+ // Members start after this answer, so resources and prompts are always offered; a
438
+ // gateway whose members have none lists them empty, which MCP allows.
439
+ capabilities: { tools: {}, resources: {}, prompts: {} },
354
440
  serverInfo: {
355
441
  name: this.options.serverName ?? "ocean-gateway",
356
442
  version: this.options.version ?? "0.0.0",
357
443
  },
358
- ...(this.options.instructions
444
+ ...(this.#instructions()
359
445
  ? { instructions: this.options.instructions }
360
446
  : {}),
361
447
  };
@@ -371,10 +457,37 @@ export class McpGateway {
371
457
  throw new GatewayError(-32602, "tools/call needs a tool name and an arguments object");
372
458
  return this.call(params.name, args);
373
459
  }
460
+ case "resources/list":
461
+ return { resources: await this.resources() };
462
+ case "resources/read": {
463
+ const params = isRecord(request.params) ? request.params : {};
464
+ if (typeof params.uri !== "string")
465
+ throw new GatewayError(-32602, "resources/read needs a uri");
466
+ return this.readResource(params.uri);
467
+ }
468
+ case "prompts/list":
469
+ return { prompts: await this.prompts() };
470
+ case "prompts/get": {
471
+ const params = isRecord(request.params) ? request.params : {};
472
+ const args = params.arguments ?? {};
473
+ if (typeof params.name !== "string" || !isRecord(args))
474
+ throw new GatewayError(-32602, "prompts/get needs a prompt name and an arguments object");
475
+ return this.getPrompt(params.name, args);
476
+ }
374
477
  default:
375
478
  throw new GatewayError(-32601, `Unsupported MCP method: ${request.method ?? ""}`);
376
479
  }
377
480
  }
481
+ #instructions() {
482
+ const { instructions, instructionsMember } = this.options;
483
+ if (!instructions)
484
+ return false;
485
+ if (!instructionsMember)
486
+ return true;
487
+ const access = this.options.access ?? { clients: {} };
488
+ return this.members.some((member) => member.capability === instructionsMember &&
489
+ canSee(access, this.#client, member));
490
+ }
378
491
  close() {
379
492
  for (const client of this.#clients)
380
493
  client.close();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/market",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,8 @@ import { access, chmod, mkdir, readdir, readFile, stat, writeFile, } from "node:
4
4
  import path from "node:path";
5
5
  import { promisify } from "node:util";
6
6
  import { doctorMemoryIndexes, syncMemoryIndexes, } from "@ocean/brain/memory/index-sync.js";
7
- import { BRAIN_RECORD_DIRS, CHARTER_DIR, enginePath, oceanEnv, oceanPath, POLICIES_DIR, PROJECTS_DIR, projectDir, repoPath, SYSTEM_DIR, workspaceTasksRoot, } from "@ocean/core/shared/paths.js";
7
+ import { memorySettings } from "@ocean/brain/memory/memory-audit.js";
8
+ import { BRAIN_RECORD_DIRS, CHARTER_DIR, enginePath, INBOX_DIR, oceanEnv, oceanPath, POLICIES_DIR, PROJECTS_DIR, projectDir, repoPath, SYSTEM_DIR, workspaceTasksRoot, } from "@ocean/core/shared/paths.js";
8
9
  import { ensureProjectLayout, listProjectManifests, PROJECT_ROOT_ENTRIES, scanProjectManifests, UNCATEGORIZED, } from "@ocean/core/shared/project-resolution.js";
9
10
  const execFile = promisify(execFileCallback);
10
11
  const roots = [...BRAIN_RECORD_DIRS, PROJECTS_DIR, SYSTEM_DIR];
@@ -76,10 +77,19 @@ async function checkStructure() {
76
77
  // Session summaries are machine-written records that quote links from past chats, and
77
78
  // bridge/skills holds installed third-party skill docs whose links are relative to their upstream
78
79
  // repo. Neither is authored here, so their links are not ours to fix.
79
- const UNCHECKED_LINK_DIRS = ["sessions", "skills"];
80
+ // Soft-deleted memory in state/memory/trash keeps the links it had when it was deleted.
81
+ const UNCHECKED_LINK_DIRS = [
82
+ "sessions",
83
+ "skills",
84
+ path.join("state", "memory", "trash"),
85
+ ];
80
86
  async function checkLinks() {
81
87
  const findings = [];
82
- const unchecked = UNCHECKED_LINK_DIRS.map((name) => path.join(oceanPath(SYSTEM_DIR), name) + path.sep);
88
+ const unchecked = [
89
+ ...UNCHECKED_LINK_DIRS.map((name) => path.join(oceanPath(SYSTEM_DIR), name) + path.sep),
90
+ // Candidates hold text copied from other tools' memory, links relative to where it was.
91
+ path.join(oceanPath(INBOX_DIR), "candidates") + path.sep,
92
+ ];
83
93
  for (const root of roots) {
84
94
  for (const file of await markdownFiles(oceanPath(root))) {
85
95
  if (unchecked.some((prefix) => file.startsWith(prefix)))
@@ -429,6 +439,43 @@ async function checkProfileAuthority() {
429
439
  },
430
440
  ];
431
441
  }
442
+ // Session fact capture (T-313) is asked once at `ocean client apply`; a machine that never
443
+ // answered (a non-interactive install) captures nothing until the owner chooses.
444
+ async function checkSessionFacts() {
445
+ let saved;
446
+ try {
447
+ saved = (await memorySettings()).sessionFacts;
448
+ }
449
+ catch (error) {
450
+ return [
451
+ {
452
+ code: "MEMORY_SETTINGS_INVALID",
453
+ severity: "WARN",
454
+ message: error instanceof Error ? error.message : String(error),
455
+ fixable: false,
456
+ },
457
+ ];
458
+ }
459
+ if (saved === null)
460
+ return [
461
+ {
462
+ code: "SESSION_FACTS_UNSET",
463
+ severity: "WARN",
464
+ message: "automatic fact capture from sessions is off until you choose: ocean memory session-facts on|off",
465
+ fixable: false,
466
+ },
467
+ ];
468
+ return [
469
+ {
470
+ code: saved ? "SESSION_FACTS_ON" : "SESSION_FACTS_OFF",
471
+ severity: "OK",
472
+ message: saved
473
+ ? "facts from finished and compacted sessions go to the review queue"
474
+ : "automatic fact capture from sessions is off (owner's choice)",
475
+ fixable: false,
476
+ },
477
+ ];
478
+ }
432
479
  async function checkVersion() {
433
480
  const packageFile = enginePath("package.json");
434
481
  if (!(await exists(packageFile)))
@@ -495,6 +542,7 @@ async function scanWorkspace(wrapperManager) {
495
542
  ...(await checkStructure()),
496
543
  ...(await checkLinks()),
497
544
  ...(await checkMemory()),
545
+ ...(await checkSessionFacts()),
498
546
  ...(await checkVersion()),
499
547
  ...(await checkGovernance()),
500
548
  ...(await checkWrappers(wrapperManager)),
@@ -2,21 +2,24 @@ import { appendFile, mkdir, readFile, stat, writeFile } from "node:fs/promises";
2
2
  import path from "node:path";
3
3
  import { withFileLock } from "@ocean/core/shared/fs-utils.js";
4
4
  import { oceanPath, SYSTEM_DIR } from "@ocean/core/shared/paths.js";
5
+ import { serverVersion } from "./server-version.js";
5
6
  export const CALL_LEDGER_RETENTION_DAYS = 90;
6
7
  // Past this size the oldest half goes, whatever its age.
7
8
  const MAX_LEDGER_BYTES = 2_000_000;
8
9
  const DAY_MS = 86_400_000;
9
10
  const NAME = /^[\w .@/-]{1,64}$/;
11
+ const VERSION = /^[\w.+-]{1,32}$/;
10
12
  export function callLedgerFile() {
11
13
  return oceanPath(SYSTEM_DIR, "state", "mcp", "calls.jsonl");
12
14
  }
13
15
  // Built field by field so nothing else a caller holds can reach the file.
14
- export function ledgerLine(client, tool, ok, now = new Date()) {
16
+ export function ledgerLine(client, tool, ok, now = new Date(), version) {
15
17
  const call = {
16
18
  ts: now.toISOString(),
17
19
  client: NAME.test(client) ? client : "unknown",
18
20
  tool: NAME.test(tool) ? tool : "unknown",
19
21
  ok: ok === true,
22
+ ...(version && VERSION.test(version) ? { version } : {}),
20
23
  };
21
24
  return `${JSON.stringify(call)}\n`;
22
25
  }
@@ -90,7 +93,8 @@ export async function recordMcpCall(client, tool, ok, now = new Date()) {
90
93
  try {
91
94
  await mkdir(path.dirname(file), { recursive: true, mode: 0o700 });
92
95
  await withFileLock(file, async () => {
93
- await appendFile(file, ledgerLine(client, tool, ok, now), {
96
+ const version = await serverVersion();
97
+ await appendFile(file, ledgerLine(client, tool, ok, now, version), {
94
98
  mode: 0o600,
95
99
  });
96
100
  const size = (await stat(file)).size;
@@ -107,6 +111,26 @@ export async function recordMcpCall(client, tool, ok, now = new Date()) {
107
111
  // Best effort only.
108
112
  }
109
113
  }
114
+ // Per client, the server version its newest call was answered by, within `days`. A version that
115
+ // differs from what is installed is a server process that started before the upgrade.
116
+ export function runningVersions(calls, now = new Date(), days = 7) {
117
+ const cutoff = now.getTime() - days * DAY_MS;
118
+ const newest = new Map();
119
+ for (const call of calls) {
120
+ if (!call.version || Date.parse(call.ts) < cutoff)
121
+ continue;
122
+ const seen = newest.get(call.client);
123
+ if (!seen || call.ts > seen.ts)
124
+ newest.set(call.client, call);
125
+ }
126
+ return [...newest.values()]
127
+ .map((call) => ({
128
+ client: call.client,
129
+ version: call.version,
130
+ last: call.ts,
131
+ }))
132
+ .sort((a, b) => a.client.localeCompare(b.client));
133
+ }
110
134
  // Tests run many workspaces in one process.
111
135
  export function resetCallLedgerForTests() {
112
136
  prunedThisProcess = false;
@@ -7,6 +7,8 @@ export class McpClient {
7
7
  pending = new Map();
8
8
  buffer = "";
9
9
  tools = new Map();
10
+ // What the server said it offers in `initialize`; resources and prompts are asked for only then.
11
+ serverCapabilities = {};
10
12
  constructor(options) {
11
13
  this.options = options;
12
14
  }
@@ -40,11 +42,16 @@ export class McpClient {
40
42
  this.child.stdout.on("data", (chunk) => this.consume(chunk));
41
43
  this.child.once("error", (error) => this.failPending(error));
42
44
  this.child.once("close", () => this.failPending(new Error("MCP server stopped")));
43
- await this.request("initialize", {
45
+ const initialized = (await this.request("initialize", {
44
46
  protocolVersion: "2025-06-18",
45
47
  capabilities: {},
46
48
  clientInfo: { name: "ocean", version: "0.3.2" },
47
- });
49
+ }));
50
+ const capabilities = initialized?.capabilities;
51
+ this.serverCapabilities =
52
+ capabilities && typeof capabilities === "object"
53
+ ? capabilities
54
+ : {};
48
55
  this.notify("notifications/initialized", {});
49
56
  }
50
57
  async listTools() {
@@ -80,6 +87,24 @@ export class McpClient {
80
87
  throw new Error(`MCP tool is not allowed: ${name}`);
81
88
  return this.request("tools/call", { name, arguments: arguments_ });
82
89
  }
90
+ async listResources() {
91
+ if (!this.serverCapabilities.resources)
92
+ return [];
93
+ const result = (await this.request("resources/list", {}));
94
+ return result.resources ?? [];
95
+ }
96
+ readResource(uri) {
97
+ return this.request("resources/read", { uri });
98
+ }
99
+ async listPrompts() {
100
+ if (!this.serverCapabilities.prompts)
101
+ return [];
102
+ const result = (await this.request("prompts/list", {}));
103
+ return result.prompts ?? [];
104
+ }
105
+ getPrompt(name, arguments_) {
106
+ return this.request("prompts/get", { name, arguments: arguments_ });
107
+ }
83
108
  close() {
84
109
  if (this.child) {
85
110
  this.child.stdin.destroy();
@@ -18,7 +18,7 @@ import { openSessionStoreReadOnly } from "@ocean/loop/infrastructure/persistence
18
18
  import { listTasksForFolder } from "@ocean/loop/tasks/list-tasks.js";
19
19
  import { hasFailures, workspaceReport } from "../../doctor/workspace-doctor.js";
20
20
  import { recordMcpCall } from "./call-ledger.js";
21
- import { serverVersion } from "./server-version.js";
21
+ import { installedVersion, serverVersion } from "./server-version.js";
22
22
  import { McpToolRegistry } from "./tool-registry.js";
23
23
  const tools = new McpToolRegistry([
24
24
  {
@@ -423,13 +423,19 @@ const MUTATING_TOOLS = new Set([
423
423
  // source of every memory change it makes.
424
424
  let clientName = "unknown";
425
425
  async function callTool(name, args, ports) {
426
- if (name === "ocean_status")
426
+ if (name === "ocean_status") {
427
+ const version = await serverVersion();
428
+ const installed = await installedVersion();
427
429
  return {
428
430
  name: "Ocean",
429
- version: await serverVersion(),
431
+ version,
432
+ // A newer release installed since this server started: the client must restart it.
433
+ installed,
434
+ restartNeeded: version !== installed,
430
435
  workspace: oceanPath(),
431
436
  mcp: "stdio",
432
437
  };
438
+ }
433
439
  if (name === "ocean_doctor") {
434
440
  const report = await workspaceReport(ports.wrapperManager);
435
441
  return {
@@ -2,19 +2,22 @@ import { readFile } from "node:fs/promises";
2
2
  // The version the MCP servers report, read from this package's manifest (T-307: it was
3
3
  // hard-coded and drifted from the release).
4
4
  let cached;
5
+ // Cached on first read, which a server does at `initialize`: the version this process started
6
+ // as, even after a newer release is installed over it (T-313: a stale server is detected by it).
5
7
  export async function serverVersion() {
6
- if (cached)
7
- return cached;
8
+ cached ??= await installedVersion();
9
+ return cached;
10
+ }
11
+ // Read from disk on every call: what is installed now, whatever this process started as.
12
+ export async function installedVersion() {
8
13
  try {
9
14
  const manifest = JSON.parse(await readFile(new URL("../../../package.json", import.meta.url), "utf8"));
10
- cached =
11
- typeof manifest.version === "string" && manifest.version.trim()
12
- ? manifest.version
13
- : "unknown";
15
+ return typeof manifest.version === "string" && manifest.version.trim()
16
+ ? manifest.version
17
+ : "unknown";
14
18
  }
15
19
  catch {
16
- cached = "unknown";
20
+ return "unknown";
17
21
  }
18
- return cached;
19
22
  }
20
23
  //# sourceMappingURL=server-version.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocean/services",
3
- "version": "1.5.0",
3
+ "version": "1.6.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.5.0",
8
+ "version": "1.6.0",
9
9
  "engines": {
10
- "ocean": ">=1.5.0"
10
+ "ocean": ">=1.6.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.5.0",
26
+ "version": "1.6.0",
27
27
  "engines": {
28
- "ocean": ">=1.5.0"
28
+ "ocean": ">=1.6.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.5.0",
44
+ "version": "1.6.0",
45
45
  "engines": {
46
- "ocean": ">=1.5.0"
46
+ "ocean": ">=1.6.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.5.0",
62
+ "version": "1.6.0",
63
63
  "engines": {
64
- "ocean": ">=1.5.0"
64
+ "ocean": ">=1.6.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.5.0",
80
+ "version": "1.6.0",
81
81
  "engines": {
82
- "ocean": ">=1.5.0"
82
+ "ocean": ">=1.6.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.5.0",
98
+ "version": "1.6.0",
99
99
  "engines": {
100
- "ocean": ">=1.5.0"
100
+ "ocean": ">=1.6.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.5.0",
116
+ "version": "1.6.0",
117
117
  "engines": {
118
- "ocean": ">=1.5.0"
118
+ "ocean": ">=1.6.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.5.0",
134
+ "version": "1.6.0",
135
135
  "engines": {
136
- "ocean": ">=1.5.0"
136
+ "ocean": ">=1.6.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.5.0",
152
+ "version": "1.6.0",
153
153
  "engines": {
154
- "ocean": ">=1.5.0"
154
+ "ocean": ">=1.6.0"
155
155
  },
156
156
  "source": {
157
157
  "type": "path",
@@ -183,9 +183,9 @@
183
183
  "npx"
184
184
  ]
185
185
  },
186
- "version": "1.5.0",
186
+ "version": "1.6.0",
187
187
  "engines": {
188
- "ocean": ">=1.5.0"
188
+ "ocean": ">=1.6.0"
189
189
  },
190
190
  "source": {
191
191
  "type": "path",
@@ -218,9 +218,9 @@
218
218
  "kind": "mcp",
219
219
  "name": "dev.ocean/mcp-gateway",
220
220
  "description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
221
- "version": "1.5.0",
221
+ "version": "1.6.0",
222
222
  "engines": {
223
- "ocean": ">=1.5.0"
223
+ "ocean": ">=1.6.0"
224
224
  },
225
225
  "source": {
226
226
  "type": "path",
@@ -262,9 +262,9 @@
262
262
  "kind": "mcp",
263
263
  "name": "dev.ocean/obsidian",
264
264
  "description": "Ocean's Obsidian vault bridge over MCP.",
265
- "version": "1.5.0",
265
+ "version": "1.6.0",
266
266
  "engines": {
267
- "ocean": ">=1.5.0"
267
+ "ocean": ">=1.6.0"
268
268
  },
269
269
  "source": {
270
270
  "type": "path",
@@ -306,9 +306,9 @@
306
306
  "kind": "mcp",
307
307
  "name": "dev.ocean/ocean",
308
308
  "description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
309
- "version": "1.5.0",
309
+ "version": "1.6.0",
310
310
  "engines": {
311
- "ocean": ">=1.5.0"
311
+ "ocean": ">=1.6.0"
312
312
  },
313
313
  "source": {
314
314
  "type": "path",
@@ -360,9 +360,9 @@
360
360
  "npx"
361
361
  ]
362
362
  },
363
- "version": "1.5.0",
363
+ "version": "1.6.0",
364
364
  "engines": {
365
- "ocean": ">=1.5.0"
365
+ "ocean": ">=1.6.0"
366
366
  },
367
367
  "source": {
368
368
  "type": "path",