@neta-art/cohub 5.8.1 → 5.8.2

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.
@@ -90,6 +90,7 @@ type GenerationUsageBilling = {
90
90
  };
91
91
  type GenerationTaskResult = {
92
92
  model: string;
93
+ provider?: string | null;
93
94
  output: GenerationContentBlock[];
94
95
  requestId?: string;
95
96
  cost?: number;
@@ -226,6 +226,7 @@ type SpaceCompletionStreamEvent = {
226
226
  //#region ../protocol/dist/model/turn.d.ts
227
227
  type SessionTurnStatus = "queued" | "running" | "abort_requested" | "completed" | "failed" | "interrupted" | "merged" | "cancelled";
228
228
  type SessionTurnIntent = "steer" | "followup" | "compact";
229
+ type SessionTurnExecutionKind = "agent" | "direct_generation";
229
230
  type SessionTurnSummary = {
230
231
  text?: string | null;
231
232
  finishReason?: "completed" | "failed" | "interrupted" | "merged" | "cancelled";
@@ -283,6 +284,7 @@ type SessionTurnIndexItem = {
283
284
  sourceTurnId?: string;
284
285
  sequence: number;
285
286
  status: SessionTurnStatus;
287
+ executionKind?: SessionTurnExecutionKind;
286
288
  /** Present on current turn index payloads; older caches may omit it. */
287
289
  intent?: SessionTurnIntent;
288
290
  userUuid?: string | null;
@@ -324,6 +326,7 @@ type SessionTurnRecord = {
324
326
  sourceTurnId?: string;
325
327
  userUuid: string | null;
326
328
  sequence: number;
329
+ executionKind?: SessionTurnExecutionKind;
327
330
  status: SessionTurnStatus;
328
331
  intent: SessionTurnIntent;
329
332
  userContent: ContentBlock[];
@@ -2062,7 +2065,7 @@ type SessionTurnLifecycleEvent = {
2062
2065
  at: string;
2063
2066
  };
2064
2067
  };
2065
- type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "meta" | "thinkingLevel" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
2068
+ type RealtimeTurnRecord = Partial<Pick<SessionTurnRecord, "id" | "sessionId" | "sequence" | "executionKind" | "status" | "intent" | "userUuid" | "authorProfile" | "userContent" | "userText" | "assistantContent" | "assistantText" | "provider" | "model" | "stopReason" | "errorMessage" | "finalUsage" | "totalUsage" | "summary" | "intermediateIndex" | "intermediateSummary" | "meta" | "thinkingLevel" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | "updatedAt">>;
2066
2069
  type RealtimeMessageRecord = Pick<MessageRecord, "id" | "sessionId" | "role" | "content" | "text" | "sequence" | "provider" | "model" | "stopReason" | "errorMessage" | "usage" | "meta" | "startedAt" | "completedAt" | "durationMs" | "createdAt">;
2067
2070
  type SessionTurnCreatedEvent = {
2068
2071
  id: string;
@@ -3533,11 +3536,18 @@ type UserSessionsResponse = {
3533
3536
  };
3534
3537
  type PromptAccessMode = "read_only" | "full_access";
3535
3538
  type CreateSpacePromptInput = {
3539
+ mode?: "agent" | "create";
3540
+ generation?: {
3541
+ model: string;
3542
+ content: GenerationContentBlock[];
3543
+ parameters?: Record<string, unknown>;
3544
+ meta?: Record<string, unknown>;
3545
+ } | null;
3536
3546
  sessionId?: string | null;
3537
3547
  title?: string | null;
3538
3548
  /** Optional channel; falls back to X-Cohub-Source-Via. */
3539
3549
  source?: string | null;
3540
- content: ContentBlock[];
3550
+ content?: ContentBlock[];
3541
3551
  model?: string | null;
3542
3552
  provider?: string | null;
3543
3553
  /** Optional thinking level override for this turn. Omit to inherit session default. */
@@ -3564,6 +3574,10 @@ type CreateSpacePromptInput = {
3564
3574
  };
3565
3575
  type CreateSpacePromptResponse = (SessionTurnResponse & {
3566
3576
  mode: "immediate";
3577
+ execution?: {
3578
+ kind: "direct_generation";
3579
+ taskRunId: string;
3580
+ };
3567
3581
  }) | {
3568
3582
  mode: "delay" | "at";
3569
3583
  taskRunId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub",
3
- "version": "5.8.1",
3
+ "version": "5.8.2",
4
4
  "description": "Cohub SDK for spaces, sessions, boards, and realtime agent collaboration.",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,