@qvac/core 1.0.0-rc.3 → 1.0.0-rc.6

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +147 -36
  2. package/README.md +55 -4
  3. package/dist-lib/index.d.ts +2 -1
  4. package/dist-lib/lib/api/agents.d.ts +2 -1
  5. package/dist-lib/lib/api/agents.js +5 -1
  6. package/dist-lib/lib/api/app-config.d.ts +3 -0
  7. package/dist-lib/lib/api/app-config.js +20 -0
  8. package/dist-lib/lib/api/approval-rules.d.ts +1 -1
  9. package/dist-lib/lib/api/approval-rules.js +5 -1
  10. package/dist-lib/lib/api/config.d.ts +6 -2
  11. package/dist-lib/lib/api/config.js +9 -5
  12. package/dist-lib/lib/api/device-routes.d.ts +1 -1
  13. package/dist-lib/lib/api/device-routes.js +3 -1
  14. package/dist-lib/lib/api/index.d.ts +12 -2
  15. package/dist-lib/lib/api/index.js +8 -2
  16. package/dist-lib/lib/api/projects.js +3 -4
  17. package/dist-lib/lib/api/rag.js +5 -5
  18. package/dist-lib/lib/api/served.d.ts +2 -2
  19. package/dist-lib/lib/api/served.js +24 -1
  20. package/dist-lib/lib/assistant/harness.d.ts +3 -0
  21. package/dist-lib/lib/assistant/history.js +14 -2
  22. package/dist-lib/lib/assistant/message.d.ts +1 -0
  23. package/dist-lib/lib/assistant/model-round.d.ts +3 -0
  24. package/dist-lib/lib/assistant/model-round.js +18 -4
  25. package/dist-lib/lib/assistant/round-host.d.ts +2 -0
  26. package/dist-lib/lib/assistant/round-host.js +8 -0
  27. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  28. package/dist-lib/lib/assistant-tree.js +4 -2
  29. package/dist-lib/lib/assistant.d.ts +12 -1
  30. package/dist-lib/lib/assistant.js +131 -15
  31. package/dist-lib/lib/client.js +4 -1
  32. package/dist-lib/lib/core/agent-copies.js +9 -2
  33. package/dist-lib/lib/core/agent-hosting.js +9 -4
  34. package/dist-lib/lib/core/agent.js +3 -1
  35. package/dist-lib/lib/core/approval-rules.d.ts +5 -1
  36. package/dist-lib/lib/core/approval-rules.js +16 -1
  37. package/dist-lib/lib/core/chat-copy.d.ts +1 -0
  38. package/dist-lib/lib/core/chat-copy.js +13 -2
  39. package/dist-lib/lib/core/chat.d.ts +0 -1
  40. package/dist-lib/lib/core/chat.js +0 -3
  41. package/dist-lib/lib/core/chunk.js +4 -3
  42. package/dist-lib/lib/core/collections.d.ts +7 -7
  43. package/dist-lib/lib/core/collections.js +7 -7
  44. package/dist-lib/lib/core/config-value.d.ts +1 -0
  45. package/dist-lib/lib/core/config-value.js +1 -0
  46. package/dist-lib/lib/core/contract/project-device-keys.d.ts +4 -2
  47. package/dist-lib/lib/core/contract/project-device-keys.js +12 -12
  48. package/dist-lib/lib/core/contract/project-host-keys.d.ts +5 -3
  49. package/dist-lib/lib/core/contract/project-host-keys.js +22 -11
  50. package/dist-lib/lib/core/contract/projects.d.ts +4 -2
  51. package/dist-lib/lib/core/contract/projects.js +29 -17
  52. package/dist-lib/lib/core/contract/workspace.js +2 -2
  53. package/dist-lib/lib/core/deleted-agent-runs.d.ts +8 -0
  54. package/dist-lib/lib/core/deleted-agent-runs.js +57 -0
  55. package/dist-lib/lib/core/files/index.d.ts +1 -1
  56. package/dist-lib/lib/core/files/index.js +4 -2
  57. package/dist-lib/lib/core/helpers/index.d.ts +1 -1
  58. package/dist-lib/lib/core/helpers/index.js +2 -2
  59. package/dist-lib/lib/core/local/index.d.ts +6 -0
  60. package/dist-lib/lib/core/local/index.js +14 -0
  61. package/dist-lib/lib/core/mesh.d.ts +2 -1
  62. package/dist-lib/lib/core/mesh.js +7 -5
  63. package/dist-lib/lib/core/project-keys.d.ts +5 -2
  64. package/dist-lib/lib/core/project-keys.js +15 -6
  65. package/dist-lib/lib/core/skill-secrets.d.ts +3 -2
  66. package/dist-lib/lib/core/skill-secrets.js +4 -1
  67. package/dist-lib/lib/core/sync/index.js +18 -6
  68. package/dist-lib/lib/core/vault-managed-skills.d.ts +18 -0
  69. package/dist-lib/lib/core/vault-managed-skills.js +105 -0
  70. package/dist-lib/lib/core.d.ts +10 -1
  71. package/dist-lib/lib/core.js +165 -31
  72. package/dist-lib/lib/errors.d.ts +8 -0
  73. package/dist-lib/lib/errors.js +8 -0
  74. package/dist-lib/lib/kv-cache-ledger.d.ts +22 -0
  75. package/dist-lib/lib/kv-cache-ledger.js +72 -0
  76. package/dist-lib/lib/kv-cache-retention.d.ts +1 -0
  77. package/dist-lib/lib/kv-cache-retention.js +5 -2
  78. package/dist-lib/lib/mesh-scoped-engine.js +1 -0
  79. package/dist-lib/lib/model-memory-cap.d.ts +3 -0
  80. package/dist-lib/lib/model-memory-cap.js +15 -6
  81. package/dist-lib/lib/run-replay.d.ts +3 -2
  82. package/dist-lib/lib/run-replay.js +16 -5
  83. package/dist-lib/lib/run-transcript.js +1 -1
  84. package/dist-lib/schema/config.d.ts +1 -1
  85. package/dist-lib/schema/config.js +1 -1
  86. package/dist-lib/schema/engine.js +87 -2
  87. package/dist-lib/schema/qvac.js +66 -3
  88. package/dist-lib/spec/bind.js +15 -0
  89. package/dist-lib/spec/calls.js +5 -0
  90. package/dist-lib/spec/capabilities.d.ts +10 -0
  91. package/dist-lib/spec/config/hyperconf/index.js +1 -1
  92. package/dist-lib/spec/hrpc/hrpc.json +65 -0
  93. package/dist-lib/spec/hrpc/index.js +63 -3
  94. package/dist-lib/spec/hrpc/messages.js +1302 -993
  95. package/dist-lib/spec/hyperschema/index.js +1302 -993
  96. package/dist-lib/spec/hyperschema/schema.json +227 -0
  97. package/dist-lib/spec/hyperschema/types.d.ts +45 -0
  98. package/dist-lib/spec/mesh/hyperdb/db.json +110 -0
  99. package/dist-lib/spec/mesh/hyperdb/index.js +498 -2
  100. package/dist-lib/spec/mesh/hyperdb/messages.js +1385 -892
  101. package/dist-lib/spec/mesh/hyperdispatch/messages.js +561 -301
  102. package/dist-lib/spec/mesh/hyperschema/index.js +561 -301
  103. package/dist-lib/spec/mesh/hyperschema/schema.json +343 -178
  104. package/dist-lib/spec/mesh/hyperschema/types.d.ts +40 -1
  105. package/package.json +34 -18
  106. package/tui/README.md +190 -0
  107. package/tui/app.mjs +8247 -0
  108. package/tui/boot.mjs +159 -0
  109. package/tui/index.mjs +89 -0
  110. package/tui/lib/boot-timing.mjs +41 -0
  111. package/tui/lib/busy-words.mjs +116 -0
  112. package/tui/lib/connect-sheet.mjs +350 -0
  113. package/tui/lib/device-target.mjs +64 -0
  114. package/tui/lib/export.mjs +194 -0
  115. package/tui/lib/folders-command.mjs +84 -0
  116. package/tui/lib/fork-command.mjs +43 -0
  117. package/tui/lib/knowledge-command.mjs +190 -0
  118. package/tui/lib/knowledge-import.mjs +153 -0
  119. package/tui/lib/local-path.mjs +21 -0
  120. package/tui/lib/move-command.mjs +17 -0
  121. package/tui/lib/render.mjs +225 -0
  122. package/tui/lib/save-file.mjs +88 -0
  123. package/tui/lib/select.mjs +81 -0
  124. package/tui/lib/selection.mjs +18 -0
  125. package/tui/lib/setup.mjs +135 -0
  126. package/tui/lib/sidebar.mjs +63 -0
  127. package/tui/lib/skill-connect.mjs +145 -0
  128. package/tui/lib/splash-art.mjs +107 -0
  129. package/tui/lib/splash.mjs +18 -0
  130. package/tui/lib/upload-frames.mjs +9 -0
  131. package/tui/lib/usage.mjs +59 -0
  132. package/tui/lib/wrap.mjs +143 -0
  133. package/tui/main.mjs +279 -0
  134. package/tui/plugins.mjs +158 -0
  135. package/worker/assistant-sidecar.mjs +1 -0
