@qvac/core 1.0.0-rc.5 → 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 (108) hide show
  1. package/CHANGELOG.md +43 -2
  2. package/README.md +55 -4
  3. package/dist-lib/lib/api/agents.d.ts +2 -1
  4. package/dist-lib/lib/api/agents.js +5 -1
  5. package/dist-lib/lib/api/app-config.d.ts +3 -0
  6. package/dist-lib/lib/api/app-config.js +20 -0
  7. package/dist-lib/lib/api/device-routes.d.ts +1 -1
  8. package/dist-lib/lib/api/device-routes.js +3 -1
  9. package/dist-lib/lib/api/index.js +2 -1
  10. package/dist-lib/lib/api/projects.js +3 -4
  11. package/dist-lib/lib/api/served.d.ts +2 -2
  12. package/dist-lib/lib/api/served.js +24 -1
  13. package/dist-lib/lib/assistant/harness.d.ts +3 -0
  14. package/dist-lib/lib/assistant/history.js +14 -2
  15. package/dist-lib/lib/assistant/message.d.ts +1 -0
  16. package/dist-lib/lib/assistant/model-round.d.ts +3 -0
  17. package/dist-lib/lib/assistant/model-round.js +16 -2
  18. package/dist-lib/lib/assistant/round-host.d.ts +2 -0
  19. package/dist-lib/lib/assistant/round-host.js +8 -0
  20. package/dist-lib/lib/assistant-tree.d.ts +2 -0
  21. package/dist-lib/lib/assistant-tree.js +4 -2
  22. package/dist-lib/lib/assistant.d.ts +11 -1
  23. package/dist-lib/lib/assistant.js +115 -8
  24. package/dist-lib/lib/client.js +4 -1
  25. package/dist-lib/lib/core/agent-copies.js +2 -1
  26. package/dist-lib/lib/core/agent-hosting.js +9 -4
  27. package/dist-lib/lib/core/agent.js +2 -1
  28. package/dist-lib/lib/core/chat-copy.d.ts +1 -0
  29. package/dist-lib/lib/core/chat-copy.js +13 -2
  30. package/dist-lib/lib/core/chat.d.ts +0 -1
  31. package/dist-lib/lib/core/chat.js +0 -3
  32. package/dist-lib/lib/core/collections.d.ts +7 -7
  33. package/dist-lib/lib/core/collections.js +7 -7
  34. package/dist-lib/lib/core/contract/project-device-keys.d.ts +4 -2
  35. package/dist-lib/lib/core/contract/project-device-keys.js +12 -12
  36. package/dist-lib/lib/core/contract/project-host-keys.d.ts +5 -3
  37. package/dist-lib/lib/core/contract/project-host-keys.js +22 -11
  38. package/dist-lib/lib/core/contract/projects.d.ts +4 -2
  39. package/dist-lib/lib/core/contract/projects.js +29 -17
  40. package/dist-lib/lib/core/deleted-agent-runs.d.ts +1 -0
  41. package/dist-lib/lib/core/deleted-agent-runs.js +22 -11
  42. package/dist-lib/lib/core/helpers/index.d.ts +1 -1
  43. package/dist-lib/lib/core/helpers/index.js +2 -2
  44. package/dist-lib/lib/core/mesh.d.ts +1 -0
  45. package/dist-lib/lib/core/mesh.js +4 -4
  46. package/dist-lib/lib/core/project-keys.d.ts +5 -2
  47. package/dist-lib/lib/core/project-keys.js +15 -6
  48. package/dist-lib/lib/core/sync/index.js +5 -5
  49. package/dist-lib/lib/core.d.ts +2 -0
  50. package/dist-lib/lib/core.js +102 -25
  51. package/dist-lib/lib/kv-cache-ledger.d.ts +22 -0
  52. package/dist-lib/lib/kv-cache-ledger.js +72 -0
  53. package/dist-lib/lib/kv-cache-retention.d.ts +1 -0
  54. package/dist-lib/lib/kv-cache-retention.js +5 -2
  55. package/dist-lib/lib/model-memory-cap.d.ts +3 -0
  56. package/dist-lib/lib/model-memory-cap.js +15 -6
  57. package/dist-lib/lib/run-replay.d.ts +3 -2
  58. package/dist-lib/lib/run-replay.js +16 -5
  59. package/dist-lib/lib/run-transcript.js +1 -1
  60. package/dist-lib/schema/engine.js +54 -1
  61. package/dist-lib/schema/qvac.js +62 -1
  62. package/dist-lib/spec/bind.js +3 -0
  63. package/dist-lib/spec/calls.js +1 -0
  64. package/dist-lib/spec/capabilities.d.ts +2 -0
  65. package/dist-lib/spec/hrpc/hrpc.json +13 -0
  66. package/dist-lib/spec/hrpc/index.js +15 -3
  67. package/dist-lib/spec/hrpc/messages.js +253 -3
  68. package/dist-lib/spec/hyperschema/index.js +253 -3
  69. package/dist-lib/spec/hyperschema/schema.json +187 -0
  70. package/dist-lib/spec/hyperschema/types.d.ts +33 -0
  71. package/dist-lib/spec/mesh/hyperdb/db.json +110 -0
  72. package/dist-lib/spec/mesh/hyperdb/index.js +498 -2
  73. package/dist-lib/spec/mesh/hyperdb/messages.js +865 -410
  74. package/dist-lib/spec/mesh/hyperdispatch/messages.js +244 -3
  75. package/dist-lib/spec/mesh/hyperschema/index.js +244 -3
  76. package/dist-lib/spec/mesh/hyperschema/schema.json +155 -0
  77. package/dist-lib/spec/mesh/hyperschema/types.d.ts +37 -0
  78. package/package.json +27 -11
  79. package/tui/README.md +190 -0
  80. package/tui/app.mjs +8247 -0
  81. package/tui/boot.mjs +159 -0
  82. package/tui/index.mjs +89 -0
  83. package/tui/lib/boot-timing.mjs +41 -0
  84. package/tui/lib/busy-words.mjs +116 -0
  85. package/tui/lib/connect-sheet.mjs +350 -0
  86. package/tui/lib/device-target.mjs +64 -0
  87. package/tui/lib/export.mjs +194 -0
  88. package/tui/lib/folders-command.mjs +84 -0
  89. package/tui/lib/fork-command.mjs +43 -0
  90. package/tui/lib/knowledge-command.mjs +190 -0
  91. package/tui/lib/knowledge-import.mjs +153 -0
  92. package/tui/lib/local-path.mjs +21 -0
  93. package/tui/lib/move-command.mjs +17 -0
  94. package/tui/lib/render.mjs +225 -0
  95. package/tui/lib/save-file.mjs +88 -0
  96. package/tui/lib/select.mjs +81 -0
  97. package/tui/lib/selection.mjs +18 -0
  98. package/tui/lib/setup.mjs +135 -0
  99. package/tui/lib/sidebar.mjs +63 -0
  100. package/tui/lib/skill-connect.mjs +145 -0
  101. package/tui/lib/splash-art.mjs +107 -0
  102. package/tui/lib/splash.mjs +18 -0
  103. package/tui/lib/upload-frames.mjs +9 -0
  104. package/tui/lib/usage.mjs +59 -0
  105. package/tui/lib/wrap.mjs +143 -0
  106. package/tui/main.mjs +279 -0
  107. package/tui/plugins.mjs +158 -0
  108. package/worker/assistant-sidecar.mjs +1 -0
