@demicodes/core 0.6.0 → 0.7.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 (2) hide show
  1. package/dist/index.d.mts +10 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -133,6 +133,14 @@ interface ModelSelection {
133
133
  serviceTierId?: string | null;
134
134
  }
135
135
  type ToolCallStatus = 'executing' | 'completed' | 'error';
136
+ interface ProviderErrorDiagnostics {
137
+ source: 'http' | 'stream' | 'transport' | 'unknown';
138
+ clientRequestId?: string;
139
+ providerRequestId?: string;
140
+ providerResponseId?: string;
141
+ providerCode?: string;
142
+ httpStatus?: number;
143
+ }
136
144
  type Block = {
137
145
  type: 'user';
138
146
  id: string;
@@ -206,6 +214,7 @@ type Block = {
206
214
  model: ModelSelection;
207
215
  message: string;
208
216
  code: string | null;
217
+ diagnostics?: ProviderErrorDiagnostics;
209
218
  } | {
210
219
  type: 'abort';
211
220
  id: string;
@@ -243,4 +252,4 @@ interface Transcript {
243
252
  blocks: Block[];
244
253
  }
245
254
  //#endregion
246
- export { Base64ImageSource, Base64VideoSource, Block, BlockMeta, DocumentSource, FileExtension, ImageFileExtension, ImageSource, Model, ModelMediaKind, ModelMediaType, ModelSelection, QueuedMessage, SessionPhase, ThinkingCapability, ThinkingConfig, ThinkingEffort, ThinkingSummary, TokenUsage, ToolCallStatus, ToolResultContentBlock, Transcript, UserContentBlock, VIDEO_FILE_EXTENSIONS, VideoFileExtension, VideoSource, modelAcceptsMediaType, modelAcceptsVideo, modelMediaTypeFor, sniffModelMediaType, zeroUsage };
255
+ export { Base64ImageSource, Base64VideoSource, Block, BlockMeta, DocumentSource, FileExtension, ImageFileExtension, ImageSource, Model, ModelMediaKind, ModelMediaType, ModelSelection, ProviderErrorDiagnostics, QueuedMessage, SessionPhase, ThinkingCapability, ThinkingConfig, ThinkingEffort, ThinkingSummary, TokenUsage, ToolCallStatus, ToolResultContentBlock, Transcript, UserContentBlock, VIDEO_FILE_EXTENSIONS, VideoFileExtension, VideoSource, modelAcceptsMediaType, modelAcceptsVideo, modelMediaTypeFor, sniffModelMediaType, zeroUsage };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/core",
3
3
  "description": "Core data types and shared domain primitives for the Demi agent toolkit.",
4
- "version": "0.6.0",
4
+ "version": "0.7.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {