🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/schema

Package Overview
Dependencies
Maintainers
2
Versions
539
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/schema - npm Package Compare versions

Comparing version
0.0.0-next-16023
to
0.0.0-next-16027
+5
-8
dist/session-event.js

@@ -5,4 +5,3 @@ export * as SessionEvent from "./session-event.js";

import { Event } from "./event.js";
import { ToolContent } from "./llm.js";
import { FinishReason } from "./llm.js";
import { FinishReason, ToolContent } from "./llm.js";
import { Model } from "./model.js";

@@ -351,9 +350,5 @@ import { NonNegativeInt, PositiveInt, RelativePath } from "./schema.js";

});
/**
* Replayable bounded running-tool state. Tools should checkpoint semantic
* transitions or at a bounded cadence, not persist every stdout/stderr chunk.
*/
Tool.Progress = Event.durable({
/** Live replacement snapshot for a running tool. */
Tool.Progress = Event.ephemeral({
type: "session.tool.progress",
...options,
schema: {

@@ -383,2 +378,4 @@ ...ToolBase,

error: SessionError.Error,
content: Schema.NonEmptyArray(ToolContent).pipe(optional),
metadata: Schema.Record(Schema.String, Schema.Unknown).pipe(optional),
result: Schema.Unknown.pipe(optional),

@@ -385,0 +382,0 @@ executed: Schema.Boolean,

{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/schema",
"version": "0.0.0-next-16023",
"version": "0.0.0-next-16027",
"type": "module",

@@ -6,0 +6,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display