@@ -9485,6 +9485,21 @@
9485
9485
  "required": false,
9486
9486
  "type": "bool",
9487
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
9488
9503
  }
9489
9504
  ]
9490
9505
  },
@@ -10254,6 +10269,178 @@
10254
10269
  "version": 1
10255
10270
  }
10256
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
+ ]
10257
10444
  }
10258
10445
  ]
10259
10446
  }
@@ -2025,6 +2025,9 @@ export interface AssistantModelMemory {
2025
2025
  capBytes: number
2026
2026
  usedBytes: number
2027
2027
  overCap?: boolean
2028
+ totalBytes?: number
2029
+ source?: string | null
2030
+ gpuClass?: string | null
2028
2031
  }
2029
2032
 
2030
2033
  export interface AssistantDeviceScope {
@@ -2210,6 +2213,32 @@ export interface AssistantQuarantinedSkillKeys {
2210
2213
  keys: string[]
2211
2214
  }
2212
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
+
2213
2242
  export interface SchemaTypes {
2214
2243
  "@assistant/empty": AssistantEmpty
2215
2244
  "@assistant/ok-response": AssistantOkResponse
@@ -2568,4 +2597,8 @@ export interface SchemaTypes {
2568
2597
  "@assistant/host-run-log-release-request": AssistantHostRunLogReleaseRequest
2569
2598
  "@assistant/files-ready-request": AssistantFilesReadyRequest
2570
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
2571
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
  }