@qvac/core 0.6.3 → 1.0.0-rc.0

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 (65) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +4 -12
  3. package/dist-lib/lib/api/host-run-log.d.ts +43 -0
  4. package/dist-lib/lib/api/host-run-log.js +97 -0
  5. package/dist-lib/lib/api/index.d.ts +3 -0
  6. package/dist-lib/lib/api/index.js +9 -0
  7. package/dist-lib/lib/api/instrument.js +33 -2
  8. package/dist-lib/lib/assistant/harness.d.ts +4 -1
  9. package/dist-lib/lib/assistant/history.d.ts +7 -2
  10. package/dist-lib/lib/assistant/history.js +34 -3
  11. package/dist-lib/lib/assistant/host-run-log.d.ts +3 -0
  12. package/dist-lib/lib/assistant/host-run-log.js +48 -0
  13. package/dist-lib/lib/assistant.d.ts +2 -0
  14. package/dist-lib/lib/assistant.js +817 -412
  15. package/dist-lib/lib/core/async-iterable.js +1 -1
  16. package/dist-lib/lib/core/chat-activity.d.ts +1 -1
  17. package/dist-lib/lib/core/chat-activity.js +16 -1
  18. package/dist-lib/lib/core/chat-search.js +11 -4
  19. package/dist-lib/lib/core/chunk.d.ts +3 -3
  20. package/dist-lib/lib/core/chunk.js +6 -2
  21. package/dist-lib/lib/core/files/rag/limits.d.ts +0 -1
  22. package/dist-lib/lib/core/files/rag/limits.js +0 -1
  23. package/dist-lib/lib/core/harness-loan.js +4 -0
  24. package/dist-lib/lib/core/host-run-log-store.d.ts +114 -0
  25. package/dist-lib/lib/core/host-run-log-store.js +976 -0
  26. package/dist-lib/lib/core/prompt-history.js +3 -1
  27. package/dist-lib/lib/core/transcript-visibility.d.ts +19 -0
  28. package/dist-lib/lib/core/transcript-visibility.js +47 -0
  29. package/dist-lib/lib/core.d.ts +2 -0
  30. package/dist-lib/lib/core.js +36 -2
  31. package/dist-lib/lib/custom-model-pusher.js +9 -5
  32. package/dist-lib/lib/mesh-scoped-engine.js +5 -0
  33. package/dist-lib/lib/run-transcript.d.ts +10 -3
  34. package/dist-lib/lib/run-transcript.js +23 -5
  35. package/dist-lib/lib/task.js +6 -1
  36. package/dist-lib/schema/content.d.ts +1 -0
  37. package/dist-lib/schema/content.js +15 -3
  38. package/dist-lib/schema/engine.js +90 -3
  39. package/dist-lib/schema/indexes.js +10 -1
  40. package/dist-lib/schema/qvac.js +10 -2
  41. package/dist-lib/spec/bind.js +15 -0
  42. package/dist-lib/spec/calls.js +5 -0
  43. package/dist-lib/spec/capabilities.d.ts +10 -0
  44. package/dist-lib/spec/hrpc/hrpc.json +164 -99
  45. package/dist-lib/spec/hrpc/index.js +260 -200
  46. package/dist-lib/spec/hrpc/messages.js +1202 -898
  47. package/dist-lib/spec/hyperschema/index.js +1202 -898
  48. package/dist-lib/spec/hyperschema/schema.json +265 -0
  49. package/dist-lib/spec/hyperschema/types.d.ts +65 -3
  50. package/dist-lib/spec/mesh/hyperdb/messages.js +385 -241
  51. package/dist-lib/spec/mesh/hyperdispatch/messages.js +138 -12
  52. package/dist-lib/spec/mesh/hyperschema/index.js +138 -12
  53. package/dist-lib/spec/mesh/hyperschema/schema.json +79 -1
  54. package/dist-lib/spec/mesh/hyperschema/types.d.ts +19 -3
  55. package/package.json +3 -7
  56. package/dist-lib/lib/collabora/convert.d.ts +0 -9
  57. package/dist-lib/lib/collabora/convert.js +0 -65
  58. package/dist-lib/lib/collabora/entry.d.ts +0 -1
  59. package/dist-lib/lib/collabora/entry.js +0 -42
  60. package/dist-lib/lib/collabora/protocol.d.ts +0 -15
  61. package/dist-lib/lib/collabora/protocol.js +0 -31
  62. package/dist-lib/lib/collabora/worker.d.ts +0 -5
  63. package/dist-lib/lib/collabora/worker.js +0 -177
  64. package/dist-lib/lib/core/files/rag/extract/office-collabora.d.ts +0 -2
  65. package/dist-lib/lib/core/files/rag/extract/office-collabora.js +0 -8
