@qvac/core 0.2.1 → 0.2.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/.claude/skills/compaction/SKILL.md +9 -4
- package/.claude/skills/pr-create/SKILL.md +24 -3
- package/.claude/skills/pr-review/SKILL.md +248 -40
- package/CLAUDE.md +1 -3
- package/README.md +3 -1
- package/dist-lib/client.js +1 -1
- package/dist-lib/index.js +8 -8
- package/dist-lib/lib/api/agents.d.ts +1 -1
- package/dist-lib/lib/api/agents.js +10 -9
- package/dist-lib/lib/api/app-config.js +1 -1
- package/dist-lib/lib/api/approval-rules.js +9 -5
- package/dist-lib/lib/api/attachments.js +25 -3
- package/dist-lib/lib/api/chat-groups.d.ts +1 -1
- package/dist-lib/lib/api/chat-groups.js +5 -4
- package/dist-lib/lib/api/chat.js +8 -8
- package/dist-lib/lib/api/chunks.js +11 -11
- package/dist-lib/lib/api/config.js +1 -1
- package/dist-lib/lib/api/custom-models.js +2 -2
- package/dist-lib/lib/api/devices.d.ts +1 -1
- package/dist-lib/lib/api/devices.js +9 -9
- package/dist-lib/lib/api/diagnostics.js +1 -1
- package/dist-lib/lib/api/effective-ctx-size.js +1 -1
- package/dist-lib/lib/api/execution.js +4 -4
- package/dist-lib/lib/api/files.js +2 -2
- package/dist-lib/lib/api/index.d.ts +1 -0
- package/dist-lib/lib/api/index.js +33 -33
- package/dist-lib/lib/api/instrument.js +1 -1
- package/dist-lib/lib/api/knowledge.js +4 -4
- package/dist-lib/lib/api/logs.js +1 -1
- package/dist-lib/lib/api/members.d.ts +4 -1
- package/dist-lib/lib/api/members.js +88 -18
- package/dist-lib/lib/api/mesh.d.ts +13 -3
- package/dist-lib/lib/api/mesh.js +25 -2
- package/dist-lib/lib/api/model-download.js +1 -1
- package/dist-lib/lib/api/network.js +1 -1
- package/dist-lib/lib/api/notifications.js +3 -3
- package/dist-lib/lib/api/rag.js +7 -7
- package/dist-lib/lib/api/sync.js +1 -1
- package/dist-lib/lib/api/tool-activity.js +4 -4
- package/dist-lib/lib/api/tool-configs.js +5 -5
- package/dist-lib/lib/api/watchable.js +1 -1
- package/dist-lib/lib/assistant/fetch-body.d.ts +5 -0
- package/dist-lib/lib/assistant/fetch-body.js +36 -0
- package/dist-lib/lib/assistant/harness.d.ts +225 -0
- package/dist-lib/lib/assistant/harness.js +154 -0
- package/dist-lib/lib/assistant/history.d.ts +32 -0
- package/dist-lib/lib/assistant/history.js +232 -0
- package/dist-lib/lib/assistant/message.d.ts +45 -0
- package/dist-lib/lib/assistant/message.js +47 -0
- package/dist-lib/lib/assistant/skill-encode.d.ts +21 -0
- package/dist-lib/lib/assistant/skill-encode.js +71 -0
- package/dist-lib/lib/assistant-client.js +2 -2
- package/dist-lib/lib/assistant-tree.js +10 -4
- package/dist-lib/lib/assistant.d.ts +25 -285
- package/dist-lib/lib/assistant.js +250 -637
- package/dist-lib/lib/audio-format.js +2 -2
- package/dist-lib/lib/client.js +2 -2
- package/dist-lib/lib/collabora/convert.js +1 -1
- package/dist-lib/lib/collabora/entry.js +1 -1
- package/dist-lib/lib/collabora/worker.js +1 -1
- package/dist-lib/lib/compaction.d.ts +1 -2
- package/dist-lib/lib/compaction.js +8 -6
- package/dist-lib/lib/constants.js +1 -1
- package/dist-lib/lib/core/account-recovery.d.ts +19 -0
- package/dist-lib/lib/core/account-recovery.js +50 -0
- package/dist-lib/lib/core/agent.js +8 -4
- package/dist-lib/lib/core/app-build.d.ts +1 -1
- package/dist-lib/lib/core/approval-rules.d.ts +1 -0
- package/dist-lib/lib/core/approval-rules.js +3 -1
- package/dist-lib/lib/core/archived-mesh.d.ts +25 -0
- package/dist-lib/lib/core/archived-mesh.js +162 -0
- package/dist-lib/lib/core/chat-activity.js +1 -1
- package/dist-lib/lib/core/chat-group.d.ts +1 -0
- package/dist-lib/lib/core/chat-group.js +24 -4
- package/dist-lib/lib/core/chat-search.js +2 -2
- package/dist-lib/lib/core/chat.js +5 -5
- package/dist-lib/lib/core/chunk.d.ts +1 -1
- package/dist-lib/lib/core/chunk.js +4 -4
- package/dist-lib/lib/core/contract/agents.js +1 -1
- package/dist-lib/lib/core/contract/approval-rules.js +6 -4
- package/dist-lib/lib/core/contract/attestations.js +1 -1
- package/dist-lib/lib/core/contract/chat-group.js +1 -1
- package/dist-lib/lib/core/contract/chat.js +1 -1
- package/dist-lib/lib/core/contract/chunks.js +2 -2
- package/dist-lib/lib/core/contract/compute.d.ts +11 -0
- package/dist-lib/lib/core/contract/compute.js +45 -0
- package/dist-lib/lib/core/contract/devices.js +16 -3
- package/dist-lib/lib/core/contract/index.d.ts +3 -1
- package/dist-lib/lib/core/contract/index.js +19 -16
- package/dist-lib/lib/core/contract/indexing.js +2 -2
- package/dist-lib/lib/core/contract/joined-meshes.js +1 -1
- package/dist-lib/lib/core/contract/knowledge.js +2 -2
- package/dist-lib/lib/core/contract/members.js +2 -2
- package/dist-lib/lib/core/contract/seal.d.ts +2 -0
- package/dist-lib/lib/core/contract/seal.js +8 -0
- package/dist-lib/lib/core/contract/seed-defaults.js +1 -1
- package/dist-lib/lib/core/contract/tool-activity.js +1 -1
- package/dist-lib/lib/core/contract/tool-configs.js +3 -3
- package/dist-lib/lib/core/contract/writers.js +66 -42
- package/dist-lib/lib/core/departures.js +1 -1
- package/dist-lib/lib/core/device-invites.js +1 -1
- package/dist-lib/lib/core/document-attachment.js +2 -2
- package/dist-lib/lib/core/files/attachments.js +3 -3
- package/dist-lib/lib/core/files/index.d.ts +2 -2
- package/dist-lib/lib/core/files/index.js +19 -19
- package/dist-lib/lib/core/files/knowledge.js +3 -3
- package/dist-lib/lib/core/files/preview/image.js +1 -1
- package/dist-lib/lib/core/files/preview/index.js +6 -6
- package/dist-lib/lib/core/files/processing/claims.js +1 -1
- package/dist-lib/lib/core/files/processing/document.js +5 -5
- package/dist-lib/lib/core/files/processing/index.js +8 -8
- package/dist-lib/lib/core/files/processing/ownership.js +1 -1
- package/dist-lib/lib/core/files/processing/protocol.js +3 -3
- package/dist-lib/lib/core/files/processing/source.js +1 -1
- package/dist-lib/lib/core/files/rag/artifact/codec.js +1 -1
- package/dist-lib/lib/core/files/rag/artifact/id.js +1 -1
- package/dist-lib/lib/core/files/rag/artifact/types.d.ts +4 -4
- package/dist-lib/lib/core/files/rag/build.js +2 -2
- package/dist-lib/lib/core/files/rag/chunk/chunking.js +2 -2
- package/dist-lib/lib/core/files/rag/document-types.d.ts +3 -3
- package/dist-lib/lib/core/files/rag/extract/document-types.d.ts +9 -9
- package/dist-lib/lib/core/files/rag/extract/extract.js +7 -7
- package/dist-lib/lib/core/files/rag/extract/html-text.js +1 -1
- package/dist-lib/lib/core/files/rag/extract/office-collabora.js +2 -2
- package/dist-lib/lib/core/files/rag/extract/pdf-platform.js +1 -1
- package/dist-lib/lib/core/files/rag/extract/pdf-text.js +1 -1
- package/dist-lib/lib/core/files/rag/extract/text-decoding.js +1 -1
- package/dist-lib/lib/core/files/rag/extract/types.d.ts +2 -2
- package/dist-lib/lib/core/files/rag/index.js +22 -22
- package/dist-lib/lib/core/files/rag/load.js +5 -5
- package/dist-lib/lib/core/files/rag/policy.js +2 -2
- package/dist-lib/lib/core/files/rag/produce.js +5 -5
- package/dist-lib/lib/core/files/rag/retrieval/coverage.js +2 -2
- package/dist-lib/lib/core/files/rag/retrieval/diversity.js +1 -1
- package/dist-lib/lib/core/files/rag/retrieval/floor.js +2 -2
- package/dist-lib/lib/core/files/rag/retrieval/format.js +1 -1
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +18 -11
- package/dist-lib/lib/core/files/rag/retrieval/knowledge.js +5 -5
- package/dist-lib/lib/core/files/rag/retrieval/scoring.js +2 -2
- package/dist-lib/lib/core/files/rag/retrieval/search.js +4 -4
- package/dist-lib/lib/core/files/rag/retrieval/selection.js +2 -2
- package/dist-lib/lib/core/files/rag/retrieval/sources.js +2 -2
- package/dist-lib/lib/core/files/rag/retrieval/terms.js +1 -1
- package/dist-lib/lib/core/files/rag/retrieval/web-sources.js +1 -1
- package/dist-lib/lib/core/files/records/chunks.js +1 -1
- package/dist-lib/lib/core/files/records/index.js +8 -8
- package/dist-lib/lib/core/files/records/knowledge.js +2 -2
- package/dist-lib/lib/core/files/records/output.js +1 -1
- package/dist-lib/lib/core/files/records/reclaim.js +5 -5
- package/dist-lib/lib/core/files/records/routing.js +7 -7
- package/dist-lib/lib/core/files/store/blob.js +2 -2
- package/dist-lib/lib/core/files/store/index.js +7 -7
- package/dist-lib/lib/core/files/store/reference.js +2 -2
- package/dist-lib/lib/core/files/store/server.js +1 -1
- package/dist-lib/lib/core/files/store/sweep.js +1 -1
- package/dist-lib/lib/core/files/upload-input.js +2 -2
- package/dist-lib/lib/core/files/upload.d.ts +1 -1
- package/dist-lib/lib/core/files/upload.js +6 -6
- package/dist-lib/lib/core/harness-loan.d.ts +29 -0
- package/dist-lib/lib/core/harness-loan.js +187 -0
- package/dist-lib/lib/core/helpers/index.d.ts +2 -1
- package/dist-lib/lib/core/helpers/index.js +4 -4
- package/dist-lib/lib/core/hosted-agents.js +2 -2
- package/dist-lib/lib/core/identity.d.ts +2 -0
- package/dist-lib/lib/core/identity.js +4 -2
- package/dist-lib/lib/core/invite.d.ts +1 -0
- package/dist-lib/lib/core/invite.js +4 -2
- package/dist-lib/lib/core/local/index.d.ts +12 -3
- package/dist-lib/lib/core/local/index.js +75 -16
- package/dist-lib/lib/core/membership.d.ts +3 -0
- package/dist-lib/lib/core/membership.js +15 -1
- package/dist-lib/lib/core/mesh-seed-handoff.js +1 -1
- package/dist-lib/lib/core/mesh.d.ts +9 -3
- package/dist-lib/lib/core/mesh.js +41 -26
- package/dist-lib/lib/core/migrations/agent-catalog.js +1 -1
- package/dist-lib/lib/core/migrations/index.js +5 -3
- package/dist-lib/lib/core/migrations/membership.js +2 -2
- package/dist-lib/lib/core/migrations/seal.d.ts +3 -0
- package/dist-lib/lib/core/migrations/seal.js +30 -0
- package/dist-lib/lib/core/next-frame.js +1 -1
- package/dist-lib/lib/core/notification.js +1 -1
- package/dist-lib/lib/core/ota-config.js +1 -1
- package/dist-lib/lib/core/secret-handoff.js +1 -1
- package/dist-lib/lib/core/send.js +3 -3
- package/dist-lib/lib/core/skill-overlay-handoff.js +1 -1
- package/dist-lib/lib/core/skill-overlay-receiver.js +2 -2
- package/dist-lib/lib/core/skill-secrets.js +3 -3
- package/dist-lib/lib/core/sync/devices.js +1 -1
- package/dist-lib/lib/core/sync/index.js +8 -5
- package/dist-lib/lib/core/sync-status.js +1 -1
- package/dist-lib/lib/core/system-info.js +1 -1
- package/dist-lib/lib/core/tool-activity.js +2 -2
- package/dist-lib/lib/core/tool-configs.js +2 -2
- package/dist-lib/lib/core.d.ts +41 -3
- package/dist-lib/lib/core.js +525 -90
- package/dist-lib/lib/credential-pusher.js +4 -4
- package/dist-lib/lib/deadline.js +1 -1
- package/dist-lib/lib/fs-drive-bridge.js +4 -2
- package/dist-lib/lib/integrations/index.js +3 -3
- package/dist-lib/lib/integrations/oauth-providers.js +1 -1
- package/dist-lib/lib/integrations/setup-routes.d.ts +5 -5
- package/dist-lib/lib/integrations/setup-routes.js +3 -3
- package/dist-lib/lib/knowledge-search.js +1 -1
- package/dist-lib/lib/log.js +3 -3
- package/dist-lib/lib/mesh-scoped-engine.d.ts +3 -0
- package/dist-lib/lib/mesh-scoped-engine.js +96 -0
- package/dist-lib/lib/model-context.d.ts +2 -2
- package/dist-lib/lib/model-context.js +1 -1
- package/dist-lib/lib/model-download.js +6 -6
- package/dist-lib/lib/oauth/asana.js +3 -3
- package/dist-lib/lib/oauth/browser-connect.js +1 -1
- package/dist-lib/lib/oauth/client.js +2 -2
- package/dist-lib/lib/oauth/common.d.ts +1 -1
- package/dist-lib/lib/oauth/common.js +1 -1
- package/dist-lib/lib/oauth/flow-core.js +3 -3
- package/dist-lib/lib/oauth/flow.js +2 -2
- package/dist-lib/lib/oauth/google.js +4 -4
- package/dist-lib/lib/oauth/host.js +3 -3
- package/dist-lib/lib/oauth/loopback.js +1 -1
- package/dist-lib/lib/oauth/notion.js +3 -3
- package/dist-lib/lib/oauth/providers.js +1 -1
- package/dist-lib/lib/oauth/resolve.js +1 -1
- package/dist-lib/lib/oauth/spotify.js +3 -3
- package/dist-lib/lib/oauth/token-exchange.js +1 -1
- package/dist-lib/lib/oauth.client.js +2 -2
- package/dist-lib/lib/oauth.js +12 -12
- package/dist-lib/lib/run-notices.d.ts +7 -7
- package/dist-lib/lib/run-transcript.js +1 -1
- package/dist-lib/schema/build.js +12 -6
- package/dist-lib/schema/content.d.ts +11 -11
- package/dist-lib/schema/engine.js +193 -30
- package/dist-lib/schema/field-order.js +2 -2
- package/dist-lib/schema/local.js +18 -4
- package/dist-lib/schema/qvac.js +15 -6
- package/dist-lib/spec/bind.js +41 -0
- package/dist-lib/spec/calls.js +12 -0
- package/dist-lib/spec/capabilities.d.ts +36 -12
- package/dist-lib/spec/hrpc/hrpc.json +161 -5
- package/dist-lib/spec/hrpc/index.js +154 -9
- package/dist-lib/spec/hrpc/messages.js +549 -129
- package/dist-lib/spec/hyperschema/index.js +549 -129
- package/dist-lib/spec/hyperschema/schema.json +370 -40
- package/dist-lib/spec/hyperschema/types.d.ts +85 -1
- package/dist-lib/spec/local/hyperdb/db.json +15 -0
- package/dist-lib/spec/local/hyperdb/index.js +70 -1
- package/dist-lib/spec/local/hyperdb/messages.js +300 -117
- package/dist-lib/spec/local/hyperschema/index.js +97 -4
- package/dist-lib/spec/local/hyperschema/schema.json +58 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +14 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +393 -288
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +6 -0
- package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +176 -85
- package/dist-lib/spec/mesh/hyperschema/index.js +176 -85
- package/dist-lib/spec/mesh/hyperschema/schema.json +71 -21
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +14 -1
- package/package.json +15 -9
- package/tui/README.md +7 -0
- package/tui/app.mjs +311 -14
- package/tui/lib/busy-words.mjs +57 -5
- package/tui/lib/export.mjs +1 -0
- package/tui/lib/render.mjs +9 -2
- package/tui/main.mjs +5 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is autogenerated by hyperschema-ts
|
|
2
|
-
// Schema version:
|
|
2
|
+
// Schema version: 7
|
|
3
3
|
// Do not edit manually.
|
|
4
4
|
|
|
5
5
|
export interface AssistantEmpty {
|
|
@@ -65,6 +65,7 @@ export interface AssistantAgent {
|
|
|
65
65
|
imageHeight?: number
|
|
66
66
|
approvalMode?: AssistantApprovalMode | null
|
|
67
67
|
disabledToolsets?: string[] | null
|
|
68
|
+
lenderDeviceId?: Buffer | null
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export interface AssistantAgentList {
|
|
@@ -73,6 +74,7 @@ export interface AssistantAgentList {
|
|
|
73
74
|
|
|
74
75
|
export interface AssistantAgentId {
|
|
75
76
|
id: string
|
|
77
|
+
meshId?: string | null
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
export interface AssistantCreateAgentRequest {
|
|
@@ -98,6 +100,7 @@ export interface AssistantCreateAgentRequest {
|
|
|
98
100
|
disabledToolsets?: string[] | null
|
|
99
101
|
meshId?: string | null
|
|
100
102
|
isDefault?: boolean
|
|
103
|
+
lenderDeviceId?: Buffer | null
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
export interface AssistantUpdateAgentRequest {
|
|
@@ -126,6 +129,8 @@ export interface AssistantUpdateAgentRequest {
|
|
|
126
129
|
disabledToolsets?: string[] | null
|
|
127
130
|
isDefault?: boolean
|
|
128
131
|
clearIsDefault?: boolean
|
|
132
|
+
lenderDeviceId?: Buffer | null
|
|
133
|
+
clearLenderDeviceId?: boolean
|
|
129
134
|
}
|
|
130
135
|
|
|
131
136
|
export interface AssistantChat {
|
|
@@ -148,6 +153,7 @@ export interface AssistantChatList {
|
|
|
148
153
|
|
|
149
154
|
export interface AssistantChatId {
|
|
150
155
|
id: string
|
|
156
|
+
meshId?: string | null
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
export interface AssistantCreateChatRequest {
|
|
@@ -158,6 +164,7 @@ export interface AssistantCreateChatRequest {
|
|
|
158
164
|
export interface AssistantRenameChatRequest {
|
|
159
165
|
id: string
|
|
160
166
|
title: string
|
|
167
|
+
meshId?: string | null
|
|
161
168
|
}
|
|
162
169
|
|
|
163
170
|
export interface AssistantSetChatFlagRequest {
|
|
@@ -381,11 +388,13 @@ export interface AssistantAppendChunkRequest {
|
|
|
381
388
|
display?: unknown | null
|
|
382
389
|
rawCall?: string | null
|
|
383
390
|
compaction?: AssistantChunkContentCompaction | null
|
|
391
|
+
meshId?: string | null
|
|
384
392
|
}
|
|
385
393
|
|
|
386
394
|
export interface AssistantUpdateChunkRequest {
|
|
387
395
|
id: string
|
|
388
396
|
runStatus?: AssistantChunkContentRunStatus | null
|
|
397
|
+
meshId?: string | null
|
|
389
398
|
}
|
|
390
399
|
|
|
391
400
|
export interface AssistantResolveApprovalRequest {
|
|
@@ -394,6 +403,7 @@ export interface AssistantResolveApprovalRequest {
|
|
|
394
403
|
scope?: AssistantApprovalScope | null
|
|
395
404
|
expiresAt?: number
|
|
396
405
|
agentId?: string | null
|
|
406
|
+
meshId?: string | null
|
|
397
407
|
}
|
|
398
408
|
|
|
399
409
|
export type AssistantApprovalScope = "once" | "always"
|
|
@@ -411,10 +421,12 @@ export interface AssistantApprovalRule {
|
|
|
411
421
|
expiresAt?: number
|
|
412
422
|
agentId?: string | null
|
|
413
423
|
effect?: string | null
|
|
424
|
+
memberId?: Buffer | null
|
|
414
425
|
}
|
|
415
426
|
|
|
416
427
|
export interface AssistantApprovalRuleList {
|
|
417
428
|
rules?: AssistantApprovalRule[] | null
|
|
429
|
+
ourMemberId?: Buffer | null
|
|
418
430
|
}
|
|
419
431
|
|
|
420
432
|
export interface AssistantChunksByChatRequest {
|
|
@@ -424,6 +436,7 @@ export interface AssistantChunksByChatRequest {
|
|
|
424
436
|
fromSeq?: number
|
|
425
437
|
reverse?: boolean
|
|
426
438
|
limit?: number
|
|
439
|
+
meshId?: string | null
|
|
427
440
|
}
|
|
428
441
|
|
|
429
442
|
export interface AssistantUploadAttachmentRequest {
|
|
@@ -436,6 +449,7 @@ export interface AssistantUploadAttachmentRequest {
|
|
|
436
449
|
raw?: boolean
|
|
437
450
|
fileId?: string | null
|
|
438
451
|
totalBytes?: number
|
|
452
|
+
meshId?: string | null
|
|
439
453
|
}
|
|
440
454
|
|
|
441
455
|
export interface AssistantUploadAttachmentResponse {
|
|
@@ -490,6 +504,7 @@ export interface AssistantRagSearchRequest {
|
|
|
490
504
|
limit?: number
|
|
491
505
|
mode?: AssistantRagSearchMode | null
|
|
492
506
|
attachmentIds?: string[] | null
|
|
507
|
+
meshId?: string | null
|
|
493
508
|
}
|
|
494
509
|
|
|
495
510
|
export interface AssistantVectorHit {
|
|
@@ -529,6 +544,7 @@ export interface AssistantUploadKnowledgeResponse {
|
|
|
529
544
|
|
|
530
545
|
export interface AssistantKnowledgeByChatRequest {
|
|
531
546
|
chatId: string
|
|
547
|
+
meshId?: string | null
|
|
532
548
|
}
|
|
533
549
|
|
|
534
550
|
export interface AssistantRemoveKnowledgeRequest {
|
|
@@ -584,6 +600,7 @@ export interface AssistantStopRunRequest {
|
|
|
584
600
|
export interface AssistantDeviceInfo {
|
|
585
601
|
id: Buffer
|
|
586
602
|
supportsKvCacheDeletion?: boolean
|
|
603
|
+
computeLenderId?: Buffer | null
|
|
587
604
|
}
|
|
588
605
|
|
|
589
606
|
export interface AssistantDiagnostics {
|
|
@@ -999,6 +1016,7 @@ export interface AssistantDeleteToolConfigsRequest {
|
|
|
999
1016
|
|
|
1000
1017
|
export interface AssistantListToolConfigsRequest {
|
|
1001
1018
|
agentId: string
|
|
1019
|
+
meshId?: string | null
|
|
1002
1020
|
}
|
|
1003
1021
|
|
|
1004
1022
|
export interface AssistantToolActivityEntry {
|
|
@@ -1036,6 +1054,7 @@ export interface AssistantRecordToolActivityRequest {
|
|
|
1036
1054
|
chatId?: string | null
|
|
1037
1055
|
runId?: string | null
|
|
1038
1056
|
at: number
|
|
1057
|
+
meshId?: string | null
|
|
1039
1058
|
}
|
|
1040
1059
|
|
|
1041
1060
|
export interface AssistantToolActivityId {
|
|
@@ -1084,6 +1103,7 @@ export interface AssistantSendMessageResponse {
|
|
|
1084
1103
|
|
|
1085
1104
|
export interface AssistantIdentityPhrase {
|
|
1086
1105
|
phrase: string
|
|
1106
|
+
timeout?: number
|
|
1087
1107
|
}
|
|
1088
1108
|
|
|
1089
1109
|
export interface AssistantManagedSkill {
|
|
@@ -1301,6 +1321,7 @@ export interface AssistantFileReadRequest {
|
|
|
1301
1321
|
chatId: string
|
|
1302
1322
|
fileId: string
|
|
1303
1323
|
metadataOnly?: boolean
|
|
1324
|
+
meshId?: string | null
|
|
1304
1325
|
}
|
|
1305
1326
|
|
|
1306
1327
|
export interface AssistantFileReadFrame {
|
|
@@ -1342,6 +1363,7 @@ export interface AssistantMember {
|
|
|
1342
1363
|
id: Buffer
|
|
1343
1364
|
name: string
|
|
1344
1365
|
joinedAt: number
|
|
1366
|
+
removed?: boolean
|
|
1345
1367
|
}
|
|
1346
1368
|
|
|
1347
1369
|
export interface AssistantMemberList {
|
|
@@ -1362,6 +1384,9 @@ export interface AssistantMeshEntry {
|
|
|
1362
1384
|
home?: boolean
|
|
1363
1385
|
label?: string | null
|
|
1364
1386
|
members?: number
|
|
1387
|
+
shared?: boolean
|
|
1388
|
+
sharedAt?: number
|
|
1389
|
+
compute?: boolean
|
|
1365
1390
|
}
|
|
1366
1391
|
|
|
1367
1392
|
export interface AssistantMeshLabelRequest {
|
|
@@ -1381,6 +1406,10 @@ export interface AssistantMeshScope {
|
|
|
1381
1406
|
meshId?: string | null
|
|
1382
1407
|
}
|
|
1383
1408
|
|
|
1409
|
+
export interface AssistantCreateRoomRequest {
|
|
1410
|
+
compute?: boolean
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1384
1413
|
export interface AssistantMeshSeedRequest {
|
|
1385
1414
|
meshKey: Buffer
|
|
1386
1415
|
}
|
|
@@ -1396,6 +1425,52 @@ export interface AssistantMeshSeedHandoffAck {
|
|
|
1396
1425
|
seed?: Buffer | null
|
|
1397
1426
|
}
|
|
1398
1427
|
|
|
1428
|
+
export interface AssistantUpdateMemberRequest {
|
|
1429
|
+
id: Buffer
|
|
1430
|
+
name: string
|
|
1431
|
+
meshId?: string | null
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
export interface AssistantRemoveMemberRequest {
|
|
1435
|
+
id: Buffer
|
|
1436
|
+
meshId?: string | null
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export interface AssistantArchivedMeshContents {
|
|
1440
|
+
meshId: string
|
|
1441
|
+
chats: number
|
|
1442
|
+
agents: number
|
|
1443
|
+
knowledge: number
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
export interface AssistantArchivedMeshMigration {
|
|
1447
|
+
meshId: string
|
|
1448
|
+
migrated?: boolean
|
|
1449
|
+
migratedAt: number
|
|
1450
|
+
chats: number
|
|
1451
|
+
agents: number
|
|
1452
|
+
knowledge: number
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export interface AssistantArchivedMesh {
|
|
1456
|
+
meshId: string
|
|
1457
|
+
leftAt: number
|
|
1458
|
+
wasHome?: boolean
|
|
1459
|
+
migratedAt?: number
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export interface AssistantArchivedMeshList {
|
|
1463
|
+
meshes?: AssistantArchivedMesh[] | null
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
export interface AssistantAccountRecoveryState {
|
|
1467
|
+
recoverable?: boolean
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
export interface AssistantDisplayName {
|
|
1471
|
+
name?: string | null
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1399
1474
|
export interface SchemaTypes {
|
|
1400
1475
|
"@assistant/empty": AssistantEmpty
|
|
1401
1476
|
"@assistant/ok-response": AssistantOkResponse
|
|
@@ -1628,7 +1703,16 @@ export interface SchemaTypes {
|
|
|
1628
1703
|
"@assistant/mesh-list": AssistantMeshList
|
|
1629
1704
|
"@assistant/mesh-target": AssistantMeshTarget
|
|
1630
1705
|
"@assistant/mesh-scope": AssistantMeshScope
|
|
1706
|
+
"@assistant/create-room-request": AssistantCreateRoomRequest
|
|
1631
1707
|
"@assistant/mesh-seed-request": AssistantMeshSeedRequest
|
|
1632
1708
|
"@assistant/mesh-seed-handoff": AssistantMeshSeedHandoff
|
|
1633
1709
|
"@assistant/mesh-seed-handoff-ack": AssistantMeshSeedHandoffAck
|
|
1710
|
+
"@assistant/update-member-request": AssistantUpdateMemberRequest
|
|
1711
|
+
"@assistant/remove-member-request": AssistantRemoveMemberRequest
|
|
1712
|
+
"@assistant/archived-mesh-contents": AssistantArchivedMeshContents
|
|
1713
|
+
"@assistant/archived-mesh-migration": AssistantArchivedMeshMigration
|
|
1714
|
+
"@assistant/archived-mesh": AssistantArchivedMesh
|
|
1715
|
+
"@assistant/archived-mesh-list": AssistantArchivedMeshList
|
|
1716
|
+
"@assistant/account-recovery-state": AssistantAccountRecoveryState
|
|
1717
|
+
"@assistant/display-name": AssistantDisplayName
|
|
1634
1718
|
}
|
|
@@ -226,6 +226,21 @@
|
|
|
226
226
|
"meshKey"
|
|
227
227
|
],
|
|
228
228
|
"trigger": null
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "account-recovery",
|
|
232
|
+
"namespace": "local",
|
|
233
|
+
"id": 15,
|
|
234
|
+
"type": 1,
|
|
235
|
+
"version": 5,
|
|
236
|
+
"versionField": null,
|
|
237
|
+
"indexes": [],
|
|
238
|
+
"schema": "@local/account-recovery",
|
|
239
|
+
"derived": false,
|
|
240
|
+
"key": [
|
|
241
|
+
"meshKey"
|
|
242
|
+
],
|
|
243
|
+
"trigger": null
|
|
229
244
|
}
|
|
230
245
|
]
|
|
231
246
|
}
|
|
@@ -1011,6 +1011,73 @@ const collection14 = {
|
|
|
1011
1011
|
decodedVersion: 0
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
+
// '@local/account-recovery' collection key
|
|
1015
|
+
const collection15_key = new IndexEncoder([
|
|
1016
|
+
IndexEncoder.BUFFER
|
|
1017
|
+
], { prefix: 15 })
|
|
1018
|
+
|
|
1019
|
+
function collection15_indexify (record) {
|
|
1020
|
+
const a = record.meshKey
|
|
1021
|
+
return a === undefined ? [] : [a]
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// '@local/account-recovery' value encoding
|
|
1025
|
+
const collection15_enc = getEncoding('@local/account-recovery/hyperdb#15')
|
|
1026
|
+
|
|
1027
|
+
// '@local/account-recovery' reconstruction function
|
|
1028
|
+
function collection15_reconstruct (schemaVersion, keyBuf, valueBuf) {
|
|
1029
|
+
const key = collection15_key.decode(keyBuf)
|
|
1030
|
+
setVersion(schemaVersion)
|
|
1031
|
+
const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
|
|
1032
|
+
const type = c.uint.decode(state)
|
|
1033
|
+
if (type !== 0) throw new Error('Unknown collection type: ' + type)
|
|
1034
|
+
collection15.decodedVersion = c.uint.decode(state)
|
|
1035
|
+
const record = collection15_enc.decode(state)
|
|
1036
|
+
record.meshKey = key[0]
|
|
1037
|
+
return record
|
|
1038
|
+
}
|
|
1039
|
+
// '@local/account-recovery' key reconstruction function
|
|
1040
|
+
function collection15_reconstruct_key (keyBuf) {
|
|
1041
|
+
const key = collection15_key.decode(keyBuf)
|
|
1042
|
+
return {
|
|
1043
|
+
meshKey: key[0]
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
// '@local/account-recovery'
|
|
1048
|
+
const collection15 = {
|
|
1049
|
+
name: '@local/account-recovery',
|
|
1050
|
+
id: 15,
|
|
1051
|
+
version: 5,
|
|
1052
|
+
encodeKey (record) {
|
|
1053
|
+
const key = [record.meshKey]
|
|
1054
|
+
return collection15_key.encode(key)
|
|
1055
|
+
},
|
|
1056
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
1057
|
+
return collection15_key.encodeRange({
|
|
1058
|
+
gt: gt ? collection15_indexify(gt) : null,
|
|
1059
|
+
lt: lt ? collection15_indexify(lt) : null,
|
|
1060
|
+
gte: gte ? collection15_indexify(gte) : null,
|
|
1061
|
+
lte: lte ? collection15_indexify(lte) : null
|
|
1062
|
+
})
|
|
1063
|
+
},
|
|
1064
|
+
encodeValue (schemaVersion, collectionVersion, record) {
|
|
1065
|
+
setVersion(schemaVersion)
|
|
1066
|
+
const state = { start: 0, end: 2, buffer: null }
|
|
1067
|
+
collection15_enc.preencode(state, record)
|
|
1068
|
+
state.buffer = b4a.allocUnsafe(state.end)
|
|
1069
|
+
state.buffer[state.start++] = 0
|
|
1070
|
+
state.buffer[state.start++] = collectionVersion
|
|
1071
|
+
collection15_enc.encode(state, record)
|
|
1072
|
+
return state.buffer
|
|
1073
|
+
},
|
|
1074
|
+
trigger: null,
|
|
1075
|
+
reconstruct: collection15_reconstruct,
|
|
1076
|
+
reconstructKey: collection15_reconstruct_key,
|
|
1077
|
+
indexes: [],
|
|
1078
|
+
decodedVersion: 0
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1014
1081
|
const collections = [
|
|
1015
1082
|
collection0,
|
|
1016
1083
|
collection1,
|
|
@@ -1026,7 +1093,8 @@ const collections = [
|
|
|
1026
1093
|
collection11,
|
|
1027
1094
|
collection12,
|
|
1028
1095
|
collection13,
|
|
1029
|
-
collection14
|
|
1096
|
+
collection14,
|
|
1097
|
+
collection15
|
|
1030
1098
|
]
|
|
1031
1099
|
|
|
1032
1100
|
const indexes = [
|
|
@@ -1051,6 +1119,7 @@ function resolveCollection (name) {
|
|
|
1051
1119
|
case '@local/active-mesh': return collection12
|
|
1052
1120
|
case '@local/mesh-membership': return collection13
|
|
1053
1121
|
case '@local/member-proof': return collection14
|
|
1122
|
+
case '@local/account-recovery': return collection15
|
|
1054
1123
|
default: return null
|
|
1055
1124
|
}
|
|
1056
1125
|
}
|