Skip to content

Commit 606e3d7

Browse files
committed
docs: document task execution helpers
1 parent cca24cc commit 606e3d7

24 files changed

Lines changed: 24 additions & 0 deletions

src/tasks/detached-task-runtime-contract.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Defines the detached task runtime contract and spawn options.
12
import type { OpenClawConfig } from "../config/types.openclaw.js";
23
import type {
34
TaskDeliveryState,

src/tasks/detached-task-runtime-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Tracks detached task runtime state and spawned process handles.
12
import type {
23
DetachedTaskLifecycleRuntime,
34
DetachedTaskLifecycleRuntimeRegistration,

src/tasks/detached-task-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Provides the runtime adapter for detached task execution.
12
import { createSubsystemLogger } from "../logging/subsystem.js";
23
import type {
34
DetachedTaskRecoveryAttemptParams,

src/tasks/task-completion-contract.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Defines task terminal outcome contracts used by completion handling.
12
import type { TaskTerminalOutcome } from "./task-registry.types.js";
23

34
/** Terminal fields required when a mandatory detached task completion is invalid. */

src/tasks/task-executor.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers task executor runtime selection, lifecycle updates, and error paths.
12
import { afterEach, describe, expect, it, vi } from "vitest";
23
import { resetAgentEventsForTest, resetAgentRunContextForTest } from "../infra/agent-events.js";
34
import { resetHeartbeatWakeStateForTests } from "../infra/heartbeat-wake.js";

src/tasks/task-executor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Executes task records through configured runtimes and updates registry state.
12
import type { OpenClawConfig } from "../config/types.openclaw.js";
23
import { createSubsystemLogger } from "../logging/subsystem.js";
34
import type {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers managed task-flow audit summaries and stale-flow classification.
12
import { afterEach, describe, expect, it } from "vitest";
23
import { withOpenClawTestState } from "../test-utils/openclaw-test-state.js";
34
import { createRunningTaskRun as createRunningTaskRunOrNull } from "./task-executor.js";

src/tasks/task-flow-registry.maintenance.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers maintenance reconciliation for managed task-flow records.
12
import { afterEach, describe, expect, it } from "vitest";
23
import { withOpenClawTestState } from "../test-utils/openclaw-test-state.js";
34
import { createRunningTaskRun as createRunningTaskRunOrNull } from "./task-executor.js";

src/tasks/task-flow-registry.maintenance.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Reconciles stale task-flow records with their child task state.
12
import { listTasksForFlowId } from "./runtime-internal.js";
23
import {
34
listTaskFlowAuditFindings,

src/tasks/task-flow-registry.store.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Covers task-flow registry store persistence, events, and state queries.
12
import { statSync } from "node:fs";
23
import path from "node:path";
34
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

0 commit comments

Comments
 (0)