@honcho-ai/core 1.6.0 → 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 +31 -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 +67 -25
  28. package/resources/workspaces/observations.d.ts.map +1 -1
  29. package/resources/workspaces/observations.js +18 -0
  30. package/resources/workspaces/observations.js.map +1 -1
  31. package/resources/workspaces/observations.mjs +18 -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 +21 -0
  43. package/src/resources/workspaces/observations.ts +91 -32
  44. package/src/resources/workspaces/workspaces.ts +156 -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,28 @@
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,
25
+ ObservationCreate,
26
+ ObservationCreateParams,
27
+ ObservationCreateResponse,
8
28
  ObservationDeleteResponse,
9
29
  ObservationGet,
10
30
  ObservationListParams,
@@ -70,6 +90,7 @@ import {
70
90
  import { Page, type PageParams } from "../../pagination.js";
71
91
 
72
92
  export class Workspaces extends APIResource {
93
+ conclusions: ConclusionsAPI.Conclusions = new ConclusionsAPI.Conclusions(this._client);
73
94
  observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
74
95
  peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
75
96
  sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
@@ -118,8 +139,9 @@ export class Workspaces extends APIResource {
118
139
  }
119
140
 
120
141
  /**
121
- * Get the deriver processing status, optionally scoped to an observer, sender,
122
- * and/or session
142
+ * Deprecated: use /queue/status. Provides identical response payload.
143
+ *
144
+ * @deprecated
123
145
  */
124
146
  deriverStatus(
125
147
  workspaceId: string,
@@ -148,6 +170,27 @@ export class Workspaces extends APIResource {
148
170
  return this._client.post('/v2/workspaces', { body, ...options });
149
171
  }
150
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
+
151
194
  /**
152
195
  * Search a Workspace
153
196
  */
@@ -194,6 +237,9 @@ export interface DeriverConfiguration {
194
237
  enabled?: boolean | null;
195
238
  }
196
239
 
240
+ /**
241
+ * Deprecated: use QueueStatus.
242
+ */
197
243
  export interface DeriverStatus {
198
244
  /**
199
245
  * Completed work units
@@ -222,6 +268,9 @@ export interface DeriverStatus {
222
268
  }
223
269
 
224
270
  export namespace DeriverStatus {
271
+ /**
272
+ * Status for a specific session within the processing queue.
273
+ */
225
274
  export interface Sessions {
226
275
  /**
227
276
  * Completed work units
@@ -287,6 +336,68 @@ export interface PeerCardConfiguration {
287
336
  use?: boolean | null;
288
337
  }
289
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
+
290
401
  export interface SummaryConfiguration {
291
402
  /**
292
403
  * Whether to enable summary functionality.
@@ -400,6 +511,23 @@ export interface WorkspaceGetOrCreateParams {
400
511
  metadata?: { [key: string]: unknown };
401
512
  }
402
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
+
403
531
  export interface WorkspaceSearchParams {
404
532
  /**
405
533
  * Search query
@@ -435,6 +563,9 @@ export interface WorkspaceTriggerDreamParams {
435
563
  }
436
564
 
437
565
  Workspaces.WorkspacesPage = WorkspacesPage;
566
+ Workspaces.Conclusions = Conclusions;
567
+ Workspaces.ConclusionsPage = ConclusionsPage;
568
+ Workspaces.Observations = Observations;
438
569
  Workspaces.ObservationsPage = ObservationsPage;
439
570
  Workspaces.Peers = Peers;
440
571
  Workspaces.PeersPage = PeersPage;
@@ -450,6 +581,7 @@ export declare namespace Workspaces {
450
581
  type DreamConfiguration as DreamConfiguration,
451
582
  type MessageSearchOptions as MessageSearchOptions,
452
583
  type PeerCardConfiguration as PeerCardConfiguration,
584
+ type QueueStatus as QueueStatus,
453
585
  type SummaryConfiguration as SummaryConfiguration,
454
586
  type Workspace as Workspace,
455
587
  type WorkspaceConfiguration as WorkspaceConfiguration,
@@ -459,18 +591,39 @@ export declare namespace Workspaces {
459
591
  type WorkspaceListParams as WorkspaceListParams,
460
592
  type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
461
593
  type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
594
+ type WorkspaceQueueStatusParams as WorkspaceQueueStatusParams,
462
595
  type WorkspaceSearchParams as WorkspaceSearchParams,
463
596
  type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
464
597
  };
465
598
 
466
599
  export {
467
- 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,
618
+ type ObservationCreate as ObservationCreate,
468
619
  type ObservationGet as ObservationGet,
469
620
  type ObservationQuery as ObservationQuery,
470
621
  type PageObservation as PageObservation,
622
+ type ObservationCreateResponse as ObservationCreateResponse,
471
623
  type ObservationDeleteResponse as ObservationDeleteResponse,
472
624
  type ObservationQueryResponse as ObservationQueryResponse,
473
625
  ObservationsPage as ObservationsPage,
626
+ type ObservationCreateParams as ObservationCreateParams,
474
627
  type ObservationListParams as ObservationListParams,
475
628
  type ObservationQueryParams as ObservationQueryParams,
476
629
  };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.6.0'; // 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.0";
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.0'; // 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.0'; // x-release-please-version
1
+ export const VERSION = '1.7.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map