@opencode-ai/schema
Advanced tools
@@ -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, |
+1
-1
| { | ||
| "$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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3657687
0.09%57177
0.01%