release 1.0.0: cost control, 41 tools, 29 skills, custom commands, auto-load

This commit is contained in:
Muhammad Zakir Ramadhan
2026-09-07 19:59:58 +07:00
parent a22d8e13b1
commit ffa9a02c26
97 changed files with 4791 additions and 788 deletions
+2 -4
View File
@@ -1,3 +1,4 @@
import { usageOf } from './helpers';
import { expect, test } from 'bun:test';
import { MockLanguageModelV4, simulateReadableStream } from 'ai/test';
import type { LanguageModelV4StreamPart } from '@ai-sdk/provider';
@@ -7,10 +8,7 @@ import { join } from 'node:path';
import { runHeadless } from '../src/headless';
import { Session } from '../src/session';
const usage = {
inputTokens: { total: 9, noCache: 9, cacheRead: 0, cacheWrite: 0 },
outputTokens: { total: 4 },
} as any;
const usage = usageOf(9, 4);
const stream = (parts: LanguageModelV4StreamPart[]) => ({
stream: simulateReadableStream({ chunks: parts, chunkDelayInMs: null, initialDelayInMs: null }),