@@ -3736,6 +3736,11 @@
3736
3736
  "name": "memberId",
3737
3737
  "type": "fixed32",
3738
3738
  "version": 1
3739
+ },
3740
+ {
3741
+ "name": "chatId",
3742
+ "type": "string",
3743
+ "version": 1
3739
3744
  }
3740
3745
  ]
3741
3746
  },
@@ -3758,6 +3763,26 @@
3758
3763
  }
3759
3764
  ]
3760
3765
  },
3766
+ {
3767
+ "name": "approval-rule-id",
3768
+ "namespace": "assistant",
3769
+ "compact": false,
3770
+ "flagsPosition": -1,
3771
+ "fields": [
3772
+ {
3773
+ "name": "ruleId",
3774
+ "required": true,
3775
+ "type": "string",
3776
+ "version": 1
3777
+ },
3778
+ {
3779
+ "name": "meshId",
3780
+ "required": true,
3781
+ "type": "string",
3782
+ "version": 1
3783
+ }
3784
+ ]
3785
+ },
3761
3786
  {
3762
3787
  "name": "chunks-by-chat-request",
3763
3788
  "namespace": "assistant",
@@ -9460,6 +9485,21 @@
9460
9485
  "required": false,
9461
9486
  "type": "bool",
9462
9487
  "version": 1
9488
+ },
9489
+ {
9490
+ "name": "totalBytes",
9491
+ "type": "uint",
9492
+ "version": 1
9493
+ },
9494
+ {
9495
+ "name": "source",
9496
+ "type": "string",
9497
+ "version": 1
9498
+ },
9499
+ {
9500
+ "name": "gpuClass",
9501
+ "type": "string",
9502
+ "version": 1
9463
9503
  }
