@cuylabs/agent-runtime 0.8.0 → 0.9.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.
@@ -10,14 +10,14 @@ interface RuntimeLogger {
10
10
  declare const silentRuntimeLogger: RuntimeLogger;
11
11
  declare function createConsoleRuntimeLogger(prefix?: string): RuntimeLogger;
12
12
 
13
- interface RuntimeDriverContext<TPayload = unknown> {
13
+ interface RuntimeDriverContext {
14
14
  now: () => number;
15
15
  onDue: (jobId: string) => Promise<void | RuntimeRunResult>;
16
16
  logger: RuntimeLogger;
17
17
  }
18
18
  interface RuntimeDriver<TPayload = unknown> {
19
19
  readonly name: string;
20
- start(context: RuntimeDriverContext<TPayload>): Promise<void>;
20
+ start(context: RuntimeDriverContext): Promise<void>;
21
21
  stop(): Promise<void>;
22
22
  listJobs(): Promise<RuntimeJobRecord<TPayload>[]>;
23
23
  getJob?(jobId: string): Promise<RuntimeJobRecord<TPayload> | undefined>;
@@ -1,4 +1,4 @@
1
- import { R as RuntimeDriver, a as RuntimeDriverContext } from '../driver-CKBCu2Gb.js';
1
+ import { R as RuntimeDriver, a as RuntimeDriverContext } from '../driver-BaLji34_.js';
2
2
  import { R as RuntimeJobRecord } from '../types-DllX9NP8.js';
3
3
 
4
4
  interface InMemoryRuntimeDriverOptions {
@@ -12,7 +12,7 @@ declare class InMemoryRuntimeDriver<TPayload = unknown> implements RuntimeDriver
12
12
  private context;
13
13
  private started;
14
14
  constructor(options?: InMemoryRuntimeDriverOptions);
15
- start(context: RuntimeDriverContext<TPayload>): Promise<void>;
15
+ start(context: RuntimeDriverContext): Promise<void>;
16
16
  stop(): Promise<void>;
17
17
  listJobs(): Promise<RuntimeJobRecord<TPayload>[]>;
18
18
  getJob(jobId: string): Promise<RuntimeJobRecord<TPayload> | undefined>;
@@ -1,5 +1,5 @@
1
1
  import { s as RuntimeTrigger, R as RuntimeJobRecord, p as RuntimeRunStatus, h as RuntimeDeadLetterEvent, b as RuntimeExecutor, q as RuntimeScheduleInput, r as RuntimeSchedulePatch, o as RuntimeRunResult, i as RuntimeDispatchInput } from './types-DllX9NP8.js';
2
- import { R as RuntimeDriver, c as RuntimeLogger } from './driver-CKBCu2Gb.js';
2
+ import { R as RuntimeDriver, c as RuntimeLogger } from './driver-BaLji34_.js';
3
3
 
4
4
  interface RuntimeLifecycleEvent {
5
5
  driver: string;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { c as RuntimeJobSchedule, d as RuntimeJobScheduleInput } from './types-DllX9NP8.js';
2
2
  export { e as RuntimeAtSchedule, f as RuntimeAtScheduleInput, g as RuntimeCronSchedule, h as RuntimeDeadLetterEvent, i as RuntimeDispatchInput, j as RuntimeEverySchedule, a as RuntimeExecutionContext, k as RuntimeExecutionResult, b as RuntimeExecutor, R as RuntimeJobRecord, l as RuntimeJobState, m as RuntimeRetryPolicy, n as RuntimeRetryStrategy, o as RuntimeRunResult, p as RuntimeRunStatus, q as RuntimeScheduleInput, r as RuntimeSchedulePatch, s as RuntimeTrigger } from './types-DllX9NP8.js';
3
3
  export { RuntimeWorkloadContext, RuntimeWorkloadErrorContext, RuntimeWorkloadExecutorOptions, RuntimeWorkloadResultContext, RuntimeWorkloadRunner, createRuntimeWorkloadContext, createRuntimeWorkloadExecutor } from './workload/index.js';
4
- export { R as RuntimeDriver, a as RuntimeDriverContext, b as RuntimeLogMeta, c as RuntimeLogger, d as createConsoleRuntimeLogger, s as silentRuntimeLogger } from './driver-CKBCu2Gb.js';
5
- import { R as RuntimeObserver } from './index-Cp7CPYy7.js';
6
- export { A as AgentOrchestrator, a as AgentOrchestratorOptions, I as InMemoryOrchestratorRunStore, O as OrchestratorCloseOptions, b as OrchestratorExecutionContext, c as OrchestratorExecutor, d as OrchestratorGuideInput, e as OrchestratorGuidedInputResolver, f as OrchestratorInvokeInput, g as OrchestratorInvokeResult, h as OrchestratorJobPayload, i as OrchestratorListOptions, j as OrchestratorRunMode, k as OrchestratorRunRecord, l as OrchestratorRunState, m as OrchestratorRunStatus, n as OrchestratorRunStore, o as OrchestratorWaitOptions, p as RuntimeDispatchDroppedEvent, q as RuntimeDispatchQueuedEvent, r as RuntimeLifecycleEvent, s as RuntimeRunCompleteEvent, t as RuntimeRunRetryEvent, u as RuntimeRunStartEvent, W as WorkloadRuntime, v as WorkloadRuntimeOptions, w as createAgentOrchestrator, x as createWorkloadRuntime, y as isTerminalRunStatus } from './index-Cp7CPYy7.js';
4
+ export { R as RuntimeDriver, a as RuntimeDriverContext, b as RuntimeLogMeta, c as RuntimeLogger, d as createConsoleRuntimeLogger, s as silentRuntimeLogger } from './driver-BaLji34_.js';
5
+ import { R as RuntimeObserver } from './index-DkdkAAoL.js';
6
+ export { A as AgentOrchestrator, a as AgentOrchestratorOptions, I as InMemoryOrchestratorRunStore, O as OrchestratorCloseOptions, b as OrchestratorExecutionContext, c as OrchestratorExecutor, d as OrchestratorGuideInput, e as OrchestratorGuidedInputResolver, f as OrchestratorInvokeInput, g as OrchestratorInvokeResult, h as OrchestratorJobPayload, i as OrchestratorListOptions, j as OrchestratorRunMode, k as OrchestratorRunRecord, l as OrchestratorRunState, m as OrchestratorRunStatus, n as OrchestratorRunStore, o as OrchestratorWaitOptions, p as RuntimeDispatchDroppedEvent, q as RuntimeDispatchQueuedEvent, r as RuntimeLifecycleEvent, s as RuntimeRunCompleteEvent, t as RuntimeRunRetryEvent, u as RuntimeRunStartEvent, W as WorkloadRuntime, v as WorkloadRuntimeOptions, w as createAgentOrchestrator, x as createWorkloadRuntime, y as isTerminalRunStatus } from './index-DkdkAAoL.js';
7
7
  export { InMemoryRuntimeDriver } from './drivers/in-memory.js';
8
8
 
9
9
  declare const PROMETHEUS_TEXT_CONTENT_TYPE = "text/plain; version=0.0.4; charset=utf-8";
@@ -1,3 +1,3 @@
1
- export { A as AgentOrchestrator, a as AgentOrchestratorOptions, I as InMemoryOrchestratorRunStore, O as OrchestratorCloseOptions, b as OrchestratorExecutionContext, c as OrchestratorExecutor, d as OrchestratorGuideInput, e as OrchestratorGuidedInputResolver, f as OrchestratorInvokeInput, g as OrchestratorInvokeResult, h as OrchestratorJobPayload, i as OrchestratorListOptions, j as OrchestratorRunMode, k as OrchestratorRunRecord, l as OrchestratorRunState, m as OrchestratorRunStatus, n as OrchestratorRunStore, o as OrchestratorWaitOptions, w as createAgentOrchestrator, y as isTerminalRunStatus } from '../index-Cp7CPYy7.js';
1
+ export { A as AgentOrchestrator, a as AgentOrchestratorOptions, I as InMemoryOrchestratorRunStore, O as OrchestratorCloseOptions, b as OrchestratorExecutionContext, c as OrchestratorExecutor, d as OrchestratorGuideInput, e as OrchestratorGuidedInputResolver, f as OrchestratorInvokeInput, g as OrchestratorInvokeResult, h as OrchestratorJobPayload, i as OrchestratorListOptions, j as OrchestratorRunMode, k as OrchestratorRunRecord, l as OrchestratorRunState, m as OrchestratorRunStatus, n as OrchestratorRunStore, o as OrchestratorWaitOptions, w as createAgentOrchestrator, y as isTerminalRunStatus } from '../index-DkdkAAoL.js';
2
2
  import '../types-DllX9NP8.js';
3
- import '../driver-CKBCu2Gb.js';
3
+ import '../driver-BaLji34_.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuylabs/agent-runtime",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Workload runtime orchestration layer - scheduling, execution, and pluggable runtime drivers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",