@qvac/harness 0.8.12 → 0.8.14

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 (49) hide show
  1. package/CHANGELOG.md +101 -1
  2. package/dist-lib/index.js +9 -4
  3. package/dist-lib/lib/capabilities/completion.d.ts +6 -1
  4. package/dist-lib/lib/capabilities/completion.js +135 -66
  5. package/dist-lib/lib/capabilities/tool-turns.d.ts +1 -0
  6. package/dist-lib/lib/capabilities/tool-turns.js +14 -3
  7. package/dist-lib/lib/connect.js +3 -2
  8. package/dist-lib/lib/contract-types.d.ts +1 -0
  9. package/dist-lib/lib/hardware/cpu-placement.d.ts +8 -0
  10. package/dist-lib/lib/hardware/cpu-placement.js +48 -0
  11. package/dist-lib/lib/models/custom-model-cache.d.ts +1 -0
  12. package/dist-lib/lib/models/custom-model-cache.js +3 -0
  13. package/dist-lib/lib/models/gguf-header.d.ts +6 -0
  14. package/dist-lib/lib/models/gguf-header.js +38 -1
  15. package/dist-lib/lib/models/kv-cache.d.ts +2 -0
  16. package/dist-lib/lib/models/kv-cache.js +8 -0
  17. package/dist-lib/lib/models/llm-presets.d.ts +2 -1
  18. package/dist-lib/lib/models/model-handle.d.ts +1 -0
  19. package/dist-lib/lib/models/model-pool.d.ts +6 -1
  20. package/dist-lib/lib/models/model-pool.js +20 -8
  21. package/dist-lib/lib/no-redirect-fetch-impl.d.ts +1 -0
  22. package/dist-lib/lib/no-redirect-fetch-impl.js +32 -1
  23. package/dist-lib/lib/prompt.d.ts +6 -3
  24. package/dist-lib/lib/prompt.js +28 -17
  25. package/dist-lib/lib/serve.js +3 -2
  26. package/dist-lib/lib/tools/edit-image.js +4 -3
  27. package/dist-lib/lib/tools/exec/adapters/python/attachments.d.ts +1 -0
  28. package/dist-lib/lib/tools/exec/adapters/python/attachments.js +11 -0
  29. package/dist-lib/lib/tools/generate-image.js +4 -3
  30. package/dist-lib/lib/tools/http-request/request.d.ts +3 -1
  31. package/dist-lib/lib/tools/http-request/request.js +2 -1
  32. package/dist-lib/lib/tools/http-request/truncate-response.d.ts +17 -1
  33. package/dist-lib/lib/tools/http-request/truncate-response.js +51 -9
  34. package/dist-lib/lib/tools/http-request.js +12 -6
  35. package/dist-lib/lib/tools/office/ops.d.ts +1 -0
  36. package/dist-lib/lib/tools/office/ops.js +5 -1
  37. package/dist-lib/lib/tools/office.d.ts +1 -0
  38. package/dist-lib/lib/tools/office.js +151 -21
  39. package/dist-lib/lib/tools/operations/compile.js +4 -4
  40. package/dist-lib/lib/tools/skills/credential-check.d.ts +1 -0
  41. package/dist-lib/lib/tools/skills/credential-check.js +1 -0
  42. package/dist-lib/lib/tools/skills/manifest-parse.js +27 -3
  43. package/dist-lib/lib/tools/skills/manifest.d.ts +1 -0
  44. package/dist-lib/schema/harness.js +2 -1
  45. package/dist-lib/spec/hrpc/messages.js +8 -5
  46. package/dist-lib/spec/hyperschema/index.js +8 -5
  47. package/dist-lib/spec/hyperschema/schema.json +6 -1
  48. package/dist-lib/spec/hyperschema/types.d.ts +2 -1
  49. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  // This file is autogenerated by the hyperschema compiler
2
- // Schema Version: 21
2
+ // Schema Version: 22
3
3
  /* eslint-disable camelcase */
4
4
  /* eslint-disable quotes */
5
5
  /* eslint-disable space-before-function-paren */
6
6
 
7
7
  import { c } from 'hyperschema/runtime'
8
8
 
9
- const VERSION = 21
9
+ const VERSION = 22
10
10
 
11
11
  // eslint-disable-next-line no-unused-vars
12
12
  let version = VERSION
@@ -303,18 +303,20 @@ const encoding7 = {
303
303
  preencode(state, m) {
304
304
  encoding5.preencode(state, m.role)
305
305
  c.string.preencode(state, m.content)
306
- state.end++ // max flag is 1 so always one byte
306
+ state.end++ // max flag is 2 so always one byte
307
307
 
308
308
  if (m.attachments) encoding7_2.preencode(state, m.attachments)
309
+ if (version >= 22 && m.sentAt) c.uint.preencode(state, m.sentAt)
309
310
  },
310
311
  encode(state, m) {
311
- const flags = m.attachments ? 1 : 0
312
+ const flags = (m.attachments ? 1 : 0) | ((version >= 22 && m.sentAt) ? 2 : 0)
312
313
 
313
314
  encoding5.encode(state, m.role)
314
315
  c.string.encode(state, m.content)
315
316
  c.uint.encode(state, flags)
316
317
 
317
318
  if (m.attachments) encoding7_2.encode(state, m.attachments)
319
+ if (version >= 22 && m.sentAt) c.uint.encode(state, m.sentAt)
318
320
  },
319
321
  decode(state) {
320
322
  const r0 = encoding5.decode(state)
@@ -324,7 +326,8 @@ const encoding7 = {
324
326
  return {
325
327
  role: r0,
326
328
  content: r1,
327
- attachments: (flags & 1) !== 0 ? encoding7_2.decode(state) : null
329
+ attachments: (flags & 1) !== 0 ? encoding7_2.decode(state) : null,
330
+ sentAt: (version >= 22 && (flags & 2) !== 0) ? c.uint.decode(state) : 0
328
331
  }
329
332
  }
330
333
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 21,
2
+ "version": 22,
3
3
  "schema": [
4
4
  {
5
5
  "name": "empty",
@@ -220,6 +220,11 @@
220
220
  "array": true,
221
221
  "type": "@harness/message-attachment",
222
222
  "version": 1
223
+ },
224
+ {
225
+ "name": "sentAt",
226
+ "type": "uint",
227
+ "version": 22
223
228
  }
224
229
  ]
225
230
  },
@@ -1,5 +1,5 @@
1
1
  // This file is autogenerated by hyperschema-ts
2
- // Schema version: 21
2
+ // Schema version: 22
3
3
  // Do not edit manually.
4
4
 
5
5
  export interface HarnessEmpty {
@@ -44,6 +44,7 @@ export interface HarnessMessage {
44
44
  role: HarnessMessageRole
45
45
  content: string
46
46
  attachments?: HarnessMessageAttachment[] | null
47
+ sentAt?: number
47
48
  }
48
49
 
49
50
  export interface HarnessResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/harness",
3
- "version": "0.8.12",
3
+ "version": "0.8.14",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "bare": ">=1.34.0"
@@ -819,7 +819,7 @@
819
819
  "bare-stream": "^2.13.3",
820
820
  "bare-subprocess": "^6.1.0",
821
821
  "bare-supervisor": "^0.1.1",
822
- "bare-tls": "^3.1.7",
822
+ "bare-tls": "^3.1.13",
823
823
  "bare-tty": "^5.1.2",
824
824
  "bare-url": "^2.4.5",
825
825
  "bare-worker": "^4.5.0",