aieo 0.1.13 → 0.1.14

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/dist/index.d.cts CHANGED
@@ -35,89 +35,27 @@ declare const PROVIDERS: Provider[];
35
35
  declare function getModel(provider: Provider, apiKey: string, cwd?: string): Promise<_ai_sdk_provider.LanguageModelV2>;
36
36
  type ThinkingSpeed = "thinking" | "fast";
37
37
  declare function getProviderOptions(provider: Provider, thinkingSpeed?: ThinkingSpeed): {
38
- anthropic: z.infer<z.ZodObject<{
39
- sendReasoning: z.ZodOptional<z.ZodBoolean>;
40
- thinking: z.ZodOptional<z.ZodObject<{
41
- type: z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodLiteral<"disabled">]>;
42
- budgetTokens: z.ZodOptional<z.ZodNumber>;
43
- }, z.core.$strip>>;
44
- disableParallelToolUse: z.ZodOptional<z.ZodBoolean>;
45
- }, z.core.$strip>>;
38
+ anthropic: {
39
+ thinking: {
40
+ type: "disabled";
41
+ budgetTokens?: undefined;
42
+ } | {
43
+ type: "enabled";
44
+ budgetTokens: number;
45
+ };
46
+ };
46
47
  google?: undefined;
47
48
  openai?: undefined;
48
49
  } | {
49
- google: z.infer<z.ZodObject<{
50
- responseModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51
- TEXT: "TEXT";
52
- IMAGE: "IMAGE";
53
- }>>>;
54
- thinkingConfig: z.ZodOptional<z.ZodObject<{
55
- thinkingBudget: z.ZodOptional<z.ZodNumber>;
56
- includeThoughts: z.ZodOptional<z.ZodBoolean>;
57
- }, z.core.$strip>>;
58
- cachedContent: z.ZodOptional<z.ZodString>;
59
- structuredOutputs: z.ZodOptional<z.ZodBoolean>;
60
- safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
- category: z.ZodEnum<{
62
- HARM_CATEGORY_UNSPECIFIED: "HARM_CATEGORY_UNSPECIFIED";
63
- HARM_CATEGORY_HATE_SPEECH: "HARM_CATEGORY_HATE_SPEECH";
64
- HARM_CATEGORY_DANGEROUS_CONTENT: "HARM_CATEGORY_DANGEROUS_CONTENT";
65
- HARM_CATEGORY_HARASSMENT: "HARM_CATEGORY_HARASSMENT";
66
- HARM_CATEGORY_SEXUALLY_EXPLICIT: "HARM_CATEGORY_SEXUALLY_EXPLICIT";
67
- HARM_CATEGORY_CIVIC_INTEGRITY: "HARM_CATEGORY_CIVIC_INTEGRITY";
68
- }>;
69
- threshold: z.ZodEnum<{
70
- HARM_BLOCK_THRESHOLD_UNSPECIFIED: "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
71
- BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
72
- BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
73
- BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
74
- BLOCK_NONE: "BLOCK_NONE";
75
- OFF: "OFF";
76
- }>;
77
- }, z.core.$strip>>>;
78
- threshold: z.ZodOptional<z.ZodEnum<{
79
- HARM_BLOCK_THRESHOLD_UNSPECIFIED: "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
80
- BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
81
- BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
82
- BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
83
- BLOCK_NONE: "BLOCK_NONE";
84
- OFF: "OFF";
85
- }>>;
86
- audioTimestamp: z.ZodOptional<z.ZodBoolean>;
87
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
88
- }, z.core.$strip>>;
50
+ google: {
51
+ thinkingConfig: {
52
+ thinkingBudget: number;
53
+ };
54
+ };
89
55
  anthropic?: undefined;
90
56
  openai?: undefined;
91
57
  } | {
92
- openai: z.infer<z.ZodObject<{
93
- metadata: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
94
- parallelToolCalls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
95
- previousResponseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- store: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
- user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- strictJsonSchema: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
- instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- reasoningSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- serviceTier: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
103
- auto: "auto";
104
- flex: "flex";
105
- priority: "priority";
106
- }>>>;
107
- include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
108
- "reasoning.encrypted_content": "reasoning.encrypted_content";
109
- "file_search_call.results": "file_search_call.results";
110
- "message.output_text.logprobs": "message.output_text.logprobs";
111
- }>>>>;
112
- textVerbosity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
113
- low: "low";
114
- medium: "medium";
115
- high: "high";
116
- }>>>;
117
- promptCacheKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- safetyIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- logprobs: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
120
- }, z.core.$strip>>;
58
+ openai: {};
121
59
  anthropic?: undefined;
122
60
  google?: undefined;
123
61
  } | undefined;
package/dist/index.d.ts CHANGED
@@ -35,89 +35,27 @@ declare const PROVIDERS: Provider[];
35
35
  declare function getModel(provider: Provider, apiKey: string, cwd?: string): Promise<_ai_sdk_provider.LanguageModelV2>;
36
36
  type ThinkingSpeed = "thinking" | "fast";
