@cuylabs/agent-runtime-dapr 4.9.0 → 5.0.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/README.md +14 -0
- package/dist/{chunk-6BLY7B7U.js → chunk-BQLQLDWZ.js} +127 -122
- package/dist/{chunk-2TBZCBXE.js → chunk-L6SWGYZC.js} +178 -62
- package/dist/{chunk-J3IJLF6U.js → chunk-POIJYTT6.js} +63 -61
- package/dist/{chunk-26RCP3L3.js → chunk-WYU7JOJ7.js} +222 -132
- package/dist/{client-UsEIzDF6.d.ts → client-Dk8N3lMW.d.ts} +16 -1
- package/dist/dispatch/index.d.ts +4 -4
- package/dist/dispatch/index.js +1 -1
- package/dist/execution/index.js +1 -1
- package/dist/host/index.d.ts +4 -4
- package/dist/host/index.js +4 -4
- package/dist/{index-BY0FipV1.d.ts → index-BA2PeEUf.d.ts} +5 -4
- package/dist/{index-UtePd9on.d.ts → index-DgexJdIL.d.ts} +21 -20
- package/dist/{index-CFm5LORU.d.ts → index-_4f3HJj1.d.ts} +11 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +8 -4
- package/dist/team/index.d.ts +3 -3
- package/dist/team/index.js +4 -4
- package/dist/{worker-CXq0IFGX.d.ts → worker-DE8t7tcI.d.ts} +1 -1
- package/dist/workflow/index.d.ts +2 -2
- package/dist/workflow/index.js +5 -1
- package/dist/{workflow-host-D6W6fXoL.d.ts → workflow-host-DHibEPOQ.d.ts} +2 -1
- package/package.json +5 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AgentTaskPayload, SteeringResponse, FollowUpResponse, Tool, AgentTaskResult, AgentTaskRunner, Agent, AgentTaskRunnerOptions, AgentTaskObserver, FollowUpPolicy, AgentEvent, ApprovalRememberScope, HumanInputResponse, FollowUpStatus, QueuedFollowUpRecord, FollowUpDecisionAction } from '@cuylabs/agent-core';
|
|
2
2
|
import { h as DaprExecutionStore } from './store-BXBIDz40.js';
|
|
3
|
-
import { q as DaprPubSubEventBridge, v as DaprWorkflowApprovalRuntime, C as DaprWorkflowHumanInputRuntime, y as DaprWorkflowFollowUpRuntime, F as DaprWorkflowStarterLike, d as DaprAgentWorkflowRunRequest, e as DaprAgentWorkflowRunResult, x as DaprWorkflowEventRaiserLike, f as DaprAgentWorkflowSteerRequest, b as DaprAgentWorkflowFollowUpRequest, a as DaprAgentWorkflowHost, c as DaprAgentWorkflowHostOptions } from './workflow-host-
|
|
3
|
+
import { q as DaprPubSubEventBridge, v as DaprWorkflowApprovalRuntime, C as DaprWorkflowHumanInputRuntime, y as DaprWorkflowFollowUpRuntime, F as DaprWorkflowStarterLike, d as DaprAgentWorkflowRunRequest, e as DaprAgentWorkflowRunResult, x as DaprWorkflowEventRaiserLike, f as DaprAgentWorkflowSteerRequest, b as DaprAgentWorkflowFollowUpRequest, a as DaprAgentWorkflowHost, c as DaprAgentWorkflowHostOptions } from './workflow-host-DHibEPOQ.js';
|
|
4
4
|
import { EventBus } from '@cuylabs/agent-core/events';
|
|
5
5
|
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-B6ikdYaz.js';
|
|
6
|
-
import { D as DaprWorkflowWorker, d as DaprWorkflowWorkerRuntime } from './worker-
|
|
6
|
+
import { D as DaprWorkflowWorker, d as DaprWorkflowWorkerRuntime } from './worker-DE8t7tcI.js';
|
|
7
7
|
import { RuntimeDriver, RuntimeDriverContext, RuntimeJobRecord, WorkloadRuntime, RuntimeWorkloadRunner, WorkloadRuntimeOptions, RuntimeWorkloadContext } from '@cuylabs/agent-runtime';
|
|
8
8
|
import { c as DaprRuntimeDriverOptions, D as DaprExecutionStoreOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
9
|
-
import { D as DaprWorkflowClient } from './client-
|
|
9
|
+
import { D as DaprWorkflowClient } from './client-Dk8N3lMW.js';
|
|
10
10
|
import { Server } from 'node:http';
|
|
11
11
|
|
|
12
12
|
interface DaprJobTriggerHandler {
|
|
@@ -710,7 +710,7 @@ interface AgentServerAdapter {
|
|
|
710
710
|
resolveFollowUp?(followUpId: string, action: FollowUpDecisionAction): Promise<QueuedFollowUpRecord | null> | QueuedFollowUpRecord | null;
|
|
711
711
|
listSessions(): ReturnType<Agent["listSessions"]>;
|
|
712
712
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
713
|
-
|
|
713
|
+
getSessionStore(): ReturnType<ReturnType<Agent["getSessionManager"]>["getStore"]>;
|
|
714
714
|
listPluginCommands?(): Promise<AppPluginCommandInfo[]> | AppPluginCommandInfo[];
|
|
715
715
|
executePluginCommand?(name: string, args: string): Promise<string | null> | string | null;
|
|
716
716
|
}
|
|
@@ -722,6 +722,7 @@ interface CreateDaprAgentServerAdapterOptions {
|
|
|
722
722
|
listSubAgents?: () => Promise<AppSubAgentProfileInfo[]> | AppSubAgentProfileInfo[];
|
|
723
723
|
capabilities?: AgentServerCapabilitiesPatch;
|
|
724
724
|
}
|
|
725
|
+
|
|
725
726
|
declare function createDaprAgentServerAdapter(runner: DaprAgentRunner, options?: CreateDaprAgentServerAdapterOptions): AgentServerAdapter;
|
|
726
727
|
|
|
727
728
|
/**
|
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
import { DispatchRecord, DispatchTarget,
|
|
1
|
+
import { DispatchTargetInspection, DispatchRecord, DispatchTarget, DispatchRuntime, TaskExecutor } from '@cuylabs/agent-core';
|
|
2
2
|
import { e as DaprStateStoreClientOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
3
|
-
import { D as DaprWorkflowClient, z as DaprWorkflowState } from './client-UsEIzDF6.js';
|
|
4
|
-
import { a as DaprAgentWorkflowHost, d as DaprAgentWorkflowRunRequest } from './workflow-host-D6W6fXoL.js';
|
|
5
3
|
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-B6ikdYaz.js';
|
|
4
|
+
import { a as DaprAgentWorkflowHost, d as DaprAgentWorkflowRunRequest } from './workflow-host-DHibEPOQ.js';
|
|
5
|
+
import { D as DaprWorkflowClient, z as DaprWorkflowState } from './client-Dk8N3lMW.js';
|
|
6
6
|
import { h as DaprExecutionStore } from './store-BXBIDz40.js';
|
|
7
7
|
|
|
8
|
-
interface DaprDispatchRecord extends DispatchRecord {
|
|
9
|
-
agentId: string;
|
|
10
|
-
}
|
|
11
|
-
type DaprDispatchTargetInspection = DispatchTargetInspection;
|
|
12
|
-
type DaprDispatchTarget = DispatchTarget<DaprDispatchRecord>;
|
|
13
|
-
interface DaprDispatchRuntimeOptions extends DaprStateStoreClientOptions {
|
|
14
|
-
agentId: string;
|
|
15
|
-
targets: readonly DaprDispatchTarget[];
|
|
16
|
-
keyPrefix?: string;
|
|
17
|
-
now?: () => string;
|
|
18
|
-
pollIntervalMs?: number;
|
|
19
|
-
createId?: () => string;
|
|
20
|
-
}
|
|
21
|
-
interface DaprDispatchRecordWriterOptions extends DaprStateStoreClientOptions {
|
|
22
|
-
agentId: string;
|
|
23
|
-
keyPrefix?: string;
|
|
24
|
-
}
|
|
25
8
|
interface WorkflowDispatchTargetOptions {
|
|
26
9
|
name: string;
|
|
27
10
|
description: string;
|
|
@@ -74,6 +57,24 @@ interface RemoteAgentDispatchTargetOptions {
|
|
|
74
57
|
}
|
|
75
58
|
declare function createWorkflowDispatchTarget(options: WorkflowDispatchTargetOptions): DaprDispatchTarget;
|
|
76
59
|
declare function createRemoteAgentDispatchTarget(options: RemoteAgentDispatchTargetOptions): DaprDispatchTarget;
|
|
60
|
+
|
|
61
|
+
interface DaprDispatchRecord extends DispatchRecord {
|
|
62
|
+
agentId: string;
|
|
63
|
+
}
|
|
64
|
+
type DaprDispatchTargetInspection = DispatchTargetInspection;
|
|
65
|
+
type DaprDispatchTarget = DispatchTarget<DaprDispatchRecord>;
|
|
66
|
+
interface DaprDispatchRuntimeOptions extends DaprStateStoreClientOptions {
|
|
67
|
+
agentId: string;
|
|
68
|
+
targets: readonly DaprDispatchTarget[];
|
|
69
|
+
keyPrefix?: string;
|
|
70
|
+
now?: () => string;
|
|
71
|
+
pollIntervalMs?: number;
|
|
72
|
+
createId?: () => string;
|
|
73
|
+
}
|
|
74
|
+
interface DaprDispatchRecordWriterOptions extends DaprStateStoreClientOptions {
|
|
75
|
+
agentId: string;
|
|
76
|
+
keyPrefix?: string;
|
|
77
|
+
}
|
|
77
78
|
declare function createDaprDispatchRuntime(options: DaprDispatchRuntimeOptions): DispatchRuntime;
|
|
78
79
|
|
|
79
80
|
interface DaprWorkflowDispatchExecutorOptions {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import { e as DaprAgentTurnApprovalCheckActivityOptions, b as DaprAgentTurnActivityRegistration, f as DaprAgentTurnApprovalCheckInput, g as DaprAgentTurnApprovalCheckResult, i as DaprAgentTurnHumanInputCheckActivityOptions, j as DaprAgentTurnHumanInputCheckInput, k as DaprAgentTurnHumanInputCheckResult, l as DaprAgentTurnModelStepActivityOptions, h as DaprAgentTurnCommitActivityOptions, m as DaprAgentTurnSteerDrainActivityOptions, n as DaprAgentTurnSteerDrainInput, o as DaprAgentTurnToolCallActivityOptions, C as CreateDaprAgentTurnWorkflowDefinitionOptions, t as DaprAgentTurnWorkflowRegistration, c as CreateDaprAgentTurnWorkflowKitOptions, s as DaprAgentTurnWorkflowKit } from './client-
|
|
1
|
+
import { p as DaprAgentTurnWorkflowActivityNames, e as DaprAgentTurnApprovalCheckActivityOptions, b as DaprAgentTurnActivityRegistration, f as DaprAgentTurnApprovalCheckInput, g as DaprAgentTurnApprovalCheckResult, i as DaprAgentTurnHumanInputCheckActivityOptions, j as DaprAgentTurnHumanInputCheckInput, k as DaprAgentTurnHumanInputCheckResult, l as DaprAgentTurnModelStepActivityOptions, h as DaprAgentTurnCommitActivityOptions, m as DaprAgentTurnSteerDrainActivityOptions, n as DaprAgentTurnSteerDrainInput, o as DaprAgentTurnToolCallActivityOptions, C as CreateDaprAgentTurnWorkflowDefinitionOptions, t as DaprAgentTurnWorkflowRegistration, c as CreateDaprAgentTurnWorkflowKitOptions, s as DaprAgentTurnWorkflowKit } from './client-Dk8N3lMW.js';
|
|
2
2
|
import { AgentWorkflowModelStepPlan, AgentWorkflowModelStepResult, AgentWorkflowOutputCommitPlan, AgentWorkflowCommitResult, AgentWorkflowInputCommitPlan, AgentWorkflowStepCommitPlan, AgentWorkflowToolCallPlan, AgentWorkflowToolCallResult } from '@cuylabs/agent-core';
|
|
3
3
|
|
|
4
|
+
declare const DEFAULT_AGENT_TURN_WORKFLOW_NAME = "agent-turn";
|
|
5
|
+
interface CreateAgentTurnActivityNamesOptions {
|
|
6
|
+
includeSteerDrain?: boolean;
|
|
7
|
+
includeContextCompaction?: boolean;
|
|
8
|
+
includeHumanInputCheck?: boolean;
|
|
9
|
+
includeApprovalCheck?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function createAgentTurnActivityNames(workflowName: string, overrides?: Partial<DaprAgentTurnWorkflowActivityNames>, options?: CreateAgentTurnActivityNamesOptions): DaprAgentTurnWorkflowActivityNames;
|
|
12
|
+
|
|
4
13
|
/**
|
|
5
14
|
* Durable activity handlers for agent-turn workflows.
|
|
6
15
|
*
|
|
@@ -60,4 +69,4 @@ declare function createDaprAgentTurnWorkflowDefinition(options: CreateDaprAgentT
|
|
|
60
69
|
*/
|
|
61
70
|
declare function createDaprAgentTurnWorkflowKit(options: CreateDaprAgentTurnWorkflowKitOptions): DaprAgentTurnWorkflowKit;
|
|
62
71
|
|
|
63
|
-
export {
|
|
72
|
+
export { type CreateAgentTurnActivityNamesOptions as C, DEFAULT_AGENT_TURN_WORKFLOW_NAME as D, createDaprAgentTurnApprovalCheckActivity as a, createDaprAgentTurnHumanInputCheckActivity as b, createAgentTurnActivityNames as c, createDaprAgentTurnModelStepActivity as d, createDaprAgentTurnOutputCommitActivity as e, createDaprAgentTurnSteerDrainActivity as f, createDaprAgentTurnStepCommitActivity as g, createDaprAgentTurnToolCallActivity as h, createDaprAgentTurnWorkflowDefinition as i, createDaprAgentTurnWorkflowKit as j };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { a as DaprOrchestratorRunStoreOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
2
2
|
export { D as DaprExecutionStoreOptions, b as DaprFetch, c as DaprRuntimeDriverOptions, d as DaprSidecarClientOptions, e as DaprStateStoreClientOptions, f as DaprWorkflowObserverBridge, g as DaprWorkflowObserverOptions, h as createWorkflowObserverBridge } from './workflow-bridge-BcicHH1Y.js';
|
|
3
|
-
import { D as DaprWorkflowClient, a as DaprAgentTurnWorkflowToolHandler, b as DaprAgentTurnActivityRegistration } from './client-
|
|
4
|
-
export { C as CreateDaprAgentTurnWorkflowDefinitionOptions, c as CreateDaprAgentTurnWorkflowKitOptions, d as CreateDaprAgentTurnWorkflowOptions, e as DaprAgentTurnApprovalCheckActivityOptions, f as DaprAgentTurnApprovalCheckInput, g as DaprAgentTurnApprovalCheckResult, h as DaprAgentTurnCommitActivityOptions, i as DaprAgentTurnHumanInputCheckActivityOptions, j as DaprAgentTurnHumanInputCheckInput, k as DaprAgentTurnHumanInputCheckResult, l as DaprAgentTurnModelStepActivityOptions, m as DaprAgentTurnSteerDrainActivityOptions, n as DaprAgentTurnSteerDrainInput, o as DaprAgentTurnToolCallActivityOptions, p as DaprAgentTurnWorkflowActivityNames, q as DaprAgentTurnWorkflowContextLike, r as DaprAgentTurnWorkflowDefinition, s as DaprAgentTurnWorkflowKit, t as DaprAgentTurnWorkflowRegistration, u as DaprAgentTurnWorkflowToolHandlerInput, v as DaprStartWorkflowResponse, w as DaprWorkflowApiVersion, x as DaprWorkflowClientOptions, y as DaprWorkflowRuntimeStatus, z as DaprWorkflowState, R as RaiseDaprWorkflowEventOptions, S as StartDaprWorkflowOptions, W as WaitForDaprWorkflowOptions, A as hasStartedDaprWorkflow, B as isTerminalDaprWorkflowStatus } from './client-
|
|
5
|
-
export { C as CreateDaprAgentServerAdapterOptions, a as CreateRemoteAgentToolOptions, D as DaprAgentDurableRunOptions, b as DaprAgentDurableRunResult, c as DaprAgentRunner, d as DaprAgentRunnerOptions, e as DaprAgentRuntimeBundle, f as DaprAgentRuntimeOptions, g as DaprAgentServeOptions, h as DaprAgentTaskErrorContext, i as DaprAgentTaskResultContext, j as DaprHostApp, k as DaprHostHttpHandlerOptions, l as DaprHostHttpServer, m as DaprHostHttpServerOptions, n as DaprHostReadinessCheck, o as DaprHostReadinessStatus, p as DaprHostRemoteRunRequest, q as DaprHostedAgentInfo, r as DaprHttpJobHandlerOptions, s as DaprHttpJobHandlerResult, t as DaprJobTriggerHandler, u as DaprMultiAgentRunner, v as DaprMultiAgentRunnerAgentConfig, w as DaprMultiAgentRunnerOptions, x as DaprRuntimeDriver, y as DaprWorkloadErrorContext, z as DaprWorkloadResultContext, A as DaprWorkloadRuntimeBundle, B as DaprWorkloadRuntimeOptions, E as createDaprAgentRunner, F as createDaprAgentRuntime, G as createDaprAgentServerAdapter, H as createDaprHostHttpHandler, I as createDaprHttpJobHandler, J as createDaprMultiAgentRunner, K as createDaprWorkloadRuntime, L as createRemoteAgentTool, M as startDaprHostHttpServer } from './index-
|
|
3
|
+
import { D as DaprWorkflowClient, a as DaprAgentTurnWorkflowToolHandler, b as DaprAgentTurnActivityRegistration } from './client-Dk8N3lMW.js';
|
|
4
|
+
export { C as CreateDaprAgentTurnWorkflowDefinitionOptions, c as CreateDaprAgentTurnWorkflowKitOptions, d as CreateDaprAgentTurnWorkflowOptions, e as DaprAgentTurnApprovalCheckActivityOptions, f as DaprAgentTurnApprovalCheckInput, g as DaprAgentTurnApprovalCheckResult, h as DaprAgentTurnCommitActivityOptions, i as DaprAgentTurnHumanInputCheckActivityOptions, j as DaprAgentTurnHumanInputCheckInput, k as DaprAgentTurnHumanInputCheckResult, l as DaprAgentTurnModelStepActivityOptions, m as DaprAgentTurnSteerDrainActivityOptions, n as DaprAgentTurnSteerDrainInput, o as DaprAgentTurnToolCallActivityOptions, p as DaprAgentTurnWorkflowActivityNames, q as DaprAgentTurnWorkflowContextLike, r as DaprAgentTurnWorkflowDefinition, s as DaprAgentTurnWorkflowKit, t as DaprAgentTurnWorkflowRegistration, u as DaprAgentTurnWorkflowToolHandlerInput, v as DaprStartWorkflowResponse, w as DaprWorkflowApiVersion, x as DaprWorkflowClientOptions, y as DaprWorkflowRuntimeStatus, z as DaprWorkflowState, R as RaiseDaprWorkflowEventOptions, S as StartDaprWorkflowOptions, W as WaitForDaprWorkflowOptions, A as hasStartedDaprWorkflow, B as isTerminalDaprWorkflowStatus } from './client-Dk8N3lMW.js';
|
|
5
|
+
export { C as CreateDaprAgentServerAdapterOptions, a as CreateRemoteAgentToolOptions, D as DaprAgentDurableRunOptions, b as DaprAgentDurableRunResult, c as DaprAgentRunner, d as DaprAgentRunnerOptions, e as DaprAgentRuntimeBundle, f as DaprAgentRuntimeOptions, g as DaprAgentServeOptions, h as DaprAgentTaskErrorContext, i as DaprAgentTaskResultContext, j as DaprHostApp, k as DaprHostHttpHandlerOptions, l as DaprHostHttpServer, m as DaprHostHttpServerOptions, n as DaprHostReadinessCheck, o as DaprHostReadinessStatus, p as DaprHostRemoteRunRequest, q as DaprHostedAgentInfo, r as DaprHttpJobHandlerOptions, s as DaprHttpJobHandlerResult, t as DaprJobTriggerHandler, u as DaprMultiAgentRunner, v as DaprMultiAgentRunnerAgentConfig, w as DaprMultiAgentRunnerOptions, x as DaprRuntimeDriver, y as DaprWorkloadErrorContext, z as DaprWorkloadResultContext, A as DaprWorkloadRuntimeBundle, B as DaprWorkloadRuntimeOptions, E as createDaprAgentRunner, F as createDaprAgentRuntime, G as createDaprAgentServerAdapter, H as createDaprHostHttpHandler, I as createDaprHttpJobHandler, J as createDaprMultiAgentRunner, K as createDaprWorkloadRuntime, L as createRemoteAgentTool, M as startDaprHostHttpServer } from './index-BA2PeEUf.js';
|
|
6
6
|
export { D as DaprExecutionCheckpointRecord, a as DaprExecutionCleanupOptions, b as DaprExecutionCleanupResult, c as DaprExecutionContextMetadata, d as DaprExecutionErrorRecord, e as DaprExecutionRunRecord, f as DaprExecutionSnapshot, g as DaprExecutionStatus, h as DaprExecutionStore } from './store-BXBIDz40.js';
|
|
7
7
|
export { DaprExecutionObserver, DaprExecutionObserverOptions, DaprHostLoggerLike, DaprLoggingObserverOptions, OtelObserverConfig, createDaprExecutionObserver, createDaprLoggingObserver, createOtelObserver } from './execution/index.js';
|
|
8
8
|
import { OrchestratorRunStatus, OrchestratorRunStore, OrchestratorRunRecord } from '@cuylabs/agent-runtime';
|
|
9
|
-
export { c as
|
|
9
|
+
export { C as CreateAgentTurnActivityNamesOptions, D as DEFAULT_AGENT_TURN_WORKFLOW_NAME, c as createAgentTurnActivityNames, a as createDaprAgentTurnApprovalCheckActivity, b as createDaprAgentTurnHumanInputCheckActivity, d as createDaprAgentTurnModelStepActivity, e as createDaprAgentTurnOutputCommitActivity, f as createDaprAgentTurnSteerDrainActivity, g as createDaprAgentTurnStepCommitActivity, h as createDaprAgentTurnToolCallActivity, i as createDaprAgentTurnWorkflowDefinition, j as createDaprAgentTurnWorkflowKit } from './index-_4f3HJj1.js';
|
|
10
10
|
export { D as DaprInvokeMethodOptions, a as DaprInvokeMethodResult, b as DaprServiceInvoker, c as DaprServiceInvokerOptions, R as RemoteAgentRunRequest, d as RemoteAgentRunResponse, i as invokeRemoteAgentRun } from './invoker-B6ikdYaz.js';
|
|
11
|
-
import { a as DaprAgentWorkflowHost } from './workflow-host-
|
|
12
|
-
export { b as DaprAgentWorkflowFollowUpRequest, c as DaprAgentWorkflowHostOptions, d as DaprAgentWorkflowRunRequest, e as DaprAgentWorkflowRunResult, f as DaprAgentWorkflowSteerRequest, g as DaprApprovalDecision, h as DaprApprovalRequestListOptions, i as DaprApprovalRequestRecord, j as DaprApprovalRequestStatus, k as DaprApprovalResolution, l as DaprFollowUpListOptions, m as DaprFollowUpRecord, n as DaprHumanInputRequestListOptions, o as DaprHumanInputRequestRecord, p as DaprHumanInputRequestStatus, q as DaprPubSubEventBridge, r as DaprPubSubEventBridgeOptions, s as DaprSteerRecord, t as DaprWorkflowApprovalCheckInput, u as DaprWorkflowApprovalCheckResult, v as DaprWorkflowApprovalRuntime, w as DaprWorkflowApprovalRuntimeOptions, x as DaprWorkflowEventRaiserLike, y as DaprWorkflowFollowUpRuntime, z as DaprWorkflowFollowUpRuntimeOptions, A as DaprWorkflowHumanInputCheckInput, B as DaprWorkflowHumanInputCheckResult, C as DaprWorkflowHumanInputRuntime, E as DaprWorkflowHumanInputRuntimeOptions, D as DaprWorkflowRuntimeRegistrar, F as DaprWorkflowStarterLike, G as DaprWorkflowSteerRuntime, H as DaprWorkflowSteerRuntimeOptions, I as createDaprAgentWorkflowHost, J as createDaprPubSubEventBridge, K as createDaprWorkflowApprovalRuntime, L as createDaprWorkflowFollowUpRuntime, M as createDaprWorkflowHumanInputRuntime, N as createDaprWorkflowSteerRuntime, O as startDaprAgentWorkflowTurn } from './workflow-host-
|
|
13
|
-
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from './worker-
|
|
11
|
+
import { a as DaprAgentWorkflowHost } from './workflow-host-DHibEPOQ.js';
|
|
12
|
+
export { b as DaprAgentWorkflowFollowUpRequest, c as DaprAgentWorkflowHostOptions, d as DaprAgentWorkflowRunRequest, e as DaprAgentWorkflowRunResult, f as DaprAgentWorkflowSteerRequest, g as DaprApprovalDecision, h as DaprApprovalRequestListOptions, i as DaprApprovalRequestRecord, j as DaprApprovalRequestStatus, k as DaprApprovalResolution, l as DaprFollowUpListOptions, m as DaprFollowUpRecord, n as DaprHumanInputRequestListOptions, o as DaprHumanInputRequestRecord, p as DaprHumanInputRequestStatus, q as DaprPubSubEventBridge, r as DaprPubSubEventBridgeOptions, s as DaprSteerRecord, t as DaprWorkflowApprovalCheckInput, u as DaprWorkflowApprovalCheckResult, v as DaprWorkflowApprovalRuntime, w as DaprWorkflowApprovalRuntimeOptions, x as DaprWorkflowEventRaiserLike, y as DaprWorkflowFollowUpRuntime, z as DaprWorkflowFollowUpRuntimeOptions, A as DaprWorkflowHumanInputCheckInput, B as DaprWorkflowHumanInputCheckResult, C as DaprWorkflowHumanInputRuntime, E as DaprWorkflowHumanInputRuntimeOptions, D as DaprWorkflowRuntimeRegistrar, F as DaprWorkflowStarterLike, G as DaprWorkflowSteerRuntime, H as DaprWorkflowSteerRuntimeOptions, I as createDaprAgentWorkflowHost, J as createDaprPubSubEventBridge, K as createDaprWorkflowApprovalRuntime, L as createDaprWorkflowFollowUpRuntime, M as createDaprWorkflowHumanInputRuntime, N as createDaprWorkflowSteerRuntime, O as startDaprAgentWorkflowTurn } from './workflow-host-DHibEPOQ.js';
|
|
13
|
+
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from './worker-DE8t7tcI.js';
|
|
14
14
|
export { EventBus, EventBusMessage, EventBusOptions, EventBusSubscribeOptions, EventBusSubscription, createEventBus } from '@cuylabs/agent-core/events';
|
|
15
|
-
import { D as DaprDispatchRuntimeOptions, a as DaprDispatchRecordWriterOptions } from './index-
|
|
16
|
-
export { b as DaprAppDispatchExecutorOptions, c as DaprDispatchRecord, d as DaprDispatchTarget, e as DaprDispatchTargetInspection, f as DaprWorkflowDispatchExecutorOptions, R as RemoteAgentDispatchTargetOptions, W as WorkflowDispatchTargetOptions, g as createDaprAppDispatchExecutor, h as createDaprCompositeDispatchExecutor, i as createDaprDispatchRuntime, j as createDaprWorkflowDispatchExecutor, k as createRemoteAgentDispatchTarget, l as createWorkflowDispatchTarget } from './index-
|
|
15
|
+
import { D as DaprDispatchRuntimeOptions, a as DaprDispatchRecordWriterOptions } from './index-DgexJdIL.js';
|
|
16
|
+
export { b as DaprAppDispatchExecutorOptions, c as DaprDispatchRecord, d as DaprDispatchTarget, e as DaprDispatchTargetInspection, f as DaprWorkflowDispatchExecutorOptions, R as RemoteAgentDispatchTargetOptions, W as WorkflowDispatchTargetOptions, g as createDaprAppDispatchExecutor, h as createDaprCompositeDispatchExecutor, i as createDaprDispatchRuntime, j as createDaprWorkflowDispatchExecutor, k as createRemoteAgentDispatchTarget, l as createWorkflowDispatchTarget } from './index-DgexJdIL.js';
|
|
17
17
|
import { SubAgentRole, Agent, Tool } from '@cuylabs/agent-core';
|
|
18
18
|
export { AppliedCoordinatorActionsResult, ApplyCoordinatorActionsActivityOptions, ApplyCoordinatorActionsInput, CheckTrackedTasksTerminalActivityOptions, CheckTrackedTasksTerminalInput, CollectWorkerReportsActivityOptions, CollectWorkerReportsInput, CollectedWorkerReportsResult, CommitExternalTaskActivityOptions, CommitExternalTaskInput, CommittedCoordinatorTaskResult, CoordinatorAssignment, CoordinatorChildLaunch, CoordinatorReasonActivityInput, CoordinatorReasonActivityOptions, CoordinatorReasonResult, CoordinatorRecordedAction, CoordinatorTaskNotification, CoordinatorTrackedTask, CoordinatorWorkflowActivityNames, CoordinatorWorkflowInput, CoordinatorWorkflowRegistration, CoordinatorWorkflowResult, CreateCoordinatorWorkflowOptions, DaprMailboxStore, DaprMailboxStoreOptions, DaprTaskBoardStore, DaprTaskBoardStoreOptions, DaprTeamDispatchOptions, DaprTeamDurableRunOptions, DaprTeamDurableRunStartResult, DaprTeamDurableRunState, DaprTeamHttpHandlerOptions, DaprTeamRunner, DaprTeamRunnerOptions, DaprTeamServeOptions, PrepareExternalTasksActivityOptions, PrepareExternalTasksInput, PreparedExternalTasksResult, createApplyCoordinatorActionsActivity, createCheckTrackedTasksTerminalActivity, createCollectWorkerReportsActivity, createCommitExternalTaskActivity, createCoordinatorReasonActivity, createCoordinatorWorkflowDefinition, createDaprTeamHttpHandler, createDaprTeamRunner, createPrepareExternalTasksActivity } from './team/index.js';
|
|
19
19
|
import 'node:http';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
installDaprSubAgents,
|
|
37
37
|
startDaprAgentWorkflowTurn,
|
|
38
38
|
startDaprHostHttpServer
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WYU7JOJ7.js";
|
|
40
40
|
import {
|
|
41
41
|
DaprServiceInvoker,
|
|
42
42
|
createDaprAppDispatchExecutor,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
createRemoteAgentDispatchTarget,
|
|
47
47
|
createWorkflowDispatchTarget,
|
|
48
48
|
invokeRemoteAgentRun
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BQLQLDWZ.js";
|
|
50
50
|
import {
|
|
51
51
|
DaprExecutionObserver,
|
|
52
52
|
DaprExecutionStore,
|
|
@@ -54,9 +54,11 @@ import {
|
|
|
54
54
|
createDaprLoggingObserver,
|
|
55
55
|
createOtelObserver,
|
|
56
56
|
createWorkflowObserverBridge
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-POIJYTT6.js";
|
|
58
58
|
import {
|
|
59
|
+
DEFAULT_AGENT_TURN_WORKFLOW_NAME,
|
|
59
60
|
DaprWorkflowClient,
|
|
61
|
+
createAgentTurnActivityNames,
|
|
60
62
|
createDaprAgentTurnApprovalCheckActivity,
|
|
61
63
|
createDaprAgentTurnHumanInputCheckActivity,
|
|
62
64
|
createDaprAgentTurnModelStepActivity,
|
|
@@ -68,10 +70,11 @@ import {
|
|
|
68
70
|
createDaprAgentTurnWorkflowKit,
|
|
69
71
|
hasStartedDaprWorkflow,
|
|
70
72
|
isTerminalDaprWorkflowStatus
|
|
71
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-L6SWGYZC.js";
|
|
72
74
|
import "./chunk-HQLQRXU5.js";
|
|
73
75
|
export {
|
|
74
76
|
DAPR_SUBAGENT_BACKEND,
|
|
77
|
+
DEFAULT_AGENT_TURN_WORKFLOW_NAME,
|
|
75
78
|
DaprExecutionObserver,
|
|
76
79
|
DaprExecutionStore,
|
|
77
80
|
DaprMailboxStore,
|
|
@@ -81,6 +84,7 @@ export {
|
|
|
81
84
|
DaprTaskBoardStore,
|
|
82
85
|
DaprWorkflowClient,
|
|
83
86
|
configureDaprSubAgents,
|
|
87
|
+
createAgentTurnActivityNames,
|
|
84
88
|
createApplyCoordinatorActionsActivity,
|
|
85
89
|
createCheckTrackedTasksTerminalActivity,
|
|
86
90
|
createCollectWorkerReportsActivity,
|
package/dist/team/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskBoardStore, TeamMember, TaskListFilter, TeamTask, MailboxStore, TeamMessage, MessageListFilter, TaskResult, WorkerReport, TeamCoordinator, TaskExecutor, CoordinatorLoopOptions, CoordinatorLoopResult, TeamEvent, TeamCoordinatorConfig } from '@cuylabs/agent-core/team';
|
|
2
2
|
import { d as DaprSidecarClientOptions } from '../workflow-bridge-BcicHH1Y.js';
|
|
3
3
|
import { TokenUsage, AgentWorkflowTurnState, Agent, DispatchRole } from '@cuylabs/agent-core';
|
|
4
|
-
import { d as DaprWorkflowWorkerRuntime } from '../worker-
|
|
5
|
-
import { z as DaprWorkflowState, W as WaitForDaprWorkflowOptions } from '../client-
|
|
4
|
+
import { d as DaprWorkflowWorkerRuntime } from '../worker-DE8t7tcI.js';
|
|
5
|
+
import { z as DaprWorkflowState, W as WaitForDaprWorkflowOptions } from '../client-Dk8N3lMW.js';
|
|
6
6
|
import { EventBus } from '@cuylabs/agent-core/events';
|
|
7
|
-
import '../workflow-host-
|
|
7
|
+
import '../workflow-host-DHibEPOQ.js';
|
|
8
8
|
|
|
9
9
|
type DaprStateQueryResponse<TValue> = {
|
|
10
10
|
results?: Array<{
|
package/dist/team/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createDaprTeamHttpHandler,
|
|
11
11
|
createDaprTeamRunner,
|
|
12
12
|
createPrepareExternalTasksActivity
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-WYU7JOJ7.js";
|
|
14
|
+
import "../chunk-BQLQLDWZ.js";
|
|
15
|
+
import "../chunk-POIJYTT6.js";
|
|
16
|
+
import "../chunk-L6SWGYZC.js";
|
|
17
17
|
import "../chunk-HQLQRXU5.js";
|
|
18
18
|
export {
|
|
19
19
|
DaprMailboxStore,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DaprWorkflowRuntimeRegistrar, a as DaprAgentWorkflowHost } from './workflow-host-
|
|
1
|
+
import { D as DaprWorkflowRuntimeRegistrar, a as DaprAgentWorkflowHost } from './workflow-host-DHibEPOQ.js';
|
|
2
2
|
|
|
3
3
|
interface DaprWorkflowWorkerRuntime extends DaprWorkflowRuntimeRegistrar {
|
|
4
4
|
start(): Promise<void>;
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CreateDaprAgentTurnWorkflowDefinitionOptions, c as CreateDaprAgentTurnWorkflowKitOptions, d as CreateDaprAgentTurnWorkflowOptions, b as DaprAgentTurnActivityRegistration, h as DaprAgentTurnCommitActivityOptions, l as DaprAgentTurnModelStepActivityOptions, o as DaprAgentTurnToolCallActivityOptions, p as DaprAgentTurnWorkflowActivityNames, q as DaprAgentTurnWorkflowContextLike, r as DaprAgentTurnWorkflowDefinition, s as DaprAgentTurnWorkflowKit, t as DaprAgentTurnWorkflowRegistration, a as DaprAgentTurnWorkflowToolHandler, u as DaprAgentTurnWorkflowToolHandlerInput, v as DaprStartWorkflowResponse, w as DaprWorkflowApiVersion, D as DaprWorkflowClient, x as DaprWorkflowClientOptions, y as DaprWorkflowRuntimeStatus, z as DaprWorkflowState, R as RaiseDaprWorkflowEventOptions, S as StartDaprWorkflowOptions, W as WaitForDaprWorkflowOptions, A as hasStartedDaprWorkflow, B as isTerminalDaprWorkflowStatus } from '../client-
|
|
2
|
-
export {
|
|
1
|
+
export { C as CreateDaprAgentTurnWorkflowDefinitionOptions, c as CreateDaprAgentTurnWorkflowKitOptions, d as CreateDaprAgentTurnWorkflowOptions, b as DaprAgentTurnActivityRegistration, h as DaprAgentTurnCommitActivityOptions, l as DaprAgentTurnModelStepActivityOptions, o as DaprAgentTurnToolCallActivityOptions, p as DaprAgentTurnWorkflowActivityNames, q as DaprAgentTurnWorkflowContextLike, r as DaprAgentTurnWorkflowDefinition, s as DaprAgentTurnWorkflowKit, t as DaprAgentTurnWorkflowRegistration, a as DaprAgentTurnWorkflowToolHandler, u as DaprAgentTurnWorkflowToolHandlerInput, v as DaprStartWorkflowResponse, w as DaprWorkflowApiVersion, D as DaprWorkflowClient, x as DaprWorkflowClientOptions, y as DaprWorkflowRuntimeStatus, z as DaprWorkflowState, R as RaiseDaprWorkflowEventOptions, S as StartDaprWorkflowOptions, W as WaitForDaprWorkflowOptions, A as hasStartedDaprWorkflow, B as isTerminalDaprWorkflowStatus } from '../client-Dk8N3lMW.js';
|
|
2
|
+
export { C as CreateAgentTurnActivityNamesOptions, D as DEFAULT_AGENT_TURN_WORKFLOW_NAME, c as createAgentTurnActivityNames, d as createDaprAgentTurnModelStepActivity, e as createDaprAgentTurnOutputCommitActivity, g as createDaprAgentTurnStepCommitActivity, h as createDaprAgentTurnToolCallActivity, i as createDaprAgentTurnWorkflowDefinition, j as createDaprAgentTurnWorkflowKit } from '../index-_4f3HJj1.js';
|
|
3
3
|
import '@cuylabs/agent-core';
|
|
4
4
|
import '../workflow-bridge-BcicHH1Y.js';
|
package/dist/workflow/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_AGENT_TURN_WORKFLOW_NAME,
|
|
2
3
|
DaprWorkflowClient,
|
|
4
|
+
createAgentTurnActivityNames,
|
|
3
5
|
createDaprAgentTurnModelStepActivity,
|
|
4
6
|
createDaprAgentTurnOutputCommitActivity,
|
|
5
7
|
createDaprAgentTurnStepCommitActivity,
|
|
@@ -8,10 +10,12 @@ import {
|
|
|
8
10
|
createDaprAgentTurnWorkflowKit,
|
|
9
11
|
hasStartedDaprWorkflow,
|
|
10
12
|
isTerminalDaprWorkflowStatus
|
|
11
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-L6SWGYZC.js";
|
|
12
14
|
import "../chunk-HQLQRXU5.js";
|
|
13
15
|
export {
|
|
16
|
+
DEFAULT_AGENT_TURN_WORKFLOW_NAME,
|
|
14
17
|
DaprWorkflowClient,
|
|
18
|
+
createAgentTurnActivityNames,
|
|
15
19
|
createDaprAgentTurnModelStepActivity,
|
|
16
20
|
createDaprAgentTurnOutputCommitActivity,
|
|
17
21
|
createDaprAgentTurnStepCommitActivity,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApprovalRequest, ApprovalAction, ApprovalRememberScope, MiddlewareRunner, Tool, AgentEvent, FollowUpPolicy, FollowUpRequest, QueuedFollowUpRecord, FollowUpStatus, FollowUpDecisionAction, HumanInputRequest, HumanInputResponse, SteeringRequest, AgentWorkflowInterventionSnapshot, AgentWorkflowTurnState, SteeringResponse, FollowUpResponse, Agent, AgentTaskObserver } from '@cuylabs/agent-core';
|
|
2
|
-
import { D as DaprWorkflowClient, p as DaprAgentTurnWorkflowActivityNames, r as DaprAgentTurnWorkflowDefinition, S as StartDaprWorkflowOptions, v as DaprStartWorkflowResponse, c as CreateDaprAgentTurnWorkflowKitOptions, a as DaprAgentTurnWorkflowToolHandler, b as DaprAgentTurnActivityRegistration } from './client-
|
|
2
|
+
import { D as DaprWorkflowClient, p as DaprAgentTurnWorkflowActivityNames, r as DaprAgentTurnWorkflowDefinition, S as StartDaprWorkflowOptions, v as DaprStartWorkflowResponse, c as CreateDaprAgentTurnWorkflowKitOptions, a as DaprAgentTurnWorkflowToolHandler, b as DaprAgentTurnActivityRegistration } from './client-Dk8N3lMW.js';
|
|
3
3
|
import { e as DaprStateStoreClientOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
4
4
|
import { EventBus } from '@cuylabs/agent-core/events';
|
|
5
5
|
|
|
@@ -357,6 +357,7 @@ interface DaprAgentWorkflowRunRequest {
|
|
|
357
357
|
}
|
|
358
358
|
interface DaprAgentWorkflowRunResult {
|
|
359
359
|
sessionId: string;
|
|
360
|
+
turnId: string;
|
|
360
361
|
workflowInstanceId: string;
|
|
361
362
|
initialState: AgentWorkflowTurnState;
|
|
362
363
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuylabs/agent-runtime-dapr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Dapr-backed workload runtime and host adapters for @cuylabs/agent-runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"README.md"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@cuylabs/agent-core": "^
|
|
46
|
-
"@cuylabs/agent-runtime": "^
|
|
45
|
+
"@cuylabs/agent-core": "^5.0.0",
|
|
46
|
+
"@cuylabs/agent-runtime": "^5.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@dapr/dapr": "^3.6.1",
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"typescript": "^5.7.0",
|
|
76
76
|
"vitest": "^4.0.18",
|
|
77
77
|
"zod": "^3.24.0",
|
|
78
|
-
"@cuylabs/agent-code": "^
|
|
78
|
+
"@cuylabs/agent-code": "^5.0.0",
|
|
79
|
+
"@cuylabs/agent-session-store-file": "^5.0.0"
|
|
79
80
|
},
|
|
80
81
|
"keywords": [
|
|
81
82
|
"agent",
|