9464
9504
  ]
9465
9505
  },
@@ -10214,6 +10254,193 @@
10214
10254
  "version": 1
10215
10255
  }
10216
10256
  ]
10257
+ },
10258
+ {
10259
+ "name": "quarantined-skill-keys",
10260
+ "namespace": "assistant",
10261
+ "compact": false,
10262
+ "flagsPosition": -1,
10263
+ "fields": [
10264
+ {
10265
+ "name": "keys",
10266
+ "required": true,
10267
+ "array": true,
10268
+ "type": "string",
10269
+ "version": 1
10270
+ }
10271
+ ]
10272
+ },
10273
+ {
10274
+ "name": "skill-oauth-operation",
10275
+ "namespace": "assistant",
10276
+ "offset": 1,
10277
+ "enum": [
10278
+ {
10279
+ "key": "target",
10280
+ "version": 1
10281
+ },
10282
+ {
10283
+ "key": "config",
10284
+ "version": 1
10285
+ },
10286
+ {
10287
+ "key": "connect",
10288
+ "version": 1
10289
+ },
10290
+ {
10291
+ "key": "callback",
10292
+ "version": 1
10293
+ },
10294
+ {
10295
+ "key": "cancel",
10296
+ "version": 1
10297
+ },
10298
+ {
10299
+ "key": "disconnect",
10300
+ "version": 1
10301
+ }
10302
+ ],
10303
+ "strings": true
10304
+ },
10305
+ {
10306
+ "name": "skill-oauth-phase",
10307
+ "namespace": "assistant",
10308
+ "offset": 1,
10309
+ "enum": [
10310
+ {
10311
+ "key": "unavailable",
10312
+ "version": 1
10313
+ },
10314
+ {
10315
+ "key": "local",
10316
+ "version": 1
10317
+ },
10318
+ {
10319
+ "key": "ready",
10320
+ "version": 1
10321
+ },
10322
+ {
10323
+ "key": "authorize",
10324
+ "version": 1
10325
+ },
10326
+ {
10327
+ "key": "connected",
10328
+ "version": 1
10329
+ },
10330
+ {
10331
+ "key": "needs-config",
10332
+ "version": 1
10333
+ },
10334
+ {
10335
+ "key": "refused",
10336
+ "version": 1
10337
+ },
10338
+ {
10339
+ "key": "error",
10340
+ "version": 1
10341
+ }
10342
+ ],
10343
+ "strings": true
10344
+ },
10345
+ {
10346
+ "name": "skill-oauth-request",
10347
+ "namespace": "assistant",
10348
+ "compact": false,
10349
+ "flagsPosition": 3,
10350
+ "fields": [
10351
+ {
10352
+ "name": "operation",
10353
+ "required": true,
10354
+ "type": "@assistant/skill-oauth-operation",
10355
+ "version": 1
10356
+ },
10357
+ {
10358
+ "name": "agentId",
10359
+ "required": true,
10360
+ "type": "string",
10361
+ "version": 1
10362
+ },
10363
+ {
10364
+ "name": "credentialKey",
10365
+ "required": true,
10366
+ "type": "string",
10367
+ "version": 1
10368
+ },
10369
+ {
10370
+ "name": "deviceId",
10371
+ "type": "fixed32",
10372
+ "version": 1
10373
+ },
10374
+ {
10375
+ "name": "attemptId",
10376
+ "type": "string",
10377
+ "version": 1
10378
+ },
10379
+ {
10380
+ "name": "clientId",
10381
+ "type": "string",
10382
+ "version": 1
10383
+ },
10384
+ {
10385
+ "name": "clientSecret",
10386
+ "type": "string",
10387
+ "version": 1
10388
+ },
10389
+ {
10390
+ "name": "address",
10391
+ "type": "string",
10392
+ "version": 1
10393
+ },
10394
+ {
10395
+ "name": "meshId",
10396
+ "type": "string",
10397
+ "version": 1
10398
+ }
10399
+ ]
10400
+ },
10401
+ {
10402
+ "name": "skill-oauth-response",
10403
+ "namespace": "assistant",
10404
+ "compact": false,
10405
+ "flagsPosition": 1,
10406
+ "fields": [
10407
+ {
10408
+ "name": "phase",
10409
+ "required": true,
10410
+ "type": "@assistant/skill-oauth-phase",
10411
+ "version": 1
10412
+ },
10413
+ {
10414
+ "name": "deviceId",
10415
+ "type": "fixed32",
10416
+ "version": 1
10417
+ },
10418
+ {
10419
+ "name": "url",
10420
+ "type": "string",
10421
+ "version": 1
10422
+ },
10423
+ {
10424
+ "name": "clientId",
10425
+ "type": "bool",
10426
+ "version": 1
10427
+ },
10428
+ {
10429
+ "name": "clientSecret",
10430
+ "type": "bool",
10431
+ "version": 1
10432
+ },
10433
+ {
10434
+ "name": "savedClientId",
10435
+ "type": "string",
10436
+ "version": 1
10437
+ },
10438
+ {
10439
+ "name": "error",
10440
+ "type": "string",
10441
+ "version": 1
10442
+ }
10443
+ ]
10217
10444
  }
