@qvac/core 0.9.0 → 0.10.1
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 +112 -1
- package/README.md +4 -4
- package/dist-lib/index.d.ts +0 -1
- package/dist-lib/index.js +0 -1
- package/dist-lib/lib/api/agents.d.ts +7 -1
- package/dist-lib/lib/api/agents.js +2 -2
- package/dist-lib/lib/api/app-config.d.ts +2 -1
- package/dist-lib/lib/api/app-config.js +2 -2
- package/dist-lib/lib/api/attachments.js +3 -2
- package/dist-lib/lib/api/chat-move.d.ts +2 -1
- package/dist-lib/lib/api/chat-move.js +2 -2
- package/dist-lib/lib/api/chat.d.ts +3 -1
- package/dist-lib/lib/api/chat.js +5 -5
- package/dist-lib/lib/api/chunks.d.ts +2 -1
- package/dist-lib/lib/api/chunks.js +3 -3
- package/dist-lib/lib/api/config.d.ts +2 -1
- package/dist-lib/lib/api/config.js +2 -2
- package/dist-lib/lib/api/current-mesh.d.ts +1 -3
- package/dist-lib/lib/api/current-mesh.js +4 -10
- package/dist-lib/lib/api/custom-models.d.ts +7 -1
- package/dist-lib/lib/api/custom-models.js +10 -8
- package/dist-lib/lib/api/device-routes.d.ts +0 -2
- package/dist-lib/lib/api/device-routes.js +4 -5
- package/dist-lib/lib/api/devices.d.ts +3 -1
- package/dist-lib/lib/api/devices.js +9 -8
- package/dist-lib/lib/api/diagnostics.d.ts +2 -1
- package/dist-lib/lib/api/diagnostics.js +2 -2
- package/dist-lib/lib/api/index.d.ts +2 -0
- package/dist-lib/lib/api/index.js +39 -21
- package/dist-lib/lib/api/instrument.d.ts +2 -2
- package/dist-lib/lib/api/instrument.js +10 -11
- package/dist-lib/lib/api/knowledge.d.ts +3 -1
- package/dist-lib/lib/api/knowledge.js +9 -7
- package/dist-lib/lib/api/logs.js +3 -3
- package/dist-lib/lib/api/members.d.ts +6 -1
- package/dist-lib/lib/api/members.js +11 -10
- package/dist-lib/lib/api/mesh.d.ts +2 -2
- package/dist-lib/lib/api/mesh.js +6 -6
- package/dist-lib/lib/api/model-download.d.ts +2 -1
- package/dist-lib/lib/api/model-download.js +2 -2
- package/dist-lib/lib/api/network.d.ts +3 -2
- package/dist-lib/lib/api/network.js +4 -4
- package/dist-lib/lib/api/notifications.d.ts +3 -1
- package/dist-lib/lib/api/notifications.js +5 -4
- package/dist-lib/lib/api/rag.d.ts +0 -1
- package/dist-lib/lib/api/rag.js +3 -4
- package/dist-lib/lib/api/sync.d.ts +2 -1
- package/dist-lib/lib/api/sync.js +2 -2
- package/dist-lib/lib/api/tool-activity.d.ts +2 -1
- package/dist-lib/lib/api/tool-activity.js +4 -3
- package/dist-lib/lib/api/tool-configs.d.ts +2 -1
- package/dist-lib/lib/api/tool-configs.js +4 -3
- package/dist-lib/lib/api/upload-frames.d.ts +0 -1
- package/dist-lib/lib/api/upload-frames.js +0 -1
- package/dist-lib/lib/api/watchable.d.ts +3 -2
- package/dist-lib/lib/api/watchable.js +2 -3
- package/dist-lib/lib/assistant/fake-models.d.ts +2 -4
- package/dist-lib/lib/assistant/harness.js +8 -6
- package/dist-lib/lib/assistant-client.d.ts +2 -0
- package/dist-lib/lib/assistant-client.js +4 -3
- package/dist-lib/lib/assistant-tree.d.ts +3 -3
- package/dist-lib/lib/assistant.d.ts +5 -3
- package/dist-lib/lib/assistant.js +50 -13
- package/dist-lib/lib/client.d.ts +2 -2
- package/dist-lib/lib/core/agent.js +5 -4
- package/dist-lib/lib/core/archived-mesh.d.ts +2 -3
- package/dist-lib/lib/core/archived-mesh.js +3 -3
- package/dist-lib/lib/core/chat-activity.js +5 -3
- package/dist-lib/lib/core/chat-copy.d.ts +0 -1
- package/dist-lib/lib/core/chat-copy.js +2 -2
- package/dist-lib/lib/core/chat-fork.d.ts +0 -6
- package/dist-lib/lib/core/chat-fork.js +11 -17
- package/dist-lib/lib/core/chat-group.js +8 -7
- package/dist-lib/lib/core/chat-move.d.ts +4 -6
- package/dist-lib/lib/core/chat-move.js +14 -15
- package/dist-lib/lib/core/chat-order.d.ts +2 -1
- package/dist-lib/lib/core/chat-order.js +15 -2
- package/dist-lib/lib/core/chat.js +8 -7
- package/dist-lib/lib/core/chunk.js +13 -8
- package/dist-lib/lib/core/collections.d.ts +1 -0
- package/dist-lib/lib/core/collections.js +1 -0
- package/dist-lib/lib/core/contract/compute.d.ts +0 -4
- package/dist-lib/lib/core/contract/compute.js +2 -9
- package/dist-lib/lib/core/contract/types.d.ts +2 -2
- package/dist-lib/lib/core/departures.d.ts +2 -2
- package/dist-lib/lib/core/device-control.d.ts +0 -2
- package/dist-lib/lib/core/device-control.js +5 -6
- package/dist-lib/lib/core/files/attachments.js +5 -4
- package/dist-lib/lib/core/files/index.d.ts +2 -1
- package/dist-lib/lib/core/files/index.js +20 -8
- package/dist-lib/lib/core/files/processing/claims.js +3 -3
- package/dist-lib/lib/core/files/processing/document.d.ts +2 -0
- package/dist-lib/lib/core/files/processing/document.js +3 -0
- package/dist-lib/lib/core/files/processing/index.js +4 -2
- package/dist-lib/lib/core/files/processing/source.d.ts +3 -0
- package/dist-lib/lib/core/files/processing/source.js +5 -3
- package/dist-lib/lib/core/files/processing/state.js +1 -0
- package/dist-lib/lib/core/files/rag/index.d.ts +3 -0
- package/dist-lib/lib/core/files/rag/index.js +3 -1
- package/dist-lib/lib/core/files/rag/load.js +6 -3
- package/dist-lib/lib/core/files/rag/produce.js +3 -3
- package/dist-lib/lib/core/files/rag/retrieval/full-text.js +1 -1
- package/dist-lib/lib/core/files/rag/similarity.d.ts +2 -2
- package/dist-lib/lib/core/files/rag/similarity.js +2 -3
- package/dist-lib/lib/core/files/records/chunks.js +1 -1
- package/dist-lib/lib/core/files/records/knowledge.js +2 -1
- package/dist-lib/lib/core/files/records/purge.js +9 -5
- package/dist-lib/lib/core/files/records/reclaim.js +20 -48
- package/dist-lib/lib/core/files/records/sweep.d.ts +3 -0
- package/dist-lib/lib/core/files/records/sweep.js +9 -3
- package/dist-lib/lib/core/files/store/blob.d.ts +2 -0
- package/dist-lib/lib/core/files/store/blob.js +2 -2
- package/dist-lib/lib/core/files/store/index.d.ts +1 -0
- package/dist-lib/lib/core/files/store/index.js +2 -0
- package/dist-lib/lib/core/files/store/reference.js +4 -2
- package/dist-lib/lib/core/files/upload.d.ts +1 -1
- package/dist-lib/lib/core/files/upload.js +10 -9
- package/dist-lib/lib/core/handoff-channel.d.ts +6 -4
- package/dist-lib/lib/core/handoff-channel.js +8 -9
- package/dist-lib/lib/core/harness-loan.d.ts +0 -2
- package/dist-lib/lib/core/harness-loan.js +3 -4
- package/dist-lib/lib/core/hosted-agents.d.ts +2 -2
- package/dist-lib/lib/core/inference-calls-handoff.d.ts +2 -2
- package/dist-lib/lib/core/inference-calls-handoff.js +6 -5
- package/dist-lib/lib/core/inference-calls-receiver.d.ts +0 -2
- package/dist-lib/lib/core/inference-calls-receiver.js +5 -7
- package/dist-lib/lib/core/local/index.d.ts +4 -1
- package/dist-lib/lib/core/local/index.js +23 -2
- package/dist-lib/lib/core/membership.d.ts +2 -2
- package/dist-lib/lib/core/mesh.d.ts +13 -7
- package/dist-lib/lib/core/mesh.js +55 -47
- package/dist-lib/lib/core/migrations/file-index.js +2 -4
- package/dist-lib/lib/core/next-frame.js +2 -1
- package/dist-lib/lib/core/pdf/rasterize.d.ts +2 -1
- package/dist-lib/lib/core/pdf/rasterize.js +5 -5
- package/dist-lib/lib/core/peer-duplex.d.ts +3 -3
- package/dist-lib/lib/core/peer-duplex.js +4 -4
- package/dist-lib/lib/core/secret-handoff.d.ts +2 -2
- package/dist-lib/lib/core/secret-handoff.js +7 -4
- package/dist-lib/lib/core/send.js +3 -2
- package/dist-lib/lib/core/skill-overlay-handoff.d.ts +2 -2
- package/dist-lib/lib/core/skill-overlay-handoff.js +6 -5
- package/dist-lib/lib/core/skill-overlay-receiver.js +5 -5
- package/dist-lib/lib/core/skill-secrets.d.ts +0 -5
- package/dist-lib/lib/core/skill-secrets.js +5 -9
- package/dist-lib/lib/core/sync/changed.d.ts +20 -0
- package/dist-lib/lib/core/sync/changed.js +7 -0
- package/dist-lib/lib/core/sync/devices.js +1 -1
- package/dist-lib/lib/core/sync/files.d.ts +1 -0
- package/dist-lib/lib/core/sync/files.js +50 -72
- package/dist-lib/lib/core/sync/index.d.ts +1 -2
- package/dist-lib/lib/core/sync/index.js +40 -62
- package/dist-lib/lib/core/sync/view-updates.d.ts +33 -0
- package/dist-lib/lib/core/sync/view-updates.js +133 -0
- package/dist-lib/lib/core/system-info.d.ts +2 -2
- package/dist-lib/lib/core/system-info.js +10 -11
- package/dist-lib/lib/core/tool-configs.js +6 -6
- package/dist-lib/lib/core.d.ts +1 -7
- package/dist-lib/lib/core.js +147 -131
- package/dist-lib/lib/custom-model-pusher.d.ts +2 -4
- package/dist-lib/lib/custom-model-task.d.ts +2 -1
- package/dist-lib/lib/custom-model-task.js +2 -2
- package/dist-lib/lib/downloads-allowed-pusher.d.ts +2 -4
- package/dist-lib/lib/errors.d.ts +603 -0
- package/dist-lib/lib/errors.js +552 -0
- package/dist-lib/lib/log.d.ts +7 -6
- package/dist-lib/lib/log.js +10 -6
- package/dist-lib/lib/logger-type.d.ts +2 -5
- package/dist-lib/lib/model-download-status.d.ts +2 -2
- package/dist-lib/lib/model-download.d.ts +2 -2
- package/dist-lib/lib/model-download.js +3 -2
- package/dist-lib/lib/model-idle-pusher.d.ts +2 -4
- package/dist-lib/lib/model-memory-cap.d.ts +2 -4
- package/dist-lib/lib/oauth/browser-connect.js +3 -2
- package/dist-lib/lib/oauth/flow-core.js +3 -3
- package/dist-lib/lib/oauth/loopback.js +10 -9
- package/dist-lib/lib/oauth/providers.js +4 -2
- package/dist-lib/lib/oauth/register.js +3 -2
- package/dist-lib/lib/oauth/token-exchange-core.js +5 -4
- package/dist-lib/lib/run-notices.d.ts +2 -0
- package/dist-lib/lib/run-notices.js +7 -2
- package/dist-lib/lib/run-transcript.d.ts +2 -2
- package/dist-lib/lib/task.js +2 -1
- package/dist-lib/schema/engine.js +6 -3
- package/dist-lib/schema/field-order.js +1 -3
- package/dist-lib/schema/local.js +11 -0
- package/dist-lib/spec/hrpc/messages.js +20 -9
- package/dist-lib/spec/hyperschema/index.js +20 -9
- package/dist-lib/spec/hyperschema/schema.json +15 -0
- package/dist-lib/spec/hyperschema/types.d.ts +3 -0
- package/dist-lib/spec/local/hyperdb/db.json +16 -1
- package/dist-lib/spec/local/hyperdb/index.js +71 -2
- package/dist-lib/spec/local/hyperdb/messages.js +300 -143
- package/dist-lib/spec/local/hyperschema/index.js +82 -2
- package/dist-lib/spec/local/hyperschema/schema.json +43 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +12 -1
- package/package.json +10 -3
- package/tui/app.mjs +1 -1
- package/worker/assistant-sidecar.mjs +7 -0
- package/dist-lib/lib/log-levels.d.ts +0 -7
- package/dist-lib/lib/log-levels.js +0 -1
- package/dist-lib/lib/logger.d.ts +0 -5
- package/dist-lib/lib/logger.js +0 -18
|
@@ -1387,6 +1387,7 @@ export interface AssistantSkillSecretHandoff {
|
|
|
1387
1387
|
export interface AssistantSkillSecretHandoffAck {
|
|
1388
1388
|
id: number
|
|
1389
1389
|
error?: string | null
|
|
1390
|
+
code?: number
|
|
1390
1391
|
}
|
|
1391
1392
|
|
|
1392
1393
|
export interface AssistantToolActivityEntry {
|
|
@@ -1496,6 +1497,7 @@ export interface AssistantSkillOverlayHandoffAck {
|
|
|
1496
1497
|
ok?: boolean
|
|
1497
1498
|
copied?: boolean
|
|
1498
1499
|
removed?: boolean
|
|
1500
|
+
code?: number
|
|
1499
1501
|
}
|
|
1500
1502
|
|
|
1501
1503
|
export type AssistantFileState = "uploading" | "pending" | "running" | "ready" | "failed" | "cancelled" | "not-applicable"
|
|
@@ -1807,6 +1809,7 @@ export interface AssistantInferenceCallsHandoffAck {
|
|
|
1807
1809
|
error?: string | null
|
|
1808
1810
|
calls?: AssistantInferenceCallEntry[] | null
|
|
1809
1811
|
truncated?: boolean
|
|
1812
|
+
code?: number
|
|
1810
1813
|
}
|
|
1811
1814
|
|
|
1812
1815
|
export interface AssistantMeshConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 8,
|
|
3
3
|
"offset": 0,
|
|
4
4
|
"schema": [
|
|
5
5
|
{
|
|
@@ -375,6 +375,21 @@
|
|
|
375
375
|
"chatId"
|
|
376
376
|
],
|
|
377
377
|
"trigger": null
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "mesh-updates",
|
|
381
|
+
"namespace": "local",
|
|
382
|
+
"id": 23,
|
|
383
|
+
"type": 1,
|
|
384
|
+
"version": 8,
|
|
385
|
+
"versionField": null,
|
|
386
|
+
"indexes": [],
|
|
387
|
+
"schema": "@local/mesh-update",
|
|
388
|
+
"derived": false,
|
|
389
|
+
"key": [
|
|
390
|
+
"meshKey"
|
|
391
|
+
],
|
|
392
|
+
"trigger": null
|
|
378
393
|
}
|
|
379
394
|
]
|
|
380
395
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { IndexEncoder, c, b4a } from 'hyperdb/runtime'
|
|
5
5
|
import { version, getEncoding, setVersion } from './messages.js'
|
|
6
6
|
|
|
7
|
-
const versions = { schema: version, db:
|
|
7
|
+
const versions = { schema: version, db: 8 }
|
|
8
8
|
|
|
9
9
|
import * as helpers0 from '../../../schema/indexes.js'
|
|
10
10
|
|
|
@@ -1557,6 +1557,73 @@ const collection22 = {
|
|
|
1557
1557
|
decodedVersion: 0
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
+
// '@local/mesh-updates' collection key
|
|
1561
|
+
const collection23_key = new IndexEncoder([
|
|
1562
|
+
IndexEncoder.BUFFER
|
|
1563
|
+
], { prefix: 23 })
|
|
1564
|
+
|
|
1565
|
+
function collection23_indexify (record) {
|
|
1566
|
+
const a = record.meshKey
|
|
1567
|
+
return a === undefined ? [] : [a]
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// '@local/mesh-updates' value encoding
|
|
1571
|
+
const collection23_enc = getEncoding('@local/mesh-update/hyperdb#23')
|
|
1572
|
+
|
|
1573
|
+
// '@local/mesh-updates' reconstruction function
|
|
1574
|
+
function collection23_reconstruct (schemaVersion, keyBuf, valueBuf) {
|
|
1575
|
+
const key = collection23_key.decode(keyBuf)
|
|
1576
|
+
setVersion(schemaVersion)
|
|
1577
|
+
const state = { start: 0, end: valueBuf.byteLength, buffer: valueBuf }
|
|
1578
|
+
const type = c.uint.decode(state)
|
|
1579
|
+
if (type !== 0) throw new Error('Unknown collection type: ' + type)
|
|
1580
|
+
collection23.decodedVersion = c.uint.decode(state)
|
|
1581
|
+
const record = collection23_enc.decode(state)
|
|
1582
|
+
record.meshKey = key[0]
|
|
1583
|
+
return record
|
|
1584
|
+
}
|
|
1585
|
+
// '@local/mesh-updates' key reconstruction function
|
|
1586
|
+
function collection23_reconstruct_key (keyBuf) {
|
|
1587
|
+
const key = collection23_key.decode(keyBuf)
|
|
1588
|
+
return {
|
|
1589
|
+
meshKey: key[0]
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
// '@local/mesh-updates'
|
|
1594
|
+
const collection23 = {
|
|
1595
|
+
name: '@local/mesh-updates',
|
|
1596
|
+
id: 23,
|
|
1597
|
+
version: 8,
|
|
1598
|
+
encodeKey (record) {
|
|
1599
|
+
const key = [record.meshKey]
|
|
1600
|
+
return collection23_key.encode(key)
|
|
1601
|
+
},
|
|
1602
|
+
encodeKeyRange ({ gt, lt, gte, lte } = {}) {
|
|
1603
|
+
return collection23_key.encodeRange({
|
|
1604
|
+
gt: gt ? collection23_indexify(gt) : null,
|
|
1605
|
+
lt: lt ? collection23_indexify(lt) : null,
|
|
1606
|
+
gte: gte ? collection23_indexify(gte) : null,
|
|
1607
|
+
lte: lte ? collection23_indexify(lte) : null
|
|
1608
|
+
})
|
|
1609
|
+
},
|
|
1610
|
+
encodeValue (schemaVersion, collectionVersion, record) {
|
|
1611
|
+
setVersion(schemaVersion)
|
|
1612
|
+
const state = { start: 0, end: 2, buffer: null }
|
|
1613
|
+
collection23_enc.preencode(state, record)
|
|
1614
|
+
state.buffer = b4a.allocUnsafe(state.end)
|
|
1615
|
+
state.buffer[state.start++] = 0
|
|
1616
|
+
state.buffer[state.start++] = collectionVersion
|
|
1617
|
+
collection23_enc.encode(state, record)
|
|
1618
|
+
return state.buffer
|
|
1619
|
+
},
|
|
1620
|
+
trigger: null,
|
|
1621
|
+
reconstruct: collection23_reconstruct,
|
|
1622
|
+
reconstructKey: collection23_reconstruct_key,
|
|
1623
|
+
indexes: [],
|
|
1624
|
+
decodedVersion: 0
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1560
1627
|
const collections = [
|
|
1561
1628
|
collection0,
|
|
1562
1629
|
collection1,
|
|
@@ -1576,7 +1643,8 @@ const collections = [
|
|
|
1576
1643
|
collection15,
|
|
1577
1644
|
collection16,
|
|
1578
1645
|
collection18,
|
|
1579
|
-
collection22
|
|
1646
|
+
collection22,
|
|
1647
|
+
collection23
|
|
1580
1648
|
]
|
|
1581
1649
|
|
|
1582
1650
|
const indexes = [
|
|
@@ -1609,6 +1677,7 @@ function resolveCollection (name) {
|
|
|
1609
1677
|
case '@local/chat-order': return collection16
|
|
1610
1678
|
case '@local/files': return collection18
|
|
1611
1679
|
case '@local/chat-moves': return collection22
|
|
1680
|
+
case '@local/mesh-updates': return collection23
|
|
1612
1681
|
default: return null
|
|
1613
1682
|
}
|
|
1614
1683
|
}
|