@@ -1020,6 +1020,14 @@
1020
1020
  {
1021
1021
  "key": "awaiting-approval",
1022
1022
  "version": 1
1023
+ },
1024
+ {
1025
+ "key": "paused",
1026
+ "version": 1
1027
+ },
1028
+ {
1029
+ "key": "recovery-required",
1030
+ "version": 1
1023
1031
  }
1024
1032
  ],
1025
1033
  "strings": true
@@ -1866,6 +1874,10 @@
1866
1874
  {
1867
1875
  "key": "compaction",
1868
1876
  "version": 1
1877
+ },
1878
+ {
1879
+ "key": "round-reset",
1880
+ "version": 1
1869
1881
  }
1870
1882
  ],
1871
1883
  "strings": true
@@ -1890,6 +1902,14 @@
1890
1902
  {
1891
1903
  "key": "canceled",
1892
1904
  "version": 1
1905
+ },
1906
+ {
1907
+ "key": "paused",
1908
+ "version": 1
1909
+ },
1910
+ {
1911
+ "key": "recovery-required",
1912
+ "version": 1
1893
1913
  }
1894
1914
  ],
1895
1915
  "strings": true
@@ -2374,6 +2394,32 @@
2374
2394
  }
2375
2395
  ]
2376
2396
  },
2397
+ {
2398
+ "name": "chunk-content-round-reset-v1",
2399
+ "namespace": "assistant",
2400
+ "compact": false,
2401
+ "flagsPosition": 0,
2402
+ "fields": [
2403
+ {
2404
+ "name": "replacedTypes",
2405
+ "array": true,
2406
+ "type": "@assistant/chunk-type",
2407
+ "version": 1
2408
+ }
2409
+ ]
2410
+ },
2411
+ {
2412
+ "name": "chunk-content-round-reset",
2413
+ "namespace": "assistant",
2414
+ "framed": false,
2415
+ "versions": [
2416
+ {
2417
+ "type": "@assistant/chunk-content-round-reset-v1",
2418
+ "map": null,
2419
+ "version": 1
2420
+ }
2421
+ ]
2422
+ },
2377
2423
  {
2378
2424
  "name": "rag-source",
2379
2425
  "namespace": "assistant",
@@ -2623,6 +2669,26 @@
2623
2669
  "name": "enhance",
2624
2670
  "type": "@assistant/enhance-mode",
2625
2671
  "version": 1
2672
+ },
2673
+ {
2674
+ "name": "round",
2675
+ "type": "uint",
2676
+ "version": 1
2677
+ },
2678
+ {
2679
+ "name": "callId",
2680
+ "type": "string",
2681
+ "version": 1
2682
+ },
2683
+ {
2684
+ "name": "resumed",
2685
+ "type": "bool",
2686
+ "version": 1
2687
+ },
2688
+ {
2689
+ "name": "roundReset",
2690
+ "type": "@assistant/chunk-content-round-reset",
2691
+ "version": 1
2626
2692
  }
2627
2693
  ]
2628
2694
  },
@@ -2781,6 +2847,26 @@
2781
2847
  "name": "enhance",
2782
2848
  "type": "@assistant/enhance-mode",
2783
2849
  "version": 1
