@codeworksh/aikit 0.4.1-dev.20260530194815 → 0.4.1-dev.20260531052349

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/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # @codeworksh/aikit
2
2
 
3
- @codeworksh/aikit is a **TypeScript SDK** for building AI agents and agentic harnesses. It provides a unified API for working with multiple LLM providers, built on top of the Vercel AI SDK, with full support for tool calling (function calling) required for agentic workflows.
4
-
3
+ [AiKit](https://codeworksh.github.io/aikit/) is **TypeScript SDK** that provides a unified API for working with multiple LLM providers, automatic model discovery, provider configurations, token and cost tracking, and mid-session hand-off to other models.
5
4
  It gives you the basic primitives for streaming LLM responses without the extra bloat, letting you handle the orchestration yourself.
6
5
 
7
6
  ## Table of Contents
@@ -22,7 +21,7 @@ It gives you the basic primitives for streaming LLM responses without the extra
22
21
  npm install @codeworksh/aikit
23
22
  ```
24
23
 
25
- Node `>=24.14.1` is required.
24
+ Node `>=22.0.0` is required.
26
25
 
27
26
  ## Supported Providers
28
27
 
package/index.d.mts CHANGED
@@ -5461,13 +5461,13 @@ declare namespace Model {
5461
5461
  openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
5462
5462
  } | undefined;
5463
5463
  protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
5464
- name: string;
5465
5464
  id: string;
5465
+ name: string;
5466
5466
  provider: {
5467
5467
  key?: string | undefined;
5468
5468
  options?: Record<string, any> | undefined;
5469
- name: string;
5470
5469
  id: string;
5470
+ name: string;
5471
5471
  source: "env" | "config" | "custom" | "api" | "unknown";
5472
5472
  env: string[];
5473
5473
  };
@@ -7199,5 +7199,5 @@ declare function validateToolCall<T extends Message.Tool>(tools: T[], toolExecut
7199
7199
  */
7200
7200
  declare function validateToolArguments<T extends Message.Tool>(tool: T, toolExecution: Message.ToolCallInFlight): Message.ToolArguments<T>;
7201
7201
  //#endregion
7202
- export { type AssistantMessageEventStream, Event, EventStream, Message, Model, Protocol, type Static, type TSchema, ThinkingBudgets, Type, createAssistantMessageEventStream, llm, stream, validateSchema, validateToolArguments, validateToolCall };
7202
+ export { type AnthropicOptions, type AssistantMessageEventStream, Event, EventStream, type GoogleOptions, type GoogleVertexAnthropicOptions, type GoogleVertexOptions, Message, Model, type OpenAICompatibleOptions, type OpenAIOptions, type OpenRouterOptions, Protocol, type Static, type TSchema, ThinkingBudgets, Type, type XaiOptions, createAssistantMessageEventStream, llm, stream, validateSchema, validateToolArguments, validateToolCall };
7203
7203
  //# sourceMappingURL=index.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeworksh/aikit",
3
- "version": "0.4.1-dev.20260530194815",
3
+ "version": "0.4.1-dev.20260531052349",
4
4
  "description": "Toolkit for building AI agents and agent harness.",
5
5
  "keywords": [
6
6
  "agent",
@@ -12,7 +12,7 @@
12
12
  "toolkit",
13
13
  "typescript"
14
14
  ],
15
- "homepage": "https://github.com/codeworksh/codework/tree/main/packages/aikit",
15
+ "homepage": "https://codeworksh.github.io/aikit/",
16
16
  "bugs": {
17
17
  "url": "https://github.com/codeworksh/codework/issues"
18
18
  },
@@ -34,7 +34,7 @@
34
34
  "import": "./index.mjs",
35
35
  "default": "./index.mjs"
36
36
  },
37
- "./oauth/openai-codex": {
37
+ "./oauth/openai/codex": {
38
38
  "types": "./oauth/openai/codex.d.mts",
39
39
  "import": "./oauth/openai/codex.mjs",
40
40
  "default": "./oauth/openai/codex.mjs"
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "engines": {
53
- "node": ">=24.14.1"
53
+ "node": ">=22.0.0"
54
54
  },
55
55
  "dependencies": {
56
56
  "@ai-sdk/anthropic": "^3.0.79",