Skip to content

Commit cca24cc

Browse files
committed
docs: document task registry helpers
1 parent 4930766 commit cca24cc

24 files changed

Lines changed: 26 additions & 4 deletions

‎src/tasks/codex-native-subagent-task.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runs Codex native subagent tasks and maps their lifecycle into task registry state.
12
import type { TaskRecord } from "./task-registry.types.js";
23

34
/** Runtime label used for Codex-native subagent task records. */

‎src/tasks/detached-task-runtime.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers detached task runtime spawning, events, and cancellation handling.
12
import { afterEach, describe, expect, it, vi } from "vitest";
23
import {
34
cancelDetachedTaskRunById,

‎src/tasks/import-boundary.test-helpers.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Provides import-boundary assertions shared by task architecture tests.
12
import fs from "node:fs/promises";
23
import path from "node:path";
34

‎src/tasks/task-boundaries.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies task imports stay inside allowed runtime and registry boundaries.
12
import { beforeAll, describe, expect, it } from "vitest";
23
import {
34
listTaskBoundarySourceFiles,

‎src/tasks/task-domain-views.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1+
// Verifies task domain view projections from registry and flow records.
12
import { describe, expect, it } from "vitest";
2-
3-
import type { TaskFlowRecord } from "./task-flow-registry.types.js";
4-
import type { TaskRecord, TaskRegistrySummary } from "./task-registry.types.js";
5-
63
import {
74
mapTaskFlowDetail,
85
mapTaskFlowView,
96
mapTaskRunAggregateSummary,
107
mapTaskRunDetail,
118
mapTaskRunView,
129
} from "./task-domain-views.js";
10+
import type { TaskFlowRecord } from "./task-flow-registry.types.js";
11+
import type { TaskRecord, TaskRegistrySummary } from "./task-registry.types.js";
1312

1413
function makeTask(overrides: Partial<TaskRecord> = {}): TaskRecord {
1514
return {

‎src/tasks/task-executor-policy.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies task executor delivery policy and terminal message formatting.
12
import { describe, expect, it } from "vitest";
23
import {
34
formatTaskBlockedFollowupMessage,

‎src/tasks/task-flow-owner-access.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Verifies task-flow owner access checks for parent and child sessions.
12
import { afterEach, beforeEach, describe, expect, it } from "vitest";
23
import {
34
findLatestTaskFlowForOwner,

‎src/tasks/task-flow-owner-access.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Checks whether a requester can read or mutate task-flow records.
12
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
23
import {
34
findLatestTaskFlowForOwnerKey,

‎src/tasks/task-flow-registry.audit.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Produces task-flow registry audit summaries for diagnostics and maintenance.
12
import { listTasksForFlowId } from "./runtime-internal.js";
23
import { getTaskFlowRegistryRestoreFailure, listTaskFlowRecords } from "./task-flow-registry.js";
34
import type { TaskFlowRecord } from "./task-flow-registry.types.js";

‎src/tasks/task-flow-registry.store.sqlite.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Persists managed task-flow records through the OpenClaw SQLite state database.
12
import type { DatabaseSync } from "node:sqlite";
23
import type { Insertable, Selectable } from "kysely";
34
import { executeSqliteQuerySync, getNodeSqliteKysely } from "../infra/kysely-sync.js";

0 commit comments

Comments
 (0)