@rivus/agent 0.12.4 → 0.12.5

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/index.d.ts CHANGED
@@ -2938,7 +2938,7 @@ interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndp
2938
2938
  readonly onWorkerError?: (error: unknown) => void | Promise<void>;
2939
2939
  readonly onCapacityExceeded?: (payload: FeishuReceiveMessagePayload) => Effect.Effect<void, unknown>;
2940
2940
  readonly prepareRun?: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
2941
- readonly promptContext?: FeishuPromptContextResolver;
2941
+ readonly promptContext: FeishuPromptContextResolver;
2942
2942
  readonly publish: (action: FeishuStreamAction) => Effect.Effect<void, unknown>;
2943
2943
  readonly publishRunUpdate?: AgentRunUpdateHandler;
2944
2944
  readonly reply?: (messageId: string, text: string) => Effect.Effect<void, unknown>;
package/dist/index.js CHANGED
@@ -6147,6 +6147,7 @@ function createAgentHarnessPooledRuntime(harness) {
6147
6147
  const DEFAULT_WORKER_INTERVAL_MS = 25;
6148
6148
  const DEFAULT_SHUTDOWN_TIMEOUT_MS = 1e4;
6149
6149
  function createFeishuDeploymentEndpoint(options) {
6150
+ if (!options.promptContext) throw new Error("Feishu deployment endpoint requires a prompt context resolver; configure createFeishuTopicContextResolver with the endpoint OpenAPI client");
6150
6151
  const execution = createDeploymentExecution({
6151
6152
  ...options,
6152
6153
  shutdownTimeoutMs: options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS
@@ -6160,7 +6161,7 @@ function createFeishuDeploymentEndpoint(options) {
6160
6161
  ...options.finalizeRun ? { finalizeRun: options.finalizeRun } : {},
6161
6162
  ...options.interactions ? { interactions: options.interactions } : {},
6162
6163
  ...options.prepareRun ? { prepareRun: options.prepareRun } : {},
6163
- ...options.promptContext ? { promptContext: options.promptContext } : {},
6164
+ promptContext: options.promptContext,
6164
6165
  publish: options.publish,
6165
6166
  ...options.publishRunUpdate ? { publishRunUpdate: options.publishRunUpdate } : {},
6166
6167
  ...options.reply ? { reply: options.reply } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivus/agent",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "A local agent daemon core built around a usable agent harness and domain events.",
5
5
  "type": "module",
6
6
  "license": "MIT",