@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.0 (2025-12-15)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.7.0...v1.8.0](https://github.com/plastic-labs/honcho-node-core/compare/v1.7.0...v1.8.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** remove accidental "conclusions" and "QueueStatus" from main ([e8fdbd5](https://github.com/plastic-labs/honcho-node-core/commit/e8fdbd5600b70283d88461cdb5f7860a212d05dc))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **mcp:** add client instantiation options to code tool ([9a75f57](https://github.com/plastic-labs/honcho-node-core/commit/9a75f57280e2ee27cbf7fc983cd847751b27a671))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* **mcp:** update lockfile ([0267d53](https://github.com/plastic-labs/honcho-node-core/commit/0267d53ffee27ea4bb06f93b9e57069ac46b1536))
|
|
20
|
+
|
|
21
|
+
## 1.7.0 (2025-12-08)
|
|
22
|
+
|
|
23
|
+
Full Changelog: [v1.6.1...v1.7.0](https://github.com/plastic-labs/honcho-node-core/compare/v1.6.1...v1.7.0)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **api:** Backwards compatible changes ([e49197a](https://github.com/plastic-labs/honcho-node-core/commit/e49197a92c36c981677906b0dd976512cda99470))
|
|
28
|
+
* **mcp:** add typescript check to code execution tool ([31051a6](https://github.com/plastic-labs/honcho-node-core/commit/31051a66e40df4f8f6edc9c6805ee975cdc083d7))
|
|
29
|
+
* **mcp:** handle code mode calls in the Stainless API ([fddafb6](https://github.com/plastic-labs/honcho-node-core/commit/fddafb66d75b5f01ec67b752036d9371e7e62cbc))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **mcp:** correct code tool API endpoint ([4540d45](https://github.com/plastic-labs/honcho-node-core/commit/4540d45ea4af22fb5c227cee0e20b5ab6904e1ce))
|
|
35
|
+
* **mcp:** return correct lines on typescript errors ([0a71490](https://github.com/plastic-labs/honcho-node-core/commit/0a714908f0c1510b29aa9d0546ae05d6a7008fb6))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
|
|
40
|
+
* **internal:** codegen related update ([f718e5d](https://github.com/plastic-labs/honcho-node-core/commit/f718e5d9c983596b5bd6982e89b92823039f3e3d))
|
|
41
|
+
* **internal:** codegen related update ([9789e2b](https://github.com/plastic-labs/honcho-node-core/commit/9789e2b21990a21483e7ae1bf4c2c7f6b70eca29))
|
|
42
|
+
* use latest @modelcontextprotocol/sdk ([22a5ace](https://github.com/plastic-labs/honcho-node-core/commit/22a5aceb3583baff3528a0adf97949a528393059))
|
|
43
|
+
|
|
3
44
|
## 1.6.1 (2025-12-04)
|
|
4
45
|
|
|
5
46
|
Full Changelog: [v1.6.0...v1.6.1](https://github.com/plastic-labs/honcho-node-core/compare/v1.6.0...v1.6.1)
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ import Honcho from '@honcho-ai/core';
|
|
|
24
24
|
|
|
25
25
|
const client = new Honcho({
|
|
26
26
|
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
|
|
27
|
-
environment: 'local', //
|
|
27
|
+
environment: 'local', // defaults to 'production'
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
const workspace = await client.workspaces.getOrCreate({ id: 'id' });
|
|
@@ -42,7 +42,7 @@ import Honcho from '@honcho-ai/core';
|
|
|
42
42
|
|
|
43
43
|
const client = new Honcho({
|
|
44
44
|
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
|
|
45
|
-
environment: 'local', //
|
|
45
|
+
environment: 'local', // defaults to 'production'
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
const params: Honcho.WorkspaceGetOrCreateParams = { id: 'id' };
|
package/index.d.mts
CHANGED
|
@@ -8,9 +8,8 @@ import * as API from "./resources/index.js";
|
|
|
8
8
|
import { KeyCreateParams, KeyCreateResponse, Keys } from "./resources/keys.js";
|
|
9
9
|
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
10
10
|
declare const environments: {
|
|
11
|
-
demo: string;
|
|
12
|
-
local: string;
|
|
13
11
|
production: string;
|
|
12
|
+
local: string;
|
|
14
13
|
};
|
|
15
14
|
type Environment = keyof typeof environments;
|
|
16
15
|
export interface ClientOptions {
|
|
@@ -22,9 +21,8 @@ export interface ClientOptions {
|
|
|
22
21
|
* Specifies the environment to use for the API.
|
|
23
22
|
*
|
|
24
23
|
* Each environment maps to a different base URL:
|
|
25
|
-
* - `demo` corresponds to `https://demo.honcho.dev`
|
|
26
|
-
* - `local` corresponds to `http://localhost:8000`
|
|
27
24
|
* - `production` corresponds to `https://api.honcho.dev`
|
|
25
|
+
* - `local` corresponds to `http://localhost:8000`
|
|
28
26
|
*/
|
|
29
27
|
environment?: Environment | undefined;
|
|
30
28
|
/**
|
|
@@ -90,8 +88,8 @@ export declare class Honcho extends Core.APIClient {
|
|
|
90
88
|
* API Client for interfacing with the Honcho API.
|
|
91
89
|
*
|
|
92
90
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
93
|
-
* @param {Environment} [opts.environment=
|
|
94
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
91
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
92
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
95
93
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
96
94
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
97
95
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
package/index.d.ts
CHANGED
|
@@ -8,9 +8,8 @@ import * as API from "./resources/index.js";
|
|
|
8
8
|
import { KeyCreateParams, KeyCreateResponse, Keys } from "./resources/keys.js";
|
|
9
9
|
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
10
10
|
declare const environments: {
|
|
11
|
-
demo: string;
|
|
12
|
-
local: string;
|
|
13
11
|
production: string;
|
|
12
|
+
local: string;
|
|
14
13
|
};
|
|
15
14
|
type Environment = keyof typeof environments;
|
|
16
15
|
export interface ClientOptions {
|
|
@@ -22,9 +21,8 @@ export interface ClientOptions {
|
|
|
22
21
|
* Specifies the environment to use for the API.
|
|
23
22
|
*
|
|
24
23
|
* Each environment maps to a different base URL:
|
|
25
|
-
* - `demo` corresponds to `https://demo.honcho.dev`
|
|
26
|
-
* - `local` corresponds to `http://localhost:8000`
|
|
27
24
|
* - `production` corresponds to `https://api.honcho.dev`
|
|
25
|
+
* - `local` corresponds to `http://localhost:8000`
|
|
28
26
|
*/
|
|
29
27
|
environment?: Environment | undefined;
|
|
30
28
|
/**
|
|
@@ -90,8 +88,8 @@ export declare class Honcho extends Core.APIClient {
|
|
|
90
88
|
* API Client for interfacing with the Honcho API.
|
|
91
89
|
*
|
|
92
90
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
93
|
-
* @param {Environment} [opts.environment=
|
|
94
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
91
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
92
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
95
93
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
96
94
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
97
95
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,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ACnD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,MAAM,CAAC"}
|
package/index.js
CHANGED
|
@@ -34,9 +34,8 @@ const API = __importStar(require("./resources/index.js"));
|
|
|
34
34
|
const keys_1 = require("./resources/keys.js");
|
|
35
35
|
const workspaces_1 = require("./resources/workspaces/workspaces.js");
|
|
36
36
|
const environments = {
|
|
37
|
-
demo: 'https://demo.honcho.dev',
|
|
38
|
-
local: 'http://localhost:8000',
|
|
39
37
|
production: 'https://api.honcho.dev',
|
|
38
|
+
local: 'http://localhost:8000',
|
|
40
39
|
};
|
|
41
40
|
/**
|
|
42
41
|
* API Client for interfacing with the Honcho API.
|
|
@@ -46,8 +45,8 @@ class Honcho extends Core.APIClient {
|
|
|
46
45
|
* API Client for interfacing with the Honcho API.
|
|
47
46
|
*
|
|
48
47
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
49
|
-
* @param {Environment} [opts.environment=
|
|
50
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
48
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
49
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
51
50
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
52
51
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
53
52
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -60,14 +59,14 @@ class Honcho extends Core.APIClient {
|
|
|
60
59
|
apiKey,
|
|
61
60
|
...opts,
|
|
62
61
|
baseURL,
|
|
63
|
-
environment: opts.environment ?? '
|
|
62
|
+
environment: opts.environment ?? 'production',
|
|
64
63
|
};
|
|
65
64
|
if (baseURL && opts.environment) {
|
|
66
65
|
throw new Errors.HonchoError('Ambiguous URL; The `baseURL` option (or HONCHO_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null');
|
|
67
66
|
}
|
|
68
67
|
super({
|
|
69
|
-
baseURL: options.baseURL || environments[options.environment || '
|
|
70
|
-
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || '
|
|
68
|
+
baseURL: options.baseURL || environments[options.environment || 'production'],
|
|
69
|
+
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || 'production'] : false,
|
|
71
70
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
72
71
|
httpAgent: options.httpAgent,
|
|
73
72
|
maxRetries: options.maxRetries,
|
|
@@ -97,7 +96,7 @@ class Honcho extends Core.APIClient {
|
|
|
97
96
|
}
|
|
98
97
|
exports.Honcho = Honcho;
|
|
99
98
|
_a = Honcho, _Honcho_instances = new WeakSet(), _Honcho_baseURLOverridden = function _Honcho_baseURLOverridden() {
|
|
100
|
-
return this.baseURL !== environments[this._options.environment || '
|
|
99
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
101
100
|
};
|
|
102
101
|
Honcho.Honcho = _a;
|
|
103
102
|
Honcho.DEFAULT_TIMEOUT = 60000; // 1 minute
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAA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wBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC7C,oBAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,oBAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,qBAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,sBAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,4BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,+BAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,aAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,mBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC/B,MAAM,CAAC,cAAc,GAAG,2BAAc,CAAC;AACvC,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC;AAmCnB,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,oGAAA,WAAW,OAAA;AACX,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,MAAM,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -8,9 +8,8 @@ import * as API from "./resources/index.mjs";
|
|
|
8
8
|
import { Keys } from "./resources/keys.mjs";
|
|
9
9
|
import { Workspaces, WorkspacesPage, } from "./resources/workspaces/workspaces.mjs";
|
|
10
10
|
const environments = {
|
|
11
|
-
demo: 'https://demo.honcho.dev',
|
|
12
|
-
local: 'http://localhost:8000',
|
|
13
11
|
production: 'https://api.honcho.dev',
|
|
12
|
+
local: 'http://localhost:8000',
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
16
15
|
* API Client for interfacing with the Honcho API.
|
|
@@ -20,8 +19,8 @@ export class Honcho extends Core.APIClient {
|
|
|
20
19
|
* API Client for interfacing with the Honcho API.
|
|
21
20
|
*
|
|
22
21
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
23
|
-
* @param {Environment} [opts.environment=
|
|
24
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
22
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
23
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
25
24
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
26
25
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
27
26
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -34,14 +33,14 @@ export class Honcho extends Core.APIClient {
|
|
|
34
33
|
apiKey,
|
|
35
34
|
...opts,
|
|
36
35
|
baseURL,
|
|
37
|
-
environment: opts.environment ?? '
|
|
36
|
+
environment: opts.environment ?? 'production',
|
|
38
37
|
};
|
|
39
38
|
if (baseURL && opts.environment) {
|
|
40
39
|
throw new Errors.HonchoError('Ambiguous URL; The `baseURL` option (or HONCHO_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null');
|
|
41
40
|
}
|
|
42
41
|
super({
|
|
43
|
-
baseURL: options.baseURL || environments[options.environment || '
|
|
44
|
-
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || '
|
|
42
|
+
baseURL: options.baseURL || environments[options.environment || 'production'],
|
|
43
|
+
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || 'production'] : false,
|
|
45
44
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
46
45
|
httpAgent: options.httpAgent,
|
|
47
46
|
maxRetries: options.maxRetries,
|
|
@@ -70,7 +69,7 @@ export class Honcho extends Core.APIClient {
|
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
_a = Honcho, _Honcho_instances = new WeakSet(), _Honcho_baseURLOverridden = function _Honcho_baseURLOverridden() {
|
|
73
|
-
return this.baseURL !== environments[this._options.environment || '
|
|
72
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
74
73
|
};
|
|
75
74
|
Honcho.Honcho = _a;
|
|
76
75
|
Honcho.DEFAULT_TIMEOUT = 60000; // 1 minute
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAsC,IAAI,EAAE;OAC5C,EAgBL,UAAU,EACV,cAAc,GACf;AAED,MAAM,YAAY,GAAG;IACnB,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAsC,IAAI,EAAE;OAC5C,EAgBL,UAAU,EACV,cAAc,GACf;AAED,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,wBAAwB;IACpC,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AA6EF;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,SAAS;IAKxC;;;;;;;;;;;;OAYG;I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,IAAI,GAAG,IAAI,CAAC;OAmCZ,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ObservationsPage, Observations, type ObservationCreate, type ObservationGet, type ObservationQuery, type PageObservation, type ObservationCreateResponse, type ObservationDeleteResponse, type ObservationQueryResponse, type ObservationCreateParams, type ObservationListParams, type ObservationQueryParams, } from "./observations.js";
|
|
2
|
-
export { PeersPage, Peers, type PagePeer, type PageSession, type Peer, type PeerCardResponse, type SessionGet, type PeerChatResponse, type PeerGetContextResponse, type PeerSearchResponse, type PeerWorkingRepresentationResponse, type PeerUpdateParams, type PeerListParams, type PeerCardParams, type PeerChatParams, type PeerGetContextParams, type PeerGetOrCreateParams, type PeerSearchParams, type PeerSetCardParams, type PeerWorkingRepresentationParams, } from "./peers/index.js";
|
|
1
|
+
export { ObservationsPage, Observations, type Observation, type ObservationCreate, type ObservationGet, type ObservationQuery, type PageObservation, type ObservationCreateResponse, type ObservationDeleteResponse, type ObservationQueryResponse, type ObservationCreateParams, type ObservationListParams, type ObservationQueryParams, } from "./observations.js";
|
|
2
|
+
export { PeersPage, Peers, type PagePeer, type PageSession, type Peer, type PeerCardResponse, type Representation, type SessionGet, type PeerChatResponse, type PeerGetContextResponse, type PeerSearchResponse, type PeerWorkingRepresentationResponse, type PeerUpdateParams, type PeerListParams, type PeerCardParams, type PeerChatParams, type PeerGetContextParams, type PeerGetOrCreateParams, type PeerSearchParams, type PeerSetCardParams, type PeerWorkingRepresentationParams, } from "./peers/index.js";
|
|
3
3
|
export { SessionsPage, Sessions, type Session, type SessionConfiguration, type Summary, type SessionDeleteResponse, type SessionGetContextResponse, type SessionSearchResponse, type SessionSummariesResponse, type SessionUpdateParams, type SessionListParams, type SessionCloneParams, type SessionGetContextParams, type SessionGetOrCreateParams, type SessionSearchParams, } from "./sessions/index.js";
|
|
4
4
|
export { WebhookEndpointsPage, Webhooks, type WebhookEndpoint, type WebhookDeleteResponse, type WebhookTestEmitResponse, type WebhookListParams, type WebhookGetOrCreateParams, } from "./webhooks.js";
|
|
5
5
|
export { WorkspacesPage, Workspaces, type DeriverConfiguration, type DeriverStatus, type DreamConfiguration, type MessageSearchOptions, type PeerCardConfiguration, type SummaryConfiguration, type Workspace, type WorkspaceConfiguration, type WorkspaceSearchResponse, type WorkspaceUpdateParams, type WorkspaceListParams, type WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams, type WorkspaceSearchParams, type WorkspaceTriggerDreamParams, } from "./workspaces.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,E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AK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAcwB;AAbtB,gHAAA,gBAAgB,OAAA;AAChB,4GAAA,YAAY,OAAA;AAad,0CAsBuB;AArBrB,kGAAA,SAAS,OAAA;AACT,8FAAA,KAAK,OAAA;AAqBP,6CAgB0B;AAfxB,qGAAA,YAAY,OAAA;AACZ,iGAAA,QAAQ,OAAA;AAeV,0CAQoB;AAPlB,gHAAA,oBAAoB,OAAA;AACpB,oGAAA,QAAQ,OAAA;AAOV,8CAkBsB;AAjBpB,4GAAA,cAAc,OAAA;AACd,wGAAA,UAAU,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,EAChB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,EAChB,YAAY,GAYb;OACM,EACL,SAAS,EACT,KAAK,GAoBN;OACM,EACL,YAAY,EACZ,QAAQ,GAcT;OACM,EACL,oBAAoB,EACpB,QAAQ,GAMT;OACM,EACL,cAAc,EACd,UAAU,GAgBX"}
|
|
@@ -19,8 +19,8 @@ export declare class Observations extends APIResource {
|
|
|
19
19
|
* Observations can be filtered by session_id, observer_id and observed_id using
|
|
20
20
|
* the filters parameter.
|
|
21
21
|
*/
|
|
22
|
-
list(workspaceId: string, params?: ObservationListParams, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage,
|
|
23
|
-
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage,
|
|
22
|
+
list(workspaceId: string, params?: ObservationListParams, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage, Observation>;
|
|
23
|
+
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage, Observation>;
|
|
24
24
|
/**
|
|
25
25
|
* Delete a specific observation.
|
|
26
26
|
*
|
|
@@ -37,7 +37,24 @@ export declare class Observations extends APIResource {
|
|
|
37
37
|
*/
|
|
38
38
|
query(workspaceId: string, body: ObservationQueryParams, options?: Core.RequestOptions): Core.APIPromise<ObservationQueryResponse>;
|
|
39
39
|
}
|
|
40
|
-
export declare class ObservationsPage extends Page<
|
|
40
|
+
export declare class ObservationsPage extends Page<Observation> {
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Observation response - external view of a document
|
|
44
|
+
*/
|
|
45
|
+
export interface Observation {
|
|
46
|
+
id: string;
|
|
47
|
+
content: string;
|
|
48
|
+
created_at: string;
|
|
49
|
+
/**
|
|
50
|
+
* The peer being observed
|
|
51
|
+
*/
|
|
52
|
+
observed_id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The peer who made the observation
|
|
55
|
+
*/
|
|
56
|
+
observer_id: string;
|
|
57
|
+
session_id: string;
|
|
41
58
|
}
|
|
42
59
|
/**
|
|
43
60
|
* Schema for creating a single observation
|
|
@@ -88,33 +105,16 @@ export interface ObservationQuery {
|
|
|
88
105
|
*/
|
|
89
106
|
top_k?: number;
|
|
90
107
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Observation response - external view of a document
|
|
93
|
-
*/
|
|
94
|
-
export interface Observations {
|
|
95
|
-
id: string;
|
|
96
|
-
content: string;
|
|
97
|
-
created_at: string;
|
|
98
|
-
/**
|
|
99
|
-
* The peer being observed
|
|
100
|
-
*/
|
|
101
|
-
observed_id: string;
|
|
102
|
-
/**
|
|
103
|
-
* The peer who made the observation
|
|
104
|
-
*/
|
|
105
|
-
observer_id: string;
|
|
106
|
-
session_id: string;
|
|
107
|
-
}
|
|
108
108
|
export interface PageObservation {
|
|
109
|
-
items: Array<
|
|
109
|
+
items: Array<Observation>;
|
|
110
110
|
page: number;
|
|
111
111
|
size: number;
|
|
112
112
|
pages?: number;
|
|
113
113
|
total?: number;
|
|
114
114
|
}
|
|
115
|
-
export type ObservationCreateResponse = Array<
|
|
115
|
+
export type ObservationCreateResponse = Array<Observation>;
|
|
116
116
|
export type ObservationDeleteResponse = unknown;
|
|
117
|
-
export type ObservationQueryResponse = Array<
|
|
117
|
+
export type ObservationQueryResponse = Array<Observation>;
|
|
118
118
|
export interface ObservationCreateParams {
|
|
119
119
|
observations: Array<ObservationCreate>;
|
|
120
120
|
}
|
|
@@ -151,6 +151,6 @@ export interface ObservationQueryParams {
|
|
|
151
151
|
top_k?: number;
|
|
152
152
|
}
|
|
153
153
|
export declare namespace Observations {
|
|
154
|
-
export { type
|
|
154
|
+
export { type Observation as Observation, type ObservationCreate as ObservationCreate, type ObservationGet as ObservationGet, type ObservationQuery as ObservationQuery, type PageObservation as PageObservation, type ObservationCreateResponse as ObservationCreateResponse, type ObservationDeleteResponse as ObservationDeleteResponse, type ObservationQueryResponse as ObservationQueryResponse, ObservationsPage as ObservationsPage, type ObservationCreateParams as ObservationCreateParams, type ObservationListParams as ObservationListParams, type ObservationQueryParams as ObservationQueryParams, };
|
|
155
155
|
}
|
|
156
156
|
//# sourceMappingURL=observations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observations.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/observations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAA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,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SAC3C;QACD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,WAAW,oBAAoB,EAAE,gBAAgB,EAAE;YAClG,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;YAC9B,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,WAAmB,EACnB,aAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,WAAW,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CACH,WAAmB,EACnB,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,IAAiB;CAAG;AAuI1D,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { PeersPage, Peers, type PagePeer, type PageSession, type Peer, type PeerCardResponse, type SessionGet, type PeerChatResponse, type PeerGetContextResponse, type PeerSearchResponse, type PeerWorkingRepresentationResponse, type PeerUpdateParams, type PeerListParams, type PeerCardParams, type PeerChatParams, type PeerGetContextParams, type PeerGetOrCreateParams, type PeerSearchParams, type PeerSetCardParams, type PeerWorkingRepresentationParams, } from "./peers.js";
|
|
1
|
+
export { PeersPage, Peers, type PagePeer, type PageSession, type Peer, type PeerCardResponse, type Representation, type SessionGet, type PeerChatResponse, type PeerGetContextResponse, type PeerSearchResponse, type PeerWorkingRepresentationResponse, type PeerUpdateParams, type PeerListParams, type PeerCardParams, type PeerChatParams, type PeerGetContextParams, type PeerGetOrCreateParams, type PeerSearchParams, type PeerSetCardParams, type PeerWorkingRepresentationParams, } from "./peers.js";
|
|
2
2
|
export { Sessions, type SessionListParams } from "./sessions.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAsBiB;AArBf,kGAAA,SAAS,OAAA;AACT,8FAAA,KAAK,OAAA;AAqBP,0CAA8D;AAArD,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,EACT,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/workspaces/peers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,EACT,KAAK,GAoBN;OACM,EAAE,QAAQ,EAA0B"}
|
|
@@ -102,6 +102,68 @@ export interface PeerCardResponse {
|
|
|
102
102
|
*/
|
|
103
103
|
peer_card?: Array<string> | null;
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* A Representation is a traversable and diffable map of observations. At the base,
|
|
107
|
+
* we have a list of explicit observations, derived from a peer's messages.
|
|
108
|
+
*
|
|
109
|
+
* From there, deductive observations can be made by establishing logical
|
|
110
|
+
* relationships between explicit observations.
|
|
111
|
+
*
|
|
112
|
+
* In the future, we can add more levels of reasoning on top of these.
|
|
113
|
+
*
|
|
114
|
+
* All of a peer's observations are stored as documents in a collection. These
|
|
115
|
+
* documents can be queried in various ways to produce this Representation object.
|
|
116
|
+
*
|
|
117
|
+
* Additionally, a "working representation" is a version of this data structure
|
|
118
|
+
* representing the most recent observations within a single session.
|
|
119
|
+
*
|
|
120
|
+
* A representation can have a maximum number of observations, which is applied
|
|
121
|
+
* individually to each level of reasoning. If a maximum is set, observations are
|
|
122
|
+
* added and removed in FIFO order.
|
|
123
|
+
*/
|
|
124
|
+
export interface Representation {
|
|
125
|
+
/**
|
|
126
|
+
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
127
|
+
* necessities. Each deduction should have premises and a single conclusion.
|
|
128
|
+
*/
|
|
129
|
+
deductive?: Array<Representation.Deductive>;
|
|
130
|
+
/**
|
|
131
|
+
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
132
|
+
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
133
|
+
* a dog']
|
|
134
|
+
*/
|
|
135
|
+
explicit?: Array<Representation.Explicit>;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace Representation {
|
|
138
|
+
/**
|
|
139
|
+
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
140
|
+
*/
|
|
141
|
+
interface Deductive {
|
|
142
|
+
/**
|
|
143
|
+
* The deductive conclusion
|
|
144
|
+
*/
|
|
145
|
+
conclusion: string;
|
|
146
|
+
created_at: string;
|
|
147
|
+
message_ids: Array<number>;
|
|
148
|
+
session_name: string;
|
|
149
|
+
/**
|
|
150
|
+
* Supporting premises or evidence for this conclusion
|
|
151
|
+
*/
|
|
152
|
+
premises?: Array<string>;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Explicit observation with content and metadata.
|
|
156
|
+
*/
|
|
157
|
+
interface Explicit {
|
|
158
|
+
/**
|
|
159
|
+
* The explicit observation
|
|
160
|
+
*/
|
|
161
|
+
content: string;
|
|
162
|
+
created_at: string;
|
|
163
|
+
message_ids: Array<number>;
|
|
164
|
+
session_name: string;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
105
167
|
export interface SessionGet {
|
|
106
168
|
filters?: {
|
|
107
169
|
[key: string]: unknown;
|
|
@@ -145,71 +207,7 @@ export interface PeerGetContextResponse {
|
|
|
145
207
|
* individually to each level of reasoning. If a maximum is set, observations are
|
|
146
208
|
* added and removed in FIFO order.
|
|
147
209
|
*/
|
|
148
|
-
representation?:
|
|
149
|
-
}
|
|
150
|
-
export declare namespace PeerGetContextResponse {
|
|
151
|
-
/**
|
|
152
|
-
* A Representation is a traversable and diffable map of observations. At the base,
|
|
153
|
-
* we have a list of explicit observations, derived from a peer's messages.
|
|
154
|
-
*
|
|
155
|
-
* From there, deductive observations can be made by establishing logical
|
|
156
|
-
* relationships between explicit observations.
|
|
157
|
-
*
|
|
158
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
159
|
-
*
|
|
160
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
161
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
162
|
-
*
|
|
163
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
164
|
-
* representing the most recent observations within a single session.
|
|
165
|
-
*
|
|
166
|
-
* A representation can have a maximum number of observations, which is applied
|
|
167
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
168
|
-
* added and removed in FIFO order.
|
|
169
|
-
*/
|
|
170
|
-
interface Representation {
|
|
171
|
-
/**
|
|
172
|
-
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
173
|
-
* necessities. Each deduction should have premises and a single conclusion.
|
|
174
|
-
*/
|
|
175
|
-
deductive?: Array<Representation.Deductive>;
|
|
176
|
-
/**
|
|
177
|
-
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
178
|
-
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
179
|
-
* a dog']
|
|
180
|
-
*/
|
|
181
|
-
explicit?: Array<Representation.Explicit>;
|
|
182
|
-
}
|
|
183
|
-
namespace Representation {
|
|
184
|
-
/**
|
|
185
|
-
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
186
|
-
*/
|
|
187
|
-
interface Deductive {
|
|
188
|
-
/**
|
|
189
|
-
* The deductive conclusion
|
|
190
|
-
*/
|
|
191
|
-
conclusion: string;
|
|
192
|
-
created_at: string;
|
|
193
|
-
message_ids: Array<number>;
|
|
194
|
-
session_name: string;
|
|
195
|
-
/**
|
|
196
|
-
* Supporting premises or evidence for this conclusion
|
|
197
|
-
*/
|
|
198
|
-
premises?: Array<string>;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Explicit observation with content and metadata.
|
|
202
|
-
*/
|
|
203
|
-
interface Explicit {
|
|
204
|
-
/**
|
|
205
|
-
* The explicit observation
|
|
206
|
-
*/
|
|
207
|
-
content: string;
|
|
208
|
-
created_at: string;
|
|
209
|
-
message_ids: Array<number>;
|
|
210
|
-
session_name: string;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
210
|
+
representation?: Representation | null;
|
|
213
211
|
}
|
|
214
212
|
export type PeerSearchResponse = Array<MessagesAPI.Message>;
|
|
215
213
|
export type PeerWorkingRepresentationResponse = {
|
|
@@ -354,7 +352,7 @@ export interface PeerWorkingRepresentationParams {
|
|
|
354
352
|
target?: string | null;
|
|
355
353
|
}
|
|
356
354
|
export declare namespace Peers {
|
|
357
|
-
export { type PagePeer as PagePeer, type PageSession as PageSession, type Peer as Peer, type PeerCardResponse as PeerCardResponse, type SessionGet as SessionGet, type PeerChatResponse as PeerChatResponse, type PeerGetContextResponse as PeerGetContextResponse, type PeerSearchResponse as PeerSearchResponse, type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse, PeersPage as PeersPage, type PeerUpdateParams as PeerUpdateParams, type PeerListParams as PeerListParams, type PeerCardParams as PeerCardParams, type PeerChatParams as PeerChatParams, type PeerGetContextParams as PeerGetContextParams, type PeerGetOrCreateParams as PeerGetOrCreateParams, type PeerSearchParams as PeerSearchParams, type PeerSetCardParams as PeerSetCardParams, type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams, };
|
|
355
|
+
export { type PagePeer as PagePeer, type PageSession as PageSession, type Peer as Peer, type PeerCardResponse as PeerCardResponse, type Representation as Representation, type SessionGet as SessionGet, type PeerChatResponse as PeerChatResponse, type PeerGetContextResponse as PeerGetContextResponse, type PeerSearchResponse as PeerSearchResponse, type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse, PeersPage as PeersPage, type PeerUpdateParams as PeerUpdateParams, type PeerListParams as PeerListParams, type PeerCardParams as PeerCardParams, type PeerChatParams as PeerChatParams, type PeerGetContextParams as PeerGetContextParams, type PeerGetOrCreateParams as PeerGetOrCreateParams, type PeerSearchParams as PeerSearchParams, type PeerSetCardParams as PeerSetCardParams, type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams, };
|
|
358
356
|
export { Sessions as Sessions, type SessionListParams as SessionListParams };
|
|
359
357
|
}
|
|
360
358
|
//# sourceMappingURL=peers.d.ts.map
|