@demicodes/core 0.2.1 → 0.3.1

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 +8 -7
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -186,7 +186,13 @@ type Block = {
186
186
  status: ToolCallStatus;
187
187
  streamingOutput: ToolResultContentBlock[];
188
188
  output: ToolResultContentBlock[];
189
- metadata: unknown | null;
189
+ /**
190
+ * Bounded UI-facing enhancement data, typed by the tool's owning layer.
191
+ * Never replayed to the model. Must not embed unbounded payloads (full
192
+ * command output, file bodies, raw or base64 bytes) — anything unbounded
193
+ * lives in a command artifact or blob and is referenced by id.
194
+ */
195
+ view: unknown | null;
190
196
  } | {
191
197
  type: 'response';
192
198
  id: string;
@@ -236,10 +242,5 @@ interface QueuedMessage {
236
242
  interface Transcript {
237
243
  blocks: Block[];
238
244
  }
239
- interface AgentSessionCoreState {
240
- transcript: Transcript;
241
- phase: SessionPhase;
242
- queue: QueuedMessage[];
243
- }
244
245
  //#endregion
245
- export { AgentSessionCoreState, 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 };
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 };
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.2.1",
4
+ "version": "0.3.1",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {