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 { recallBrain } from "./brain";
import { createId, nowIso } from "./ids";
import { AgentRunRequest, AgentRunResult, ChatMessage } from "./types.js";
import { recallBrain } from "./brain.js";
import { createId, nowIso } from "./ids.js";
export async function runAgent(
request: AgentRunRequest,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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