@qvac/core 0.3.0 → 0.3.2
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-lib/lib/api/chat.d.ts +3 -1
- package/dist-lib/lib/api/chat.js +6 -2
- package/dist-lib/lib/api/index.d.ts +2 -0
- package/dist-lib/lib/api/index.js +3 -1
- package/dist-lib/lib/api/inference-calls.d.ts +18 -0
- package/dist-lib/lib/api/inference-calls.js +15 -0
- package/dist-lib/lib/api/rag.js +10 -2
- package/dist-lib/lib/assistant/harness.d.ts +1 -0
- package/dist-lib/lib/assistant/history.d.ts +10 -1
- package/dist-lib/lib/assistant/history.js +36 -1
- package/dist-lib/lib/assistant/message.d.ts +2 -0
- package/dist-lib/lib/assistant/message.js +11 -0
- package/dist-lib/lib/assistant/skill-encode.js +27 -1
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +11 -2
- package/dist-lib/lib/assistant.d.ts +19 -3
- package/dist-lib/lib/assistant.js +148 -23
- package/dist-lib/lib/core/chunk.js +5 -0
- package/dist-lib/lib/core/files/rag/build.d.ts +1 -2
- package/dist-lib/lib/core/files/rag/build.js +1 -2
- package/dist-lib/lib/core/files/rag/extract/office-collabora.d.ts +1 -1
- package/dist-lib/lib/core/files/rag/index.d.ts +4 -24
- package/dist-lib/lib/core/files/rag/index.js +3 -17
- package/dist-lib/lib/core/files/rag/load.d.ts +1 -2
- package/dist-lib/lib/core/files/rag/load.js +1 -2
- package/dist-lib/lib/core/files/rag/produce.d.ts +1 -1
- package/dist-lib/lib/core/files/rag/produce.js +1 -3
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +1 -1
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -4
- package/dist-lib/lib/core/files/rag/similarity.d.ts +5 -0
- package/dist-lib/lib/core/files/rag/similarity.js +6 -0
- package/dist-lib/lib/core/files/upload.d.ts +1 -1
- package/dist-lib/lib/core/inference-calls-handoff.d.ts +20 -0
- package/dist-lib/lib/core/inference-calls-handoff.js +37 -0
- package/dist-lib/lib/core/inference-calls-receiver.d.ts +14 -0
- package/dist-lib/lib/core/inference-calls-receiver.js +39 -0
- package/dist-lib/lib/core/notification.js +5 -4
- package/dist-lib/lib/core/skill-secrets.js +3 -6
- package/dist-lib/lib/core.d.ts +9 -1
- package/dist-lib/lib/core.js +129 -13
- package/dist-lib/lib/credential-pusher.d.ts +2 -3
- package/dist-lib/lib/credential-pusher.js +67 -39
- package/dist-lib/lib/inference-calls.d.ts +40 -0
- package/dist-lib/lib/inference-calls.js +266 -0
- package/dist-lib/lib/integrations/index.d.ts +1 -2
- package/dist-lib/lib/integrations/index.js +0 -1
- package/dist-lib/lib/integrations/setup-routes.js +0 -15
- package/dist-lib/lib/oauth/flow-core.js +1 -1
- package/dist-lib/lib/oauth/flow.d.ts +4 -2
- package/dist-lib/lib/oauth/flow.js +3 -4
- package/dist-lib/lib/oauth/host.d.ts +3 -1
- package/dist-lib/lib/oauth/host.js +3 -1
- package/dist-lib/lib/oauth/keys.d.ts +21 -20
- package/dist-lib/lib/oauth/keys.js +59 -85
- package/dist-lib/lib/oauth/loopback.d.ts +2 -2
- package/dist-lib/lib/oauth/loopback.js +32 -19
- package/dist-lib/lib/oauth/loopback.stub.d.ts +2 -2
- package/dist-lib/lib/oauth/loopback.stub.js +2 -2
- package/dist-lib/lib/oauth/providers.d.ts +3 -5
- package/dist-lib/lib/oauth/providers.js +20 -67
- package/dist-lib/lib/oauth/redirect-types.d.ts +1 -0
- package/dist-lib/lib/oauth/registry.d.ts +10 -0
- package/dist-lib/lib/oauth/registry.js +25 -0
- package/dist-lib/lib/oauth/resolve.js +1 -1
- package/dist-lib/lib/oauth/token-exchange-core.js +2 -1
- package/dist-lib/lib/oauth/types.d.ts +1 -1
- package/dist-lib/lib/oauth.client.d.ts +3 -1
- package/dist-lib/lib/oauth.client.js +3 -1
- package/dist-lib/lib/oauth.d.ts +4 -7
- package/dist-lib/lib/oauth.js +4 -7
- package/dist-lib/lib/skill-types.d.ts +12 -0
- package/dist-lib/schema/content.js +5 -1
- package/dist-lib/schema/engine.js +63 -2
- package/dist-lib/schema/qvac.js +4 -2
- package/dist-lib/spec/bind.js +3 -0
- package/dist-lib/spec/calls.js +1 -0
- package/dist-lib/spec/capabilities.d.ts +2 -0
- package/dist-lib/spec/hrpc/hrpc.json +13 -0
- package/dist-lib/spec/hrpc/index.js +15 -3
- package/dist-lib/spec/hrpc/messages.js +284 -52
- package/dist-lib/spec/hyperschema/index.js +284 -52
- package/dist-lib/spec/hyperschema/schema.json +210 -1
- package/dist-lib/spec/hyperschema/types.d.ts +51 -1
- package/dist-lib/spec/local/hyperdb/messages.js +64 -128
- package/dist-lib/spec/local/hyperschema/index.js +32 -64
- package/dist-lib/spec/local/hyperschema/schema.json +16 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +176 -311
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +132 -236
- package/dist-lib/spec/mesh/hyperschema/index.js +132 -236
- package/dist-lib/spec/mesh/hyperschema/schema.json +70 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +3 -1
- package/package.json +15 -18
- package/tui/app.mjs +98 -155
- package/tui/lib/knowledge-import.mjs +1 -1
- package/tui/lib/save-file.mjs +1 -1
- package/.claude/skills/asana/SKILL.md +0 -86
- package/.claude/skills/compaction/SKILL.md +0 -136
- package/.claude/skills/device-mesh-debug/SKILL.md +0 -328
- package/.claude/skills/gh-stack/SKILL.md +0 -181
- package/.claude/skills/gh-stack/references/commands.md +0 -177
- package/.claude/skills/gh-stack/references/stack-design.md +0 -97
- package/.claude/skills/gh-stack/references/troubleshooting.md +0 -159
- package/.claude/skills/js-house-style/SKILL.md +0 -671
- package/.claude/skills/pr-create/SKILL.md +0 -243
- package/.claude/skills/pr-review/SKILL.md +0 -428
- package/.claude/skills/release/SKILL.md +0 -122
- package/CLAUDE.md +0 -48
- package/dist-lib/lib/core/files/rag/artifact/codec.d.ts +0 -3
- package/dist-lib/lib/core/files/rag/artifact/codec.js +0 -172
- package/dist-lib/lib/core/files/rag/artifact/id.d.ts +0 -10
- package/dist-lib/lib/core/files/rag/artifact/id.js +0 -39
- package/dist-lib/lib/core/files/rag/artifact/types.d.ts +0 -24
- package/dist-lib/lib/core/files/rag/artifact/types.js +0 -41
- package/dist-lib/lib/core/files/rag/chunk/chunking.d.ts +0 -12
- package/dist-lib/lib/core/files/rag/chunk/chunking.js +0 -117
- package/dist-lib/lib/core/files/rag/chunk/metadata.d.ts +0 -30
- package/dist-lib/lib/core/files/rag/chunk/metadata.js +0 -89
- package/dist-lib/lib/core/files/rag/chunk/tokenizer.d.ts +0 -7
- package/dist-lib/lib/core/files/rag/chunk/tokenizer.js +0 -18
- package/dist-lib/lib/core/files/rag/extract/csv-text.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/extract/csv-text.js +0 -117
- package/dist-lib/lib/core/files/rag/extract/document-types.d.ts +0 -22
- package/dist-lib/lib/core/files/rag/extract/document-types.js +0 -152
- package/dist-lib/lib/core/files/rag/extract/extract.d.ts +0 -17
- package/dist-lib/lib/core/files/rag/extract/extract.js +0 -81
- package/dist-lib/lib/core/files/rag/extract/html-table-text.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/extract/html-table-text.js +0 -125
- package/dist-lib/lib/core/files/rag/extract/html-text.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/extract/html-text.js +0 -132
- package/dist-lib/lib/core/files/rag/extract/pdf-platform.d.ts +0 -17
- package/dist-lib/lib/core/files/rag/extract/pdf-platform.js +0 -141
- package/dist-lib/lib/core/files/rag/extract/pdf-text.d.ts +0 -12
- package/dist-lib/lib/core/files/rag/extract/pdf-text.js +0 -43
- package/dist-lib/lib/core/files/rag/extract/rtf-text.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/extract/rtf-text.js +0 -15
- package/dist-lib/lib/core/files/rag/extract/text-decoding.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/extract/text-decoding.js +0 -91
- package/dist-lib/lib/core/files/rag/extract/types.d.ts +0 -36
- package/dist-lib/lib/core/files/rag/extract/types.js +0 -12
- package/dist-lib/lib/core/files/rag/extract/utf.d.ts +0 -2
- package/dist-lib/lib/core/files/rag/extract/utf.js +0 -18
- package/dist-lib/lib/core/files/rag/retrieval/citation-match.d.ts +0 -2
- package/dist-lib/lib/core/files/rag/retrieval/citation-match.js +0 -16
- package/dist-lib/lib/core/files/rag/retrieval/coverage.d.ts +0 -4
- package/dist-lib/lib/core/files/rag/retrieval/coverage.js +0 -48
- package/dist-lib/lib/core/files/rag/retrieval/diversity.d.ts +0 -10
- package/dist-lib/lib/core/files/rag/retrieval/diversity.js +0 -37
- package/dist-lib/lib/core/files/rag/retrieval/floor.d.ts +0 -5
- package/dist-lib/lib/core/files/rag/retrieval/floor.js +0 -21
- package/dist-lib/lib/core/files/rag/retrieval/format.d.ts +0 -6
- package/dist-lib/lib/core/files/rag/retrieval/format.js +0 -21
- package/dist-lib/lib/core/files/rag/retrieval/knowledge.d.ts +0 -2
- package/dist-lib/lib/core/files/rag/retrieval/knowledge.js +0 -54
- package/dist-lib/lib/core/files/rag/retrieval/notices.d.ts +0 -16
- package/dist-lib/lib/core/files/rag/retrieval/notices.js +0 -27
- package/dist-lib/lib/core/files/rag/retrieval/scoring.d.ts +0 -8
- package/dist-lib/lib/core/files/rag/retrieval/scoring.js +0 -82
- package/dist-lib/lib/core/files/rag/retrieval/search.d.ts +0 -3
- package/dist-lib/lib/core/files/rag/retrieval/search.js +0 -49
- package/dist-lib/lib/core/files/rag/retrieval/selection.d.ts +0 -11
- package/dist-lib/lib/core/files/rag/retrieval/selection.js +0 -93
- package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.d.ts +0 -6
- package/dist-lib/lib/core/files/rag/retrieval/source-tag-filter.js +0 -79
- package/dist-lib/lib/core/files/rag/retrieval/sources.d.ts +0 -13
- package/dist-lib/lib/core/files/rag/retrieval/sources.js +0 -20
- package/dist-lib/lib/core/files/rag/retrieval/target.d.ts +0 -13
- package/dist-lib/lib/core/files/rag/retrieval/target.js +0 -89
- package/dist-lib/lib/core/files/rag/retrieval/terms.d.ts +0 -8
- package/dist-lib/lib/core/files/rag/retrieval/terms.js +0 -70
- package/dist-lib/lib/core/files/rag/retrieval/types.d.ts +0 -29
- package/dist-lib/lib/core/files/rag/retrieval/types.js +0 -1
- package/dist-lib/lib/core/files/rag/retrieval/web-sources.d.ts +0 -8
- package/dist-lib/lib/core/files/rag/retrieval/web-sources.js +0 -41
- package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/retrieval/whole-document-query.js +0 -96
- package/dist-lib/lib/core/files/rag/vector/memory.d.ts +0 -15
- package/dist-lib/lib/core/files/rag/vector/memory.js +0 -135
- package/dist-lib/lib/core/files/rag/vector/types.d.ts +0 -28
- package/dist-lib/lib/core/files/rag/vector/types.js +0 -1
- package/dist-lib/lib/integrations/oauth-providers.d.ts +0 -14
- package/dist-lib/lib/integrations/oauth-providers.js +0 -116
- package/dist-lib/lib/oauth/asana.d.ts +0 -35
- package/dist-lib/lib/oauth/asana.js +0 -71
- package/dist-lib/lib/oauth/google.d.ts +0 -37
- package/dist-lib/lib/oauth/google.js +0 -77
- package/dist-lib/lib/oauth/notion.d.ts +0 -34
- package/dist-lib/lib/oauth/notion.js +0 -82
- package/dist-lib/lib/oauth/spotify.d.ts +0 -32
- package/dist-lib/lib/oauth/spotify.js +0 -74
- package/dist-lib/lib/oauth/verify.d.ts +0 -8
- package/dist-lib/lib/oauth/verify.js +0 -58
|
@@ -407,7 +407,8 @@ export function registerEngineTypes(ns) {
|
|
|
407
407
|
{ name: 'intent', type: 'string' },
|
|
408
408
|
{ name: 'display', type: 'json' },
|
|
409
409
|
{ name: 'rawCall', type: 'string' },
|
|
410
|
-
{ name: 'compaction', type: '@assistant/chunk-content-compaction' }
|
|
410
|
+
{ name: 'compaction', type: '@assistant/chunk-content-compaction' },
|
|
411
|
+
{ name: 'senderMemberId', type: 'fixed32' }
|
|
411
412
|
]);
|
|
412
413
|
ns.register({
|
|
413
414
|
name: 'chunk-list',
|
|
@@ -1098,6 +1099,25 @@ export function registerEngineTypes(ns) {
|
|
|
1098
1099
|
{ name: 'required', type: 'bool' }
|
|
1099
1100
|
]
|
|
1100
1101
|
});
|
|
1102
|
+
ns.register({
|
|
1103
|
+
name: 'skill-setup-token-auth',
|
|
1104
|
+
enum: ['pkce-only', 'secret-in-body', 'secret-in-basic'],
|
|
1105
|
+
strings: true
|
|
1106
|
+
});
|
|
1107
|
+
ns.register({
|
|
1108
|
+
name: 'skill-setup-oauth',
|
|
1109
|
+
fields: [
|
|
1110
|
+
{ name: 'stateKey', type: 'string', required: true },
|
|
1111
|
+
{ name: 'authUrl', type: 'string', required: true },
|
|
1112
|
+
{ name: 'tokenUrl', type: 'string', required: true },
|
|
1113
|
+
{ name: 'tokenAuth', type: '@assistant/skill-setup-token-auth', required: true },
|
|
1114
|
+
{ name: 'scopes', type: 'string', array: true },
|
|
1115
|
+
{ name: 'extraAuthParams', type: 'json' },
|
|
1116
|
+
{ name: 'registrationEndpoint', type: 'string' },
|
|
1117
|
+
{ name: 'port', type: 'uint' },
|
|
1118
|
+
{ name: 'sharedIosSession', type: 'bool' }
|
|
1119
|
+
]
|
|
1120
|
+
});
|
|
1101
1121
|
ns.register({
|
|
1102
1122
|
name: 'skill-setup-route-kind',
|
|
1103
1123
|
enum: ['oauth', 'token', 'install', 'picker', 'instructions'],
|
|
@@ -1115,7 +1135,8 @@ export function registerEngineTypes(ns) {
|
|
|
1115
1135
|
{ name: 'steps', type: 'string', array: true },
|
|
1116
1136
|
{ name: 'configSteps', type: 'string', array: true },
|
|
1117
1137
|
{ name: 'fields', type: '@assistant/skill-setup-field', array: true },
|
|
1118
|
-
{ name: 'satisfied', type: 'bool' }
|
|
1138
|
+
{ name: 'satisfied', type: 'bool' },
|
|
1139
|
+
{ name: 'oauth', type: '@assistant/skill-setup-oauth' }
|
|
1119
1140
|
]
|
|
1120
1141
|
});
|
|
1121
1142
|
ns.register({
|
|
@@ -1630,6 +1651,41 @@ export function registerEngineTypes(ns) {
|
|
|
1630
1651
|
name: 'display-name',
|
|
1631
1652
|
fields: [{ name: 'name', type: 'string' }]
|
|
1632
1653
|
});
|
|
1654
|
+
ns.register({
|
|
1655
|
+
name: 'inference-call-entry',
|
|
1656
|
+
fields: [
|
|
1657
|
+
{ name: 'runId', type: 'string', required: true },
|
|
1658
|
+
{ name: 'at', type: 'uint', required: true },
|
|
1659
|
+
{ name: 'call', type: 'json', required: true }
|
|
1660
|
+
]
|
|
1661
|
+
});
|
|
1662
|
+
ns.register({
|
|
1663
|
+
name: 'inference-call-list',
|
|
1664
|
+
fields: [
|
|
1665
|
+
{ name: 'calls', type: '@assistant/inference-call-entry', array: true },
|
|
1666
|
+
{ name: 'truncated', type: 'bool' }
|
|
1667
|
+
]
|
|
1668
|
+
});
|
|
1669
|
+
ns.register({
|
|
1670
|
+
name: 'inference-calls-request',
|
|
1671
|
+
fields: [{ name: 'chatId', type: 'string', required: true }]
|
|
1672
|
+
});
|
|
1673
|
+
ns.register({
|
|
1674
|
+
name: 'inference-calls-handoff',
|
|
1675
|
+
fields: [
|
|
1676
|
+
{ name: 'id', type: 'uint', required: true },
|
|
1677
|
+
{ name: 'request', type: '@assistant/inference-calls-request', required: true }
|
|
1678
|
+
]
|
|
1679
|
+
});
|
|
1680
|
+
ns.register({
|
|
1681
|
+
name: 'inference-calls-handoff-ack',
|
|
1682
|
+
fields: [
|
|
1683
|
+
{ name: 'id', type: 'uint', required: true },
|
|
1684
|
+
{ name: 'error', type: 'string' },
|
|
1685
|
+
{ name: 'calls', type: '@assistant/inference-call-entry', array: true },
|
|
1686
|
+
{ name: 'truncated', type: 'bool' }
|
|
1687
|
+
]
|
|
1688
|
+
});
|
|
1633
1689
|
}
|
|
1634
1690
|
export function registerEngineApi(api) {
|
|
1635
1691
|
api.register({
|
|
@@ -2317,4 +2373,9 @@ export function registerEngineApi(api) {
|
|
|
2317
2373
|
request: { name: '@assistant/display-name', stream: false },
|
|
2318
2374
|
response: { name: '@assistant/ok-response', stream: false }
|
|
2319
2375
|
});
|
|
2376
|
+
api.register({
|
|
2377
|
+
name: 'inference-calls',
|
|
2378
|
+
request: { name: '@assistant/inference-calls-request', stream: false },
|
|
2379
|
+
response: { name: '@assistant/inference-call-list', stream: false }
|
|
2380
|
+
});
|
|
2320
2381
|
}
|
package/dist-lib/schema/qvac.js
CHANGED
|
@@ -70,7 +70,8 @@ export function registerQvacTypes(ns) {
|
|
|
70
70
|
{ name: 'intent', type: 'string' },
|
|
71
71
|
{ name: 'display', type: 'json' },
|
|
72
72
|
{ name: 'rawCall', type: 'string' },
|
|
73
|
-
{ name: 'compaction', type: '@qvac/chunk-content-compaction' }
|
|
73
|
+
{ name: 'compaction', type: '@qvac/chunk-content-compaction' },
|
|
74
|
+
{ name: 'senderMemberId', type: 'fixed32' }
|
|
74
75
|
]);
|
|
75
76
|
versioned('chunk-counter', [
|
|
76
77
|
{ name: 'chatId', type: 'string', required: true },
|
|
@@ -99,7 +100,8 @@ export function registerQvacTypes(ns) {
|
|
|
99
100
|
{ name: 'intent', type: 'string' },
|
|
100
101
|
{ name: 'display', type: 'json' },
|
|
101
102
|
{ name: 'rawCall', type: 'string' },
|
|
102
|
-
{ name: 'compaction', type: '@qvac/chunk-content-compaction' }
|
|
103
|
+
{ name: 'compaction', type: '@qvac/chunk-content-compaction' },
|
|
104
|
+
{ name: 'senderMemberId', type: 'fixed32' }
|
|
103
105
|
]);
|
|
104
106
|
versioned('update-chunk-operation', [
|
|
105
107
|
{ name: 'id', type: 'string', required: true },
|
package/dist-lib/spec/bind.js
CHANGED
package/dist-lib/spec/calls.js
CHANGED
|
@@ -147,5 +147,6 @@ export function engineClient(rpc) {
|
|
|
147
147
|
recoverAccount: (input) => rpc.recoverAccount(input),
|
|
148
148
|
displayName: (input) => rpc.displayName(input ?? {}),
|
|
149
149
|
setDisplayName: (input) => rpc.setDisplayName(input),
|
|
150
|
+
inferenceCalls: (input) => rpc.inferenceCalls(input),
|
|
150
151
|
};
|
|
151
152
|
}
|
|
@@ -165,6 +165,7 @@ export interface Capabilities {
|
|
|
165
165
|
recoverAccount(input: T.AssistantIdentityPhrase): Promise<T.AssistantOkResponse>
|
|
166
166
|
displayName(input?: T.AssistantEmpty): Promise<T.AssistantDisplayName>
|
|
167
167
|
setDisplayName(input: T.AssistantDisplayName): Promise<T.AssistantOkResponse>
|
|
168
|
+
inferenceCalls(input: T.AssistantInferenceCallsRequest): Promise<T.AssistantInferenceCallList>
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
export interface CapabilityHandlers {
|
|
@@ -305,4 +306,5 @@ export interface CapabilityHandlers {
|
|
|
305
306
|
recoverAccount(input: T.AssistantIdentityPhrase): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
306
307
|
displayName(input?: T.AssistantEmpty): T.AssistantDisplayName | Promise<T.AssistantDisplayName>
|
|
307
308
|
setDisplayName(input: T.AssistantDisplayName): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
309
|
+
inferenceCalls(input: T.AssistantInferenceCallsRequest): T.AssistantInferenceCallList | Promise<T.AssistantInferenceCallList>
|
|
308
310
|
}
|
|
@@ -1781,6 +1781,19 @@
|
|
|
1781
1781
|
"stream": false
|
|
1782
1782
|
},
|
|
1783
1783
|
"version": 1
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"id": 137,
|
|
1787
|
+
"name": "@assistant/inference-calls",
|
|
1788
|
+
"request": {
|
|
1789
|
+
"name": "@assistant/inference-calls-request",
|
|
1790
|
+
"stream": false
|
|
1791
|
+
},
|
|
1792
|
+
"response": {
|
|
1793
|
+
"name": "@assistant/inference-call-list",
|
|
1794
|
+
"stream": false
|
|
1795
|
+
},
|
|
1796
|
+
"version": 1
|
|
1784
1797
|
}
|
|
1785
1798
|
]
|
|
1786
1799
|
}
|
|
@@ -279,7 +279,9 @@ const methods = new Map([
|
|
|
279
279
|
['@assistant/display-name', 135],
|
|
280
280
|
[135, '@assistant/display-name'],
|
|
281
281
|
['@assistant/set-display-name', 136],
|
|
282
|
-
[136, '@assistant/set-display-name']
|
|
282
|
+
[136, '@assistant/set-display-name'],
|
|
283
|
+
['@assistant/inference-calls', 137],
|
|
284
|
+
[137, '@assistant/inference-calls']
|
|
283
285
|
])
|
|
284
286
|
|
|
285
287
|
class HRPC {
|
|
@@ -423,7 +425,8 @@ class HRPC {
|
|
|
423
425
|
['@assistant/recovery-publish', getEncoding('@assistant/identity-phrase')],
|
|
424
426
|
['@assistant/recover-account', getEncoding('@assistant/identity-phrase')],
|
|
425
427
|
['@assistant/display-name', getEncoding('@assistant/empty')],
|
|
426
|
-
['@assistant/set-display-name', getEncoding('@assistant/display-name')]
|
|
428
|
+
['@assistant/set-display-name', getEncoding('@assistant/display-name')],
|
|
429
|
+
['@assistant/inference-calls', getEncoding('@assistant/inference-calls-request')]
|
|
427
430
|
])
|
|
428
431
|
this._responseEncodings = new Map([
|
|
429
432
|
['@assistant/config-get', getEncoding('@assistant/config-value')],
|
|
@@ -562,7 +565,8 @@ class HRPC {
|
|
|
562
565
|
['@assistant/recovery-publish', getEncoding('@assistant/account-recovery-state')],
|
|
563
566
|
['@assistant/recover-account', getEncoding('@assistant/ok-response')],
|
|
564
567
|
['@assistant/display-name', getEncoding('@assistant/display-name')],
|
|
565
|
-
['@assistant/set-display-name', getEncoding('@assistant/ok-response')]
|
|
568
|
+
['@assistant/set-display-name', getEncoding('@assistant/ok-response')],
|
|
569
|
+
['@assistant/inference-calls', getEncoding('@assistant/inference-call-list')]
|
|
566
570
|
])
|
|
567
571
|
this._rpc = new RPC(stream, async (req) => {
|
|
568
572
|
const command = methods.get(req.command)
|
|
@@ -1208,6 +1212,10 @@ class HRPC {
|
|
|
1208
1212
|
return this._call('@assistant/set-display-name', args)
|
|
1209
1213
|
}
|
|
1210
1214
|
|
|
1215
|
+
async inferenceCalls(args) {
|
|
1216
|
+
return this._call('@assistant/inference-calls', args)
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1211
1219
|
onConfigGet(responseFn) {
|
|
1212
1220
|
this._handlers['@assistant/config-get'] = responseFn
|
|
1213
1221
|
}
|
|
@@ -1756,6 +1764,10 @@ class HRPC {
|
|
|
1756
1764
|
this._handlers['@assistant/set-display-name'] = responseFn
|
|
1757
1765
|
}
|
|
1758
1766
|
|
|
1767
|
+
onInferenceCalls(responseFn) {
|
|
1768
|
+
this._handlers['@assistant/inference-calls'] = responseFn
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1759
1771
|
_requestIsStream(command) {
|
|
1760
1772
|
return [
|
|
1761
1773
|
'@assistant/upload-attachment',
|