@honcho-ai/core 1.6.1 → 1.8.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.
- package/CHANGELOG.md +41 -0
- package/README.md +2 -2
- package/index.d.mts +4 -6
- package/index.d.ts +4 -6
- package/index.d.ts.map +1 -1
- package/index.js +7 -8
- package/index.js.map +1 -1
- package/index.mjs +7 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/workspaces/index.d.ts +2 -2
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs.map +1 -1
- package/resources/workspaces/observations.d.ts +24 -24
- package/resources/workspaces/observations.d.ts.map +1 -1
- package/resources/workspaces/observations.js.map +1 -1
- package/resources/workspaces/observations.mjs.map +1 -1
- package/resources/workspaces/peers/index.d.ts +1 -1
- package/resources/workspaces/peers/index.d.ts.map +1 -1
- package/resources/workspaces/peers/index.js.map +1 -1
- package/resources/workspaces/peers/index.mjs.map +1 -1
- package/resources/workspaces/peers/peers.d.ts +64 -66
- package/resources/workspaces/peers/peers.d.ts.map +1 -1
- package/resources/workspaces/peers/peers.js.map +1 -1
- package/resources/workspaces/peers/peers.mjs.map +1 -1
- package/resources/workspaces/sessions/sessions.d.ts +5 -68
- package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
- package/resources/workspaces/sessions/sessions.js +2 -2
- package/resources/workspaces/sessions/sessions.js.map +1 -1
- package/resources/workspaces/sessions/sessions.mjs +2 -2
- package/resources/workspaces/sessions/sessions.mjs.map +1 -1
- package/resources/workspaces/workspaces.d.ts +4 -4
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +1 -0
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +2 -1
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +8 -10
- package/src/resources/workspaces/index.ts +2 -0
- package/src/resources/workspaces/observations.ts +31 -31
- package/src/resources/workspaces/peers/index.ts +1 -0
- package/src/resources/workspaces/peers/peers.ts +75 -76
- package/src/resources/workspaces/sessions/sessions.ts +5 -79
- package/src/resources/workspaces/workspaces.ts +6 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -233,6 +233,79 @@ export interface PeerCardResponse {
|
|
|
233
233
|
peer_card?: Array<string> | null;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
+
/**
|
|
237
|
+
* A Representation is a traversable and diffable map of observations. At the base,
|
|
238
|
+
* we have a list of explicit observations, derived from a peer's messages.
|
|
239
|
+
*
|
|
240
|
+
* From there, deductive observations can be made by establishing logical
|
|
241
|
+
* relationships between explicit observations.
|
|
242
|
+
*
|
|
243
|
+
* In the future, we can add more levels of reasoning on top of these.
|
|
244
|
+
*
|
|
245
|
+
* All of a peer's observations are stored as documents in a collection. These
|
|
246
|
+
* documents can be queried in various ways to produce this Representation object.
|
|
247
|
+
*
|
|
248
|
+
* Additionally, a "working representation" is a version of this data structure
|
|
249
|
+
* representing the most recent observations within a single session.
|
|
250
|
+
*
|
|
251
|
+
* A representation can have a maximum number of observations, which is applied
|
|
252
|
+
* individually to each level of reasoning. If a maximum is set, observations are
|
|
253
|
+
* added and removed in FIFO order.
|
|
254
|
+
*/
|
|
255
|
+
export interface Representation {
|
|
256
|
+
/**
|
|
257
|
+
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
258
|
+
* necessities. Each deduction should have premises and a single conclusion.
|
|
259
|
+
*/
|
|
260
|
+
deductive?: Array<Representation.Deductive>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
264
|
+
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
265
|
+
* a dog']
|
|
266
|
+
*/
|
|
267
|
+
explicit?: Array<Representation.Explicit>;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export namespace Representation {
|
|
271
|
+
/**
|
|
272
|
+
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
273
|
+
*/
|
|
274
|
+
export interface Deductive {
|
|
275
|
+
/**
|
|
276
|
+
* The deductive conclusion
|
|
277
|
+
*/
|
|
278
|
+
conclusion: string;
|
|
279
|
+
|
|
280
|
+
created_at: string;
|
|
281
|
+
|
|
282
|
+
message_ids: Array<number>;
|
|
283
|
+
|
|
284
|
+
session_name: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Supporting premises or evidence for this conclusion
|
|
288
|
+
*/
|
|
289
|
+
premises?: Array<string>;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Explicit observation with content and metadata.
|
|
294
|
+
*/
|
|
295
|
+
export interface Explicit {
|
|
296
|
+
/**
|
|
297
|
+
* The explicit observation
|
|
298
|
+
*/
|
|
299
|
+
content: string;
|
|
300
|
+
|
|
301
|
+
created_at: string;
|
|
302
|
+
|
|
303
|
+
message_ids: Array<number>;
|
|
304
|
+
|
|
305
|
+
session_name: string;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
236
309
|
export interface SessionGet {
|
|
237
310
|
filters?: { [key: string]: unknown } | null;
|
|
238
311
|
}
|
|
@@ -279,82 +352,7 @@ export interface PeerGetContextResponse {
|
|
|
279
352
|
* individually to each level of reasoning. If a maximum is set, observations are
|
|
280
353
|
* added and removed in FIFO order.
|
|
281
354
|
*/
|
|
282
|
-
representation?:
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export namespace PeerGetContextResponse {
|
|
286
|
-
/**
|
|
287
|
-
* A Representation is a traversable and diffable map of observations. At the base,
|
|
288
|
-
* we have a list of explicit observations, derived from a peer's messages.
|
|
289
|
-
*
|
|
290
|
-
* From there, deductive observations can be made by establishing logical
|
|
291
|
-
* relationships between explicit observations.
|
|
292
|
-
*
|
|
293
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
294
|
-
*
|
|
295
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
296
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
297
|
-
*
|
|
298
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
299
|
-
* representing the most recent observations within a single session.
|
|
300
|
-
*
|
|
301
|
-
* A representation can have a maximum number of observations, which is applied
|
|
302
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
303
|
-
* added and removed in FIFO order.
|
|
304
|
-
*/
|
|
305
|
-
export interface Representation {
|
|
306
|
-
/**
|
|
307
|
-
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
308
|
-
* necessities. Each deduction should have premises and a single conclusion.
|
|
309
|
-
*/
|
|
310
|
-
deductive?: Array<Representation.Deductive>;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
314
|
-
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
315
|
-
* a dog']
|
|
316
|
-
*/
|
|
317
|
-
explicit?: Array<Representation.Explicit>;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export namespace Representation {
|
|
321
|
-
/**
|
|
322
|
-
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
323
|
-
*/
|
|
324
|
-
export interface Deductive {
|
|
325
|
-
/**
|
|
326
|
-
* The deductive conclusion
|
|
327
|
-
*/
|
|
328
|
-
conclusion: string;
|
|
329
|
-
|
|
330
|
-
created_at: string;
|
|
331
|
-
|
|
332
|
-
message_ids: Array<number>;
|
|
333
|
-
|
|
334
|
-
session_name: string;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Supporting premises or evidence for this conclusion
|
|
338
|
-
*/
|
|
339
|
-
premises?: Array<string>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Explicit observation with content and metadata.
|
|
344
|
-
*/
|
|
345
|
-
export interface Explicit {
|
|
346
|
-
/**
|
|
347
|
-
* The explicit observation
|
|
348
|
-
*/
|
|
349
|
-
content: string;
|
|
350
|
-
|
|
351
|
-
created_at: string;
|
|
352
|
-
|
|
353
|
-
message_ids: Array<number>;
|
|
354
|
-
|
|
355
|
-
session_name: string;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
355
|
+
representation?: Representation | null;
|
|
358
356
|
}
|
|
359
357
|
|
|
360
358
|
export type PeerSearchResponse = Array<MessagesAPI.Message>;
|
|
@@ -525,6 +523,7 @@ export declare namespace Peers {
|
|
|
525
523
|
type PageSession as PageSession,
|
|
526
524
|
type Peer as Peer,
|
|
527
525
|
type PeerCardResponse as PeerCardResponse,
|
|
526
|
+
type Representation as Representation,
|
|
528
527
|
type SessionGet as SessionGet,
|
|
529
528
|
type PeerChatResponse as PeerChatResponse,
|
|
530
529
|
type PeerGetContextResponse as PeerGetContextResponse,
|
|
@@ -4,6 +4,7 @@ import { APIResource } from "../../../resource.js";
|
|
|
4
4
|
import { isRequestOptions } from "../../../core.js";
|
|
5
5
|
import * as Core from "../../../core.js";
|
|
6
6
|
import * as WorkspacesAPI from "../workspaces.js";
|
|
7
|
+
import * as PeersAPI from "../peers/peers.js";
|
|
7
8
|
import * as MessagesAPI from "./messages.js";
|
|
8
9
|
import {
|
|
9
10
|
Message,
|
|
@@ -17,7 +18,7 @@ import {
|
|
|
17
18
|
Messages,
|
|
18
19
|
MessagesPage,
|
|
19
20
|
} from "./messages.js";
|
|
20
|
-
import * as
|
|
21
|
+
import * as SessionsPeersAPI from "./peers.js";
|
|
21
22
|
import {
|
|
22
23
|
PeerAddParams,
|
|
23
24
|
PeerListParams,
|
|
@@ -32,7 +33,7 @@ import { Page, type PageParams } from "../../../pagination.js";
|
|
|
32
33
|
|
|
33
34
|
export class Sessions extends APIResource {
|
|
34
35
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
35
|
-
peers:
|
|
36
|
+
peers: SessionsPeersAPI.Peers = new SessionsPeersAPI.Peers(this._client);
|
|
36
37
|
|
|
37
38
|
/**
|
|
38
39
|
* Update the metadata of a Session
|
|
@@ -294,7 +295,7 @@ export interface SessionGetContextResponse {
|
|
|
294
295
|
* individually to each level of reasoning. If a maximum is set, observations are
|
|
295
296
|
* added and removed in FIFO order.
|
|
296
297
|
*/
|
|
297
|
-
peer_representation?:
|
|
298
|
+
peer_representation?: PeersAPI.Representation | null;
|
|
298
299
|
|
|
299
300
|
/**
|
|
300
301
|
* The summary if available
|
|
@@ -302,81 +303,6 @@ export interface SessionGetContextResponse {
|
|
|
302
303
|
summary?: Summary | null;
|
|
303
304
|
}
|
|
304
305
|
|
|
305
|
-
export namespace SessionGetContextResponse {
|
|
306
|
-
/**
|
|
307
|
-
* A Representation is a traversable and diffable map of observations. At the base,
|
|
308
|
-
* we have a list of explicit observations, derived from a peer's messages.
|
|
309
|
-
*
|
|
310
|
-
* From there, deductive observations can be made by establishing logical
|
|
311
|
-
* relationships between explicit observations.
|
|
312
|
-
*
|
|
313
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
314
|
-
*
|
|
315
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
316
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
317
|
-
*
|
|
318
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
319
|
-
* representing the most recent observations within a single session.
|
|
320
|
-
*
|
|
321
|
-
* A representation can have a maximum number of observations, which is applied
|
|
322
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
323
|
-
* added and removed in FIFO order.
|
|
324
|
-
*/
|
|
325
|
-
export interface PeerRepresentation {
|
|
326
|
-
/**
|
|
327
|
-
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
328
|
-
* necessities. Each deduction should have premises and a single conclusion.
|
|
329
|
-
*/
|
|
330
|
-
deductive?: Array<PeerRepresentation.Deductive>;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
334
|
-
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
335
|
-
* a dog']
|
|
336
|
-
*/
|
|
337
|
-
explicit?: Array<PeerRepresentation.Explicit>;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export namespace PeerRepresentation {
|
|
341
|
-
/**
|
|
342
|
-
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
343
|
-
*/
|
|
344
|
-
export interface Deductive {
|
|
345
|
-
/**
|
|
346
|
-
* The deductive conclusion
|
|
347
|
-
*/
|
|
348
|
-
conclusion: string;
|
|
349
|
-
|
|
350
|
-
created_at: string;
|
|
351
|
-
|
|
352
|
-
message_ids: Array<number>;
|
|
353
|
-
|
|
354
|
-
session_name: string;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Supporting premises or evidence for this conclusion
|
|
358
|
-
*/
|
|
359
|
-
premises?: Array<string>;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Explicit observation with content and metadata.
|
|
364
|
-
*/
|
|
365
|
-
export interface Explicit {
|
|
366
|
-
/**
|
|
367
|
-
* The explicit observation
|
|
368
|
-
*/
|
|
369
|
-
content: string;
|
|
370
|
-
|
|
371
|
-
created_at: string;
|
|
372
|
-
|
|
373
|
-
message_ids: Array<number>;
|
|
374
|
-
|
|
375
|
-
session_name: string;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
306
|
export type SessionSearchResponse = Array<MessagesAPI.Message>;
|
|
381
307
|
|
|
382
308
|
export interface SessionSummariesResponse {
|
|
@@ -496,7 +422,7 @@ export interface SessionGetOrCreateParams {
|
|
|
496
422
|
|
|
497
423
|
metadata?: { [key: string]: unknown } | null;
|
|
498
424
|
|
|
499
|
-
peers?: { [key: string]:
|
|
425
|
+
peers?: { [key: string]: SessionsPeersAPI.SessionPeerConfig } | null;
|
|
500
426
|
}
|
|
501
427
|
|
|
502
428
|
export interface SessionSearchParams {
|
|
@@ -5,6 +5,7 @@ import { isRequestOptions } from "../../core.js";
|
|
|
5
5
|
import * as Core from "../../core.js";
|
|
6
6
|
import * as ObservationsAPI from "./observations.js";
|
|
7
7
|
import {
|
|
8
|
+
Observation,
|
|
8
9
|
ObservationCreate,
|
|
9
10
|
ObservationCreateParams,
|
|
10
11
|
ObservationCreateResponse,
|
|
@@ -49,6 +50,7 @@ import {
|
|
|
49
50
|
PeerWorkingRepresentationResponse,
|
|
50
51
|
Peers,
|
|
51
52
|
PeersPage,
|
|
53
|
+
Representation,
|
|
52
54
|
SessionGet,
|
|
53
55
|
} from "./peers/peers.js";
|
|
54
56
|
import * as MessagesAPI from "./sessions/messages.js";
|
|
@@ -438,6 +440,7 @@ export interface WorkspaceTriggerDreamParams {
|
|
|
438
440
|
}
|
|
439
441
|
|
|
440
442
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
443
|
+
Workspaces.Observations = Observations;
|
|
441
444
|
Workspaces.ObservationsPage = ObservationsPage;
|
|
442
445
|
Workspaces.Peers = Peers;
|
|
443
446
|
Workspaces.PeersPage = PeersPage;
|
|
@@ -467,7 +470,8 @@ export declare namespace Workspaces {
|
|
|
467
470
|
};
|
|
468
471
|
|
|
469
472
|
export {
|
|
470
|
-
|
|
473
|
+
Observations as Observations,
|
|
474
|
+
type Observation as Observation,
|
|
471
475
|
type ObservationCreate as ObservationCreate,
|
|
472
476
|
type ObservationGet as ObservationGet,
|
|
473
477
|
type ObservationQuery as ObservationQuery,
|
|
@@ -487,6 +491,7 @@ export declare namespace Workspaces {
|
|
|
487
491
|
type PageSession as PageSession,
|
|
488
492
|
type Peer as Peer,
|
|
489
493
|
type PeerCardResponse as PeerCardResponse,
|
|
494
|
+
type Representation as Representation,
|
|
490
495
|
type SessionGet as SessionGet,
|
|
491
496
|
type PeerChatResponse as PeerChatResponse,
|
|
492
497
|
type PeerGetContextResponse as PeerGetContextResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.8.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|