37
37
  declare function getProviderOptions(provider: Provider, thinkingSpeed?: ThinkingSpeed): {
38
- anthropic: z.infer<z.ZodObject<{
39
- sendReasoning: z.ZodOptional<z.ZodBoolean>;
40
- thinking: z.ZodOptional<z.ZodObject<{
41
- type: z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodLiteral<"disabled">]>;
42
- budgetTokens: z.ZodOptional<z.ZodNumber>;
43
- }, z.core.$strip>>;
44
- disableParallelToolUse: z.ZodOptional<z.ZodBoolean>;
45
- }, z.core.$strip>>;
38
+ anthropic: {
39
+ thinking: {
40
+ type: "disabled";
41
+ budgetTokens?: undefined;
42
+ } | {
43
+ type: "enabled";
44
+ budgetTokens: number;
45
+ };
46
+ };
46
47
  google?: undefined;
47
48
  openai?: undefined;
48
49
  } | {
49
- google: z.infer<z.ZodObject<{
50
- responseModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51
- TEXT: "TEXT";
52
- IMAGE: "IMAGE";
53
- }>>>;
54
- thinkingConfig: z.ZodOptional<z.ZodObject<{
55
- thinkingBudget: z.ZodOptional<z.ZodNumber>;
56
- includeThoughts: z.ZodOptional<z.ZodBoolean>;
57
- }, z.core.$strip>>;
58
- cachedContent: z.ZodOptional<z.ZodString>;
59
- structuredOutputs: z.ZodOptional<z.ZodBoolean>;
60
- safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
- category: z.ZodEnum<{
62
- HARM_CATEGORY_UNSPECIFIED: "HARM_CATEGORY_UNSPECIFIED";
63
- HARM_CATEGORY_HATE_SPEECH: "HARM_CATEGORY_HATE_SPEECH";
64
- HARM_CATEGORY_DANGEROUS_CONTENT: "HARM_CATEGORY_DANGEROUS_CONTENT";
65
- HARM_CATEGORY_HARASSMENT: "HARM_CATEGORY_HARASSMENT";
66
- HARM_CATEGORY_SEXUALLY_EXPLICIT: "HARM_CATEGORY_SEXUALLY_EXPLICIT";
67
- HARM_CATEGORY_CIVIC_INTEGRITY: "HARM_CATEGORY_CIVIC_INTEGRITY";
68
- }>;
69
- threshold: z.ZodEnum<{
70
- HARM_BLOCK_THRESHOLD_UNSPECIFIED: "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
71
- BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
72
- BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
73
- BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
74
- BLOCK_NONE: "BLOCK_NONE";
75
- OFF: "OFF";
76
- }>;
77
- }, z.core.$strip>>>;
78
- threshold: z.ZodOptional<z.ZodEnum<{
79
- HARM_BLOCK_THRESHOLD_UNSPECIFIED: "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
80
- BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
81
- BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
82
- BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
83
- BLOCK_NONE: "BLOCK_NONE";
84
- OFF: "OFF";
85
- }>>;
86
- audioTimestamp: z.ZodOptional<z.ZodBoolean>;
87
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
88
- }, z.core.$strip>>;
50
+ google: {
51
+ thinkingConfig: {
52
+ thinkingBudget: number;
53
+ };
54
+ };
89
55
  anthropic?: undefined;
90
56
  openai?: undefined;
91
57
  } | {
92
- openai: z.infer<z.ZodObject<{
93
- metadata: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
94
- parallelToolCalls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
95
- previousResponseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
- store: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
- user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- strictJsonSchema: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
- instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- reasoningSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- serviceTier: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
103
- auto: "auto";
104
- flex: "flex";
105
- priority: "priority";
106
- }>>>;
107
- include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
108
- "reasoning.encrypted_content": "reasoning.encrypted_content";
109
- "file_search_call.results": "file_search_call.results";
110
- "message.output_text.logprobs": "message.output_text.logprobs";
111
- }>>>>;
112
- textVerbosity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
113
- low: "low";
114
- medium: "medium";
115
- high: "high";
116
- }>>>;
117
- promptCacheKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- safetyIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- logprobs: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
120
- }, z.core.$strip>>;
58
+ openai: {};
121
59
  anthropic?: undefined;
122
60
  google?: undefined;
123
61
  } | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aieo",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
@@ -12,7 +12,8 @@
12
12
  "repository": "https://github.com/stakwork/stakgraph",
13
13
  "scripts": {
14
14
  "build": "tsup",
15
- "test": "echo \"Error: no test specified\" && exit 1"
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "try-cc": "ts-node ./src/test/try-cc.ts"
16
17
  },
17
18
  "keywords": [
18
19
  "llm",
@@ -26,10 +27,12 @@
26
27
  "@ai-sdk/google": "^2.0.8",
27
28
  "@ai-sdk/openai": "^2.0.19",
28
29
  "ai": "^5.0.22",
29
- "ai-sdk-provider-claude-code": "^1.1.0"
30
+ "ai-sdk-provider-claude-code": "^1.1.0",
31
+ "zod": "^4.0.17"
30
32
  },
31
33
  "devDependencies": {
32
34
  "@types/node": "^24.3.0",
35
+ "ts-node": "^10.9.2",
33
36
  "tsup": "^8.4.0"
34
37
  }
35
38
  }