@opencode-ai/schema
Advanced tools
@@ -5,6 +5,2 @@ export * as DurableEventManifest from "./durable-event-manifest.js"; | ||
| import { SessionEvent } from "./session-event.js"; | ||
| export const SessionDurable = { | ||
| definitions: Event.durableMap(SessionEvent.DurableDefinitions), | ||
| schema: SessionEvent.Durable, | ||
| }; | ||
| export const Durable = Event.durableMap([...SessionEvent.DurableDefinitions, Worktree.Event.Resolved]); |
+0
-39
@@ -77,41 +77,2 @@ export * as McpEvent from "./mcp-event.js"; | ||
| }; | ||
| export declare const BrowserOpenFailed: Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"mcp.browser.open.failed">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly mcpName: Schema.String; | ||
| readonly url: Schema.String; | ||
| }>; | ||
| }> & { | ||
| type: "mcp.browser.open.failed"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly mcpName: Schema.String; | ||
| readonly url: Schema.String; | ||
| }>; | ||
| }; | ||
| export declare const StatusChanged: Schema.Struct<{ | ||
@@ -118,0 +79,0 @@ readonly id: Schema.brand<Schema.String, "Event.ID"> & { |
@@ -16,9 +16,2 @@ export * as McpEvent from "./mcp-event.js"; | ||
| }); | ||
| export const BrowserOpenFailed = Event.ephemeral({ | ||
| type: "mcp.browser.open.failed", | ||
| schema: { | ||
| mcpName: Schema.String, | ||
| url: Schema.String, | ||
| }, | ||
| }); | ||
| // Emitted whenever a server's connection status settles (connected, failed, needs_auth, closed) so | ||
@@ -25,0 +18,0 @@ // observers can refresh status without polling. |
@@ -21,3 +21,2 @@ export * as Permission from "./permission.js"; | ||
| readonly save: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly opaque: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
@@ -76,3 +75,2 @@ readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{ | ||
| readonly save: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly opaque: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
@@ -104,3 +102,2 @@ readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{ | ||
| readonly save: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly opaque: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
@@ -206,3 +203,2 @@ readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{ | ||
| readonly save: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly opaque: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
@@ -234,3 +230,2 @@ readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{ | ||
| readonly save: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>; | ||
| readonly opaque: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
@@ -237,0 +232,0 @@ readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{ |
@@ -21,3 +21,2 @@ export * as Permission from "./permission.js"; | ||
| save: Schema.Array(Schema.String).pipe(optional), | ||
| opaque: Schema.Boolean.pipe(optional), | ||
| metadata: Schema.Record(Schema.String, Schema.Unknown).pipe(optional), | ||
@@ -24,0 +23,0 @@ source: Source.pipe(optional), |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-next-17430", | ||
| "version": "0.0.0-next-17444", | ||
| "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
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.
3531231
-7.8%55778
-5.88%