@cuylabs/agent-runtime-dapr 0.10.0 → 0.11.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/dist/{chunk-MJKJT3ZO.js → chunk-O7H3XGY2.js} +27 -24
- package/dist/dispatch/index.d.ts +2 -2
- package/dist/host/index.d.ts +2 -2
- package/dist/host/index.js +1 -1
- package/dist/{index-BmM58WZa.d.ts → index-BY0FipV1.d.ts} +3 -5
- package/dist/{index-BEOwKSPI.d.ts → index-UtePd9on.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/{invoker-B1jvz9DG.d.ts → invoker-B6ikdYaz.d.ts} +2 -4
- package/dist/team/index.js +1 -1
- package/package.json +4 -4
|
@@ -5286,6 +5286,7 @@ function createDaprWorkflowFollowUpRuntime(options) {
|
|
|
5286
5286
|
|
|
5287
5287
|
// src/host/workflow/workflow-host.ts
|
|
5288
5288
|
import { randomUUID } from "crypto";
|
|
5289
|
+
import process2 from "process";
|
|
5289
5290
|
import {
|
|
5290
5291
|
MiddlewareRunner,
|
|
5291
5292
|
SessionManager,
|
|
@@ -6691,7 +6692,7 @@ function createCoordinatorWorkflowDefinition(options) {
|
|
|
6691
6692
|
response: reasonResult.response,
|
|
6692
6693
|
usage: reasonResult.usage
|
|
6693
6694
|
};
|
|
6694
|
-
|
|
6695
|
+
const notifications = [...applied.notifications];
|
|
6695
6696
|
let reports = [];
|
|
6696
6697
|
if (notifications.length === 0) {
|
|
6697
6698
|
const reportBatch = yield ctx.callActivity(
|
|
@@ -7188,11 +7189,11 @@ async function readJsonBody(request) {
|
|
|
7188
7189
|
throw new Error("Request body too large");
|
|
7189
7190
|
}
|
|
7190
7191
|
}
|
|
7191
|
-
const
|
|
7192
|
-
if (
|
|
7192
|
+
const text2 = await request.text();
|
|
7193
|
+
if (text2.length > MAX_BODY_SIZE) {
|
|
7193
7194
|
throw new Error("Request body too large");
|
|
7194
7195
|
}
|
|
7195
|
-
return
|
|
7196
|
+
return text2 ? JSON.parse(text2) : {};
|
|
7196
7197
|
}
|
|
7197
7198
|
function toSafeError(error) {
|
|
7198
7199
|
if (error instanceof Error) {
|
|
@@ -7414,7 +7415,6 @@ async function routeTeamRequest(request, segments, url, coordinator, eventBus, l
|
|
|
7414
7415
|
return void 0;
|
|
7415
7416
|
}
|
|
7416
7417
|
function startCoordinatorLoopWithSSE(coordinator, prompt, eventBus, options) {
|
|
7417
|
-
const channel = `team:${coordinator.teamId}:run`;
|
|
7418
7418
|
const encoder = new TextEncoder();
|
|
7419
7419
|
const stream = new ReadableStream({
|
|
7420
7420
|
start(controller) {
|
|
@@ -8337,7 +8337,7 @@ function createDaprAgentWorkflowHost(options) {
|
|
|
8337
8337
|
host: () => options.agent.getHost(),
|
|
8338
8338
|
middleware: () => options.agent.getMiddlewareRunner(),
|
|
8339
8339
|
reasoningLevel: () => options.agent.reasoningLevel,
|
|
8340
|
-
resolveSystemPrompts: (sessionId,
|
|
8340
|
+
resolveSystemPrompts: (sessionId, _current) => options.agent.buildSystemPrompts(sessionId),
|
|
8341
8341
|
...options.createAbortSignal ? { createAbortSignal: options.createAbortSignal } : {},
|
|
8342
8342
|
...onEvent ? { onEvent } : {},
|
|
8343
8343
|
now
|
|
@@ -8538,8 +8538,9 @@ function createDaprAgentWorkflowHost(options) {
|
|
|
8538
8538
|
preparedRun.workflowInstanceId
|
|
8539
8539
|
);
|
|
8540
8540
|
} catch (error) {
|
|
8541
|
-
|
|
8542
|
-
`[${options.workflowName ?? options.agent.name}] Failed to mark seeded follow-ups as applied for session "${preparedRun.sessionId}": ${error instanceof Error ? error.message : String(error)}
|
|
8541
|
+
process2.stderr.write(
|
|
8542
|
+
`[${options.workflowName ?? options.agent.name}] Failed to mark seeded follow-ups as applied for session "${preparedRun.sessionId}": ${error instanceof Error ? error.message : String(error)}
|
|
8543
|
+
`
|
|
8543
8544
|
);
|
|
8544
8545
|
}
|
|
8545
8546
|
}
|
|
@@ -9361,7 +9362,7 @@ async function handleHumanInputRoutes(method, segments, request, agent, workflow
|
|
|
9361
9362
|
}
|
|
9362
9363
|
|
|
9363
9364
|
// src/host/http/routers/follow-up.ts
|
|
9364
|
-
async function handleFollowUpRoutes(method, segments, request, agent,
|
|
9365
|
+
async function handleFollowUpRoutes(method, segments, request, agent, _workflowClient) {
|
|
9365
9366
|
const followUpRuntime = agent.workflowHost.followUpRuntime;
|
|
9366
9367
|
if (method === "GET" && segments.length === 0) {
|
|
9367
9368
|
if (!followUpRuntime) {
|
|
@@ -10340,7 +10341,7 @@ function createDaprAgentServerAdapter(runner, options = {}) {
|
|
|
10340
10341
|
}
|
|
10341
10342
|
|
|
10342
10343
|
// src/host/events/pubsub-bridge.ts
|
|
10343
|
-
import
|
|
10344
|
+
import process3 from "process";
|
|
10344
10345
|
function isAgentCloudEvent(value) {
|
|
10345
10346
|
if (!value || typeof value !== "object") return false;
|
|
10346
10347
|
const obj = value;
|
|
@@ -10358,7 +10359,7 @@ function extractAgentEvent(cloudEvent) {
|
|
|
10358
10359
|
return null;
|
|
10359
10360
|
}
|
|
10360
10361
|
function getDefaultDaprHttpEndpoint() {
|
|
10361
|
-
const port =
|
|
10362
|
+
const port = process3.env.DAPR_HTTP_PORT ?? "3500";
|
|
10362
10363
|
return `http://127.0.0.1:${port}`;
|
|
10363
10364
|
}
|
|
10364
10365
|
var DEFAULT_PUBSUB_NAME = "pubsub";
|
|
@@ -10495,13 +10496,13 @@ function createDaprPubSubEventBridge(options) {
|
|
|
10495
10496
|
}
|
|
10496
10497
|
|
|
10497
10498
|
// src/host/runner/runner.ts
|
|
10498
|
-
import
|
|
10499
|
+
import process6 from "process";
|
|
10499
10500
|
import { getConfiguredSubAgents as getConfiguredSubAgents2 } from "@cuylabs/agent-core";
|
|
10500
10501
|
|
|
10501
10502
|
// src/host/runner/http-middleware.ts
|
|
10502
10503
|
import { readFile } from "fs/promises";
|
|
10503
10504
|
import { extname, join, relative, resolve } from "path";
|
|
10504
|
-
import
|
|
10505
|
+
import process4 from "process";
|
|
10505
10506
|
function normalizeRouteMethods(methods) {
|
|
10506
10507
|
if (!methods) {
|
|
10507
10508
|
return void 0;
|
|
@@ -10551,7 +10552,7 @@ async function maybeServeStaticAsset(request, options) {
|
|
|
10551
10552
|
const relativePath = decodedPath === "/" ? indexFile : decodedPath.replace(/^\/+/, "");
|
|
10552
10553
|
const assetPath = resolve(join(staticRoot, relativePath));
|
|
10553
10554
|
const traversal = relative(staticRoot, assetPath);
|
|
10554
|
-
if (traversal === ".." || traversal.startsWith(`..${
|
|
10555
|
+
if (traversal === ".." || traversal.startsWith(`..${process4.platform === "win32" ? "\\" : "/"}`)) {
|
|
10555
10556
|
return new Response("Not found", { status: 404 });
|
|
10556
10557
|
}
|
|
10557
10558
|
try {
|
|
@@ -10592,10 +10593,10 @@ function composeRunnerHttpHandler(baseHandler, options = {}) {
|
|
|
10592
10593
|
}
|
|
10593
10594
|
|
|
10594
10595
|
// src/host/runner/helpers.ts
|
|
10595
|
-
import
|
|
10596
|
+
import process5 from "process";
|
|
10596
10597
|
function resolveDaprConfig(options) {
|
|
10597
|
-
const daprHost =
|
|
10598
|
-
const daprHttpPort =
|
|
10598
|
+
const daprHost = process5.env.DAPR_HOST ?? "127.0.0.1";
|
|
10599
|
+
const daprHttpPort = process5.env.DAPR_HTTP_PORT ?? "3500";
|
|
10599
10600
|
return {
|
|
10600
10601
|
daprHttpEndpoint: options.daprHttpEndpoint ?? `http://${daprHost}:${daprHttpPort}`,
|
|
10601
10602
|
stateStoreName: options.stateStoreName ?? "statestore",
|
|
@@ -10811,7 +10812,8 @@ function createDaprAgentRunner(options) {
|
|
|
10811
10812
|
let httpServer;
|
|
10812
10813
|
function log(message) {
|
|
10813
10814
|
if (options.logging !== false) {
|
|
10814
|
-
|
|
10815
|
+
process6.stdout.write(`[${name}] ${message}
|
|
10816
|
+
`);
|
|
10815
10817
|
}
|
|
10816
10818
|
}
|
|
10817
10819
|
return {
|
|
@@ -10882,8 +10884,8 @@ function createDaprAgentRunner(options) {
|
|
|
10882
10884
|
await this.stop();
|
|
10883
10885
|
resolve2();
|
|
10884
10886
|
};
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
+
process6.once("SIGINT", () => void shutdown("SIGINT"));
|
|
10888
|
+
process6.once("SIGTERM", () => void shutdown("SIGTERM"));
|
|
10887
10889
|
});
|
|
10888
10890
|
},
|
|
10889
10891
|
async run(message, runOptions) {
|
|
@@ -10948,7 +10950,7 @@ function createDaprAgentRunner(options) {
|
|
|
10948
10950
|
}
|
|
10949
10951
|
|
|
10950
10952
|
// src/host/runner/multi-runner.ts
|
|
10951
|
-
import
|
|
10953
|
+
import process7 from "process";
|
|
10952
10954
|
function createDaprMultiAgentRunner(options) {
|
|
10953
10955
|
const config = resolveDaprConfig({
|
|
10954
10956
|
...options,
|
|
@@ -11083,7 +11085,8 @@ function createDaprMultiAgentRunner(options) {
|
|
|
11083
11085
|
let httpServer;
|
|
11084
11086
|
function log(message) {
|
|
11085
11087
|
if (loggingEnabled) {
|
|
11086
|
-
|
|
11088
|
+
process7.stdout.write(`[multi-agent] ${message}
|
|
11089
|
+
`);
|
|
11087
11090
|
}
|
|
11088
11091
|
}
|
|
11089
11092
|
return {
|
|
@@ -11142,8 +11145,8 @@ function createDaprMultiAgentRunner(options) {
|
|
|
11142
11145
|
await this.stop();
|
|
11143
11146
|
resolve2();
|
|
11144
11147
|
};
|
|
11145
|
-
|
|
11146
|
-
|
|
11148
|
+
process7.once("SIGINT", () => void shutdown("SIGINT"));
|
|
11149
|
+
process7.once("SIGTERM", () => void shutdown("SIGTERM"));
|
|
11147
11150
|
});
|
|
11148
11151
|
},
|
|
11149
11152
|
async stop() {
|
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-UtePd9on.js';
|
|
2
2
|
import '@cuylabs/agent-core';
|
|
3
3
|
import '../workflow-bridge-BcicHH1Y.js';
|
|
4
4
|
import '../client-UsEIzDF6.js';
|
|
5
5
|
import '../workflow-host-D6W6fXoL.js';
|
|
6
6
|
import '@cuylabs/agent-core/events';
|
|
7
|
-
import '../invoker-
|
|
7
|
+
import '../invoker-B6ikdYaz.js';
|
|
8
8
|
import '../store-BXBIDz40.js';
|
|
9
9
|
import '@cuylabs/agent-runtime';
|
package/dist/host/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-BY0FipV1.js';
|
|
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
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-D6W6fXoL.js';
|
|
4
4
|
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from '../worker-CXq0IFGX.js';
|
|
5
5
|
export { EventBus, EventBusMessage, EventBusOptions, EventBusSubscribeOptions, EventBusSubscription, createEventBus } from '@cuylabs/agent-core/events';
|
package/dist/host/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AgentTaskPayload, SteeringResponse, FollowUpResponse, Tool, AgentTaskRe
|
|
|
2
2
|
import { h as DaprExecutionStore } from './store-BXBIDz40.js';
|
|
3
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-D6W6fXoL.js';
|
|
4
4
|
import { EventBus } from '@cuylabs/agent-core/events';
|
|
5
|
-
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-
|
|
5
|
+
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-B6ikdYaz.js';
|
|
6
6
|
import { D as DaprWorkflowWorker, d as DaprWorkflowWorkerRuntime } from './worker-CXq0IFGX.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';
|
|
@@ -260,10 +260,8 @@ interface DaprWorkloadRuntimeBundle<TPayload = unknown, TResult = unknown> {
|
|
|
260
260
|
runWorkload: RuntimeWorkloadRunner<TPayload, TResult>;
|
|
261
261
|
handleDaprJob: (jobName: string) => Promise<DaprHttpJobHandlerResult>;
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
interface DaprAgentTaskErrorContext<TPayload extends AgentTaskPayload = AgentTaskPayload> extends DaprWorkloadErrorContext<TPayload> {
|
|
266
|
-
}
|
|
263
|
+
type DaprAgentTaskResultContext<TPayload extends AgentTaskPayload = AgentTaskPayload> = DaprWorkloadResultContext<TPayload, AgentTaskResult>;
|
|
264
|
+
type DaprAgentTaskErrorContext<TPayload extends AgentTaskPayload = AgentTaskPayload> = DaprWorkloadErrorContext<TPayload>;
|
|
267
265
|
interface DaprAgentRuntimeOptions<TPayload extends AgentTaskPayload = AgentTaskPayload> extends Omit<DaprWorkloadRuntimeOptions<TPayload, AgentTaskResult>, "runWorkload" | "onWorkloadResult" | "onWorkloadError"> {
|
|
268
266
|
/** Agent instance used for job execution. */
|
|
269
267
|
agent: Agent;
|
|
@@ -2,7 +2,7 @@ import { DispatchRecord, DispatchTarget, DispatchTargetInspection, DispatchRunti
|
|
|
2
2
|
import { e as DaprStateStoreClientOptions } from './workflow-bridge-BcicHH1Y.js';
|
|
3
3
|
import { D as DaprWorkflowClient, z as DaprWorkflowState } from './client-UsEIzDF6.js';
|
|
4
4
|
import { a as DaprAgentWorkflowHost, d as DaprAgentWorkflowRunRequest } from './workflow-host-D6W6fXoL.js';
|
|
5
|
-
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-
|
|
5
|
+
import { b as DaprServiceInvoker, c as DaprServiceInvokerOptions } from './invoker-B6ikdYaz.js';
|
|
6
6
|
import { h as DaprExecutionStore } from './store-BXBIDz40.js';
|
|
7
7
|
|
|
8
8
|
interface DaprDispatchRecord extends DispatchRecord {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,18 +2,18 @@ import { a as DaprOrchestratorRunStoreOptions } from './workflow-bridge-BcicHH1Y
|
|
|
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
3
|
import { D as DaprWorkflowClient, a as DaprAgentTurnWorkflowToolHandler, b as DaprAgentTurnActivityRegistration } from './client-UsEIzDF6.js';
|
|
4
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-UsEIzDF6.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-
|
|
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-BY0FipV1.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
9
|
export { c as createDaprAgentTurnApprovalCheckActivity, a as createDaprAgentTurnHumanInputCheckActivity, b as createDaprAgentTurnModelStepActivity, d as createDaprAgentTurnOutputCommitActivity, e as createDaprAgentTurnSteerDrainActivity, f as createDaprAgentTurnStepCommitActivity, g as createDaprAgentTurnToolCallActivity, h as createDaprAgentTurnWorkflowDefinition, i as createDaprAgentTurnWorkflowKit } from './index-CFm5LORU.js';
|
|
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-
|
|
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
11
|
import { a as DaprAgentWorkflowHost } from './workflow-host-D6W6fXoL.js';
|
|
12
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-D6W6fXoL.js';
|
|
13
13
|
export { D as DaprWorkflowWorker, a as DaprWorkflowWorkerAgentDefinition, b as DaprWorkflowWorkerLogger, c as DaprWorkflowWorkerOptions, d as DaprWorkflowWorkerRuntime, e as createDaprWorkflowWorker } from './worker-CXq0IFGX.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-UtePd9on.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-UtePd9on.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
|
@@ -28,11 +28,9 @@ interface DaprInvokeMethodResult<TResponse = unknown> {
|
|
|
28
28
|
headers: Headers;
|
|
29
29
|
}
|
|
30
30
|
/** Default request contract for invoking a remote agent over service invocation. */
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
type RemoteAgentRunRequest = AgentTaskPayload;
|
|
33
32
|
/** Default response contract for remote agent execution. */
|
|
34
|
-
|
|
35
|
-
}
|
|
33
|
+
type RemoteAgentRunResponse = AgentTaskResult;
|
|
36
34
|
|
|
37
35
|
declare class DaprServiceInvoker {
|
|
38
36
|
private readonly daprHttpEndpoint;
|
package/dist/team/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createDaprTeamHttpHandler,
|
|
11
11
|
createDaprTeamRunner,
|
|
12
12
|
createPrepareExternalTasksActivity
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-O7H3XGY2.js";
|
|
14
14
|
import "../chunk-YQQTUE6B.js";
|
|
15
15
|
import "../chunk-5CJIC4YB.js";
|
|
16
16
|
import "../chunk-YS2CWYBQ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuylabs/agent-runtime-dapr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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": "^0.
|
|
46
|
-
"@cuylabs/agent-runtime": "^0.
|
|
45
|
+
"@cuylabs/agent-core": "^0.11.0",
|
|
46
|
+
"@cuylabs/agent-runtime": "^0.11.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@dapr/dapr": "^3.6.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typescript": "^5.7.0",
|
|
76
76
|
"vitest": "^4.0.18",
|
|
77
77
|
"zod": "^3.24.0",
|
|
78
|
-
"@cuylabs/agent-code": "^0.
|
|
78
|
+
"@cuylabs/agent-code": "^0.11.0"
|
|
79
79
|
},
|
|
80
80
|
"keywords": [
|
|
81
81
|
"agent",
|