@qvac/harness 0.1.2 → 0.2.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 (38) hide show
  1. package/dist/harness.bundle +827 -6748
  2. package/dist/prebuilds-manifest.json +0 -7
  3. package/dist-lib/index.d.ts +1 -0
  4. package/dist-lib/index.js +21 -4
  5. package/dist-lib/lib/audio-transcode-bare.js +20 -20
  6. package/dist-lib/lib/capabilities/completion.d.ts +6 -0
  7. package/dist-lib/lib/capabilities/completion.js +48 -15
  8. package/dist-lib/lib/capabilities/download.d.ts +2 -0
  9. package/dist-lib/lib/capabilities/download.js +12 -3
  10. package/dist-lib/lib/capabilities/kv-cache.d.ts +1 -0
  11. package/dist-lib/lib/capabilities/kv-cache.js +7 -1
  12. package/dist-lib/lib/capabilities/tool-prompt-log.d.ts +23 -0
  13. package/dist-lib/lib/capabilities/tool-prompt-log.js +62 -0
  14. package/dist-lib/lib/capabilities/tool-selection.d.ts +2 -1
  15. package/dist-lib/lib/capabilities/tool-selection.js +2 -2
  16. package/dist-lib/lib/connect.d.ts +2 -0
  17. package/dist-lib/lib/connect.js +7 -1
  18. package/dist-lib/lib/contract-types.d.ts +1 -0
  19. package/dist-lib/lib/models/model-pool.d.ts +1 -1
  20. package/dist-lib/lib/sdk-loader.d.ts +1 -1
  21. package/dist-lib/lib/sdk-loader.js +1 -1
  22. package/dist-lib/lib/serve.js +2 -0
  23. package/dist-lib/lib/tools/exec.js +60 -8
  24. package/dist-lib/lib/tools/generate-image.d.ts +2 -1
  25. package/dist-lib/lib/tools/generate-image.js +2 -1
  26. package/dist-lib/lib/tools/skill.js +16 -0
  27. package/dist-lib/lib/wire.d.ts +1 -0
  28. package/dist-lib/lib/wire.js +6 -2
  29. package/dist-lib/schema/harness.js +12 -2
  30. package/dist-lib/spec/bind.js +3 -0
  31. package/dist-lib/spec/calls.js +1 -0
  32. package/dist-lib/spec/hrpc/hrpc.json +13 -0
  33. package/dist-lib/spec/hrpc/index.js +15 -3
  34. package/dist-lib/spec/hrpc/messages.js +35 -5
  35. package/dist-lib/spec/hyperschema/index.js +35 -5
  36. package/dist-lib/spec/hyperschema/schema.json +23 -0
  37. package/dist-lib/spec/hyperschema/types.d.ts +7 -1
  38. package/package.json +20 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/harness",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "An AI harness implementing generate(context) via @qvac/sdk. Knows nothing about workbench, hyperdb, or chunks — just inference in, events out.",
6
6
  "exports": {
@@ -226,7 +226,7 @@
226
226
  },
227
227
  "scripts": {
228
228
  "build:schema": "bare schema/build.ts",
229
- "test": "npm run test:node && npm run test:bare",
229
+ "test": "npm run test:node && npm run test:bare && npm run test:addons",
230
230
  "test:node": "QVAC_NO_SKILL_BIN_PROBE=1 brittle-node test/all.ts | prettytap",
231
231
  "test:bare": "QVAC_NO_SKILL_BIN_PROBE=1 brittle-bare test/all.ts | prettytap",
232
232
  "format": "prettier . --write",
@@ -234,7 +234,8 @@
234
234
  "build:bundle": "node scripts/build-bundle.mjs",
235
235
  "prepack": "node scripts/vendor-python-wheels.mjs && node scripts/build-lib.mjs && node scripts/build-bundle.mjs --minify",
236
236
  "vendor:wheels": "node scripts/vendor-python-wheels.mjs",
237
- "build:lib": "node scripts/build-lib.mjs"
237
+ "build:lib": "node scripts/build-lib.mjs",
238
+ "test:addons": "node --test scripts/addon-externals.test.cjs"
238
239
  },
239
240
  "prettier": "prettier-config-holepunch",
240
241
  "imports": {
@@ -311,11 +312,17 @@
311
312
  "buffer": {
312
313
  "bare": "bare-buffer",
313
314
  "default": "buffer"
315
+ },
316
+ "#sdk": {
317
+ "types": "@qvac/sdk",
318
+ "bare": "@qvac/inference",
319
+ "default": "@qvac/sdk"
314
320
  }
315
321
  },
316
322
  "dependencies": {
317
- "@qvac/sdk": "^0.18.2",
318
- "@qvac/skills": "^0.1.2",
323
+ "@qvac/inference": "0.19.0",
324
+ "@qvac/sdk": "0.19.0",
325
+ "@qvac/skills": "^0.1.3",
319
326
  "asenion": "^0.1.0",
320
327
  "b4a": "^1.8.1",
321
328
  "bare-abort-controller": "^1.1.2",
@@ -329,7 +336,7 @@
329
336
  "bare-file-logger": "^1.2.1",
330
337
  "bare-fs": "^4.7.2",
331
338
  "bare-gpu-info": "^0.1.1",
332
- "bare-http1": "^4.5.7",
339
+ "bare-http1": "4.5.9",
333
340
  "bare-https": "^3.0.0",
334
341
  "bare-image-resample": "^1.0.2",
335
342
  "bare-media": "^2.10.0",
@@ -372,7 +379,7 @@
372
379
  "bare-semver": "^1.1.0",
373
380
  "brittle": "^4.0.2",
374
381
  "corestore": "^7.11.0",
375
- "holepunch-types": "^0.1.0",
382
+ "holepunch-types": "^0.2.1",
376
383
  "hyperdrive": "^13.3.3",
377
384
  "lunte": "^1.8.3",
378
385
  "prettier": "^3.6.2",
@@ -386,8 +393,8 @@
386
393
  "bare-sidecar@0.5.4": "patches/bare-sidecar@0.5.4.patch",
387
394
  "localwatch@1.4.3": "patches/localwatch@1.4.3.patch",
388
395
  "hypercore-blob-server@1.15.0": "patches/hypercore-blob-server@1.15.0.patch",
389
- "@qvac/sdk@0.18.2": "patches/@qvac%2Fsdk@0.18.2.patch",
390
- "bare-stow@0.1.5": "patches/bare-stow@0.1.5.patch"
396
+ "bare-stow@0.1.5": "patches/bare-stow@0.1.5.patch",
397
+ "@qvac/inference@0.19.0": "patches/@qvac%2Finference@0.19.0.patch"
391
398
  },
392
399
  "repository": {
393
400
  "type": "git",
@@ -407,10 +414,11 @@
407
414
  "lodash": "4.18.1",
408
415
  "hyperschema": "^1.23.0",
409
416
  "hyperdb": "^6.8.0",
410
- "hyperbee2": "^2.13.2",
411
- "hypercore": "^11.35.3",
417
+ "hyperbee2": "^2.14.1",
418
+ "hypercore": "^11.36.1",
412
419
  "tar": "^7.5.22",
413
- "autobee": "2.1.1"
420
+ "autobee": "^2.6.0",
421
+ "bare-http1": "4.5.9"
414
422
  },
415
423
  "publishConfig": {
416
424
  "access": "public"