@honcho-ai/core 1.6.1 → 1.7.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +2 -2
  3. package/index.d.mts +6 -8
  4. package/index.d.ts +6 -8
  5. package/index.d.ts.map +1 -1
  6. package/index.js +7 -8
  7. package/index.js.map +1 -1
  8. package/index.mjs +7 -8
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.ts +1 -1
  12. package/resources/index.d.ts.map +1 -1
  13. package/resources/index.js.map +1 -1
  14. package/resources/index.mjs.map +1 -1
  15. package/resources/workspaces/conclusions.d.ts +142 -0
  16. package/resources/workspaces/conclusions.d.ts.map +1 -0
  17. package/resources/workspaces/conclusions.js +47 -0
  18. package/resources/workspaces/conclusions.js.map +1 -0
  19. package/resources/workspaces/conclusions.mjs +42 -0
  20. package/resources/workspaces/conclusions.mjs.map +1 -0
  21. package/resources/workspaces/index.d.ts +3 -2
  22. package/resources/workspaces/index.d.ts.map +1 -1
  23. package/resources/workspaces/index.js +4 -1
  24. package/resources/workspaces/index.js.map +1 -1
  25. package/resources/workspaces/index.mjs +1 -0
  26. package/resources/workspaces/index.mjs.map +1 -1
  27. package/resources/workspaces/observations.d.ts +40 -30
  28. package/resources/workspaces/observations.d.ts.map +1 -1
  29. package/resources/workspaces/observations.js +6 -0
  30. package/resources/workspaces/observations.js.map +1 -1
  31. package/resources/workspaces/observations.mjs +6 -0
  32. package/resources/workspaces/observations.mjs.map +1 -1
  33. package/resources/workspaces/workspaces.d.ts +90 -5
  34. package/resources/workspaces/workspaces.d.ts.map +1 -1
  35. package/resources/workspaces/workspaces.js +12 -0
  36. package/resources/workspaces/workspaces.js.map +1 -1
  37. package/resources/workspaces/workspaces.mjs +13 -1
  38. package/resources/workspaces/workspaces.mjs.map +1 -1
  39. package/src/index.ts +12 -10
  40. package/src/resources/index.ts +2 -0
  41. package/src/resources/workspaces/conclusions.ts +220 -0
  42. package/src/resources/workspaces/index.ts +18 -0
  43. package/src/resources/workspaces/observations.ts +48 -37
  44. package/src/resources/workspaces/workspaces.ts +150 -3
  45. package/src/version.ts +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
  48. package/version.mjs +1 -1
@@ -3,8 +3,25 @@
3
3
  import { APIResource } from "../../resource.js";
4
4
  import { isRequestOptions } from "../../core.js";
5
5
  import * as Core from "../../core.js";
6
+ import * as ConclusionsAPI from "./conclusions.js";
7
+ import {
8
+ Conclusion,
9
+ ConclusionCreate,
10
+ ConclusionCreateParams,
11
+ ConclusionCreateResponse,
12
+ ConclusionDeleteResponse,
13
+ ConclusionGet,
14
+ ConclusionListParams,
15
+ ConclusionQuery,
16
+ ConclusionQueryParams,
17
+ ConclusionQueryResponse,
18
+ Conclusions,
19
+ ConclusionsPage,
20
+ PageConclusion,
21
+ } from "./conclusions.js";
6
22
  import * as ObservationsAPI from "./observations.js";