2850
+ },
2851
+ {
2852
+ "name": "round",
2853
+ "type": "uint",
2854
+ "version": 1
2855
+ },
2856
+ {
2857
+ "name": "callId",
2858
+ "type": "string",
2859
+ "version": 1
2860
+ },
2861
+ {
2862
+ "name": "resumed",
2863
+ "type": "bool",
2864
+ "version": 1
2865
+ },
2866
+ {
2867
+ "name": "roundReset",
2868
+ "type": "@assistant/chunk-content-round-reset",
2869
+ "version": 1
2784
2870
  }
2785
2871
  ]
2786
2872
  },
@@ -3980,6 +4066,185 @@
3980
4066
  }
3981
4067
  ]
3982
4068
  },
4069
+ {
4070
+ "name": "host-run-log-begin-request",
4071
+ "namespace": "assistant",
4072
+ "compact": false,
4073
+ "flagsPosition": -1,
4074
+ "fields": [
4075
+ {
4076
+ "name": "runId",
4077
+ "required": true,
4078
+ "type": "string",
4079
+ "version": 1
4080
+ },
4081
+ {
4082
+ "name": "meshId",
4083
+ "required": true,
4084
+ "type": "string",
4085
+ "version": 1
4086
+ }
4087
+ ]
4088
+ },
4089
+ {
4090
+ "name": "host-run-log-begin-response",
4091
+ "namespace": "assistant",
4092
+ "compact": false,
4093
+ "flagsPosition": 2,
4094
+ "fields": [
4095
+ {
4096
+ "name": "generation",
4097
+ "required": true,
4098
+ "type": "string",
4099
+ "version": 1
4100
+ },
4101
+ {
4102
+ "name": "digestKey",
4103
+ "required": true,
4104
+ "type": "buffer",
4105
+ "version": 1
4106
+ },
4107
+ {
4108
+ "name": "boot",
4109
+ "type": "json",
4110
+ "version": 1
4111
+ }
4112
+ ]
4113
+ },
4114
+ {
4115
+ "name": "host-run-log-append-request",
4116
+ "namespace": "assistant",
4117
+ "compact": false,
4118
+ "flagsPosition": -1,
4119
+ "fields": [
4120
+ {
4121
+ "name": "runId",
4122
+ "required": true,
4123
+ "type": "string",
4124
+ "version": 1
4125
+ },
4126
+ {
4127
+ "name": "meshId",
4128
+ "required": true,
4129
+ "type": "string",
4130
+ "version": 1
4131
+ },
4132
+ {
4133
+ "name": "generation",
4134
+ "required": true,
4135
+ "type": "string",
4136
+ "version": 1
4137
+ },
4138
+ {
4139
+ "name": "step",
4140
+ "required": true,
4141
+ "type": "json",
4142
+ "version": 1
4143
+ }
4144
+ ]
4145
+ },
4146
+ {
4147
+ "name": "host-run-log-release-request",
4148
+ "namespace": "assistant",
4149
+ "compact": false,
4150
+ "flagsPosition": -1,
4151
+ "fields": [
4152
+ {
4153
+ "name": "runId",
4154
+ "required": true,
4155
+ "type": "string",
4156
+ "version": 1
4157
+ },
4158
+ {
4159
+ "name": "meshId",
4160
+ "required": true,
4161
+ "type": "string",
4162
+ "version": 1
4163
+ },
4164
+ {
4165
+ "name": "generation",
4166
+ "required": true,
4167
+ "type": "string",
4168
+ "version": 1
4169
+ }
4170
+ ]
4171
+ },
4172
+ {
4173
+ "name": "host-run-log-share-request",
4174
+ "namespace": "assistant",
4175
+ "compact": false,
4176
+ "flagsPosition": -1,
4177
+ "fields": [
4178
+ {
4179
+ "name": "runId",
4180
+ "required": true,
4181
+ "type": "string",
4182
+ "version": 1
4183
+ },
4184
+ {
4185
+ "name": "meshId",
4186
+ "required": true,
4187
+ "type": "string",
4188
+ "version": 1
4189
+ }
4190
+ ]
4191
+ },
4192
+ {
4193
+ "name": "host-run-log-share-response",
4194
+ "namespace": "assistant",
4195
+ "compact": false,
4196
+ "flagsPosition": -1,
4197
+ "fields": [
4198
+ {
4199
+ "name": "meshId",
4200
+ "required": true,
4201
+ "type": "string",
4202
+ "version": 1
4203
+ },
4204
+ {
4205
+ "name": "runId",
4206
+ "required": true,
4207
+ "type": "string",
4208
+ "version": 1
4209
+ },
4210
+ {
4211
+ "name": "publicKey",
4212
+ "required": true,
4213
+ "type": "string",
4214
+ "version": 1
4215
+ },
4216
+ {
4217
+ "name": "discoveryKey",
4218
+ "required": true,
4219
+ "type": "string",
4220
+ "version": 1
4221
+ },
4222
+ {
4223
+ "name": "encryptionKey",
4224
+ "required": true,
4225
+ "type": "string",
4226
+ "version": 1
4227
+ },
4228
+ {
4229
+ "name": "physicalLength",
4230
+ "required": true,
4231
+ "type": "uint",
4232
+ "version": 1
4233
+ },
4234
+ {
4235
+ "name": "logicalLength",
4236
+ "required": true,
4237
+ "type": "uint",
4238
+ "version": 1
4239
+ },
4240
+ {
4241
+ "name": "nextSeq",
4242
+ "required": true,
4243
+ "type": "uint",
4244
+ "version": 1
4245
+ }
4246
+ ]
4247
+ },
3983
4248
  {
3984
4249
  "name": "device-info",
3985
4250
  "namespace": "assistant",
@@ -198,7 +198,7 @@ export interface AssistantChatGroupList {
198
198
  groups?: AssistantChatGroup[] | null
199
199
  }
200
200
 
201
- export type AssistantChatActivityState = "queued" | "running" | "generating-image" | "generating-audio" | "transcribing-audio" | "awaiting-approval"
201
+ export type AssistantChatActivityState = "queued" | "running" | "generating-image" | "generating-audio" | "transcribing-audio" | "awaiting-approval" | "paused" | "recovery-required"
202
202
 
203
203
  export interface AssistantChatActivity {
204
204
  id: string
@@ -385,9 +385,9 @@ export interface AssistantSaveDeviceProfileRequest {
385
385
  meshId: string
386
386
  }
387
387
 
388
- export type AssistantChunkType = "user-message" | "content" | "thinking" | "tool-call" | "tool-result" | "attachment" | "approval-request" | "run-status" | "run-request" | "sources" | "compaction"
388
+ export type AssistantChunkType = "user-message" | "content" | "thinking" | "tool-call" | "tool-result" | "attachment" | "approval-request" | "run-status" | "run-request" | "sources" | "compaction" | "round-reset"
389
389
 
390
- export type AssistantRunState = "executing" | "completed" | "failed" | "canceled"
390
+ export type AssistantRunState = "executing" | "completed" | "failed" | "canceled" | "paused" | "recovery-required"
391
391
 
392
392
  export type AssistantApprovalStatus = "pending" | "approved" | "denied"
393
393
 
@@ -486,6 +486,12 @@ export interface AssistantChunkContentCompactionV1 {
486
486
 
487
487
  export type AssistantChunkContentCompaction = (AssistantChunkContentCompactionV1 & { version?: number })
488
488
 
489
+ export interface AssistantChunkContentRoundResetV1 {
490
+ replacedTypes?: AssistantChunkType[] | null
491
+ }
492
+
493
+ export type AssistantChunkContentRoundReset = (AssistantChunkContentRoundResetV1 & { version?: number })
494
+
489
495
  export interface AssistantRagSource {
490
496
  documentId?: string | null
491
497
  title: string
@@ -537,6 +543,10 @@ export interface AssistantChunkV1 {
537
543
  capability?: string | null
538
544
  capabilityArgs?: unknown | null
539
545
  enhance?: AssistantEnhanceMode | null
546
+ round?: number
547
+ callId?: string | null
548
+ resumed?: boolean
549
+ roundReset?: AssistantChunkContentRoundReset | null
540
550
  }
541
551
 
542
552
  export type AssistantChunk = (AssistantChunkV1 & { version?: number })
@@ -570,6 +580,10 @@ export interface AssistantAppendChunkRequest {
570
580
  capability?: string | null
571
581
  capabilityArgs?: unknown | null
572
582
  enhance?: AssistantEnhanceMode | null
583
+ round?: number
584
+ callId?: string | null
585
+ resumed?: boolean
586
+ roundReset?: AssistantChunkContentRoundReset | null
573
587
  }
574
588
 
575
589
  export interface AssistantUpdateChunkRequest {
@@ -825,6 +839,46 @@ export interface AssistantStopRunRequest {
825
839
  meshId: string
826
840
  }
827
841
 
842
+ export interface AssistantHostRunLogBeginRequest {
843
+ runId: string
844
+ meshId: string
845
+ }
846
+
847
+ export interface AssistantHostRunLogBeginResponse {
848
+ generation: string
849
+ digestKey: Buffer
850
+ boot?: unknown | null
851
+ }
852
+
853
+ export interface AssistantHostRunLogAppendRequest {
854
+ runId: string
855
+ meshId: string
856
+ generation: string
857
+ step: unknown
858
+ }
859
+
860
+ export interface AssistantHostRunLogReleaseRequest {
861
+ runId: string
862
+ meshId: string
863
+ generation: string
864
+ }
865
+
866
+ export interface AssistantHostRunLogShareRequest {
867
+ runId: string
868
+ meshId: string
869
+ }
870
+
871
+ export interface AssistantHostRunLogShareResponse {
872
+ meshId: string
873
+ runId: string
874
+ publicKey: string
875
+ discoveryKey: string
876
+ encryptionKey: string
877
+ physicalLength: number
878
+ logicalLength: number
879
+ nextSeq: number
880
+ }
881
+
828
882
  export interface AssistantDeviceInfo {
829
883
  id: Buffer
830
884
  supportsKvCacheDeletion?: boolean
@@ -1871,6 +1925,8 @@ export interface SchemaTypes {
1871
1925
  "@assistant/chunk-content-run-request": AssistantChunkContentRunRequest
1872
1926
  "@assistant/chunk-content-compaction-v1": AssistantChunkContentCompactionV1
1873
1927
  "@assistant/chunk-content-compaction": AssistantChunkContentCompaction
1928
+ "@assistant/chunk-content-round-reset-v1": AssistantChunkContentRoundResetV1
1929
+ "@assistant/chunk-content-round-reset": AssistantChunkContentRoundReset
1874
1930
  "@assistant/rag-source": AssistantRagSource
1875
1931
  "@assistant/chunk-content-sources-v1": AssistantChunkContentSourcesV1
1876
1932
  "@assistant/chunk-content-sources": AssistantChunkContentSources
@@ -1916,6 +1972,12 @@ export interface SchemaTypes {
1916
1972
  "@assistant/send-message-request": AssistantSendMessageRequest
1917
1973
  "@assistant/send-message-response": AssistantSendMessageResponse
1918
1974
  "@assistant/stop-run-request": AssistantStopRunRequest
1975
+ "@assistant/host-run-log-begin-request": AssistantHostRunLogBeginRequest
1976
+ "@assistant/host-run-log-begin-response": AssistantHostRunLogBeginResponse
1977
+ "@assistant/host-run-log-append-request": AssistantHostRunLogAppendRequest
1978
+ "@assistant/host-run-log-release-request": AssistantHostRunLogReleaseRequest
1979
+ "@assistant/host-run-log-share-request": AssistantHostRunLogShareRequest
1980
+ "@assistant/host-run-log-share-response": AssistantHostRunLogShareResponse
1919
1981
  "@assistant/device-info": AssistantDeviceInfo
1920
1982
  "@assistant/identity-phrase": AssistantIdentityPhrase
1921
1983
  "@assistant/diagnostics": AssistantDiagnostics