@pellux/goodvibes-sdk 0.33.9 → 0.33.11
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/dist/browser-knowledge.d.ts +18 -1
- package/dist/browser-knowledge.d.ts.map +1 -1
- package/dist/browser-knowledge.js +9 -1
- package/dist/contracts/artifacts/operator-contract.json +271 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-manager.d.ts +27 -2
- package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-manager.js +142 -10
- package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-routes.js +38 -3
- package/dist/platform/companion/companion-chat-types.d.ts +12 -0
- package/dist/platform/companion/companion-chat-types.d.ts.map +1 -1
- package/dist/platform/companion/index.d.ts +2 -2
- package/dist/platform/companion/index.d.ts.map +1 -1
- package/dist/platform/control-plane/conversation-message.d.ts +6 -0
- package/dist/platform/control-plane/conversation-message.d.ts.map +1 -1
- package/dist/platform/control-plane/conversation-message.js +0 -8
- package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-control-core.js +6 -1
- package/dist/platform/control-plane/method-catalog-knowledge.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-knowledge.js +16 -7
- package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract-schemas-runtime.js +18 -1
- package/dist/platform/control-plane/routes/operator.js +2 -2
- package/dist/platform/daemon/facade-composition.d.ts.map +1 -1
- package/dist/platform/daemon/facade-composition.js +1 -0
- package/dist/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
- package/dist/platform/daemon/http/router-route-contexts.js +8 -8
- package/dist/platform/knowledge/graphql-schema.d.ts +1 -1
- package/dist/platform/knowledge/graphql-schema.d.ts.map +1 -1
- package/dist/platform/knowledge/graphql-schema.js +13 -11
- package/dist/platform/knowledge/graphql.d.ts.map +1 -1
- package/dist/platform/knowledge/graphql.js +51 -25
- package/dist/platform/knowledge/index.d.ts +1 -1
- package/dist/platform/knowledge/index.d.ts.map +1 -1
- package/dist/platform/knowledge/map-filters.d.ts +3 -0
- package/dist/platform/knowledge/map-filters.d.ts.map +1 -1
- package/dist/platform/knowledge/map-filters.js +20 -0
- package/dist/platform/knowledge/map.d.ts +2 -0
- package/dist/platform/knowledge/map.d.ts.map +1 -1
- package/dist/platform/knowledge/map.js +1 -6
- package/dist/platform/knowledge/packet.d.ts +6 -5
- package/dist/platform/knowledge/packet.d.ts.map +1 -1
- package/dist/platform/knowledge/packet.js +13 -8
- package/dist/platform/knowledge/projections.d.ts +12 -1
- package/dist/platform/knowledge/projections.d.ts.map +1 -1
- package/dist/platform/knowledge/projections.js +153 -91
- package/dist/platform/knowledge/service.d.ts +27 -7
- package/dist/platform/knowledge/service.d.ts.map +1 -1
- package/dist/platform/knowledge/service.js +66 -6
- package/dist/platform/knowledge/spaces.d.ts +6 -0
- package/dist/platform/knowledge/spaces.d.ts.map +1 -1
- package/dist/platform/knowledge/spaces.js +9 -0
- package/dist/platform/knowledge/types.d.ts +2 -0
- package/dist/platform/knowledge/types.d.ts.map +1 -1
- package/dist/platform/version.js +1 -1
- package/package.json +9 -9
|
@@ -194,6 +194,18 @@ declare const KNOWLEDGE_BROWSER_ROUTES: {
|
|
|
194
194
|
readonly method: "GET";
|
|
195
195
|
readonly path: "/api/knowledge/usage";
|
|
196
196
|
};
|
|
197
|
+
readonly 'artifacts.create': {
|
|
198
|
+
readonly method: "POST";
|
|
199
|
+
readonly path: "/api/artifacts";
|
|
200
|
+
};
|
|
201
|
+
readonly 'artifacts.get': {
|
|
202
|
+
readonly method: "GET";
|
|
203
|
+
readonly path: "/api/artifacts/{artifactId}";
|
|
204
|
+
};
|
|
205
|
+
readonly 'artifacts.list': {
|
|
206
|
+
readonly method: "GET";
|
|
207
|
+
readonly path: "/api/artifacts";
|
|
208
|
+
};
|
|
197
209
|
readonly 'companion.chat.messages.create': {
|
|
198
210
|
readonly method: "POST";
|
|
199
211
|
readonly path: "/api/companion/chat/sessions/{sessionId}/messages";
|
|
@@ -226,7 +238,7 @@ export interface BrowserKnowledgeSdk extends ScopedBrowserSdk<BrowserKnowledgeMe
|
|
|
226
238
|
readonly knowledge: {
|
|
227
239
|
ask(input: OperatorMethodInput<'knowledge.ask'>): Promise<OperatorMethodOutput<'knowledge.ask'>>;
|
|
228
240
|
search(input: OperatorMethodInput<'knowledge.search'>): Promise<OperatorMethodOutput<'knowledge.search'>>;
|
|
229
|
-
status(): Promise<OperatorMethodOutput<'knowledge.status'>>;
|
|
241
|
+
status(input?: OperatorMethodInput<'knowledge.status'>): Promise<OperatorMethodOutput<'knowledge.status'>>;
|
|
230
242
|
map(input?: OperatorMethodInput<'knowledge.map'>): Promise<OperatorMethodOutput<'knowledge.map'>>;
|
|
231
243
|
};
|
|
232
244
|
readonly chat: {
|
|
@@ -244,6 +256,11 @@ export interface BrowserKnowledgeSdk extends ScopedBrowserSdk<BrowserKnowledgeMe
|
|
|
244
256
|
stream(sessionId: string, handlers: ServerSentEventHandlers, options?: ScopedEventStreamOptions): Promise<() => void>;
|
|
245
257
|
};
|
|
246
258
|
};
|
|
259
|
+
readonly artifacts: {
|
|
260
|
+
create(input: OperatorMethodInput<'artifacts.create'>): Promise<OperatorMethodOutput<'artifacts.create'>>;
|
|
261
|
+
get(artifactId: string): Promise<OperatorMethodOutput<'artifacts.get'>>;
|
|
262
|
+
list(): Promise<OperatorMethodOutput<'artifacts.list'>>;
|
|
263
|
+
};
|
|
247
264
|
}
|
|
248
265
|
export declare function createBrowserKnowledgeSdk(options?: ScopedBrowserSdkOptions): BrowserKnowledgeSdk;
|
|
249
266
|
export { forScopedBrowserSession as forSession };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-knowledge.d.ts","sourceRoot":"","sources":["../src/browser-knowledge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ACjB,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,gCAAgC,CAAC,EAAE,WAAW,CAAC,GAC9E,OAAO,CAAC,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC;YACnE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,8BAA8B,CAAC,CAAC,CAAC;SACxF,CAAC;QACF,QAAQ,CAAC,MAAM,EAAE;YACf,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,uBAAuB,EACjC,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;SACxB,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,SAAS,EAAE;QAClB,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAC1G,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC;QACxE,IAAI,IAAI,OAAO,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC,CAAC;KACzD,CAAC;CACH;AAED,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,uBAA4B,GAAG,mBAAmB,CAwCpG;AAED,OAAO,EAAE,uBAAuB,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -48,6 +48,9 @@ const KNOWLEDGE_BROWSER_ROUTES = {
|
|
|
48
48
|
'knowledge.sources.list': { method: 'GET', path: '/api/knowledge/sources' },
|
|
49
49
|
'knowledge.status': { method: 'GET', path: '/api/knowledge/status' },
|
|
50
50
|
'knowledge.usage.list': { method: 'GET', path: '/api/knowledge/usage' },
|
|
51
|
+
'artifacts.create': { method: 'POST', path: '/api/artifacts' },
|
|
52
|
+
'artifacts.get': { method: 'GET', path: '/api/artifacts/{artifactId}' },
|
|
53
|
+
'artifacts.list': { method: 'GET', path: '/api/artifacts' },
|
|
51
54
|
'companion.chat.messages.create': { method: 'POST', path: '/api/companion/chat/sessions/{sessionId}/messages' },
|
|
52
55
|
'companion.chat.messages.list': { method: 'GET', path: '/api/companion/chat/sessions/{sessionId}/messages' },
|
|
53
56
|
'companion.chat.sessions.create': { method: 'POST', path: '/api/companion/chat/sessions' },
|
|
@@ -74,7 +77,7 @@ export function createBrowserKnowledgeSdk(options = {}) {
|
|
|
74
77
|
knowledge: {
|
|
75
78
|
ask: (input) => invoke('knowledge.ask', input),
|
|
76
79
|
search: (input) => invoke('knowledge.search', input),
|
|
77
|
-
status: () => invoke('knowledge.status'),
|
|
80
|
+
status: (input) => invoke('knowledge.status', input),
|
|
78
81
|
map: (input) => invoke('knowledge.map', input),
|
|
79
82
|
},
|
|
80
83
|
chat: {
|
|
@@ -92,6 +95,11 @@ export function createBrowserKnowledgeSdk(options = {}) {
|
|
|
92
95
|
stream: (id, handlers, options) => sdk.streams.open('/api/companion/chat/sessions/' + id + '/events', handlers, options),
|
|
93
96
|
},
|
|
94
97
|
},
|
|
98
|
+
artifacts: {
|
|
99
|
+
create: (input) => invoke('artifacts.create', input),
|
|
100
|
+
get: (artifactId) => invoke('artifacts.get', { artifactId }),
|
|
101
|
+
list: () => invoke('artifacts.list'),
|
|
102
|
+
},
|
|
95
103
|
};
|
|
96
104
|
}
|
|
97
105
|
export { forScopedBrowserSession as forSession };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"product": {
|
|
4
4
|
"id": "goodvibes",
|
|
5
5
|
"surface": "operator",
|
|
6
|
-
"version": "0.33.
|
|
6
|
+
"version": "0.33.11"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
9
9
|
"modes": [
|
|
@@ -20157,7 +20157,7 @@
|
|
|
20157
20157
|
{
|
|
20158
20158
|
"id": "companion.chat.messages.create",
|
|
20159
20159
|
"title": "Send Companion Chat Message",
|
|
20160
|
-
"description": "Post a user message to a companion-chat session. Accepts either `body` or `content` in the payload; `body` wins when both are provided.",
|
|
20160
|
+
"description": "Post a user message to a companion-chat session. Accepts either `body` or `content` in the payload; `body` wins when both are provided. Attachments reference artifacts created through `artifacts.create`.",
|
|
20161
20161
|
"category": "companion",
|
|
20162
20162
|
"source": "builtin",
|
|
20163
20163
|
"access": "authenticated",
|
|
@@ -20181,6 +20181,29 @@
|
|
|
20181
20181
|
"content": {
|
|
20182
20182
|
"type": "string"
|
|
20183
20183
|
},
|
|
20184
|
+
"attachments": {
|
|
20185
|
+
"type": "array",
|
|
20186
|
+
"items": {
|
|
20187
|
+
"type": "object",
|
|
20188
|
+
"properties": {
|
|
20189
|
+
"artifactId": {
|
|
20190
|
+
"type": "string"
|
|
20191
|
+
},
|
|
20192
|
+
"label": {
|
|
20193
|
+
"type": "string"
|
|
20194
|
+
},
|
|
20195
|
+
"metadata": {
|
|
20196
|
+
"type": "object",
|
|
20197
|
+
"properties": {},
|
|
20198
|
+
"additionalProperties": false
|
|
20199
|
+
}
|
|
20200
|
+
},
|
|
20201
|
+
"required": [
|
|
20202
|
+
"artifactId"
|
|
20203
|
+
],
|
|
20204
|
+
"additionalProperties": false
|
|
20205
|
+
}
|
|
20206
|
+
},
|
|
20184
20207
|
"metadata": {
|
|
20185
20208
|
"type": "object",
|
|
20186
20209
|
"properties": {},
|
|
@@ -20260,6 +20283,91 @@
|
|
|
20260
20283
|
"content": {
|
|
20261
20284
|
"type": "string"
|
|
20262
20285
|
},
|
|
20286
|
+
"attachments": {
|
|
20287
|
+
"type": "array",
|
|
20288
|
+
"items": {
|
|
20289
|
+
"type": "object",
|
|
20290
|
+
"properties": {
|
|
20291
|
+
"id": {
|
|
20292
|
+
"type": "string"
|
|
20293
|
+
},
|
|
20294
|
+
"artifactId": {
|
|
20295
|
+
"type": "string"
|
|
20296
|
+
},
|
|
20297
|
+
"kind": {
|
|
20298
|
+
"type": "string"
|
|
20299
|
+
},
|
|
20300
|
+
"mimeType": {
|
|
20301
|
+
"type": "string"
|
|
20302
|
+
},
|
|
20303
|
+
"filename": {
|
|
20304
|
+
"type": "string"
|
|
20305
|
+
},
|
|
20306
|
+
"sizeBytes": {
|
|
20307
|
+
"type": "number"
|
|
20308
|
+
},
|
|
20309
|
+
"sha256": {
|
|
20310
|
+
"type": "string"
|
|
20311
|
+
},
|
|
20312
|
+
"createdAt": {
|
|
20313
|
+
"type": "number"
|
|
20314
|
+
},
|
|
20315
|
+
"expiresAt": {
|
|
20316
|
+
"type": "number"
|
|
20317
|
+
},
|
|
20318
|
+
"sourceUri": {
|
|
20319
|
+
"type": "string"
|
|
20320
|
+
},
|
|
20321
|
+
"acquisitionMode": {
|
|
20322
|
+
"type": "string"
|
|
20323
|
+
},
|
|
20324
|
+
"fetchMode": {
|
|
20325
|
+
"type": "string"
|
|
20326
|
+
},
|
|
20327
|
+
"label": {
|
|
20328
|
+
"type": "string"
|
|
20329
|
+
},
|
|
20330
|
+
"metadata": {
|
|
20331
|
+
"type": "object",
|
|
20332
|
+
"additionalProperties": {
|
|
20333
|
+
"anyOf": [
|
|
20334
|
+
{
|
|
20335
|
+
"type": "string"
|
|
20336
|
+
},
|
|
20337
|
+
{
|
|
20338
|
+
"type": "number"
|
|
20339
|
+
},
|
|
20340
|
+
{
|
|
20341
|
+
"type": "boolean"
|
|
20342
|
+
},
|
|
20343
|
+
{
|
|
20344
|
+
"type": "null"
|
|
20345
|
+
},
|
|
20346
|
+
{
|
|
20347
|
+
"type": "object",
|
|
20348
|
+
"additionalProperties": {}
|
|
20349
|
+
},
|
|
20350
|
+
{
|
|
20351
|
+
"type": "array",
|
|
20352
|
+
"items": {}
|
|
20353
|
+
}
|
|
20354
|
+
]
|
|
20355
|
+
}
|
|
20356
|
+
}
|
|
20357
|
+
},
|
|
20358
|
+
"required": [
|
|
20359
|
+
"id",
|
|
20360
|
+
"artifactId",
|
|
20361
|
+
"kind",
|
|
20362
|
+
"mimeType",
|
|
20363
|
+
"sizeBytes",
|
|
20364
|
+
"sha256",
|
|
20365
|
+
"createdAt",
|
|
20366
|
+
"metadata"
|
|
20367
|
+
],
|
|
20368
|
+
"additionalProperties": true
|
|
20369
|
+
}
|
|
20370
|
+
},
|
|
20263
20371
|
"createdAt": {
|
|
20264
20372
|
"type": "number"
|
|
20265
20373
|
}
|
|
@@ -20269,6 +20377,7 @@
|
|
|
20269
20377
|
"sessionId",
|
|
20270
20378
|
"role",
|
|
20271
20379
|
"content",
|
|
20380
|
+
"attachments",
|
|
20272
20381
|
"createdAt"
|
|
20273
20382
|
],
|
|
20274
20383
|
"additionalProperties": false
|
|
@@ -20614,6 +20723,91 @@
|
|
|
20614
20723
|
"content": {
|
|
20615
20724
|
"type": "string"
|
|
20616
20725
|
},
|
|
20726
|
+
"attachments": {
|
|
20727
|
+
"type": "array",
|
|
20728
|
+
"items": {
|
|
20729
|
+
"type": "object",
|
|
20730
|
+
"properties": {
|
|
20731
|
+
"id": {
|
|
20732
|
+
"type": "string"
|
|
20733
|
+
},
|
|
20734
|
+
"artifactId": {
|
|
20735
|
+
"type": "string"
|
|
20736
|
+
},
|
|
20737
|
+
"kind": {
|
|
20738
|
+
"type": "string"
|
|
20739
|
+
},
|
|
20740
|
+
"mimeType": {
|
|
20741
|
+
"type": "string"
|
|
20742
|
+
},
|
|
20743
|
+
"filename": {
|
|
20744
|
+
"type": "string"
|
|
20745
|
+
},
|
|
20746
|
+
"sizeBytes": {
|
|
20747
|
+
"type": "number"
|
|
20748
|
+
},
|
|
20749
|
+
"sha256": {
|
|
20750
|
+
"type": "string"
|
|
20751
|
+
},
|
|
20752
|
+
"createdAt": {
|
|
20753
|
+
"type": "number"
|
|
20754
|
+
},
|
|
20755
|
+
"expiresAt": {
|
|
20756
|
+
"type": "number"
|
|
20757
|
+
},
|
|
20758
|
+
"sourceUri": {
|
|
20759
|
+
"type": "string"
|
|
20760
|
+
},
|
|
20761
|
+
"acquisitionMode": {
|
|
20762
|
+
"type": "string"
|
|
20763
|
+
},
|
|
20764
|
+
"fetchMode": {
|
|
20765
|
+
"type": "string"
|
|
20766
|
+
},
|
|
20767
|
+
"label": {
|
|
20768
|
+
"type": "string"
|
|
20769
|
+
},
|
|
20770
|
+
"metadata": {
|
|
20771
|
+
"type": "object",
|
|
20772
|
+
"additionalProperties": {
|
|
20773
|
+
"anyOf": [
|
|
20774
|
+
{
|
|
20775
|
+
"type": "string"
|
|
20776
|
+
},
|
|
20777
|
+
{
|
|
20778
|
+
"type": "number"
|
|
20779
|
+
},
|
|
20780
|
+
{
|
|
20781
|
+
"type": "boolean"
|
|
20782
|
+
},
|
|
20783
|
+
{
|
|
20784
|
+
"type": "null"
|
|
20785
|
+
},
|
|
20786
|
+
{
|
|
20787
|
+
"type": "object",
|
|
20788
|
+
"additionalProperties": {}
|
|
20789
|
+
},
|
|
20790
|
+
{
|
|
20791
|
+
"type": "array",
|
|
20792
|
+
"items": {}
|
|
20793
|
+
}
|
|
20794
|
+
]
|
|
20795
|
+
}
|
|
20796
|
+
}
|
|
20797
|
+
},
|
|
20798
|
+
"required": [
|
|
20799
|
+
"id",
|
|
20800
|
+
"artifactId",
|
|
20801
|
+
"kind",
|
|
20802
|
+
"mimeType",
|
|
20803
|
+
"sizeBytes",
|
|
20804
|
+
"sha256",
|
|
20805
|
+
"createdAt",
|
|
20806
|
+
"metadata"
|
|
20807
|
+
],
|
|
20808
|
+
"additionalProperties": true
|
|
20809
|
+
}
|
|
20810
|
+
},
|
|
20617
20811
|
"createdAt": {
|
|
20618
20812
|
"type": "number"
|
|
20619
20813
|
}
|
|
@@ -20623,6 +20817,7 @@
|
|
|
20623
20817
|
"sessionId",
|
|
20624
20818
|
"role",
|
|
20625
20819
|
"content",
|
|
20820
|
+
"attachments",
|
|
20626
20821
|
"createdAt"
|
|
20627
20822
|
],
|
|
20628
20823
|
"additionalProperties": false
|
|
@@ -34126,6 +34321,12 @@
|
|
|
34126
34321
|
},
|
|
34127
34322
|
"sourceId": {
|
|
34128
34323
|
"type": "string"
|
|
34324
|
+
},
|
|
34325
|
+
"knowledgeSpaceId": {
|
|
34326
|
+
"type": "string"
|
|
34327
|
+
},
|
|
34328
|
+
"includeAllSpaces": {
|
|
34329
|
+
"type": "boolean"
|
|
34129
34330
|
}
|
|
34130
34331
|
},
|
|
34131
34332
|
"additionalProperties": false
|
|
@@ -36397,6 +36598,12 @@
|
|
|
36397
36598
|
"properties": {
|
|
36398
36599
|
"limit": {
|
|
36399
36600
|
"type": "number"
|
|
36601
|
+
},
|
|
36602
|
+
"knowledgeSpaceId": {
|
|
36603
|
+
"type": "string"
|
|
36604
|
+
},
|
|
36605
|
+
"includeAllSpaces": {
|
|
36606
|
+
"type": "boolean"
|
|
36400
36607
|
}
|
|
36401
36608
|
},
|
|
36402
36609
|
"additionalProperties": false
|
|
@@ -36508,6 +36715,12 @@
|
|
|
36508
36715
|
"properties": {
|
|
36509
36716
|
"id": {
|
|
36510
36717
|
"type": "string"
|
|
36718
|
+
},
|
|
36719
|
+
"knowledgeSpaceId": {
|
|
36720
|
+
"type": "string"
|
|
36721
|
+
},
|
|
36722
|
+
"includeAllSpaces": {
|
|
36723
|
+
"type": "boolean"
|
|
36511
36724
|
}
|
|
36512
36725
|
},
|
|
36513
36726
|
"required": [
|
|
@@ -38375,6 +38588,12 @@
|
|
|
38375
38588
|
"limit": {
|
|
38376
38589
|
"type": "number"
|
|
38377
38590
|
},
|
|
38591
|
+
"knowledgeSpaceId": {
|
|
38592
|
+
"type": "string"
|
|
38593
|
+
},
|
|
38594
|
+
"includeAllSpaces": {
|
|
38595
|
+
"type": "boolean"
|
|
38596
|
+
},
|
|
38378
38597
|
"includeSources": {
|
|
38379
38598
|
"type": "boolean"
|
|
38380
38599
|
},
|
|
@@ -38939,6 +39158,12 @@
|
|
|
38939
39158
|
"properties": {
|
|
38940
39159
|
"limit": {
|
|
38941
39160
|
"type": "number"
|
|
39161
|
+
},
|
|
39162
|
+
"knowledgeSpaceId": {
|
|
39163
|
+
"type": "string"
|
|
39164
|
+
},
|
|
39165
|
+
"includeAllSpaces": {
|
|
39166
|
+
"type": "boolean"
|
|
38942
39167
|
}
|
|
38943
39168
|
},
|
|
38944
39169
|
"additionalProperties": false
|
|
@@ -39123,6 +39348,12 @@
|
|
|
39123
39348
|
"standard",
|
|
39124
39349
|
"detailed"
|
|
39125
39350
|
]
|
|
39351
|
+
},
|
|
39352
|
+
"knowledgeSpaceId": {
|
|
39353
|
+
"type": "string"
|
|
39354
|
+
},
|
|
39355
|
+
"includeAllSpaces": {
|
|
39356
|
+
"type": "boolean"
|
|
39126
39357
|
}
|
|
39127
39358
|
},
|
|
39128
39359
|
"required": [
|
|
@@ -39289,6 +39520,12 @@
|
|
|
39289
39520
|
},
|
|
39290
39521
|
"limit": {
|
|
39291
39522
|
"type": "number"
|
|
39523
|
+
},
|
|
39524
|
+
"knowledgeSpaceId": {
|
|
39525
|
+
"type": "string"
|
|
39526
|
+
},
|
|
39527
|
+
"includeAllSpaces": {
|
|
39528
|
+
"type": "boolean"
|
|
39292
39529
|
}
|
|
39293
39530
|
},
|
|
39294
39531
|
"required": [
|
|
@@ -39774,6 +40011,12 @@
|
|
|
39774
40011
|
},
|
|
39775
40012
|
"limit": {
|
|
39776
40013
|
"type": "number"
|
|
40014
|
+
},
|
|
40015
|
+
"knowledgeSpaceId": {
|
|
40016
|
+
"type": "string"
|
|
40017
|
+
},
|
|
40018
|
+
"includeAllSpaces": {
|
|
40019
|
+
"type": "boolean"
|
|
39777
40020
|
}
|
|
39778
40021
|
},
|
|
39779
40022
|
"required": [
|
|
@@ -41262,6 +41505,12 @@
|
|
|
41262
41505
|
"properties": {
|
|
41263
41506
|
"limit": {
|
|
41264
41507
|
"type": "number"
|
|
41508
|
+
},
|
|
41509
|
+
"knowledgeSpaceId": {
|
|
41510
|
+
"type": "string"
|
|
41511
|
+
},
|
|
41512
|
+
"includeAllSpaces": {
|
|
41513
|
+
"type": "boolean"
|
|
41265
41514
|
}
|
|
41266
41515
|
},
|
|
41267
41516
|
"additionalProperties": false
|
|
@@ -42266,6 +42515,12 @@
|
|
|
42266
42515
|
"limit": {
|
|
42267
42516
|
"type": "number"
|
|
42268
42517
|
},
|
|
42518
|
+
"knowledgeSpaceId": {
|
|
42519
|
+
"type": "string"
|
|
42520
|
+
},
|
|
42521
|
+
"includeAllSpaces": {
|
|
42522
|
+
"type": "boolean"
|
|
42523
|
+
},
|
|
42269
42524
|
"includeSources": {
|
|
42270
42525
|
"type": "boolean"
|
|
42271
42526
|
},
|
|
@@ -42763,6 +43018,12 @@
|
|
|
42763
43018
|
"properties": {
|
|
42764
43019
|
"limit": {
|
|
42765
43020
|
"type": "number"
|
|
43021
|
+
},
|
|
43022
|
+
"knowledgeSpaceId": {
|
|
43023
|
+
"type": "string"
|
|
43024
|
+
},
|
|
43025
|
+
"includeAllSpaces": {
|
|
43026
|
+
"type": "boolean"
|
|
42766
43027
|
}
|
|
42767
43028
|
},
|
|
42768
43029
|
"additionalProperties": false
|
|
@@ -42913,7 +43174,14 @@
|
|
|
42913
43174
|
},
|
|
42914
43175
|
"inputSchema": {
|
|
42915
43176
|
"type": "object",
|
|
42916
|
-
"properties": {
|
|
43177
|
+
"properties": {
|
|
43178
|
+
"knowledgeSpaceId": {
|
|
43179
|
+
"type": "string"
|
|
43180
|
+
},
|
|
43181
|
+
"includeAllSpaces": {
|
|
43182
|
+
"type": "boolean"
|
|
43183
|
+
}
|
|
43184
|
+
},
|
|
42917
43185
|
"additionalProperties": false
|
|
42918
43186
|
},
|
|
42919
43187
|
"outputSchema": {
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { createExpoGoodVibesSdk } from './expo.js';
|
|
|
15
15
|
export { TokenStore, SessionManager, PermissionResolver, AutoRefreshCoordinator } from './client-auth/index.js';
|
|
16
16
|
export * from './observer/index.js';
|
|
17
17
|
export * from './events/index.js';
|
|
18
|
-
export type { ContractHttpDefinition, DistributedPeerKind, DistributedWorkStatus, DistributedWorkType, GatewayEventTransport, GatewayMethodAccess, GatewayMethodSource, GatewayMethodTransport, JsonSchema, OperatorContractManifest, OperatorEventCoverageContract, OperatorEventContract, OperatorMethodContract, OperatorSchemaCoverageContract, PeerContractManifest, PeerEndpointContract, CompanionChatMessage, CompanionChatMessageRole, CompanionChatSession, CompanionChatSessionsListTotals, CompanionChatSessionStatus, OperatorEventPayload, OperatorEventPayloadMap, JsonPrimitive, JsonValue, OperatorMethodInput, OperatorMethodInputMap, OperatorMethodOutput, OperatorMethodOutputMap, OperatorStreamMethodId, OperatorTypedEventId, OperatorTypedMethodId, PeerEndpointInput, PeerEndpointInputMap, PeerEndpointOutput, PeerEndpointOutputMap, PeerTypedEndpointId, RuntimeDomainEventPayload, RuntimeDomainEventPayloadMap, RuntimeDomainEventType, RuntimeEventTypedDomain, SharedSessionConversationRouteOutput, OperatorMethodId, PeerEndpointId, ControlAuthLoginResponse, ControlAuthCurrentResponse, AccountsSnapshotResponse, SerializedEventEnvelopeShape, TypedSerializedEventEnvelopeShape, ControlStatusResponse, LocalAuthStatusResponse, ProviderModelRef, ProviderModelEntry, ConfiguredVia, ProviderAuthRouteDescriptor, ProviderModelProvider, ListProviderModelsResponse, CurrentModelResponse, PatchCurrentModelBody, PatchCurrentModelError, PatchCurrentModelResponse, ModelChangedEvent, } from './contracts.js';
|
|
18
|
+
export type { ContractHttpDefinition, DistributedPeerKind, DistributedWorkStatus, DistributedWorkType, GatewayEventTransport, GatewayMethodAccess, GatewayMethodSource, GatewayMethodTransport, JsonSchema, OperatorContractManifest, OperatorEventCoverageContract, OperatorEventContract, OperatorMethodContract, OperatorSchemaCoverageContract, PeerContractManifest, PeerEndpointContract, CompanionChatMessage, CompanionChatMessageRole, CompanionChatSession, CompanionChatSessionsListTotals, CompanionChatSessionStatus, KnowledgeSpaceScopeInput, OperatorEventPayload, OperatorEventPayloadMap, JsonPrimitive, JsonValue, OperatorMethodInput, OperatorMethodInputMap, OperatorMethodOutput, OperatorMethodOutputMap, OperatorStreamMethodId, OperatorTypedEventId, OperatorTypedMethodId, PeerEndpointInput, PeerEndpointInputMap, PeerEndpointOutput, PeerEndpointOutputMap, PeerTypedEndpointId, RuntimeDomainEventPayload, RuntimeDomainEventPayloadMap, RuntimeDomainEventType, RuntimeEventTypedDomain, SharedSessionConversationRouteOutput, OperatorMethodId, PeerEndpointId, ControlAuthLoginResponse, ControlAuthCurrentResponse, AccountsSnapshotResponse, SerializedEventEnvelopeShape, TypedSerializedEventEnvelopeShape, ControlStatusResponse, LocalAuthStatusResponse, ProviderModelRef, ProviderModelEntry, ConfiguredVia, ProviderAuthRouteDescriptor, ProviderModelProvider, ListProviderModelsResponse, CurrentModelResponse, PatchCurrentModelBody, PatchCurrentModelError, PatchCurrentModelResponse, ModelChangedEvent, } from './contracts.js';
|
|
19
19
|
export { DISTRIBUTED_WORK_TYPES, FOUNDATION_METADATA, OPERATOR_CONTRACT, OPERATOR_METHOD_IDS, PEER_CONTRACT, PEER_ENDPOINT_IDS, getOperatorContract, getPeerContract, getOperatorMethod, getPeerEndpoint, listOperatorMethods, listPeerEndpoints, isOperatorMethodId, isPeerEndpointId, ControlAuthLoginResponseSchema, ControlAuthCurrentResponseSchema, AccountsSnapshotResponseSchema, SerializedEventEnvelopeSchema, TypedSerializedEventEnvelopeSchema, RuntimeEventRecordSchema, ControlStatusResponseSchema, LocalAuthStatusResponseSchema, ProviderModelRefSchema, ProviderModelEntrySchema, ConfiguredViaSchema, ProviderAuthRouteDescriptorSchema, ProviderModelProviderSchema, ListProviderModelsResponseSchema, CurrentModelResponseSchema, PatchCurrentModelBodySchema, PatchCurrentModelErrorSchema, PatchCurrentModelResponseSchema, ModelChangedEventSchema, } from './contracts.js';
|
|
20
20
|
export * from './errors.js';
|
|
21
21
|
export * from './transport-core.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,wBAAwB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0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,gCAAgC,EAChC,8BAA8B,EAC9B,6BAA6B,EAC7B,kCAAkC,EAClC,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iCAAiC,EACjC,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
|
@@ -19,8 +19,10 @@
|
|
|
19
19
|
* for that specific session — never the global TUI event feed.
|
|
20
20
|
* - A GC sweep closes sessions that have been idle beyond the TTL.
|
|
21
21
|
*/
|
|
22
|
+
import { Buffer } from 'node:buffer';
|
|
22
23
|
import type { ProviderMessage } from '../providers/interface.js';
|
|
23
|
-
import type {
|
|
24
|
+
import type { ArtifactDescriptor } from '../artifacts/index.js';
|
|
25
|
+
import type { CompanionChatMessageAttachmentInput, CompanionChatMessage, CompanionChatSession, CreateCompanionChatSessionInput, UpdateCompanionChatSessionInput } from './companion-chat-types.js';
|
|
24
26
|
import type { CompanionChatRateLimiterOptions } from './companion-chat-rate-limiter.js';
|
|
25
27
|
import type { ToolRegistry } from '../tools/registry.js';
|
|
26
28
|
import type { ToolDefinition } from '../types/tools.js';
|
|
@@ -51,6 +53,16 @@ export interface CompanionLLMProvider {
|
|
|
51
53
|
type HookDispatcherLike = {
|
|
52
54
|
fire(event: HookEvent): Promise<HookResult>;
|
|
53
55
|
};
|
|
56
|
+
export interface CompanionChatArtifactStore {
|
|
57
|
+
get(artifactId: string): ArtifactDescriptor | null;
|
|
58
|
+
readContent(artifactId: string): Promise<{
|
|
59
|
+
readonly record: {
|
|
60
|
+
readonly mimeType: string;
|
|
61
|
+
readonly filename?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
readonly buffer: ArrayBuffer | Uint8Array | Buffer;
|
|
64
|
+
}>;
|
|
65
|
+
}
|
|
54
66
|
export interface CompanionChatEventPublisher {
|
|
55
67
|
publishEvent(event: string, payload: unknown, filter?: {
|
|
56
68
|
clientId?: string;
|
|
@@ -80,6 +92,8 @@ export interface CompanionChatManagerConfig {
|
|
|
80
92
|
readonly hookDispatcher?: HookDispatcherLike | null | undefined;
|
|
81
93
|
/** Optional runtime event bus for typed tool telemetry. */
|
|
82
94
|
readonly runtimeBus?: RuntimeEventBus | null | undefined;
|
|
95
|
+
/** Optional artifact store used to resolve and inline chat attachments. */
|
|
96
|
+
readonly artifactStore?: CompanionChatArtifactStore | null | undefined;
|
|
83
97
|
/**
|
|
84
98
|
* Directory under which session JSON files are persisted.
|
|
85
99
|
* Default: ~/.goodvibes/companion-chat/sessions/
|
|
@@ -107,6 +121,7 @@ export declare class CompanionChatManager {
|
|
|
107
121
|
private readonly permissionManager;
|
|
108
122
|
private readonly hookDispatcher;
|
|
109
123
|
private readonly runtimeBus;
|
|
124
|
+
private readonly artifactStore;
|
|
110
125
|
private readonly persistence;
|
|
111
126
|
private readonly rateLimiter;
|
|
112
127
|
private readonly idleActiveMs;
|
|
@@ -142,6 +157,7 @@ export declare class CompanionChatManager {
|
|
|
142
157
|
};
|
|
143
158
|
};
|
|
144
159
|
getMessages(sessionId: string): CompanionChatMessage[];
|
|
160
|
+
private normalizeMessage;
|
|
145
161
|
updateSession(sessionId: string, input: UpdateCompanionChatSessionInput): CompanionChatSession;
|
|
146
162
|
/**
|
|
147
163
|
* Register the SSE clientId for this session so events are routed only to
|
|
@@ -167,11 +183,20 @@ export declare class CompanionChatManager {
|
|
|
167
183
|
* @param clientId - The SSE/HTTP client identity for per-client rate limiting.
|
|
168
184
|
* Pass '' to skip client-level rate limiting.
|
|
169
185
|
*/
|
|
170
|
-
postMessage(sessionId: string, content: string, clientId?: string
|
|
186
|
+
postMessage(sessionId: string, content: string, clientId?: string, options?: {
|
|
187
|
+
readonly attachments?: readonly CompanionChatMessageAttachmentInput[] | undefined;
|
|
188
|
+
}): Promise<string>;
|
|
171
189
|
postMessageAndWaitForReply(sessionId: string, content: string, clientId?: string, options?: {
|
|
172
190
|
readonly timeoutMs?: number | undefined;
|
|
191
|
+
readonly attachments?: readonly CompanionChatMessageAttachmentInput[] | undefined;
|
|
173
192
|
}): Promise<CompanionChatReplyResult>;
|
|
174
193
|
private _postMessageInternal;
|
|
194
|
+
private resolveAttachments;
|
|
195
|
+
private formatAttachmentSummary;
|
|
196
|
+
private buildReplayUserContent;
|
|
197
|
+
private isInlineTextAttachment;
|
|
198
|
+
private isInlineImageAttachment;
|
|
199
|
+
private buildProviderUserContent;
|
|
175
200
|
dispose(): void;
|
|
176
201
|
private _runTurn;
|
|
177
202
|
private _executeToolCalls;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companion-chat-manager.d.ts","sourceRoot":"","sources":["../../../src/platform/companion/companion-chat-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"companion-chat-manager.d.ts","sourceRoot":"","sources":["../../../src/platform/companion/companion-chat-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,a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