@qvac/harness 0.3.2 → 0.3.3

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.
@@ -272,6 +272,14 @@
272
272
  "win32-arm64",
273
273
  "win32-x64"
274
274
  ],
275
+ "bare-tty/node_modules/bare-signals": [
276
+ "darwin-arm64",
277
+ "darwin-x64",
278
+ "linux-arm64",
279
+ "linux-x64",
280
+ "win32-arm64",
281
+ "win32-x64"
282
+ ],
275
283
  "bare-tty": [
276
284
  "darwin-arm64",
277
285
  "darwin-x64",
@@ -29,7 +29,6 @@ import { NETWORK_TOOLSETS, permittedTools } from '../tools/toolsets.js';
29
29
  import { promptPrefixHash } from './prompt-prefix.js';
30
30
  import { logToolPrompt } from './tool-prompt-log.js';
31
31
  import { DIRECT_CALL_ID, loadedSkillFilesFrom, loadedSkillsFrom, TOOL_CONTINUATION_NUDGE, toolResultTurn, withoutSkillLoadTurns } from './tool-turns.js';
32
- import { projectVisionHistory, visionHistoryCacheKey } from './vision-history.js';
33
32
  export function imageSettingsFrom(agent) {
34
33
  if (!agent)
35
34
  return undefined;
@@ -545,7 +544,7 @@ async function* runRecoveredRoundWith(sdk, args, modelId) {
545
544
  const cacheable = candidate.history === args.history;
546
545
  const params = {
547
546
  modelId,
548
- history: projectVisionHistory(candidate.history),
547
+ history: candidate.history,
549
548
  stream: true,
550
549
  tools: args.tools,
551
550
  generationParams: args.generationParams,
@@ -798,7 +797,7 @@ export async function* completion(sdk, { modelId, acquireRound, model, agent, ct
798
797
  }
799
798
  logSelection();
800
799
  let history = annotateLastUserTime(systemContent ? [{ role: 'system', content: systemContent }, ...turns] : turns);
801
- let roundCacheKey = stubDropped ? undefined : visionHistoryCacheKey(cacheKey, history);
800
+ let roundCacheKey = stubDropped ? undefined : cacheKey;
802
801
  const runUsage = () => usageBreakdown(promptParts, stats.cacheTokens, model);
803
802
  const denied = new Set();
804
803
  const failed = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/harness",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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": {
@@ -694,10 +694,10 @@
694
694
  }
695
695
  },
696
696
  "dependencies": {
697
- "@qvac/inference": "0.19.0",
697
+ "@qvac/inference": "0.20.0",
698
698
  "@qvac/langdetect-text": "0.1.2",
699
- "@qvac/sdk": "0.19.0",
700
- "@qvac/skills": "0.1.7",
699
+ "@qvac/sdk": "0.20.0",
700
+ "@qvac/skills": "0.1.9",
701
701
  "asenion": "^0.1.0",
702
702
  "b4a": "^1.8.1",
703
703
  "bare-abort-controller": "^1.1.2",
@@ -771,8 +771,8 @@
771
771
  "localwatch@1.4.3": "patches/localwatch@1.4.3.patch",
772
772
  "hypercore-blob-server@1.15.0": "patches/hypercore-blob-server@1.15.0.patch",
773
773
  "bare-stow@0.1.5": "patches/bare-stow@0.1.5.patch",
774
- "@qvac/inference@0.19.0": "patches/@qvac%2Finference@0.19.0.patch",
775
- "brittle@4.1.0": "patches/brittle@4.1.0.patch"
774
+ "brittle@4.1.0": "patches/brittle@4.1.0.patch",
775
+ "@qvac/inference@0.20.0": "patches/@qvac%2Finference@0.20.0.patch"
776
776
  },
777
777
  "repository": {
778
778
  "type": "git",
@@ -785,7 +785,6 @@
785
785
  },
786
786
  "homepage": "https://github.com/tetherto/qvac-harness",
787
787
  "overrides": {
788
- "@qvac/asr-ggml": "0.4.2",
789
788
  "bare-runtime": "^1.30.0",
790
789
  "bare-module": "6.4.0",
791
790
  "bare-process": "4.4.1",
@@ -1,3 +0,0 @@
1
- import type { Message } from './completion.ts';
2
- export declare function projectVisionHistory(history: ReadonlyArray<Message>): Message[];
3
- export declare function visionHistoryCacheKey(cacheKey: string | undefined, history: ReadonlyArray<Message>): string | undefined;
@@ -1,21 +0,0 @@
1
- const CACHE_VERSION = 'vision-history-v1';
2
- export function projectVisionHistory(history) {
3
- return history.flatMap((message) => {
4
- const attachments = message.attachments;
5
- if (message.role !== 'user' || !attachments || attachments.length < 2)
6
- return [message];
7
- return attachments.map((attachment, index) => ({
8
- ...message,
9
- content: index === attachments.length - 1 ? message.content : '\n',
10
- attachments: [attachment]
11
- }));
12
- });
13
- }
14
- export function visionHistoryCacheKey(cacheKey, history) {
15
- if (!cacheKey || !history.some(hasMultipleImages))
16
- return cacheKey;
17
- return `${cacheKey}-${CACHE_VERSION}`;
18
- }
19
- function hasMultipleImages(message) {
20
- return message.role === 'user' && (message.attachments?.length ?? 0) > 1;
21
- }