10218
10445
  ]
10219
10446
  }
@@ -756,6 +756,7 @@ export interface AssistantApprovalRule {
756
756
  agentId?: string | null
757
757
  effect?: string | null
758
758
  memberId?: Buffer | null
759
+ chatId?: string | null
759
760
  }
760
761
 
761
762
  export interface AssistantApprovalRuleList {
@@ -763,6 +764,11 @@ export interface AssistantApprovalRuleList {
763
764
  ourMemberId?: Buffer | null
764
765
  }
765
766
 
767
+ export interface AssistantApprovalRuleId {
768
+ ruleId: string
769
+ meshId: string
770
+ }
771
+
766
772
  export interface AssistantChunksByChatRequest {
767
773
  chatId: string
768
774
  type?: AssistantChunkType | null
@@ -2019,6 +2025,9 @@ export interface AssistantModelMemory {
2019
2025
  capBytes: number
2020
2026
  usedBytes: number
2021
2027
  overCap?: boolean
2028
+ totalBytes?: number
2029
+ source?: string | null
2030
+ gpuClass?: string | null
2022
2031
  }
2023
2032
 
2024
2033
  export interface AssistantDeviceScope {
@@ -2200,6 +2209,36 @@ export interface AssistantFilesReadyRequest {
2200
2209
  fileIds: string[]
2201
2210
  }
2202
2211
 
2212
+ export interface AssistantQuarantinedSkillKeys {
2213
+ keys: string[]
2214
+ }
2215
+
2216
+ export type AssistantSkillOauthOperation = "target" | "config" | "connect" | "callback" | "cancel" | "disconnect"
2217
+
2218
+ export type AssistantSkillOauthPhase = "unavailable" | "local" | "ready" | "authorize" | "connected" | "needs-config" | "refused" | "error"
2219
+
2220
+ export interface AssistantSkillOauthRequest {
2221
+ operation: AssistantSkillOauthOperation
2222
+ agentId: string
2223
+ credentialKey: string
2224
+ deviceId?: Buffer | null
2225
+ attemptId?: string | null
2226
+ clientId?: string | null
2227
+ clientSecret?: string | null
2228
+ address?: string | null
2229
+ meshId?: string | null
2230
+ }
2231
+
2232
+ export interface AssistantSkillOauthResponse {
2233
+ phase: AssistantSkillOauthPhase
2234
+ deviceId?: Buffer | null
2235
+ url?: string | null
2236
+ clientId?: boolean
2237
+ clientSecret?: boolean
2238
+ savedClientId?: string | null
2239
+ error?: string | null
2240
+ }
2241
+
2203
2242
  export interface SchemaTypes {
2204
2243
  "@assistant/empty": AssistantEmpty
2205
2244
  "@assistant/ok-response": AssistantOkResponse
@@ -2323,6 +2362,7 @@ export interface SchemaTypes {
2323
2362
  "@assistant/approval-decision": AssistantApprovalDecision
2324
2363
  "@assistant/approval-rule": AssistantApprovalRule
2325
2364
  "@assistant/approval-rule-list": AssistantApprovalRuleList
2365
+ "@assistant/approval-rule-id": AssistantApprovalRuleId
2326
2366
  "@assistant/chunks-by-chat-request": AssistantChunksByChatRequest
2327
2367
  "@assistant/media-kind": AssistantMediaKind
2328
2368
  "@assistant/attachment-origin": AssistantAttachmentOrigin
@@ -2556,4 +2596,9 @@ export interface SchemaTypes {
2556
2596
  "@assistant/host-run-log-append-request": AssistantHostRunLogAppendRequest
2557
2597
  "@assistant/host-run-log-release-request": AssistantHostRunLogReleaseRequest
2558
2598
  "@assistant/files-ready-request": AssistantFilesReadyRequest
2599
+ "@assistant/quarantined-skill-keys": AssistantQuarantinedSkillKeys
2600
+ "@assistant/skill-oauth-operation": AssistantSkillOauthOperation
2601
+ "@assistant/skill-oauth-phase": AssistantSkillOauthPhase
2602
+ "@assistant/skill-oauth-request": AssistantSkillOauthRequest
2603
+ "@assistant/skill-oauth-response": AssistantSkillOauthResponse
2559
2604
  }
@@ -1477,6 +1477,116 @@
1477
1477
  },
1478
1478
  "map": "terminalRunStatusesMap"
1479
1479
  }
1480
+ },
1481
+ {
1482
+ "name": "project-host-seals",
1483
+ "namespace": "qvac",
1484
+ "id": 83,
1485
+ "type": 1,
1486
+ "version": 12,
1487
+ "versionField": null,
1488
+ "indexes": [
1489
+ "@qvac/project-host-seals-by-device"
1490
+ ],
1491
+ "schema": "@qvac/project-host-seal",
1492
+ "derived": false,
1493
+ "key": [
1494
+ "projectId",
1495
+ "deviceId",
1496
+ "sealedBy"
1497
+ ],
1498
+ "trigger": null
1499
+ },
1500
+ {
1501
+ "name": "project-host-seals-by-device",
1502
+ "namespace": "qvac",
1503
+ "id": 84,
1504
+ "type": 2,
1505
+ "version": 12,
1506
+ "collection": "@qvac/project-host-seals",
1507
+ "unique": false,
1508
+ "deprecated": false,
1509
+ "key": [
1510
+ "deviceId"
1511
+ ]
1512
+ },
1513
+ {
1514
+ "name": "project-member-seals",
1515
+ "namespace": "qvac",
1516
+ "id": 85,
1517
+ "type": 1,
1518
+ "version": 12,
1519
+ "versionField": null,
1520
+ "indexes": [
1521
+ "@qvac/project-member-seals-by-member"
1522
+ ],
1523
+ "schema": "@qvac/project-member-seal",
1524
+ "derived": false,
1525
+ "key": [
1526
+ "projectId",
1527
+ "memberId",
1528
+ "sealedBy"
1529
+ ],
1530
+ "trigger": null
1531
+ },
1532
+ {
1533
+ "name": "project-member-seals-by-member",
1534
+ "namespace": "qvac",
1535
+ "id": 86,
1536
+ "type": 2,
1537
+ "version": 12,
1538
+ "collection": "@qvac/project-member-seals",
1539
+ "unique": false,
1540
+ "deprecated": false,
1541
+ "key": [
1542
+ "memberId"
1543
+ ]
1544
+ },
1545
+ {
1546
+ "name": "project-device-seals",
1547
+ "namespace": "qvac",
1548
+ "id": 87,
1549
+ "type": 1,
1550
+ "version": 12,
1551
+ "versionField": null,
1552
+ "indexes": [
1553
+ "@qvac/project-device-seals-by-device",
1554
+ "@qvac/project-device-seals-by-member"
1555
+ ],
1556
+ "schema": "@qvac/project-device-seal",
1557
+ "derived": false,
1558
+ "key": [
1559
+ "projectId",
1560
+ "deviceId",
1561
+ "sealedBy"
1562
+ ],
1563
+ "trigger": null
1564
+ },
1565
+ {
1566
+ "name": "project-device-seals-by-device",
1567
+ "namespace": "qvac",
1568
+ "id": 88,
1569
+ "type": 2,
1570
+ "version": 12,
1571
+ "collection": "@qvac/project-device-seals",
1572
+ "unique": false,
1573
+ "deprecated": false,
1574
+ "key": [
1575
+ "deviceId"
1576
+ ]
1577
+ },
1578
+ {
1579
+ "name": "project-device-seals-by-member",
1580
+ "namespace": "qvac",
1581
+ "id": 89,
1582
+ "type": 2,
1583
+ "version": 12,
1584
+ "collection": "@qvac/project-device-seals",
1585
+ "unique": false,
1586
+ "deprecated": false,
1587
+ "key": [
1588
+ "memberId"
1589
+ ]
1480
1590
  }
1481
1591
  ]
1482
1592
  }