@cuylabs/agent-core 0.7.0 → 0.9.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.
Files changed (79) hide show
  1. package/dist/{builder-BRvqCcIk.d.ts → builder-BgZ_j4Vs.d.ts} +3 -2
  2. package/dist/chunk-4QFNWPIF.js +202 -0
  3. package/dist/chunk-5ARZJWD2.js +259 -0
  4. package/dist/chunk-DXFBQMXP.js +53 -0
  5. package/dist/chunk-EKR6PKXU.js +180 -0
  6. package/dist/{chunk-IVUJDISU.js → chunk-GFTW23FV.js} +5 -14
  7. package/dist/{chunk-IEFIQENH.js → chunk-H3FUYU52.js} +15 -7
  8. package/dist/chunk-I6PKJ7XQ.js +292 -0
  9. package/dist/chunk-IYWQOJMQ.js +102 -0
  10. package/dist/{chunk-3HNO5SVI.js → chunk-J4QDGZIA.js} +20 -4
  11. package/dist/{chunk-7MUFEN4K.js → chunk-JLXG2SH7.js} +349 -3
  12. package/dist/{chunk-CDTV2UYU.js → chunk-MAZ5DY5B.js} +64 -276
  13. package/dist/{chunk-P6YF7USR.js → chunk-MHKK374K.js} +12 -11
  14. package/dist/{chunk-VBWWUHWI.js → chunk-OFDKHNCX.js} +4 -1
  15. package/dist/{chunk-YUUJK53A.js → chunk-RKEW5WXI.js} +1 -1
  16. package/dist/{chunk-LRHOS4ZN.js → chunk-SPILYYDF.js} +3 -2
  17. package/dist/{chunk-QGOGIP7T.js → chunk-UDCZ673N.js} +385 -233
  18. package/dist/{chunk-BDBZ3SLK.js → chunk-UHCJEM2E.js} +39 -2
  19. package/dist/chunk-WGZAPU6N.js +929 -0
  20. package/dist/{chunk-5K7AQVOU.js → chunk-WKHDSSXG.js} +130 -209
  21. package/dist/{chunk-BNSHUWCV.js → chunk-WWYYNWEW.js} +1 -1
  22. package/dist/context/index.js +1 -1
  23. package/dist/events-CE72w8W4.d.ts +149 -0
  24. package/dist/index-BCqEGzBj.d.ts +251 -0
  25. package/dist/{index-C33hlD6H.d.ts → index-DQuTZ8xL.d.ts} +319 -56
  26. package/dist/index.d.ts +42 -121
  27. package/dist/index.js +951 -848
  28. package/dist/inference/errors/index.d.ts +11 -0
  29. package/dist/inference/errors/index.js +16 -0
  30. package/dist/inference/index.d.ts +12 -8
  31. package/dist/inference/index.js +35 -7
  32. package/dist/llm-error-D93FNNLY.d.ts +32 -0
  33. package/dist/middleware/index.d.ts +246 -7
  34. package/dist/middleware/index.js +3 -1
  35. package/dist/models/index.d.ts +132 -9
  36. package/dist/models/index.js +48 -8
  37. package/dist/models/reasoning/index.d.ts +4 -0
  38. package/dist/{reasoning → models/reasoning}/index.js +2 -7
  39. package/dist/plugin/index.d.ts +414 -0
  40. package/dist/plugin/index.js +32 -0
  41. package/dist/presets/index.d.ts +53 -0
  42. package/dist/presets/index.js +30 -0
  43. package/dist/prompt/index.d.ts +11 -8
  44. package/dist/prompt/index.js +3 -2
  45. package/dist/{registry-BDLIHOQB.d.ts → registry-DwYqsQkX.d.ts} +1 -1
  46. package/dist/runner-CI-XeR16.d.ts +91 -0
  47. package/dist/runtime/index.d.ts +12 -8
  48. package/dist/runtime/index.js +8 -7
  49. package/dist/safety/index.d.ts +38 -0
  50. package/dist/safety/index.js +12 -0
  51. package/dist/scope/index.d.ts +2 -2
  52. package/dist/{session-manager-B_CWGTsl.d.ts → session-manager-KbYt2WUh.d.ts} +8 -0
  53. package/dist/signal/index.d.ts +28 -0
  54. package/dist/signal/index.js +6 -0
  55. package/dist/skill/index.d.ts +7 -6
  56. package/dist/skill/index.js +3 -3
  57. package/dist/storage/index.d.ts +2 -2
  58. package/dist/storage/index.js +1 -1
  59. package/dist/sub-agent/index.d.ts +16 -10
  60. package/dist/sub-agent/index.js +21 -4
  61. package/dist/tool/index.d.ts +22 -6
  62. package/dist/tool/index.js +3 -3
  63. package/dist/tool-CZWN3KbO.d.ts +141 -0
  64. package/dist/{tool-HUtkiVBx.d.ts → tool-DkhSCV2Y.d.ts} +2 -2
  65. package/dist/tracking/index.d.ts +2 -2
  66. package/dist/tracking/index.js +1 -1
  67. package/dist/{tool-Db1Ue-1U.d.ts → types-BfNpU8NS.d.ts} +1 -150
  68. package/dist/{types-FRpzzg_9.d.ts → types-BlOKk-Bb.d.ts} +10 -35
  69. package/dist/types-BlZwmnuW.d.ts +50 -0
  70. package/dist/{types-9jGQUjqW.d.ts → types-CQL-SvTn.d.ts} +1 -1
  71. package/dist/types-CWm-7rvB.d.ts +55 -0
  72. package/dist/{runner-DSKaEz3z.d.ts → types-DTSkxakL.d.ts} +7 -235
  73. package/dist/{types-CqDZTh4d.d.ts → types-DmDwi2zI.d.ts} +8 -4
  74. package/dist/types-YuWV4ag7.d.ts +72 -0
  75. package/package.json +67 -6
  76. package/dist/capability-resolver-CgRGsWVX.d.ts +0 -254
  77. package/dist/chunk-ZPMACVZK.js +0 -305
  78. package/dist/index-CfBGYrpd.d.ts +0 -317
  79. package/dist/reasoning/index.d.ts +0 -117