7
23
  import {
24
+ Observation,
8
25
  ObservationCreate,
9
26
  ObservationCreateParams,
10
27
  ObservationCreateResponse,
@@ -73,6 +90,7 @@ import {
73
90
  import { Page, type PageParams } from "../../pagination.js";
74
91
 
75
92
  export class Workspaces extends APIResource {
93
+ conclusions: ConclusionsAPI.Conclusions = new ConclusionsAPI.Conclusions(this._client);
76
94
  observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
77
95
  peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
78
96
  sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
@@ -121,8 +139,9 @@ export class Workspaces extends APIResource {
121
139
  }
122
140
 
123
141
  /**
124
- * Get the deriver processing status, optionally scoped to an observer, sender,
125
- * and/or session
142
+ * Deprecated: use /queue/status. Provides identical response payload.
143
+ *
144
+ * @deprecated
126
145
  */
127
146
  deriverStatus(
128
147
  workspaceId: string,
@@ -151,6 +170,27 @@ export class Workspaces extends APIResource {
151
170
  return this._client.post('/v2/workspaces', { body, ...options });
152
171
  }
153
172
 
173
+ /**
174
+ * Get the processing queue status, optionally scoped to an observer, sender,
175
+ * and/or session.
176
+ */
177
+ queueStatus(
178
+ workspaceId: string,
179
+ query?: WorkspaceQueueStatusParams,
180
+ options?: Core.RequestOptions,
181
+ ): Core.APIPromise<QueueStatus>;
182
+ queueStatus(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<QueueStatus>;
183
+ queueStatus(
184
+ workspaceId: string,
185
+ query: WorkspaceQueueStatusParams | Core.RequestOptions = {},
186
+ options?: Core.RequestOptions,
187
+ ): Core.APIPromise<QueueStatus> {
188
+ if (isRequestOptions(query)) {
189
+ return this.queueStatus(workspaceId, {}, query);
190
+ }
191
+ return this._client.get(`/v2/workspaces/${workspaceId}/queue/status`, { query, ...options });
192
+ }
193
+
154
194
  /**
155
195
  * Search a Workspace
156
196
  */
@@ -197,6 +237,9 @@ export interface DeriverConfiguration {
197
237
  enabled?: boolean | null;
198
238
  }
199
239
 
240
+ /**
241
+ * Deprecated: use QueueStatus.
242
+ */
200
243
  export interface DeriverStatus {
201
244
  /**
202
245
  * Completed work units
@@ -225,6 +268,9 @@ export interface DeriverStatus {
225
268
  }
226
269
 
227
270
  export namespace DeriverStatus {
271
+ /**
272
+ * Status for a specific session within the processing queue.
273
+ */
228
274
  export interface Sessions {
229
275
  /**
230
276
  * Completed work units
@@ -290,6 +336,68 @@ export interface PeerCardConfiguration {
290
336
  use?: boolean | null;
291
337
  }
292
338
 
339
+ /**
340
+ * Aggregated processing queue status.
341
+ */
342
+ export interface QueueStatus {
343
+ /**
344
+ * Completed work units
345
+ */
346
+ completed_work_units: number;
347
+
348
+ /**
349
+ * Work units currently being processed
350
+ */
351
+ in_progress_work_units: number;
352
+
353
+ /**
354
+ * Work units waiting to be processed
355
+ */
356
+ pending_work_units: number;
357
+
358
+ /**
359
+ * Total work units
360
+ */
361
+ total_work_units: number;
362
+
363
+ /**
364
+ * Per-session status when not filtered by session
365
+ */
366
+ sessions?: { [key: string]: QueueStatus.Sessions } | null;
367
+ }
368
+
369
+ export namespace QueueStatus {
370
+ /**
371
+ * Status for a specific session within the processing queue.
372
+ */
373
+ export interface Sessions {
374
+ /**
375
+ * Completed work units
376
+ */
377
+ completed_work_units: number;
378
+
379
+ /**
380
+ * Work units currently being processed
381
+ */
382
+ in_progress_work_units: number;
383
+
384
+ /**
385
+ * Work units waiting to be processed
386
+ */
387
+ pending_work_units: number;
388
+
389
+ /**
390
+ * Total work units
391
+ */
392
+ total_work_units: number;
393
+
394
+ /**
395
+ * Session ID if filtered by session
396
+ */
397
+ session_id?: string | null;
398
+ }
399
+ }
400
+
293
401
  export interface SummaryConfiguration {
294
402
  /**
295
403
  * Whether to enable summary functionality.
@@ -403,6 +511,23 @@ export interface WorkspaceGetOrCreateParams {
403
511
  metadata?: { [key: string]: unknown };
404
512
  }
405
513
 
514
+ export interface WorkspaceQueueStatusParams {
515
+ /**
516
+ * Optional observer ID to filter by
517
+ */
518
+ observer_id?: string | null;
519
+
520
+ /**
521
+ * Optional sender ID to filter by
522
+ */
523
+ sender_id?: string | null;
524
+
525
+ /**
526
+ * Optional session ID to filter by
527
+ */
528
+ session_id?: string | null;
529
+ }
530
+
406
531
  export interface WorkspaceSearchParams {
407
532
  /**
408
533
  * Search query
@@ -438,6 +563,9 @@ export interface WorkspaceTriggerDreamParams {
438
563
  }
439
564
 
440
565
  Workspaces.WorkspacesPage = WorkspacesPage;
566
+ Workspaces.Conclusions = Conclusions;
567
+ Workspaces.ConclusionsPage = ConclusionsPage;
568
+ Workspaces.Observations = Observations;
441
569
  Workspaces.ObservationsPage = ObservationsPage;
442
570
  Workspaces.Peers = Peers;
443
571
  Workspaces.PeersPage = PeersPage;
@@ -453,6 +581,7 @@ export declare namespace Workspaces {
453
581
  type DreamConfiguration as DreamConfiguration,
454
582
  type MessageSearchOptions as MessageSearchOptions,
455
583
  type PeerCardConfiguration as PeerCardConfiguration,
584
+ type QueueStatus as QueueStatus,
456
585
  type SummaryConfiguration as SummaryConfiguration,
457
586
  type Workspace as Workspace,
458
587
  type WorkspaceConfiguration as WorkspaceConfiguration,
@@ -462,12 +591,30 @@ export declare namespace Workspaces {
462
591
  type WorkspaceListParams as WorkspaceListParams,
463
592
  type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
464
593
  type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
594
+ type WorkspaceQueueStatusParams as WorkspaceQueueStatusParams,
465
595
  type WorkspaceSearchParams as WorkspaceSearchParams,
466
596
  type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
467
597
  };
468
598
 
469
599
  export {
470
- type Observations as Observations,
600
+ Conclusions as Conclusions,
601
+ type Conclusion as Conclusion,
602
+ type ConclusionCreate as ConclusionCreate,
603
+ type ConclusionGet as ConclusionGet,
604
+ type ConclusionQuery as ConclusionQuery,
605
+ type PageConclusion as PageConclusion,
606
+ type ConclusionCreateResponse as ConclusionCreateResponse,
607
+ type ConclusionDeleteResponse as ConclusionDeleteResponse,
608
+ type ConclusionQueryResponse as ConclusionQueryResponse,
609
+ ConclusionsPage as ConclusionsPage,
610
+ type ConclusionCreateParams as ConclusionCreateParams,
611
+ type ConclusionListParams as ConclusionListParams,
612
+ type ConclusionQueryParams as ConclusionQueryParams,
613
+ };
614
+
615
+ export {
616
+ Observations as Observations,
617
+ type Observation as Observation,
471
618
  type ObservationCreate as ObservationCreate,
472
619
  type ObservationGet as ObservationGet,
473
620
  type ObservationQuery as ObservationQuery,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.6.1'; // x-release-please-version
1
+ export const VERSION = '1.7.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.6.1";
1
+ export declare const VERSION = "1.7.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.6.1'; // x-release-please-version
4
+ exports.VERSION = '1.7.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.6.1'; // x-release-please-version
1
+ export const VERSION = '1.7.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map