@cuylabs/agent-runtime-dapr 4.10.0 → 5.0.1
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/{chunk-7VYLWJTB.js → chunk-L6SWGYZC.js} +1 -0
- package/dist/{chunk-ZX2MACJF.js → chunk-WYU7JOJ7.js} +22 -11
- package/dist/{client-BQj84t2u.d.ts → client-Dk8N3lMW.d.ts} +1 -0
- package/dist/dispatch/index.d.ts +3 -3
- package/dist/host/index.d.ts +4 -4
- package/dist/host/index.js +2 -2
- package/dist/{index-DIpZewhn.d.ts → index-BA2PeEUf.d.ts} +4 -4
- package/dist/{index-u0qPFHJK.d.ts → index-DgexJdIL.d.ts} +2 -2
- package/dist/{index-NFuDUiOD.d.ts → index-_4f3HJj1.d.ts} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/team/index.d.ts +3 -3
- package/dist/team/index.js +2 -2
- package/dist/{worker-CgoEkwKw.d.ts → worker-DE8t7tcI.d.ts} +1 -1
- package/dist/workflow/index.d.ts +2 -2
- package/dist/workflow/index.js +1 -1
- package/dist/{workflow-host-Cxlu5sNv.d.ts → workflow-host-DHibEPOQ.d.ts} +1 -1
- package/package.json +5 -4
|
@@ -848,6 +848,7 @@ function createDaprAgentTurnWorkflowDefinition(options) {
|
|
|
848
848
|
{
|
|
849
849
|
workflowInstanceId: context.getWorkflowInstanceId?.() ?? "",
|
|
850
850
|
sessionId: state.sessionId,
|
|
851
|
+
turnId: state.turnId,
|
|
851
852
|
step: state.step,
|
|
852
853
|
messages: state.messages.map(
|
|
853
854
|
(message) => structuredClone(message)
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
DaprWorkflowClient,
|
|
17
17
|
createDaprAgentTurnWorkflowKit,
|
|
18
18
|
isTerminalDaprWorkflowStatus
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L6SWGYZC.js";
|
|
20
20
|
import {
|
|
21
21
|
DaprSidecarClient,
|
|
22
22
|
__export,
|
|
@@ -5301,6 +5301,7 @@ function createDaprWorkflowFollowUpRuntime(options) {
|
|
|
5301
5301
|
// src/host/workflow/workflow-host.ts
|
|
5302
5302
|
import process2 from "process";
|
|
5303
5303
|
import {
|
|
5304
|
+
commitAgentContextCompaction,
|
|
5304
5305
|
MiddlewareRunner,
|
|
5305
5306
|
isApprovalMiddleware as isApprovalMiddleware2,
|
|
5306
5307
|
createAgentWorkflowTurnState,
|
|
@@ -8260,11 +8261,11 @@ function createWorkflowUserMessage(message, createdAt) {
|
|
|
8260
8261
|
};
|
|
8261
8262
|
}
|
|
8262
8263
|
function createScopedSessionManager(agent) {
|
|
8263
|
-
return new SessionManager(agent.getSessionManager().
|
|
8264
|
+
return new SessionManager(agent.getSessionManager().getStore());
|
|
8264
8265
|
}
|
|
8265
8266
|
async function ensureWorkflowSessionLoaded(agent, sessionId, options) {
|
|
8266
8267
|
const sessions = createScopedSessionManager(agent);
|
|
8267
|
-
const storage = sessions.
|
|
8268
|
+
const storage = sessions.getStore();
|
|
8268
8269
|
let existingEntries;
|
|
8269
8270
|
try {
|
|
8270
8271
|
existingEntries = await storage.read(sessionId);
|
|
@@ -8423,7 +8424,15 @@ function createDaprAgentWorkflowHost(options) {
|
|
|
8423
8424
|
);
|
|
8424
8425
|
const result = await options.agent.compactMessages(
|
|
8425
8426
|
restoreAgentWorkflowMessages(input.messages),
|
|
8426
|
-
{
|
|
8427
|
+
{
|
|
8428
|
+
force: input.force,
|
|
8429
|
+
sessionId: input.sessionId,
|
|
8430
|
+
...input.turnId ? { turnId: input.turnId } : {},
|
|
8431
|
+
cwd: options.agent.cwd,
|
|
8432
|
+
phase: input.force ? "recovery" : "pre-step",
|
|
8433
|
+
trigger: input.force ? "recovery" : "auto",
|
|
8434
|
+
reason: input.force ? "provider-overflow" : "context-limit"
|
|
8435
|
+
}
|
|
8427
8436
|
);
|
|
8428
8437
|
if (!result.compacted) {
|
|
8429
8438
|
return {
|
|
@@ -8438,12 +8447,14 @@ function createDaprAgentWorkflowHost(options) {
|
|
|
8438
8447
|
summarized: false
|
|
8439
8448
|
};
|
|
8440
8449
|
}
|
|
8441
|
-
await
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8450
|
+
await commitAgentContextCompaction({
|
|
8451
|
+
sessions,
|
|
8452
|
+
result,
|
|
8453
|
+
middlewareRunner: options.agent.getMiddlewareRunner(),
|
|
8454
|
+
sessionId: input.sessionId,
|
|
8455
|
+
...input.turnId ? { turnId: input.turnId } : {},
|
|
8456
|
+
cwd: options.agent.cwd,
|
|
8457
|
+
phase: input.force ? "recovery" : "pre-step"
|
|
8447
8458
|
});
|
|
8448
8459
|
return {
|
|
8449
8460
|
compacted: true,
|
|
@@ -10520,7 +10531,7 @@ function createDaprAgentServerAdapter(runner, options = {}) {
|
|
|
10520
10531
|
},
|
|
10521
10532
|
listSessions: () => agent.listSessions(),
|
|
10522
10533
|
deleteSession: (sessionId) => agent.deleteSession(sessionId),
|
|
10523
|
-
|
|
10534
|
+
getSessionStore: () => agent.getSessionManager().getStore(),
|
|
10524
10535
|
listPluginCommands: () => pluginCommandInfos,
|
|
10525
10536
|
executePluginCommand: async (name, args) => {
|
|
10526
10537
|
const command = pluginCommandTokens.get(
|
|
@@ -138,6 +138,7 @@ interface DaprAgentTurnSteerDrainInput {
|
|
|
138
138
|
interface DaprAgentTurnContextCompactionInput {
|
|
139
139
|
workflowInstanceId: string;
|
|
140
140
|
sessionId: string;
|
|
141
|
+
turnId?: string;
|
|
141
142
|
step: number;
|
|
142
143
|
messages: AgentWorkflowTurnState["messages"];
|
|
143
144
|
force?: boolean;
|
package/dist/dispatch/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { b as DaprAppDispatchExecutorOptions, c as DaprDispatchRecord, D as DaprDispatchRuntimeOptions, 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-
|
|
1
|
+
export { b as DaprAppDispatchExecutorOptions, c as DaprDispatchRecord, D as DaprDispatchRuntimeOptions, 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';
|
|
2
2
|
import '@cuylabs/agent-core';
|
|
3
3
|
import '../workflow-bridge-BcicHH1Y.js';
|
|
4
4
|
import '../invoker-B6ikdYaz.js';
|
|
5
|
-
import '../workflow-host-
|
|
6
|
-
import '../client-
|
|
5
|
+
import '../workflow-host-DHibEPOQ.js';
|
|
6
|
+
import '../client-Dk8N3lMW.js';
|
|
7
7
|
import '@cuylabs/agent-core/events';
|
|
8
8
|
import '../store-BXBIDz40.js';
|
|
9
9
|
import '@cuylabs/agent-runtime';
|
package/dist/host/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { C as CreateDaprAgentServerAdapterOptions, a as CreateRemoteAgentToolOptions, D as DaprAgentDurableRunOptions, b as DaprAgentDurableRunResult, N as DaprAgentHttpHandlerOptions, O as DaprAgentHttpRoute, c as DaprAgentRunner, d as DaprAgentRunnerOptions, e as DaprAgentRuntimeBundle, f as DaprAgentRuntimeOptions, g as DaprAgentServeOptions, h as DaprAgentTaskErrorContext, i as DaprAgentTaskResultContext, j as DaprHostApp, P as DaprHostHttpHandler, k as DaprHostHttpHandlerOptions, l as DaprHostHttpServer, m as DaprHostHttpServerOptions, n as DaprHostReadinessCheck, o as DaprHostReadinessStatus, p as DaprHostRemoteRunRequest, q as DaprHostedAgentInfo, Q as DaprHttpServerOptions, u as DaprMultiAgentRunner, v as DaprMultiAgentRunnerAgentConfig, w as DaprMultiAgentRunnerOptions, y as DaprWorkloadErrorContext, z as DaprWorkloadResultContext, A as DaprWorkloadRuntimeBundle, B as DaprWorkloadRuntimeOptions, E as createDaprAgentRunner, F as createDaprAgentRuntime, G as createDaprAgentServerAdapter, H as createDaprHostHttpHandler, J as createDaprMultiAgentRunner, K as createDaprWorkloadRuntime, L as createRemoteAgentTool, M as startDaprHostHttpServer, R as startDaprHttpServer } from '../index-
|
|
1
|
+
export { C as CreateDaprAgentServerAdapterOptions, a as CreateRemoteAgentToolOptions, D as DaprAgentDurableRunOptions, b as DaprAgentDurableRunResult, N as DaprAgentHttpHandlerOptions, O as DaprAgentHttpRoute, c as DaprAgentRunner, d as DaprAgentRunnerOptions, e as DaprAgentRuntimeBundle, f as DaprAgentRuntimeOptions, g as DaprAgentServeOptions, h as DaprAgentTaskErrorContext, i as DaprAgentTaskResultContext, j as DaprHostApp, P as DaprHostHttpHandler, k as DaprHostHttpHandlerOptions, l as DaprHostHttpServer, m as DaprHostHttpServerOptions, n as DaprHostReadinessCheck, o as DaprHostReadinessStatus, p as DaprHostRemoteRunRequest, q as DaprHostedAgentInfo, Q as DaprHttpServerOptions, u as DaprMultiAgentRunner, v as DaprMultiAgentRunnerAgentConfig, w as DaprMultiAgentRunnerOptions, y as DaprWorkloadErrorContext, z as DaprWorkloadResultContext, A as DaprWorkloadRuntimeBundle, B as DaprWorkloadRuntimeOptions, E as createDaprAgentRunner, F as createDaprAgentRuntime, G as createDaprAgentServerAdapter, H as createDaprHostHttpHandler, J as createDaprMultiAgentRunner, K as createDaprWorkloadRuntime, L as createRemoteAgentTool, M as startDaprHostHttpServer, R as startDaprHttpServer } from '../index-BA2PeEUf.js';
|
|
2
2
|
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';
|
|
3
|
-
export { b as DaprAgentWorkflowFollowUpRequest, a as DaprAgentWorkflowHost, 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-
|
|
4
|
-
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from '../worker-
|
|
3
|
+
export { b as DaprAgentWorkflowFollowUpRequest, a as DaprAgentWorkflowHost, 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';
|
|
4
|
+
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from '../worker-DE8t7tcI.js';
|
|
5
5
|
export { EventBus, EventBusMessage, EventBusOptions, EventBusSubscribeOptions, EventBusSubscription, createEventBus } from '@cuylabs/agent-core/events';
|
|
6
6
|
import '@cuylabs/agent-core';
|
|
7
7
|
import '../store-BXBIDz40.js';
|
|
8
8
|
import '@cuylabs/agent-runtime';
|
|
9
9
|
import '../workflow-bridge-BcicHH1Y.js';
|
|
10
|
-
import '../client-
|
|
10
|
+
import '../client-Dk8N3lMW.js';
|
|
11
11
|
import 'node:http';
|
package/dist/host/index.js
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
startDaprAgentWorkflowTurn,
|
|
18
18
|
startDaprHostHttpServer,
|
|
19
19
|
startDaprHttpServer
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-WYU7JOJ7.js";
|
|
21
21
|
import {
|
|
22
22
|
DaprServiceInvoker,
|
|
23
23
|
invokeRemoteAgentRun
|
|
24
24
|
} from "../chunk-BQLQLDWZ.js";
|
|
25
25
|
import "../chunk-POIJYTT6.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-L6SWGYZC.js";
|
|
27
27
|
import "../chunk-HQLQRXU5.js";
|
|
28
28
|
export {
|
|
29
29
|
DaprServiceInvoker,
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DispatchTargetInspection, DispatchRecord, DispatchTarget, DispatchRuntime, TaskExecutor } from '@cuylabs/agent-core';
|
|
2
2
|
import { e as DaprStateStoreClientOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
3
3
|
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-B6ikdYaz.js';
|
|
4
|
-
import { a as DaprAgentWorkflowHost, d as DaprAgentWorkflowRunRequest } from './workflow-host-
|
|
5
|
-
import { D as DaprWorkflowClient, z as DaprWorkflowState } from './client-
|
|
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
8
|
interface WorkflowDispatchTargetOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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
4
|
declare const DEFAULT_AGENT_TURN_WORKFLOW_NAME = "agent-turn";
|
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 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-
|
|
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,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
createDaprAgentTurnWorkflowKit,
|
|
71
71
|
hasStartedDaprWorkflow,
|
|
72
72
|
isTerminalDaprWorkflowStatus
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-L6SWGYZC.js";
|
|
74
74
|
import "./chunk-HQLQRXU5.js";
|
|
75
75
|
export {
|
|
76
76
|
DAPR_SUBAGENT_BACKEND,
|
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-
|
|
13
|
+
} from "../chunk-WYU7JOJ7.js";
|
|
14
14
|
import "../chunk-BQLQLDWZ.js";
|
|
15
15
|
import "../chunk-POIJYTT6.js";
|
|
16
|
-
import "../chunk-
|
|
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 { 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-
|
|
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,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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuylabs/agent-runtime-dapr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
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.1",
|
|
46
|
+
"@cuylabs/agent-runtime": "^5.0.1"
|
|
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.1",
|
|
79
|
+
"@cuylabs/agent-session-store-file": "^5.0.1"
|
|
79
80
|
},
|
|
80
81
|
"keywords": [
|
|
81
82
|
"agent",
|