@qvac/core 1.0.0-rc.2 → 1.0.0-rc.5
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 +238 -12
- package/dist-lib/index.d.ts +3 -1
- package/dist-lib/index.js +1 -0
- package/dist-lib/lib/api/approval-rules.d.ts +1 -1
- package/dist-lib/lib/api/approval-rules.js +5 -1
- package/dist-lib/lib/api/chunk-delta.d.ts +7 -2
- package/dist-lib/lib/api/chunk-delta.js +89 -7
- package/dist-lib/lib/api/chunks.js +14 -8
- package/dist-lib/lib/api/config.d.ts +10 -3
- package/dist-lib/lib/api/config.js +51 -6
- package/dist-lib/lib/api/custom-models.js +3 -5
- package/dist-lib/lib/api/devices.js +3 -1
- package/dist-lib/lib/api/files.d.ts +1 -1
- package/dist-lib/lib/api/files.js +65 -8
- package/dist-lib/lib/api/index.d.ts +12 -2
- package/dist-lib/lib/api/index.js +6 -1
- package/dist-lib/lib/api/instrument.js +12 -4
- package/dist-lib/lib/api/members.js +7 -13
- package/dist-lib/lib/api/mesh.d.ts +1 -3
- package/dist-lib/lib/api/mesh.js +2 -2
- package/dist-lib/lib/api/notifications.js +8 -4
- package/dist-lib/lib/api/projects.js +5 -1
- package/dist-lib/lib/api/rag.js +32 -19
- package/dist-lib/lib/api/served.js +2 -1
- package/dist-lib/lib/api/workspace.js +0 -1
- package/dist-lib/lib/assistant/harness.d.ts +8 -2
- package/dist-lib/lib/assistant/harness.js +17 -4
- package/dist-lib/lib/assistant/history.d.ts +1 -1
- package/dist-lib/lib/assistant/history.js +19 -13
- package/dist-lib/lib/assistant/message.d.ts +6 -1
- package/dist-lib/lib/assistant/message.js +22 -2
- package/dist-lib/lib/assistant/model-round.d.ts +5 -0
- package/dist-lib/lib/assistant/model-round.js +47 -19
- package/dist-lib/lib/assistant/pdf-budget.d.ts +10 -2
- package/dist-lib/lib/assistant/pdf-budget.js +10 -11
- package/dist-lib/lib/assistant/pdf-pages.d.ts +25 -0
- package/dist-lib/lib/assistant/pdf-pages.js +75 -0
- package/dist-lib/lib/assistant/round-host.js +5 -3
- package/dist-lib/lib/assistant-client.d.ts +2 -1
- package/dist-lib/lib/assistant-client.js +24 -6
- package/dist-lib/lib/assistant-tree.d.ts +2 -0
- package/dist-lib/lib/assistant-tree.js +8 -5
- package/dist-lib/lib/assistant.d.ts +21 -7
- package/dist-lib/lib/assistant.js +481 -244
- package/dist-lib/lib/client.js +10 -1
- package/dist-lib/lib/compaction.d.ts +3 -1
- package/dist-lib/lib/compaction.js +18 -4
- package/dist-lib/lib/constants.d.ts +3 -0
- package/dist-lib/lib/constants.js +3 -0
- package/dist-lib/lib/core/agent-copies.js +7 -1
- package/dist-lib/lib/core/agent.js +1 -0
- package/dist-lib/lib/core/approval-rules.d.ts +5 -1
- package/dist-lib/lib/core/approval-rules.js +16 -1
- package/dist-lib/lib/core/chat-activity.js +13 -16
- package/dist-lib/lib/core/chat-copy.js +1 -1
- package/dist-lib/lib/core/chat-fork.js +2 -1
- package/dist-lib/lib/core/chat-move.d.ts +4 -0
- package/dist-lib/lib/core/chat-move.js +42 -11
- package/dist-lib/lib/core/chat.d.ts +0 -1
- package/dist-lib/lib/core/chat.js +1 -1
- package/dist-lib/lib/core/chunk.d.ts +14 -3
- package/dist-lib/lib/core/chunk.js +116 -25
- package/dist-lib/lib/core/collections.d.ts +12 -1
- package/dist-lib/lib/core/collections.js +12 -1
- package/dist-lib/lib/core/config-value.d.ts +7 -0
- package/dist-lib/lib/core/config-value.js +15 -0
- package/dist-lib/lib/core/contract/activity.d.ts +3 -2
- package/dist-lib/lib/core/contract/activity.js +39 -21
- package/dist-lib/lib/core/contract/agent-join.js +15 -19
- package/dist-lib/lib/core/contract/agents.js +8 -7
- package/dist-lib/lib/core/contract/chat.d.ts +3 -0
- package/dist-lib/lib/core/contract/chat.js +12 -1
- package/dist-lib/lib/core/contract/chunks.js +16 -6
- package/dist-lib/lib/core/contract/devices.js +6 -4
- package/dist-lib/lib/core/contract/index.js +2 -1
- package/dist-lib/lib/core/contract/invites.js +12 -31
- package/dist-lib/lib/core/contract/joined-meshes.js +2 -1
- package/dist-lib/lib/core/contract/mesh-rules.js +4 -0
- package/dist-lib/lib/core/contract/model-requests.js +7 -6
- package/dist-lib/lib/core/contract/project-device-keys.js +15 -6
- package/dist-lib/lib/core/contract/project-host-keys.js +5 -4
- package/dist-lib/lib/core/contract/projects.js +12 -13
- package/dist-lib/lib/core/contract/public-seeds.js +5 -5
- package/dist-lib/lib/core/contract/roles.js +2 -1
- package/dist-lib/lib/core/contract/run-requests.d.ts +1 -1
- package/dist-lib/lib/core/contract/run-requests.js +19 -13
- package/dist-lib/lib/core/contract/shipped-rows.d.ts +2 -0
- package/dist-lib/lib/core/contract/shipped-rows.js +22 -0
- package/dist-lib/lib/core/contract/workspace.js +6 -12
- package/dist-lib/lib/core/contract/writers.js +20 -6
- package/dist-lib/lib/core/deleted-agent-runs.d.ts +7 -0
- package/dist-lib/lib/core/deleted-agent-runs.js +46 -0
- package/dist-lib/lib/core/devices.d.ts +2 -1
- package/dist-lib/lib/core/devices.js +4 -2
- package/dist-lib/lib/core/document-attachment.d.ts +6 -3
- package/dist-lib/lib/core/document-attachment.js +10 -5
- package/dist-lib/lib/core/files/attachments.js +3 -3
- package/dist-lib/lib/core/files/index.d.ts +8 -5
- package/dist-lib/lib/core/files/index.js +111 -18
- package/dist-lib/lib/core/files/processing/index.d.ts +1 -1
- package/dist-lib/lib/core/files/processing/index.js +8 -2
- package/dist-lib/lib/core/files/processing/source.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/source.js +3 -0
- package/dist-lib/lib/core/files/processing/state.d.ts +1 -0
- package/dist-lib/lib/core/files/processing/state.js +7 -0
- package/dist-lib/lib/core/files/rag/build.d.ts +1 -0
- package/dist-lib/lib/core/files/rag/build.js +14 -1
- package/dist-lib/lib/core/files/rag/index.d.ts +1 -1
- package/dist-lib/lib/core/files/rag/index.js +1 -1
- package/dist-lib/lib/core/files/rag/produce.js +1 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.d.ts +2 -0
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +7 -1
- package/dist-lib/lib/core/first-event.d.ts +6 -0
- package/dist-lib/lib/core/first-event.js +13 -0
- package/dist-lib/lib/core/invite.d.ts +2 -2
- package/dist-lib/lib/core/invite.js +5 -4
- package/dist-lib/lib/core/local/index.d.ts +16 -1
- package/dist-lib/lib/core/local/index.js +119 -10
- package/dist-lib/lib/core/mesh.d.ts +14 -3
- package/dist-lib/lib/core/mesh.js +127 -54
- package/dist-lib/lib/core/migrations/chat-chunks.d.ts +4 -0
- package/dist-lib/lib/core/migrations/chat-chunks.js +47 -0
- package/dist-lib/lib/core/migrations/file-index.d.ts +1 -1
- package/dist-lib/lib/core/migrations/file-index.js +6 -2
- package/dist-lib/lib/core/migrations/index.d.ts +2 -1
- package/dist-lib/lib/core/migrations/index.js +66 -9
- package/dist-lib/lib/core/notification.js +96 -23
- package/dist-lib/lib/core/pdf/figure.d.ts +22 -0
- package/dist-lib/lib/core/pdf/figure.js +64 -0
- package/dist-lib/lib/core/pdf/rasterize.d.ts +10 -1
- package/dist-lib/lib/core/pdf/rasterize.js +72 -22
- package/dist-lib/lib/core/peer-duplex.js +57 -5
- package/dist-lib/lib/core/public-mesh.js +8 -2
- package/dist-lib/lib/core/run-requests.js +2 -3
- package/dist-lib/lib/core/senders.d.ts +7 -6
- package/dist-lib/lib/core/senders.js +23 -30
- package/dist-lib/lib/core/shared-agents.d.ts +1 -0
- package/dist-lib/lib/core/shared-agents.js +47 -19
- package/dist-lib/lib/core/skill-secrets.d.ts +3 -2
- package/dist-lib/lib/core/skill-secrets.js +4 -1
- package/dist-lib/lib/core/sync/background.d.ts +3 -15
- package/dist-lib/lib/core/sync/background.js +25 -102
- package/dist-lib/lib/core/sync/devices.js +6 -3
- package/dist-lib/lib/core/sync/index.js +25 -3
- package/dist-lib/lib/core/sync-status.js +3 -3
- package/dist-lib/lib/core/vault-managed-skills.d.ts +18 -0
- package/dist-lib/lib/core/vault-managed-skills.js +105 -0
- package/dist-lib/lib/core.d.ts +66 -10
- package/dist-lib/lib/core.js +768 -179
- package/dist-lib/lib/credential-pusher.d.ts +11 -7
- package/dist-lib/lib/credential-pusher.js +40 -8
- package/dist-lib/lib/device-tree.d.ts +18 -0
- package/dist-lib/lib/device-tree.js +32 -0
- package/dist-lib/lib/doctor/redact.js +1 -1
- package/dist-lib/lib/errors.d.ts +12 -0
- package/dist-lib/lib/errors.js +12 -0
- package/dist-lib/lib/fs-drive-bridge.d.ts +7 -0
- package/dist-lib/lib/fs-drive-bridge.js +308 -30
- package/dist-lib/lib/integrations/setup-routes.js +7 -5
- package/dist-lib/lib/knowledge-search.d.ts +1 -1
- package/dist-lib/lib/knowledge-search.js +5 -46
- package/dist-lib/lib/kv-cache-retention.d.ts +35 -0
- package/dist-lib/lib/kv-cache-retention.js +98 -0
- package/dist-lib/lib/latest-frame.d.ts +10 -0
- package/dist-lib/lib/latest-frame.js +48 -0
- package/dist-lib/lib/mesh-scoped-engine.js +1 -0
- package/dist-lib/lib/model-download.d.ts +6 -1
- package/dist-lib/lib/model-download.js +32 -17
- package/dist-lib/lib/oauth/resolve.js +13 -5
- package/dist-lib/lib/reconnecting-watch.js +19 -11
- package/dist-lib/lib/run-notices.d.ts +2 -0
- package/dist-lib/lib/run-notices.js +5 -0
- package/dist-lib/lib/run-replay.d.ts +13 -1
- package/dist-lib/lib/run-replay.js +58 -21
- package/dist-lib/schema/build.js +66 -57
- package/dist-lib/schema/config.d.ts +1 -1
- package/dist-lib/schema/config.js +1 -1
- package/dist-lib/schema/content.js +2 -1
- package/dist-lib/schema/engine.js +70 -6
- package/dist-lib/schema/field-order.js +7 -1
- package/dist-lib/schema/indexes.d.ts +4 -0
- package/dist-lib/schema/indexes.js +18 -0
- package/dist-lib/schema/local.js +9 -2
- package/dist-lib/schema/qvac.js +116 -6
- package/dist-lib/spec/bind.js +15 -0
- package/dist-lib/spec/calls.js +5 -0
- package/dist-lib/spec/capabilities.d.ts +10 -0
- package/dist-lib/spec/config/hyperconf/index.js +1 -1
- package/dist-lib/spec/hrpc/hrpc.json +65 -0
- package/dist-lib/spec/hrpc/index.js +63 -3
- package/dist-lib/spec/hrpc/messages.js +1537 -1395
- package/dist-lib/spec/hyperschema/index.js +1537 -1395
- package/dist-lib/spec/hyperschema/schema.json +126 -1
- package/dist-lib/spec/hyperschema/types.d.ts +33 -1
- package/dist-lib/spec/local/hyperdb/messages.js +110 -54
- package/dist-lib/spec/local/hyperschema/index.js +56 -28
- package/dist-lib/spec/local/hyperschema/schema.json +55 -20
- package/dist-lib/spec/local/hyperschema/types.d.ts +8 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +255 -51
- package/dist-lib/spec/mesh/hyperdb/index.js +1063 -404
- package/dist-lib/spec/mesh/hyperdb/messages.js +1673 -1202
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +62 -56
- package/dist-lib/spec/mesh/hyperdispatch/index.js +156 -139
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +809 -632
- package/dist-lib/spec/mesh/hyperschema/index.js +809 -632
- package/dist-lib/spec/mesh/hyperschema/schema.json +293 -174
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +31 -1
- package/package.json +32 -26
- package/worker/assistant-sidecar.mjs +3 -0
- package/dist-lib/lib/core/files/processing/settle.d.ts +0 -13
- package/dist-lib/lib/core/files/processing/settle.js +0 -86
- package/dist-lib/lib/core/migrations/device-indexes.d.ts +0 -2
- package/dist-lib/lib/core/migrations/device-indexes.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is autogenerated by hyperschema-ts
|
|
2
|
-
// Schema version:
|
|
2
|
+
// Schema version: 19
|
|
3
3
|
// Do not edit manually.
|
|
4
4
|
|
|
5
5
|
export type QvacChunkType = "user-message" | "content" | "thinking" | "tool-call" | "tool-result" | "attachment" | "approval-request" | "run-status" | "run-request" | "sources" | "compaction" | "context" | "model-request" | "round-reset" | "agent-switch"
|
|
@@ -142,6 +142,7 @@ export interface QvacChunkV1 {
|
|
|
142
142
|
capabilityArgs?: unknown | null
|
|
143
143
|
enhance?: QvacEnhanceMode | null
|
|
144
144
|
sourceId?: string | null
|
|
145
|
+
falsyResult?: string | null
|
|
145
146
|
requesterMemberId?: Buffer | null
|
|
146
147
|
senderNameAtSend?: string | null
|
|
147
148
|
context?: QvacChunkContentContext | null
|
|
@@ -194,6 +195,7 @@ export interface QvacAppendChunkOperationV1 {
|
|
|
194
195
|
capabilityArgs?: unknown | null
|
|
195
196
|
enhance?: QvacEnhanceMode | null
|
|
196
197
|
sourceId?: string | null
|
|
198
|
+
falsyResult?: string | null
|
|
197
199
|
senderNameAtSend?: string | null
|
|
198
200
|
context?: QvacChunkContentContext | null
|
|
199
201
|
modelRequest?: QvacChunkContentModelRequest | null
|
|
@@ -264,6 +266,7 @@ export interface QvacAgentV1 {
|
|
|
264
266
|
disabledToolsets?: string[] | null
|
|
265
267
|
lenderDeviceId?: Buffer | null
|
|
266
268
|
sharedIn?: Buffer | null
|
|
269
|
+
chatRetention?: string | null
|
|
267
270
|
}
|
|
268
271
|
|
|
269
272
|
export type QvacAgent = (QvacAgentV1 & { version?: number })
|
|
@@ -315,6 +318,7 @@ export interface QvacDeviceV1 {
|
|
|
315
318
|
claimedMemberId?: Buffer | null
|
|
316
319
|
inviteToken?: Buffer | null
|
|
317
320
|
deviceSignature?: Buffer | null
|
|
321
|
+
customModels?: QvacCustomModelReportEntry[] | null
|
|
318
322
|
}
|
|
319
323
|
|
|
320
324
|
export type QvacDevice = (QvacDeviceV1 & { version?: number })
|
|
@@ -366,6 +370,7 @@ export interface QvacReportDeviceCapabilitiesOperationV1 {
|
|
|
366
370
|
cachedModelNames?: string[] | null
|
|
367
371
|
readySkillNames?: string[] | null
|
|
368
372
|
toolCatalog?: QvacToolReportEntry[] | null
|
|
373
|
+
customModels?: QvacCustomModelReportEntry[] | null
|
|
369
374
|
}
|
|
370
375
|
|
|
371
376
|
export type QvacReportDeviceCapabilitiesOperation = (QvacReportDeviceCapabilitiesOperationV1 & { version?: number })
|
|
@@ -396,6 +401,7 @@ export interface QvacApprovalRuleV1 {
|
|
|
396
401
|
agentId?: string | null
|
|
397
402
|
effect?: string | null
|
|
398
403
|
memberId?: Buffer | null
|
|
404
|
+
chatId?: string | null
|
|
399
405
|
}
|
|
400
406
|
|
|
401
407
|
export type QvacApprovalRule = (QvacApprovalRuleV1 & { version?: number })
|
|
@@ -432,6 +438,7 @@ export interface QvacMeshInviteV1 {
|
|
|
432
438
|
deviceProof?: Buffer | null
|
|
433
439
|
workspace?: boolean
|
|
434
440
|
workspaceName?: string | null
|
|
441
|
+
publicHeads?: QvacInvitePublicHead[] | null
|
|
435
442
|
}
|
|
436
443
|
|
|
437
444
|
export type QvacMeshInvite = (QvacMeshInviteV1 & { version?: number })
|
|
@@ -702,6 +709,7 @@ export interface QvacJoinedMeshV1 {
|
|
|
702
709
|
shared?: boolean
|
|
703
710
|
sharedAt?: number
|
|
704
711
|
workspace?: boolean
|
|
712
|
+
kicked?: boolean
|
|
705
713
|
}
|
|
706
714
|
|
|
707
715
|
export type QvacJoinedMesh = (QvacJoinedMeshV1 & { version?: number })
|
|
@@ -882,6 +890,19 @@ export interface QvacChatForkSource {
|
|
|
882
890
|
runId?: string | null
|
|
883
891
|
}
|
|
884
892
|
|
|
893
|
+
export interface QvacCustomModelReportEntry {
|
|
894
|
+
name: string
|
|
895
|
+
label: string
|
|
896
|
+
taskType?: string | null
|
|
897
|
+
expectedSize?: number
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface QvacReindexChatChunksOperationV1 {
|
|
901
|
+
chatId: string
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export type QvacReindexChatChunksOperation = (QvacReindexChatChunksOperationV1 & { version?: number })
|
|
905
|
+
|
|
885
906
|
export interface QvacChunkContentSourcesV2 {
|
|
886
907
|
sources: QvacRagSource[]
|
|
887
908
|
notice?: string | null
|
|
@@ -933,6 +954,11 @@ export interface QvacChatSuggestion {
|
|
|
933
954
|
runId: string
|
|
934
955
|
}
|
|
935
956
|
|
|
957
|
+
export interface QvacInvitePublicHead {
|
|
958
|
+
meshKey: Buffer
|
|
959
|
+
head: QvacAutobeeHead
|
|
960
|
+
}
|
|
961
|
+
|
|
936
962
|
export interface QvacKnowledgeV2 {
|
|
937
963
|
id: string
|
|
938
964
|
chatId?: string | null
|
|
@@ -1384,6 +1410,9 @@ export interface SchemaTypes {
|
|
|
1384
1410
|
"@qvac/mesh-seed-v1": QvacMeshSeedV1
|
|
1385
1411
|
"@qvac/mesh-seed": QvacMeshSeed
|
|
1386
1412
|
"@qvac/chat-fork-source": QvacChatForkSource
|
|
1413
|
+
"@qvac/custom-model-report-entry": QvacCustomModelReportEntry
|
|
1414
|
+
"@qvac/reindex-chat-chunks-operation-v1": QvacReindexChatChunksOperationV1
|
|
1415
|
+
"@qvac/reindex-chat-chunks-operation": QvacReindexChatChunksOperation
|
|
1387
1416
|
"@qvac/chunk-content-sources-v2": QvacChunkContentSourcesV2
|
|
1388
1417
|
"@qvac/model-request-state": QvacModelRequestState
|
|
1389
1418
|
"@qvac/chunk-content-context-v1": QvacChunkContentContextV1
|
|
@@ -1395,6 +1424,7 @@ export interface SchemaTypes {
|
|
|
1395
1424
|
"@qvac/chunk-content-agent-switch-v1": QvacChunkContentAgentSwitchV1
|
|
1396
1425
|
"@qvac/chunk-content-agent-switch": QvacChunkContentAgentSwitch
|
|
1397
1426
|
"@qvac/chat-suggestion": QvacChatSuggestion
|
|
1427
|
+
"@qvac/invite-public-head": QvacInvitePublicHead
|
|
1398
1428
|
"@qvac/knowledge-v2": QvacKnowledgeV2
|
|
1399
1429
|
"@qvac/indexing-status-v2": QvacIndexingStatusV2
|
|
1400
1430
|
"@qvac/mesh-rules-v1": QvacMeshRulesV1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/core",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Peer-to-peer AI across your devices",
|
|
6
6
|
"engines": {
|
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
138
|
"build:schema": "bare schema/build.ts",
|
|
139
|
+
"bench:chat-speed": "QVAC_TEST_MODELS=1 QVAC_TEST=1 QVAC_NO_SKILL_BIN_PROBE=1 bare bench/chat-speed/bench.ts",
|
|
140
|
+
"bench:chat-speed:report": "node --experimental-strip-types bench/chat-speed/report.ts",
|
|
141
|
+
"bench:chat-speed:test": "node --experimental-strip-types bench/chat-speed/test/metrics.ts && node --experimental-strip-types bench/chat-speed/test/report.ts",
|
|
139
142
|
"bench:rag": "node --experimental-strip-types bench/rag/cli.ts",
|
|
140
143
|
"bench:rag:database": "node --experimental-strip-types bench/rag/database/cli.ts",
|
|
141
144
|
"bench:rag:indexing": "node --experimental-strip-types bench/rag/indexing/cli.ts",
|
|
@@ -154,6 +157,7 @@
|
|
|
154
157
|
"models-by-task": "bare examples/models-by-task.mjs",
|
|
155
158
|
"models-watch": "bare examples/models-watch.mjs",
|
|
156
159
|
"error-codes": "bare examples/error-codes.mjs",
|
|
160
|
+
"vault-skill-secrets": "bare examples/vault-skill-secrets.mjs",
|
|
157
161
|
"model-downloads-held": "bare examples/model-downloads-held.mjs",
|
|
158
162
|
"blind-peering": "bare examples/blind-peering.mjs",
|
|
159
163
|
"agent-folders": "bare examples/agent-folders.mjs",
|
|
@@ -161,6 +165,7 @@
|
|
|
161
165
|
"mesh-pair-and-migrate": "bare examples/mesh-pair-and-migrate.mjs",
|
|
162
166
|
"mesh-scoped-catalog": "bare examples/mesh-scoped-catalog.mjs",
|
|
163
167
|
"mesh-peer": "bare examples/mesh-peer.mjs",
|
|
168
|
+
"device-tree": "bare examples/device-tree.mjs",
|
|
164
169
|
"mesh-member-admin": "bare examples/mesh-member-admin.mjs",
|
|
165
170
|
"mesh-lab": "bare examples/mesh-lab.mjs",
|
|
166
171
|
"chat-read-marker": "bare examples/chat-read-marker.mjs",
|
|
@@ -169,9 +174,11 @@
|
|
|
169
174
|
"custom-models": "bare examples/custom-models.mjs",
|
|
170
175
|
"mesh-recover-account": "bare examples/mesh-recover-account.mjs",
|
|
171
176
|
"mesh-user-names": "bare examples/mesh-user-names.mjs",
|
|
172
|
-
"test": "npm run test:bare && npm run bench:rag:test",
|
|
173
|
-
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 2 --
|
|
177
|
+
"test": "npm run test:bare && npm run bench:rag:test && npm run bench:chat-speed:test",
|
|
178
|
+
"test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j ${BRITTLE_JOBS:-2} --timeout ${BRITTLE_TIMEOUT:-180000} 'test/*.ts' 'test/{api,app,basic,host,rag}/**/*.ts'",
|
|
174
179
|
"test:model": "QVAC_TEST_MODELS=1 npm run test:bare",
|
|
180
|
+
"test:model-lane": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 brittle-jobs -j 1 --timeout 7200000 'test/model/*.ts'",
|
|
181
|
+
"test:scale": "QVAC_NO_SKILL_BIN_PROBE=1 QVAC_TEST=1 QVAC_SCALE_REPORT=${QVAC_SCALE_REPORT:-scale-report.txt} brittle-jobs -j 1 --timeout ${BRITTLE_TIMEOUT:-600000} --idle-timeout ${BRITTLE_IDLE_TIMEOUT:-300000} 'test/scale/*.ts'",
|
|
175
182
|
"format": "prettier . --write",
|
|
176
183
|
"lint": "prettier . --check && lunte && tsc --noEmit",
|
|
177
184
|
"build:bundle": "node scripts/build-bundle.mjs",
|
|
@@ -239,11 +246,11 @@
|
|
|
239
246
|
},
|
|
240
247
|
"dependencies": {
|
|
241
248
|
"@qvac/error": "^0.2.0",
|
|
242
|
-
"@qvac/harness": "1.0.0-rc.
|
|
249
|
+
"@qvac/harness": "1.0.0-rc.16",
|
|
243
250
|
"@qvac/logging": "^0.2.0",
|
|
244
|
-
"@qvac/skills": "^0.1.
|
|
251
|
+
"@qvac/skills": "^0.1.19",
|
|
245
252
|
"asenion": "^0.1.0",
|
|
246
|
-
"autobee": "^2.
|
|
253
|
+
"autobee": "^2.12.1",
|
|
247
254
|
"b4a": "^1.9.0",
|
|
248
255
|
"bare-abort-controller": "^1.1.2",
|
|
249
256
|
"bare-buffer": "^3.6.1",
|
|
@@ -260,7 +267,7 @@
|
|
|
260
267
|
"bare-module": "~7.4.0",
|
|
261
268
|
"bare-os": "^3.9.1",
|
|
262
269
|
"bare-path": "^3.0.1",
|
|
263
|
-
"bare-pdfium": "^1.
|
|
270
|
+
"bare-pdfium": "^1.8.0",
|
|
264
271
|
"bare-pipe": "^4.2.2",
|
|
265
272
|
"bare-process": "^4.5.1",
|
|
266
273
|
"bare-rpc": "^1.3.7",
|
|
@@ -276,15 +283,15 @@
|
|
|
276
283
|
"blind-peer": "^3.10.2",
|
|
277
284
|
"blind-peering": "2.9.5",
|
|
278
285
|
"compact-encoding": "^3.4.0",
|
|
279
|
-
"corestore": "^7.
|
|
286
|
+
"corestore": "^7.16.1",
|
|
280
287
|
"hrpc": "^4.3.0",
|
|
281
288
|
"hyperblobs": "^2.12.1",
|
|
282
289
|
"hyperconf": "^1.0.3",
|
|
283
|
-
"hypercore-blob-server": "^1.
|
|
290
|
+
"hypercore-blob-server": "^1.15.1",
|
|
284
291
|
"hypercore-crypto": "^3.7.0",
|
|
285
292
|
"hypercore-id-encoding": "^1.3.0",
|
|
286
293
|
"hypercore-storage": "^3.4.0",
|
|
287
|
-
"hyperdb": "^6.
|
|
294
|
+
"hyperdb": "^6.11.0",
|
|
288
295
|
"hyperdispatch": "^1.6.0",
|
|
289
296
|
"hyperdrive": "^13.3.3",
|
|
290
297
|
"hyperschema": "1.26.2",
|
|
@@ -295,7 +302,7 @@
|
|
|
295
302
|
"protomux": "^3.11.0",
|
|
296
303
|
"protomux-wakeup": "^2.9.0",
|
|
297
304
|
"rache": "^1.0.0",
|
|
298
|
-
"rag-extract": "^0.
|
|
305
|
+
"rag-extract": "^0.2.2",
|
|
299
306
|
"ready-guard": "^1.0.0",
|
|
300
307
|
"ready-resource": "^1.2.0",
|
|
301
308
|
"rocksdb-native": "^3.17.4",
|
|
@@ -309,14 +316,15 @@
|
|
|
309
316
|
"zod": "^4.3.6"
|
|
310
317
|
},
|
|
311
318
|
"devDependencies": {
|
|
319
|
+
"@qvac/core-previous": "npm:@qvac/core@0.10.3",
|
|
312
320
|
"@qvac/asr-ggml": "0.4.2",
|
|
313
|
-
"@qvac/audiogen-ggml": "^0.
|
|
314
|
-
"@qvac/diffusion-cpp": "^0.
|
|
315
|
-
"@qvac/embed-llamacpp": "0.
|
|
321
|
+
"@qvac/audiogen-ggml": "^0.9.0",
|
|
322
|
+
"@qvac/diffusion-cpp": "^0.31.0",
|
|
323
|
+
"@qvac/embed-llamacpp": "^0.53.0",
|
|
316
324
|
"@qvac/langdetect-text": "^0.1.2",
|
|
317
|
-
"@qvac/llm-llamacpp": "^0.
|
|
318
|
-
"@qvac/ocr-ggml": "^0.
|
|
319
|
-
"@qvac/tts-ggml": "^0.
|
|
325
|
+
"@qvac/llm-llamacpp": "^0.65.0",
|
|
326
|
+
"@qvac/ocr-ggml": "^0.31.0",
|
|
327
|
+
"@qvac/tts-ggml": "^0.14.0",
|
|
320
328
|
"@types/node": "^26.4.0",
|
|
321
329
|
"bare-bundle": "^1.10.0",
|
|
322
330
|
"bare-module-lexer": "^1.6.3",
|
|
@@ -349,15 +357,12 @@
|
|
|
349
357
|
},
|
|
350
358
|
"homepage": "https://github.com/tetherto/qvac-core",
|
|
351
359
|
"patchedDependencies": {
|
|
352
|
-
"hypercore-blob-server@1.15.0": "patches/hypercore-blob-server@1.15.0.patch",
|
|
353
360
|
"pyodide@314.0.2": "patches/pyodide@314.0.2.patch",
|
|
354
|
-
"localwatch@1.4.3": "patches/localwatch@1.4.3.patch",
|
|
355
361
|
"bare-stow@0.1.5": "patches/bare-stow@0.1.5.patch",
|
|
356
362
|
"blind-peering@2.9.5": "patches/blind-peering@2.9.5.patch",
|
|
357
|
-
"hyperdb@6.
|
|
358
|
-
"
|
|
359
|
-
"@
|
|
360
|
-
"hyperschema@1.26.2": "patches/hyperschema@1.26.2.patch"
|
|
363
|
+
"hyperdb@6.11.0": "patches/hyperdb@6.11.0.patch",
|
|
364
|
+
"hyperschema@1.26.2": "patches/hyperschema@1.26.2.patch",
|
|
365
|
+
"corestore@7.16.1": "patches/corestore@7.16.1.patch"
|
|
361
366
|
},
|
|
362
367
|
"overrides": {
|
|
363
368
|
"bare-sidecar": "0.5.7",
|
|
@@ -368,9 +373,10 @@
|
|
|
368
373
|
"bare-http1": "4.6.1",
|
|
369
374
|
"lodash": "4.18.1",
|
|
370
375
|
"hyperschema": "1.26.2",
|
|
371
|
-
"hyperdb": "^6.
|
|
372
|
-
"hypercore": "^11.39.
|
|
373
|
-
"hyperbee2": "^2.
|
|
376
|
+
"hyperdb": "^6.11.0",
|
|
377
|
+
"hypercore": "^11.39.5",
|
|
378
|
+
"hyperbee2": "^2.21.2",
|
|
379
|
+
"localwatch": "^1.4.4",
|
|
374
380
|
"tar": "^7.5.22",
|
|
375
381
|
"bare-tls": "^3.1.13"
|
|
376
382
|
},
|
|
@@ -127,6 +127,9 @@ export default stowEntry((ipc) => {
|
|
|
127
127
|
eager
|
|
128
128
|
}),
|
|
129
129
|
onHarness: (harness, { engine }) => startCredentialPusher(harness, engine, logger),
|
|
130
|
+
// the sweep drops what this mesh does not reference, so a shared dir loses other instances' pages
|
|
131
|
+
imageCacheDir: `${storage.root}/image-cache`,
|
|
132
|
+
inferenceCallsDir: `${storage.root}/inspector`,
|
|
130
133
|
runReplayDir: `${storage.root}/run-replay`,
|
|
131
134
|
logger,
|
|
132
135
|
fakeModels
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AbortSignal } from 'bare-abort-controller';
|
|
2
|
-
import type { Files } from '../index.ts';
|
|
3
|
-
import type { FileProcessing } from './index.ts';
|
|
4
|
-
export interface SettleOptions {
|
|
5
|
-
readonly timeoutMs?: number;
|
|
6
|
-
readonly signal?: AbortSignal;
|
|
7
|
-
}
|
|
8
|
-
export interface SettleFilesOptions extends SettleOptions {
|
|
9
|
-
readonly ids: string[];
|
|
10
|
-
readonly processing: FileProcessing;
|
|
11
|
-
readonly chatIds: () => Promise<string[]>;
|
|
12
|
-
}
|
|
13
|
-
export declare function settleFiles(files: Files, options: SettleFilesOptions): Promise<void>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { AbortedError } from '@qvac/harness/race-abort';
|
|
2
|
-
export function settleFiles(files, options) {
|
|
3
|
-
const { ids, processing, signal, timeoutMs = 5_000 } = options;
|
|
4
|
-
if (signal?.aborted) {
|
|
5
|
-
return Promise.reject(new AbortedError());
|
|
6
|
-
}
|
|
7
|
-
if (!ids.length || timeoutMs <= 0 || files.closed) {
|
|
8
|
-
return Promise.resolve();
|
|
9
|
-
}
|
|
10
|
-
const deadline = Date.now() + timeoutMs;
|
|
11
|
-
const wanted = new Set(ids);
|
|
12
|
-
return new Promise((resolve, reject) => {
|
|
13
|
-
let done = false;
|
|
14
|
-
let checking = false;
|
|
15
|
-
let dirty = false;
|
|
16
|
-
const timer = setTimeout(() => finish(), timeoutMs);
|
|
17
|
-
const finish = (error) => {
|
|
18
|
-
if (done)
|
|
19
|
-
return;
|
|
20
|
-
done = true;
|
|
21
|
-
clearTimeout(timer);
|
|
22
|
-
files.unwatch(check);
|
|
23
|
-
files.off('close', onClose);
|
|
24
|
-
signal?.removeEventListener('abort', onAbort);
|
|
25
|
-
if (error) {
|
|
26
|
-
reject(error);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
resolve();
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const onClose = () => finish();
|
|
33
|
-
const onAbort = () => finish(new AbortedError());
|
|
34
|
-
const chats = options.chatIds();
|
|
35
|
-
const check = () => {
|
|
36
|
-
dirty = true;
|
|
37
|
-
if (checking || done) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
checking = true;
|
|
41
|
-
void (async () => {
|
|
42
|
-
while (dirty && !done) {
|
|
43
|
-
dirty = false;
|
|
44
|
-
const snapshots = await Promise.all((await chats).map((chatId) => files.status(chatId)));
|
|
45
|
-
if (done) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (!processing.active) {
|
|
49
|
-
return finish();
|
|
50
|
-
}
|
|
51
|
-
const waiting = snapshots
|
|
52
|
-
.flatMap((snapshot) => snapshot.files)
|
|
53
|
-
.some((file) => {
|
|
54
|
-
if (!wanted.has(file.fileId) || file.readyForChat)
|
|
55
|
-
return false;
|
|
56
|
-
const rag = file.processors.find((entry) => entry.processorId === 'rag');
|
|
57
|
-
if (!rag || rag.state === 'not-applicable') {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
if (rag.state === 'failed' && (!rag.retryAt || rag.retryAt > deadline)) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
return (processing.pending(file.fileId) ||
|
|
64
|
-
rag.state === 'running' ||
|
|
65
|
-
(rag.retryAt !== undefined && rag.retryAt <= deadline));
|
|
66
|
-
});
|
|
67
|
-
if (!waiting) {
|
|
68
|
-
finish();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
})()
|
|
72
|
-
.catch(finish)
|
|
73
|
-
.finally(() => {
|
|
74
|
-
checking = false;
|
|
75
|
-
if (dirty && !done) {
|
|
76
|
-
check();
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
files.watch(check);
|
|
81
|
-
files.on('close', onClose);
|
|
82
|
-
signal?.addEventListener('abort', onAbort, { once: true });
|
|
83
|
-
processing.prioritize(ids);
|
|
84
|
-
check();
|
|
85
|
-
});
|
|
86
|
-
}
|