@artemiskit/adapter-trueforge 0.1.11 → 0.1.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artemiskit/adapter-trueforge",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "TrueForge agent-harness adapter for ArtemisKit",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc && bun build ./src/index.ts --outdir ./dist --target node --external '@artemiskit/*' && node ../../../scripts/finalize-declarations.mjs ./dist",
23
- "typecheck": "tsc --noEmit",
23
+ "typecheck": "tsc -p tsconfig.typecheck.json",
24
24
  "test": "bun test --preload ./src/test-preload.ts",
25
25
  "clean": "rm -rf dist"
26
26
  },
27
27
  "dependencies": {
28
- "@artemiskit/core": "0.6.3",
28
+ "@artemiskit/core": "0.7.0",
29
29
  "@truefoundry/trueforge-sdk": "0.1.3"
30
30
  },
31
31
  "devDependencies": {
@@ -2,7 +2,7 @@ import { describe, expect, it } from 'bun:test';
2
2
  import type { AgentTask } from '@artemiskit/core';
3
3
  import { TrueForgeAdapter } from './client';
4
4
  import { normalizeTrueForgeActions, sanitizeTrueForgeEvents } from './mapper';
5
- import { type TrueForgeClient, createLingProviderSetup } from './types';
5
+ import { type TrueForgeClient, type TrueForgeEvent, createLingProviderSetup } from './types';
6
6
 
7
7
  const TASK: AgentTask = {
8
8
  id: 'scenario-repair',
@@ -38,7 +38,7 @@ const TURN_DONE = {
38
38
  },
39
39
  };
40
40
 
41
- function createClient(events = [TURN_CREATED, TURN_DONE]) {
41
+ function createClient(events: TrueForgeEvent[] = [TURN_CREATED, TURN_DONE]) {
42
42
  const calls = {
43
43
  sessions: [] as unknown[],
44
44
  turns: [] as unknown[],
@@ -456,10 +456,13 @@ describe('TrueForgeAdapter', () => {
456
456
  agent: { model: { name: 'ling/ling-3-flash' } },
457
457
  prompt: 'Repair the supplied scenario.',
458
458
  collectOutcome: async () => ({ acceptancePassed: false, changedPaths: [] }),
459
- fetch: async (input) => {
460
- requestedUrl = String(input);
461
- throw new Error('offline fixture');
462
- },
459
+ fetch: Object.assign(
460
+ async (input: string | URL | Request) => {
461
+ requestedUrl = String(input);
462
+ throw new Error('offline fixture');
463
+ },
464
+ { preconnect: globalThis.fetch.preconnect }
465
+ ),
463
466
  });
464
467
 
465
468
  await adapter.run(TASK);
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "rootDir": "../../..",
6
+ "emitDeclarationOnly": false,
7
+ "declaration": false,
8
+ "declarationMap": false
9
+ },
10
+ "include": ["src/**/*"],
11
+ "exclude": ["node_modules", "dist"]
12
+ }