@@ -1,117 +0,0 @@
1
- import { R as ReasoningLevel, a as ReasoningConfig } from '../types-CQaXbRsS.js';
2
- export { E as EXTENDED_LEVELS, F as FIXED_LEVELS, S as STANDARD_LEVELS, s as shouldIncludeReasoningSummary } from '../types-CQaXbRsS.js';
3
- import { P as ProviderCompatibility } from '../capability-resolver-CgRGsWVX.js';
4
- export { f as extractModelId, g as extractProvider } from '../capability-resolver-CgRGsWVX.js';
5
- import { LanguageModel } from 'ai';
6
- import { ProviderOptions } from '@ai-sdk/provider-utils';
7
-
8
- /**
9
- * Provider-Specific Reasoning Option Builders
10
- *
11
- * Each function takes a {@link ReasoningLevel} and returns the
12
- * provider-options object expected by the Vercel AI SDK's
13
- * `providerOptions` parameter.
14
- *
15
- * Provider key mapping (`getProviderOptionsKey`) is also defined
16
- * here so that callers can wrap the raw options correctly.
17
- */
18
-
19
- /**
20
- * Build OpenAI reasoning options.
21
- *
22
- * OpenAI reasoning models use:
23
- * - `reasoningEffort` — controls depth
24
- * - `reasoningSummary` — controls whether reasoning is streamed
25
- * (`"auto"` = condensed summary, `"detailed"` = full)
26
- *
27
- * `reasoningSummary` requires a verified OpenAI organisation.
28
- * Set `CODE_AGENT_DISABLE_REASONING_SUMMARY=true` to skip it.
29
- */
30
- declare function buildOpenAIOptions(level: ReasoningLevel, compat?: ProviderCompatibility): Record<string, unknown> | undefined;
31
- /**
32
- * Build Anthropic thinking options.
33
- *
34
- * Uses `thinking.type: "enabled"` with `budgetTokens`.
35
- */
36
- declare function buildAnthropicOptions(level: ReasoningLevel): Record<string, unknown> | undefined;
37
- /**
38
- * Build Google / Gemini reasoning options.
39
- *
40
- * - **Gemini 3+** uses `thinkingLevel` (`"low"` / `"high"`)
41
- * - **Gemini 2.5 and earlier** uses `thinkingBudget` (token count)
42
- */
43
- declare function buildGoogleOptions(level: ReasoningLevel, modelId?: string): Record<string, unknown> | undefined;
44
- /**
45
- * Build xAI / Grok reasoning options.
46
- */
47
- declare function buildXAIOptions(level: ReasoningLevel): Record<string, unknown> | undefined;
48
- /**
49
- * Build Groq reasoning options.
50
- */
51
- declare function buildGroqOptions(level: ReasoningLevel): Record<string, unknown> | undefined;
52
- /**
53
- * Build Amazon Bedrock reasoning options.
54
- *
55
- * - Anthropic / Claude models use `budgetTokens`
56
- * - Amazon Nova models use `maxReasoningEffort`
57
- */
58
- declare function buildBedrockOptions(level: ReasoningLevel, modelId?: string): Record<string, unknown> | undefined;
59
- /**
60
- * Build OpenRouter reasoning options.
61
- */
62
- declare function buildOpenRouterOptions(level: ReasoningLevel): Record<string, unknown> | undefined;
63
- /**
64
- * Resolve the `providerOptions` key for a given SDK provider string.
65
- *
66
- * Falls back to the first dot-segment (e.g. `"foo.bar"` → `"foo"`).
67
- */
68
- declare function getProviderOptionsKey(provider: string): string;
69
-
70
- /**
71
- * Reasoning Configuration & Option Builders
72
- *
73
- * Orchestrates capability detection and provider-specific option
74
- * building to produce ready-to-use `providerOptions` for the
75
- * Vercel AI SDK.
76
- *
77
- * Two flavours of every function are provided:
78
- * - **Async** (`getReasoningConfig`, `buildReasoningOptions`) —
79
- * uses the full capability resolver (network + cache).
80
- * - **Sync** (`getReasoningConfigSync`, `buildReasoningOptionsSync`) —
81
- * uses fast pattern-matching only (no network).
82
- */
83
-
84
- /**
85
- * Get the reasoning configuration for a model.
86
- *
87
- * Uses the full capability resolver (including network lookups)
88
- * for the most accurate result.
89
- */
90
- declare function getReasoningConfig(model: LanguageModel): Promise<ReasoningConfig>;
91
- /**
92
- * Synchronous reasoning config using pattern-matching only.
93
- *
94
- * Faster but less accurate than {@link getReasoningConfig}.
95
- * Good for hot paths where async is impractical.
96
- */
97
- declare function getReasoningConfigSync(model: LanguageModel): ReasoningConfig;
98
- /**
99
- * Build `providerOptions` for a reasoning level (async).
100
- *
101
- * Returns `undefined` when reasoning is off or unsupported.
102
- */
103
- declare function buildReasoningOptions(model: LanguageModel, level: ReasoningLevel): Promise<ProviderOptions | undefined>;
104
- /**
105
- * Build `providerOptions` for a reasoning level (sync / pattern-only).
106
- */
107
- declare function buildReasoningOptionsSync(model: LanguageModel, level: ReasoningLevel): ProviderOptions | undefined;
108
- /**
109
- * Check whether a model supports reasoning (async, full resolver).
110
- */
111
- declare function supportsReasoning(model: LanguageModel): Promise<boolean>;
112
- /**
113
- * Synchronous check using pattern-matching only.
114
- */
115
- declare function supportsReasoningSync(model: LanguageModel): boolean;
116
-
117
- export { ReasoningConfig, ReasoningLevel, buildAnthropicOptions, buildBedrockOptions, buildGoogleOptions, buildGroqOptions, buildOpenAIOptions, buildOpenRouterOptions, buildReasoningOptions, buildReasoningOptionsSync, buildXAIOptions, getProviderOptionsKey, getReasoningConfig, getReasoningConfigSync, supportsReasoning, supportsReasoningSync };