@neta-art/cohub 1.28.2 → 1.29.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.
@@ -66,7 +66,12 @@ type FeishuChannelConfig = {
66
66
  showToolCalls?: boolean;
67
67
  };
68
68
  };
69
- type ChannelConfig = DiscordChannelConfig | FeishuChannelConfig | Record<string, unknown>;
69
+ type WeChatChannelConfig = {
70
+ outbound?: {
71
+ showIntermediateStatus?: boolean;
72
+ };
73
+ };
74
+ type ChannelConfig = DiscordChannelConfig | FeishuChannelConfig | WeChatChannelConfig | Record<string, unknown>;
70
75
  //#endregion
71
76
  //#region ../../node_modules/.pnpm/@neta-art+generation@0.1.5/node_modules/@neta-art/generation/dist/builtins-C-_aGhT8.d.ts
72
77
  //#region src/types.d.ts
@@ -984,6 +989,7 @@ type CreateSpacePromptInput = {
984
989
  generationPolicy?: GenerationPolicy | null;
985
990
  intent?: "followup" | "steer" | null;
986
991
  accessMode?: PromptAccessMode | null;
992
+ env?: Record<string, string> | null;
987
993
  labelRefs?: string[];
988
994
  schedule?: {
989
995
  mode?: "immediate";
@@ -1020,6 +1026,7 @@ type SendMessageCronJobPayload = CronJobPayload & {
1020
1026
  generationPolicy?: unknown;
1021
1027
  intent?: "followup" | "steer" | string;
1022
1028
  accessMode?: "read_only" | "full_access";
1029
+ env?: Record<string, string> | null;
1023
1030
  source?: string;
1024
1031
  sessionId?: string;
1025
1032
  title?: string;
@@ -1085,8 +1092,10 @@ type CheckpointRecord = {
1085
1092
  commitHash: string;
1086
1093
  description: string;
1087
1094
  parentCheckpointId: string | null;
1095
+ rootCheckpointId?: string | null;
1088
1096
  forkCount: number;
1089
- meta: Record<string, unknown> | null;
1097
+ saveVersion?: number;
1098
+ meta?: Record<string, unknown> | null;
1090
1099
  createdAt: string;
1091
1100
  };
1092
1101
  type SpaceCheckpointDetailResponse = {
@@ -1290,6 +1299,26 @@ declare class ChannelsApi {
1290
1299
  name: string;
1291
1300
  credentials: Record<string, unknown>;
1292
1301
  }): Promise<unknown>;
1302
+ startWeChatLogin(data: {
1303
+ name?: string;
1304
+ }): Promise<{
1305
+ sessionKey: string;
1306
+ qrDataUrl: string;
1307
+ message: string;
1308
+ expiresInSeconds: number;
1309
+ }>;
1310
+ waitWeChatLogin(data: {
1311
+ sessionKey: string;
1312
+ verifyCode?: string;
1313
+ }): Promise<{
1314
+ connected: boolean;
1315
+ expired?: boolean;
1316
+ alreadyConnected?: boolean;
1317
+ needVerifyCode?: boolean;
1318
+ status?: string;
1319
+ message: string;
1320
+ channel?: Channel;
1321
+ }>;
1293
1322
  delete(id: string): Promise<unknown>;
1294
1323
  }
1295
1324
  //#endregion
@@ -1711,9 +1740,6 @@ declare class SpaceFilesApi {
1711
1740
  declare class SessionMessagesClient {
1712
1741
  private readonly transport;
1713
1742
  private readonly sessionId;
1714
- private lastSentSignature;
1715
- private lastSentSessionId;
1716
- private lastSentAt;
1717
1743
  constructor(transport: HttpTransport, sessionId: string);
1718
1744
  list(customFetch?: Fetch): Promise<SessionMessagesResponse>;
1719
1745
  get(messageId: string, optionsOrFetch?: {
@@ -18,6 +18,20 @@ var ChannelsApi = class {
18
18
  body: JSON.stringify(data)
19
19
  });
20
20
  }
21
+ startWeChatLogin(data) {
22
+ return this.transport.request("/api/channels/wechat/login/start", {
23
+ method: "POST",
24
+ headers: { "Content-Type": "application/json" },
25
+ body: JSON.stringify(data)
26
+ });
27
+ }
28
+ waitWeChatLogin(data) {
29
+ return this.transport.request("/api/channels/wechat/login/wait", {
30
+ method: "POST",
31
+ headers: { "Content-Type": "application/json" },
32
+ body: JSON.stringify(data)
33
+ });
34
+ }
21
35
  delete(id) {
22
36
  return this.transport.request(`/api/channels/${id}`, { method: "DELETE" });
23
37
  }
@@ -1290,9 +1304,6 @@ var SpaceFilesApi = class {
1290
1304
  var SessionMessagesClient = class {
1291
1305
  transport;
1292
1306
  sessionId;
1293
- lastSentSignature = "";
1294
- lastSentSessionId = "";
1295
- lastSentAt = 0;
1296
1307
  constructor(transport, sessionId) {
1297
1308
  this.transport = transport;
1298
1309
  this.sessionId = sessionId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub",
3
- "version": "1.28.2",
3
+ "version": "1.29.0",
4
4
  "description": "Cohub SDK for spaces, sessions, checkpoints, and realtime agent collaboration.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,