llmist 1.7.0 → 2.0.0

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.
@@ -1,5 +1,5 @@
1
- import { B as BaseGadget, L as LLMStream, a as LLMStreamChunk, b as LLMMessage, I as IConversationManager } from '../mock-stream-BMuFlQI1.cjs';
2
- export { d as MockBuilder, f as MockManager, j as MockMatcher, k as MockMatcherContext, l as MockOptions, M as MockProviderAdapter, n as MockRegistration, o as MockResponse, p as MockStats, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, g as getMockManager, m as mockLLM } from '../mock-stream-BMuFlQI1.cjs';
1
+ import { B as BaseGadget, L as LLMStream, a as LLMStreamChunk, b as LLMMessage, I as IConversationManager } from '../mock-stream-BQHut0lQ.cjs';
2
+ export { d as MockBuilder, f as MockManager, j as MockMatcher, k as MockMatcherContext, l as MockOptions, M as MockProviderAdapter, n as MockRegistration, o as MockResponse, p as MockStats, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, g as getMockManager, m as mockLLM } from '../mock-stream-BQHut0lQ.cjs';
3
3
  import { ZodType } from 'zod';
4
4
  import { PassThrough, Readable, Writable } from 'node:stream';
5
5
  import 'tslog';
@@ -23,6 +23,8 @@ interface TestGadgetResult {
23
23
  error?: string;
24
24
  /** Parameters after validation and default application */
25
25
  validatedParams?: Record<string, unknown>;
26
+ /** Cost reported by the gadget in USD (e.g., 0.001 for $0.001) */
27
+ cost?: number;
26
28
  }
27
29
  /**
28
30
  * Options for testGadget.
@@ -1,5 +1,5 @@
1
- import { B as BaseGadget, L as LLMStream, a as LLMStreamChunk, b as LLMMessage, I as IConversationManager } from '../mock-stream-BMuFlQI1.js';
2
- export { d as MockBuilder, f as MockManager, j as MockMatcher, k as MockMatcherContext, l as MockOptions, M as MockProviderAdapter, n as MockRegistration, o as MockResponse, p as MockStats, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, g as getMockManager, m as mockLLM } from '../mock-stream-BMuFlQI1.js';
1
+ import { B as BaseGadget, L as LLMStream, a as LLMStreamChunk, b as LLMMessage, I as IConversationManager } from '../mock-stream-BQHut0lQ.js';
2
+ export { d as MockBuilder, f as MockManager, j as MockMatcher, k as MockMatcherContext, l as MockOptions, M as MockProviderAdapter, n as MockRegistration, o as MockResponse, p as MockStats, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, g as getMockManager, m as mockLLM } from '../mock-stream-BQHut0lQ.js';
3
3
  import { ZodType } from 'zod';
4
4
  import { PassThrough, Readable, Writable } from 'node:stream';
5
5
  import 'tslog';
@@ -23,6 +23,8 @@ interface TestGadgetResult {
23
23
  error?: string;
24
24
  /** Parameters after validation and default application */
25
25
  validatedParams?: Record<string, unknown>;
26
+ /** Cost reported by the gadget in USD (e.g., 0.001 for $0.001) */
27
+ cost?: number;
26
28
  }
27
29
  /**
28
30
  * Options for testGadget.
@@ -38,7 +38,7 @@ import {
38
38
  testGadget,
39
39
  testGadgetBatch,
40
40
  waitFor
41
- } from "../chunk-E52IO2NO.js";
41
+ } from "../chunk-LBHWVCZ2.js";
42
42
  export {
43
43
  MockBuilder,
44
44
  MockConversationManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llmist",
3
- "version": "1.7.0",
3
+ "version": "2.0.0",
4
4
  "description": "Universal TypeScript LLM client with streaming-first agent framework. Works with any model - no structured outputs or native tool calling required. Implements its own flexible grammar for function calling.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",