@amoree-code/ocean 2.12.0 → 2.14.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.
- package/dist/infrastructure/process/service.js +17 -0
- package/dist/interfaces/cli/command-registry.js +2 -1
- package/dist/interfaces/cli/context-command.js +3 -1
- package/dist/interfaces/cli/help-command.js +1 -1
- package/dist/interfaces/cli/tasks-command.js +31 -1
- 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/dist/tasks/archive-tasks.js +1 -1
- package/node_modules/@ocean/loop/dist/tasks/sync-task-prs.js +122 -0
- package/node_modules/@ocean/loop/package.json +1 -1
- package/node_modules/@ocean/market/package.json +1 -1
- package/node_modules/@ocean/services/dist/day/day.js +1 -0
- package/node_modules/@ocean/services/dist/projects/projects-overview.js +1 -1
- package/node_modules/@ocean/services/package.json +1 -1
- package/ocean-marketplace.json +37 -37
- package/package.json +7 -7
- package/skills/core/weekly-review/SKILL.md +1 -1
- package/templates/workspace/charter/policies/contracts/task.md +4 -2
- package/templates/workspace/charter/policies/task.md +6 -2
|
@@ -112,6 +112,23 @@ export function startBackgroundSchedules() {
|
|
|
112
112
|
// the next tick runs it
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
// Task state follows linked GitHub PRs (open → in-qa, merged → done via the completion gate).
|
|
116
|
+
// Session starts run it in the background; it needs `gh` and never blocks the session.
|
|
117
|
+
export function startBackgroundTaskSync() {
|
|
118
|
+
if (process.env.OCEAN_NO_PULL_ON_START === "1")
|
|
119
|
+
return;
|
|
120
|
+
try {
|
|
121
|
+
spawn(process.execPath, [process.argv[1], "tasks", "sync", "--all"], {
|
|
122
|
+
detached: true,
|
|
123
|
+
stdio: "ignore",
|
|
124
|
+
})
|
|
125
|
+
.on("error", () => { })
|
|
126
|
+
.unref();
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
// the next session start runs it
|
|
130
|
+
}
|
|
131
|
+
}
|
|
115
132
|
const runCommand = (command, args) => promisify(execFile)(command, args);
|
|
116
133
|
function serviceContext(options) {
|
|
117
134
|
const home = options.home ?? os.homedir();
|
|
@@ -45,7 +45,7 @@ import { selectProfileForTask } from "../../application/profiles/profile-suggest
|
|
|
45
45
|
import { listSchedules, runDueSchedules, runSchedule, runSchedulerWorker, runSchedulerWorkerOnce, saveSchedule, setScheduleEnabled, } from "../../application/scheduler/local-scheduler.js";
|
|
46
46
|
import { defaultAgentRuntime, defaultBrainIndexPort, defaultProviderRegistry, defaultSessionStoreFactory, defaultSessionStoreOpener, defaultWrapperManager, } from "../../composition/runtime.js";
|
|
47
47
|
import { loadRuntimeConfig } from "../../infrastructure/filesystem/runtime-config-loader.js";
|
|
48
|
-
import { ensureService, restartService, runService, startBackgroundPull, startBackgroundRhythm, } from "../../infrastructure/process/service.js";
|
|
48
|
+
import { ensureService, restartService, runService, startBackgroundPull, startBackgroundRhythm, startBackgroundTaskSync, } from "../../infrastructure/process/service.js";
|
|
49
49
|
import { createOllamaEmbedder } from "../../infrastructure/providers/ollama-embedder.js";
|
|
50
50
|
import { loadProviderRegistry } from "../../infrastructure/providers/provider-registry.js";
|
|
51
51
|
import { installShellPath, registerProvider, setProviderEnabled, syncProviderWrappers, wrapperDoctor, wrapperStatus, } from "../../infrastructure/wrappers/wrapper-manager.js";
|
|
@@ -695,6 +695,7 @@ async function commandHook() {
|
|
|
695
695
|
startBackgroundSync();
|
|
696
696
|
startBackgroundPull();
|
|
697
697
|
startBackgroundRhythm();
|
|
698
|
+
startBackgroundTaskSync();
|
|
698
699
|
const inline = flags.find((arg) => arg.startsWith("--client="));
|
|
699
700
|
const clientIndex = flags.indexOf("--client");
|
|
700
701
|
const client = inline
|
|
@@ -28,7 +28,9 @@ export async function runContextCommand(json = false) {
|
|
|
28
28
|
const resolution = await resolveProject(process.cwd());
|
|
29
29
|
const project = resolution.status === "bound" ? resolution.projectId : null;
|
|
30
30
|
const tasks = project
|
|
31
|
-
? (await listTasks(undefined, project)).filter((task) => task.state === "active" ||
|
|
31
|
+
? (await listTasks(undefined, project)).filter((task) => task.state === "active" ||
|
|
32
|
+
task.state === "in-qa" ||
|
|
33
|
+
task.state === "blocked")
|
|
32
34
|
: [];
|
|
33
35
|
// Unreadable rules are shown as such, never as an empty list.
|
|
34
36
|
const problems = [];
|
|
@@ -48,7 +48,7 @@ export const commandHelp = {
|
|
|
48
48
|
],
|
|
49
49
|
tasks: [
|
|
50
50
|
"List, create, claim, checkpoint, verify and complete tasks.",
|
|
51
|
-
"ocean tasks list [state] [--project <id>] [--pretty]|new <title> [--project <id>]|doctor [--all]|index [--write]|checkpoint <id> --note <text> [--next <text>]|verify <id>|complete <id>|claim <id> --by <name> [--paths a,b] [--force]|release <id> [--by <name>] [--force]|archive [--apply|--auto]|renumber --project <id> --prefix <PREFIX> [--write]",
|
|
51
|
+
"ocean tasks list [state] [--project <id>] [--pretty]|new <title> [--project <id>]|doctor [--all]|index [--write]|checkpoint <id> --note <text> [--next <text>]|verify <id>|complete <id>|sync [--all] [--dry-run]|claim <id> --by <name> [--paths a,b] [--force]|release <id> [--by <name>] [--force]|archive [--apply|--auto]|renumber --project <id> --prefix <PREFIX> [--write]",
|
|
52
52
|
],
|
|
53
53
|
loop: [
|
|
54
54
|
"Start, inspect and stop task loops (repeated agent runs on one task).",
|
|
@@ -12,6 +12,7 @@ import { claimTask, releaseTask } from "@ocean/loop/tasks/claim-task.js";
|
|
|
12
12
|
import { listTasks, listTasksForFolder, } from "@ocean/loop/tasks/list-tasks.js";
|
|
13
13
|
import { newTask } from "@ocean/loop/tasks/new-task.js";
|
|
14
14
|
import { renumberTasks } from "@ocean/loop/tasks/renumber-tasks.js";
|
|
15
|
+
import { syncTaskPrs, } from "@ocean/loop/tasks/sync-task-prs.js";
|
|
15
16
|
import { verifyAndRecord } from "@ocean/loop/tasks/task-verification.js";
|
|
16
17
|
import { verificationReadiness } from "@ocean/loop/tasks/verification-readiness.js";
|
|
17
18
|
import { taskReviewer } from "../../infrastructure/providers/task-reviewer.js";
|
|
@@ -43,6 +44,14 @@ function recordedVerification(id, root) {
|
|
|
43
44
|
reviewer: taskReviewer,
|
|
44
45
|
});
|
|
45
46
|
}
|
|
47
|
+
// A linked PR's state, read with the owner's own `gh` login.
|
|
48
|
+
async function githubPrState(link) {
|
|
49
|
+
const { stdout } = await execFile("gh", ["pr", "view", link.url, "--json", "state", "--jq", ".state"], { timeout: 20_000 });
|
|
50
|
+
const state = stdout.trim();
|
|
51
|
+
if (state === "OPEN" || state === "MERGED" || state === "CLOSED")
|
|
52
|
+
return state;
|
|
53
|
+
throw new Error(`${link.url}: unexpected PR state "${state}"`);
|
|
54
|
+
}
|
|
46
55
|
// `ocean tasks list --pretty`: one aligned row per task, for a person rather than a tool.
|
|
47
56
|
function taskTable(tasks) {
|
|
48
57
|
if (!tasks.length)
|
|
@@ -184,6 +193,27 @@ export async function runTasksCommand(action, args) {
|
|
|
184
193
|
process.exitCode = 1;
|
|
185
194
|
return;
|
|
186
195
|
}
|
|
196
|
+
if (action === "sync") {
|
|
197
|
+
// Task state follows linked GitHub PRs: open → in-qa, all merged → done via the completion
|
|
198
|
+
// gate. Session start runs `--all` in the background.
|
|
199
|
+
const projects = args.includes("--all")
|
|
200
|
+
? await projectsWithTasks()
|
|
201
|
+
: [projectId];
|
|
202
|
+
const apply = !args.includes("--dry-run");
|
|
203
|
+
const report = {};
|
|
204
|
+
for (const project of projects) {
|
|
205
|
+
const root = resolveWithin(oceanPath(projectDir(project)), "tasks");
|
|
206
|
+
const outcome = await syncTaskPrs(root, {
|
|
207
|
+
apply,
|
|
208
|
+
fetchPr: githubPrState,
|
|
209
|
+
complete: (id, taskRoot) => completeTask(id, taskRoot, { verify: recordedVerification }),
|
|
210
|
+
});
|
|
211
|
+
if (outcome.changed.length || outcome.skipped.length)
|
|
212
|
+
report[project] = outcome;
|
|
213
|
+
}
|
|
214
|
+
console.log(JSON.stringify({ apply, projects: report }, null, 2));
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
187
217
|
if (action === "complete") {
|
|
188
218
|
const id = args[0];
|
|
189
219
|
if (!id) {
|
|
@@ -251,7 +281,7 @@ export async function runTasksCommand(action, args) {
|
|
|
251
281
|
return;
|
|
252
282
|
}
|
|
253
283
|
if (action !== "archive") {
|
|
254
|
-
console.error("Usage: ocean tasks list [state] [--project <id>] [--pretty]|new <title> [--project <id>]|doctor [--all]|index [--write]|checkpoint <id> --note <text> [--next <text>]|verify <id>|complete <id>|claim <id> --by <name> [--paths a,b] [--force]|release <id> [--by <name>] [--force]|archive [--apply|--auto]|renumber --project <id> --prefix <PREFIX> [--write]");
|
|
284
|
+
console.error("Usage: ocean tasks list [state] [--project <id>] [--pretty]|new <title> [--project <id>]|doctor [--all]|index [--write]|checkpoint <id> --note <text> [--next <text>]|verify <id>|complete <id>|sync [--all] [--dry-run]|claim <id> --by <name> [--paths a,b] [--force]|release <id> [--by <name>] [--force]|archive [--apply|--auto]|renumber --project <id> --prefix <PREFIX> [--write]");
|
|
255
285
|
process.exitCode = 1;
|
|
256
286
|
return;
|
|
257
287
|
}
|
|
@@ -18,7 +18,7 @@ function section(source, heading) {
|
|
|
18
18
|
const nextHeading = /^## /m.exec(source.slice(start));
|
|
19
19
|
return source.slice(start, nextHeading ? start + nextHeading.index : source.length);
|
|
20
20
|
}
|
|
21
|
-
function completionIssues(source) {
|
|
21
|
+
export function completionIssues(source) {
|
|
22
22
|
const issues = [];
|
|
23
23
|
if (/^\s*-\s+"?\[ \] /m.test(source))
|
|
24
24
|
issues.push("unchecked work");
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { readdir, readFile, writeFile } from "node:fs/promises";
|
|
2
|
+
import { resolveWithin } from "@ocean/core/shared/paths.js";
|
|
3
|
+
import { completionIssues } from "./archive-tasks.js";
|
|
4
|
+
// States the sync may move. `blocked`, `done` and `cancelled` are the owner's or the gate's.
|
|
5
|
+
const SYNCED = new Set(["todo", "active", "paused", "in-qa"]);
|
|
6
|
+
const PR_URL = /https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)/g;
|
|
7
|
+
export function prLinks(source) {
|
|
8
|
+
const seen = new Map();
|
|
9
|
+
for (const match of source.matchAll(PR_URL)) {
|
|
10
|
+
const repo = match[1];
|
|
11
|
+
const number = Number(match[2]);
|
|
12
|
+
const url = `https://github.com/${repo}/pull/${number}`;
|
|
13
|
+
if (!seen.has(url))
|
|
14
|
+
seen.set(url, { url, repo, number });
|
|
15
|
+
}
|
|
16
|
+
return [...seen.values()];
|
|
17
|
+
}
|
|
18
|
+
// The state the linked PRs call for, or null when they call for no move. Closed-unmerged PRs
|
|
19
|
+
// do not count: a task whose only PR was closed is left alone.
|
|
20
|
+
export function targetState(states) {
|
|
21
|
+
if (states.includes("OPEN"))
|
|
22
|
+
return "in-qa";
|
|
23
|
+
if (states.includes("MERGED"))
|
|
24
|
+
return "done";
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
function field(source, name) {
|
|
28
|
+
const end = source.indexOf("\n---", 4);
|
|
29
|
+
const head = end > 0 ? source.slice(0, end) : source;
|
|
30
|
+
return head.match(new RegExp(`^${name}:\\s*(.+)$`, "m"))?.[1]?.trim();
|
|
31
|
+
}
|
|
32
|
+
function withState(source, state, note, day) {
|
|
33
|
+
let next = source
|
|
34
|
+
.replace(/^state:\s*.+$/m, `state: ${state}`)
|
|
35
|
+
.replace(/^updated:\s*.+$/m, `updated: ${day}`);
|
|
36
|
+
const log = /^## Log[ \t]*\r?\n\r?\n?/m.exec(next);
|
|
37
|
+
if (log) {
|
|
38
|
+
const at = log.index + log[0].length;
|
|
39
|
+
next = `${next.slice(0, at)}- ${day} — ${note}\n\n${next.slice(at)}`;
|
|
40
|
+
}
|
|
41
|
+
return next;
|
|
42
|
+
}
|
|
43
|
+
export async function syncTaskPrs(root, options) {
|
|
44
|
+
const result = { changed: [], skipped: [] };
|
|
45
|
+
const day = (options.now ?? new Date()).toISOString().slice(0, 10);
|
|
46
|
+
let entries;
|
|
47
|
+
try {
|
|
48
|
+
entries = await readdir(root, { withFileTypes: true });
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
for (const entry of entries) {
|
|
54
|
+
if (!entry.isDirectory() || entry.name === "archive")
|
|
55
|
+
continue;
|
|
56
|
+
const file = resolveWithin(root, entry.name, "task.md");
|
|
57
|
+
let source;
|
|
58
|
+
try {
|
|
59
|
+
source = await readFile(file, "utf8");
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const id = field(source, "id") ?? entry.name;
|
|
65
|
+
const from = field(source, "state") ?? "";
|
|
66
|
+
if (!SYNCED.has(from))
|
|
67
|
+
continue;
|
|
68
|
+
const links = prLinks(source);
|
|
69
|
+
if (!links.length)
|
|
70
|
+
continue;
|
|
71
|
+
let states;
|
|
72
|
+
try {
|
|
73
|
+
states = await Promise.all(links.map((link) => options.fetchPr(link)));
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
result.skipped.push({
|
|
77
|
+
id,
|
|
78
|
+
reason: error instanceof Error ? error.message : String(error),
|
|
79
|
+
});
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
const to = targetState(states);
|
|
83
|
+
if (!to || to === from)
|
|
84
|
+
continue;
|
|
85
|
+
const prs = links.map((link, index) => `${link.url} (${states[index]})`);
|
|
86
|
+
if (to === "in-qa") {
|
|
87
|
+
result.changed.push({ id, from, to, prs });
|
|
88
|
+
if (options.apply)
|
|
89
|
+
await writeFile(file, withState(source, "in-qa", `${from} → in-qa (sync): PR open.`, day));
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
// Every linked PR is merged: the completion gate decides whether it is done. Its cheap
|
|
93
|
+
// checks run first, so a task that cannot complete is not re-verified on every sync.
|
|
94
|
+
const issues = completionIssues(source);
|
|
95
|
+
if (!issues.length && !options.apply) {
|
|
96
|
+
result.changed.push({ id, from, to, prs });
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
let reason = issues.length
|
|
100
|
+
? `Cannot complete ${id}: ${issues.join("; ")}`
|
|
101
|
+
: undefined;
|
|
102
|
+
if (!reason) {
|
|
103
|
+
try {
|
|
104
|
+
await options.complete(entry.name, root);
|
|
105
|
+
result.changed.push({ id, from, to, prs });
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
reason = error instanceof Error ? error.message : String(error);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// Refused: the task waits in `in-qa`. The log gets a line only when the state moves.
|
|
113
|
+
result.skipped.push({ id, reason });
|
|
114
|
+
if (from === "in-qa")
|
|
115
|
+
continue;
|
|
116
|
+
result.changed.push({ id, from, to: "in-qa", prs, reason });
|
|
117
|
+
if (options.apply)
|
|
118
|
+
await writeFile(file, withState(await readFile(file, "utf8"), "in-qa", `${from} → in-qa (sync): PR merged, not completed: ${reason}`, day));
|
|
119
|
+
}
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=sync-task-prs.js.map
|
|
@@ -10,7 +10,7 @@ import { listTasks } from "@ocean/loop/tasks/list-tasks.js";
|
|
|
10
10
|
const execFile = promisify(execFileCallback);
|
|
11
11
|
const ACTIVE_DAYS = 60;
|
|
12
12
|
const WARM_DAYS = 365;
|
|
13
|
-
const OPEN_STATES = new Set(["active", "todo", "paused", "blocked"]);
|
|
13
|
+
const OPEN_STATES = new Set(["active", "in-qa", "todo", "paused", "blocked"]);
|
|
14
14
|
async function git(cwd, args) {
|
|
15
15
|
try {
|
|
16
16
|
const { stdout } = await execFile("git", ["-C", cwd, ...args], {
|
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": "2.
|
|
8
|
+
"version": "2.14.0",
|
|
9
9
|
"engines": {
|
|
10
|
-
"ocean": ">=2.
|
|
10
|
+
"ocean": ">=2.14.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": "2.
|
|
26
|
+
"version": "2.14.0",
|
|
27
27
|
"engines": {
|
|
28
|
-
"ocean": ">=2.
|
|
28
|
+
"ocean": ">=2.14.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": "2.
|
|
44
|
+
"version": "2.14.0",
|
|
45
45
|
"engines": {
|
|
46
|
-
"ocean": ">=2.
|
|
46
|
+
"ocean": ">=2.14.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.daily-harvest",
|
|
62
|
-
"version": "2.
|
|
62
|
+
"version": "2.14.0",
|
|
63
63
|
"engines": {
|
|
64
|
-
"ocean": ">=2.
|
|
64
|
+
"ocean": ">=2.14.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.design-thinking",
|
|
80
|
-
"version": "2.
|
|
80
|
+
"version": "2.14.0",
|
|
81
81
|
"engines": {
|
|
82
|
-
"ocean": ">=2.
|
|
82
|
+
"ocean": ">=2.14.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.graft",
|
|
98
|
-
"version": "2.
|
|
98
|
+
"version": "2.14.0",
|
|
99
99
|
"engines": {
|
|
100
|
-
"ocean": ">=2.
|
|
100
|
+
"ocean": ">=2.14.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.loop",
|
|
116
|
-
"version": "2.
|
|
116
|
+
"version": "2.14.0",
|
|
117
117
|
"engines": {
|
|
118
|
-
"ocean": ">=2.
|
|
118
|
+
"ocean": ">=2.14.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.memory-review",
|
|
134
|
-
"version": "2.
|
|
134
|
+
"version": "2.14.0",
|
|
135
135
|
"engines": {
|
|
136
|
-
"ocean": ">=2.
|
|
136
|
+
"ocean": ">=2.14.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.session-handoff",
|
|
152
|
-
"version": "2.
|
|
152
|
+
"version": "2.14.0",
|
|
153
153
|
"engines": {
|
|
154
|
-
"ocean": ">=2.
|
|
154
|
+
"ocean": ">=2.14.0"
|
|
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": "2.
|
|
170
|
+
"version": "2.14.0",
|
|
171
171
|
"engines": {
|
|
172
|
-
"ocean": ">=2.
|
|
172
|
+
"ocean": ">=2.14.0"
|
|
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": "2.
|
|
188
|
+
"version": "2.14.0",
|
|
189
189
|
"engines": {
|
|
190
|
-
"ocean": ">=2.
|
|
190
|
+
"ocean": ">=2.14.0"
|
|
191
191
|
},
|
|
192
192
|
"source": {
|
|
193
193
|
"type": "path",
|
|
@@ -203,16 +203,16 @@
|
|
|
203
203
|
{
|
|
204
204
|
"kind": "skill",
|
|
205
205
|
"name": "dev.ocean.skills.weekly-review",
|
|
206
|
-
"version": "2.
|
|
206
|
+
"version": "2.14.0",
|
|
207
207
|
"engines": {
|
|
208
|
-
"ocean": ">=2.
|
|
208
|
+
"ocean": ">=2.14.0"
|
|
209
209
|
},
|
|
210
210
|
"source": {
|
|
211
211
|
"type": "path",
|
|
212
212
|
"path": "skills/core/weekly-review"
|
|
213
213
|
},
|
|
214
214
|
"integrity": {
|
|
215
|
-
"sha256": "
|
|
215
|
+
"sha256": "112aac4a9ec788a8c818dedec28989f62172ce1a0957112e979518f3dcb2452d"
|
|
216
216
|
},
|
|
217
217
|
"spec": {
|
|
218
218
|
"directory": "weekly-review"
|
|
@@ -258,9 +258,9 @@
|
|
|
258
258
|
"npx"
|
|
259
259
|
]
|
|
260
260
|
},
|
|
261
|
-
"version": "2.
|
|
261
|
+
"version": "2.14.0",
|
|
262
262
|
"engines": {
|
|
263
|
-
"ocean": ">=2.
|
|
263
|
+
"ocean": ">=2.14.0"
|
|
264
264
|
},
|
|
265
265
|
"source": {
|
|
266
266
|
"type": "path",
|
|
@@ -379,9 +379,9 @@
|
|
|
379
379
|
"npx"
|
|
380
380
|
]
|
|
381
381
|
},
|
|
382
|
-
"version": "2.
|
|
382
|
+
"version": "2.14.0",
|
|
383
383
|
"engines": {
|
|
384
|
-
"ocean": ">=2.
|
|
384
|
+
"ocean": ">=2.14.0"
|
|
385
385
|
},
|
|
386
386
|
"source": {
|
|
387
387
|
"type": "path",
|
|
@@ -445,9 +445,9 @@
|
|
|
445
445
|
"kind": "mcp",
|
|
446
446
|
"name": "dev.ocean/mcp-gateway",
|
|
447
447
|
"description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
|
|
448
|
-
"version": "2.
|
|
448
|
+
"version": "2.14.0",
|
|
449
449
|
"engines": {
|
|
450
|
-
"ocean": ">=2.
|
|
450
|
+
"ocean": ">=2.14.0"
|
|
451
451
|
},
|
|
452
452
|
"source": {
|
|
453
453
|
"type": "path",
|
|
@@ -489,9 +489,9 @@
|
|
|
489
489
|
"kind": "mcp",
|
|
490
490
|
"name": "dev.ocean/obsidian",
|
|
491
491
|
"description": "Ocean's Obsidian vault bridge over MCP.",
|
|
492
|
-
"version": "2.
|
|
492
|
+
"version": "2.14.0",
|
|
493
493
|
"engines": {
|
|
494
|
-
"ocean": ">=2.
|
|
494
|
+
"ocean": ">=2.14.0"
|
|
495
495
|
},
|
|
496
496
|
"source": {
|
|
497
497
|
"type": "path",
|
|
@@ -533,9 +533,9 @@
|
|
|
533
533
|
"kind": "mcp",
|
|
534
534
|
"name": "dev.ocean/ocean",
|
|
535
535
|
"description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
|
|
536
|
-
"version": "2.
|
|
536
|
+
"version": "2.14.0",
|
|
537
537
|
"engines": {
|
|
538
|
-
"ocean": ">=2.
|
|
538
|
+
"ocean": ">=2.14.0"
|
|
539
539
|
},
|
|
540
540
|
"source": {
|
|
541
541
|
"type": "path",
|
|
@@ -587,9 +587,9 @@
|
|
|
587
587
|
"npx"
|
|
588
588
|
]
|
|
589
589
|
},
|
|
590
|
-
"version": "2.
|
|
590
|
+
"version": "2.14.0",
|
|
591
591
|
"engines": {
|
|
592
|
-
"ocean": ">=2.
|
|
592
|
+
"ocean": ">=2.14.0"
|
|
593
593
|
},
|
|
594
594
|
"source": {
|
|
595
595
|
"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": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "AMEER ABDULKAREEM JABBAR LAMI",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"@langchain/core": "1.2.14",
|
|
54
54
|
"@langchain/langgraph": "1.4.19",
|
|
55
55
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
56
|
-
"@ocean/brain": "2.
|
|
57
|
-
"@ocean/context": "2.
|
|
58
|
-
"@ocean/core": "2.
|
|
59
|
-
"@ocean/loop": "2.
|
|
60
|
-
"@ocean/market": "2.
|
|
61
|
-
"@ocean/services": "2.
|
|
56
|
+
"@ocean/brain": "2.14.0",
|
|
57
|
+
"@ocean/context": "2.14.0",
|
|
58
|
+
"@ocean/core": "2.14.0",
|
|
59
|
+
"@ocean/loop": "2.14.0",
|
|
60
|
+
"@ocean/market": "2.14.0",
|
|
61
|
+
"@ocean/services": "2.14.0",
|
|
62
62
|
"playwright-core": "^1.48.0",
|
|
63
63
|
"sqlite-vec": "0.1.9",
|
|
64
64
|
"zod": "^4.6.5"
|
|
@@ -18,7 +18,7 @@ Take the owner from a full inbox to zero, one decision at a time. He decides; yo
|
|
|
18
18
|
3. Walk `00-inbox/captures/`: for each capture, file it where its type lives (routing.json),
|
|
19
19
|
turn it into a task or backlog line, or mark it `status: processed`.
|
|
20
20
|
4. List his notes in `02-personal/notes/` still `status: todo` and older than 7 days. For each,
|
|
21
|
-
suggest one of: a folder (`study/`, `work/`, `ideas/`, `archive/`), a status (`active`,
|
|
21
|
+
suggest one of: a folder (`study/`, `work/`, `ideas/`, `archive/`), a status (`active`, `in-qa`,
|
|
22
22
|
`paused`, `blocked`, `done`, `cancelled`), or "make it a project" (QuickAdd: Project from
|
|
23
23
|
this note). He acts on it in Obsidian; never move, rename or edit a note yourself.
|
|
24
24
|
5. Run `ocean interests decay` (dry run) and the brief's keep/skip feedback he gives.
|
|
@@ -126,8 +126,9 @@ before. An empty list is the normal, healthy value.
|
|
|
126
126
|
## 3. States
|
|
127
127
|
|
|
128
128
|
```
|
|
129
|
-
todo ──▶ active ──▶ done ──▶ (archive/)
|
|
130
|
-
│ ▲
|
|
129
|
+
todo ──▶ active ──▶ in-qa ──▶ done ──▶ (archive/)
|
|
130
|
+
│ ▲ ▲ │ PR open, waiting on test or review
|
|
131
|
+
│ │ └───────┘ a fix is needed
|
|
131
132
|
│ └──── paused ──┐ deliberately set aside; resumable by choice
|
|
132
133
|
├──────▶ blocked ─┤ cannot proceed; waiting on something external
|
|
133
134
|
│ ▲ │
|
|
@@ -139,6 +140,7 @@ todo ──▶ active ──▶ done ──▶ (archive/)
|
|
|
139
140
|
| ----------- | ----------------------------------------------------------- | --------------------------------------- |
|
|
140
141
|
| `todo` | promoted to a durable task, not started | work begins → `active` |
|
|
141
142
|
| `active` | being worked now | paused, blocked, finished, or abandoned |
|
|
143
|
+
| `in-qa` | built, PR open, waiting on test or review | PR merged → `done`; fix needed → `active` |
|
|
142
144
|
| `paused` | set aside by choice, resumable | picked up again → `active` |
|
|
143
145
|
| `blocked` | cannot proceed; the blocker is named in the body | blocker clears → `active` |
|
|
144
146
|
| `done` | finished **and** verified — the verification ran and passed | archived |
|
|
@@ -44,8 +44,12 @@ fails when a view has drifted. Never hand-edit a generated table, and never writ
|
|
|
44
44
|
task's status into project state, a daily log or a session record as if it were
|
|
45
45
|
authoritative there.
|
|
46
46
|
|
|
47
|
-
States: `todo` · `active` · `paused` · `blocked` · `done` · `cancelled`. Several
|
|
48
|
-
`active` is normal.
|
|
47
|
+
States: `todo` · `active` · `in-qa` · `paused` · `blocked` · `done` · `cancelled`. Several
|
|
48
|
+
being `active` is normal. `in-qa`: built and its PR is open, waiting on test or review; it
|
|
49
|
+
moves to `done` once the PR merges and verification passed, or back to `active` on a fix.
|
|
50
|
+
`ocean tasks sync` moves it by itself from the PR links in the task (session start runs it):
|
|
51
|
+
an open PR → `in-qa`; every linked PR merged → `done` through the `tasks complete` gate, or it
|
|
52
|
+
stays `in-qa` with the reason when the gate refuses. There is no current task and no stored pointer to one — the active
|
|
49
53
|
set is derived from the records. A bare id resolves directly at
|
|
50
54
|
`04-projects/<project>/tasks/<ID>/` (`ocean-paths` was a resolver in an earlier CLI
|
|
51
55
|
generation and was consolidated away — it is not a real command anymore); if two
|