Emit NodeNext compatible core package
Some checks failed
Codex Template Compliance / compliance (push) Successful in 5s
Build / build (push) Failing after 1m46s
Release Dry Run / release-dry-run (push) Successful in 41s

This commit is contained in:
2026-06-19 01:19:13 +02:00
parent 7fb3bd8414
commit 54282785d3
7 changed files with 18 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import { AgentRunRequest, AgentRunResult, ChatMessage } from "./types"; import { AgentRunRequest, AgentRunResult, ChatMessage } from "./types.js";
import { recallBrain } from "./brain"; import { recallBrain } from "./brain.js";
import { createId, nowIso } from "./ids"; import { createId, nowIso } from "./ids.js";
export async function runAgent( export async function runAgent(
request: AgentRunRequest, request: AgentRunRequest,

View File

@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { createBrainItem, recallBrain } from "./brain"; import { createBrainItem, recallBrain } from "./brain.js";
describe("Brain recall", () => { describe("Brain recall", () => {
it("returns matching pinned and semantic keyword items", () => { it("returns matching pinned and semantic keyword items", () => {

View File

@@ -1,5 +1,5 @@
import { BrainItem, BrainItemKind, BrainRecall, BrainScope } from "./types"; import { BrainItem, BrainItemKind, BrainRecall, BrainScope } from "./types.js";
import { createId, nowIso } from "./ids"; import { createId, nowIso } from "./ids.js";
export interface BrainInput { export interface BrainInput {
kind: BrainItemKind; kind: BrainItemKind;

View File

@@ -1,6 +1,6 @@
export * from "./agent"; export * from "./agent.js";
export * from "./brain"; export * from "./brain.js";
export * from "./ids"; export * from "./ids.js";
export * from "./pairing"; export * from "./pairing.js";
export * from "./providers"; export * from "./providers.js";
export * from "./types"; export * from "./types.js";

View File

@@ -1,5 +1,5 @@
import { PairedDevice, PairingChallenge } from "./types"; import { PairedDevice, PairingChallenge } from "./types.js";
import { createId, nowIso } from "./ids"; import { createId, nowIso } from "./ids.js";
export function createPairingChallenge(ttlMs = 5 * 60 * 1000): PairingChallenge { export function createPairingChallenge(ttlMs = 5 * 60 * 1000): PairingChallenge {
const code = String(Math.floor(100000 + Math.random() * 900000)); const code = String(Math.floor(100000 + Math.random() * 900000));

View File

@@ -1,5 +1,5 @@
import { ModelProvider, ProviderProbeResult } from "./types"; import { ModelProvider, ProviderProbeResult } from "./types.js";
import { createId, nowIso } from "./ids"; import { createId, nowIso } from "./ids.js";
export function createProvider( export function createProvider(
kind: ModelProvider["kind"], kind: ModelProvider["kind"],

View File

@@ -5,6 +5,8 @@
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"emitDeclarationOnly": false, "emitDeclarationOnly": false,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noEmit": false, "noEmit": false,
"outDir": "dist", "outDir": "dist",
"rootDir": "src" "rootDir": "src"