@opencode-ai/schema 0.0.0-next-14723 → 0.0.0-next-14730
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.
- package/dist/agent.d.ts +8 -8
- package/dist/catalog.d.ts +8 -8
- package/dist/command.d.ts +8 -8
- package/dist/durable-event-manifest.d.ts +412 -412
- package/dist/event-log.d.ts +46 -0
- package/dist/event-log.js +44 -0
- package/dist/event-manifest.d.ts +1224 -852
- package/dist/event-manifest.js +2 -2
- package/dist/event.d.ts +16 -6
- package/dist/event.js +9 -1
- package/dist/filesystem-watcher.d.ts +8 -8
- package/dist/filesystem.d.ts +8 -8
- package/dist/form.d.ts +1339 -0
- package/dist/form.js +105 -0
- package/dist/ide-event.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/installation-event.d.ts +16 -16
- package/dist/integration.d.ts +16 -16
- package/dist/lsp-event.d.ts +8 -8
- package/dist/mcp-event.d.ts +24 -24
- package/dist/models-dev.d.ts +8 -8
- package/dist/permission.d.ts +16 -16
- package/dist/plugin.d.ts +8 -8
- package/dist/project-directories.d.ts +8 -8
- package/dist/project.d.ts +8 -8
- package/dist/pty.d.ts +32 -32
- package/dist/reference.d.ts +8 -8
- package/dist/server-event.d.ts +16 -16
- package/dist/session-compaction-event.d.ts +8 -8
- package/dist/session-event.d.ts +680 -680
- package/dist/session-status-event.d.ts +16 -16
- package/dist/session-todo.d.ts +8 -8
- package/dist/shell.d.ts +24 -24
- package/dist/skill.d.ts +8 -8
- package/dist/tui-event.d.ts +32 -32
- package/dist/v1/legacy-event.d.ts +8 -8
- package/dist/v1/permission.d.ts +16 -16
- package/dist/v1/question.d.ts +24 -24
- package/dist/v1/session.d.ts +92 -92
- package/dist/vcs-event.d.ts +8 -8
- package/dist/workspace-event.d.ts +24 -24
- package/dist/worktree-event.d.ts +16 -16
- package/package.json +1 -1
- package/dist/question.d.ts +0 -516
- package/dist/question.js +0 -64
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * as EventLog from "./event-log.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
/**
|
|
4
|
+
* Replay-to-live boundary marker for a durable log read. The reader now holds
|
|
5
|
+
* every event committed at or below `seq`; `seq` is absent when the log holds
|
|
6
|
+
* no events at or before the read position. May be re-emitted after the
|
|
7
|
+
* reader internally re-attaches.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CaughtUp: Schema.Struct<{
|
|
10
|
+
readonly type: Schema.Literal<"log.caught_up">;
|
|
11
|
+
readonly aggregateID: Schema.String;
|
|
12
|
+
readonly seq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Int, "Event.Seq">>>, Schema.optionalKey<Schema.brand<Schema.Int, "Event.Seq">>, never, never>;
|
|
13
|
+
}>;
|
|
14
|
+
export interface CaughtUp extends Schema.Schema.Type<typeof CaughtUp> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
|
|
18
|
+
* Hints are a latency optimization only; no consumer may derive correctness
|
|
19
|
+
* from receiving one. Correctness always comes from a durable log read plus
|
|
20
|
+
* the consumer's own checkpoint.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Hint: Schema.Struct<{
|
|
23
|
+
readonly type: Schema.Literal<"log.hint">;
|
|
24
|
+
readonly aggregateID: Schema.String;
|
|
25
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
26
|
+
}>;
|
|
27
|
+
export interface Hint extends Schema.Schema.Type<typeof Hint> {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Hints may have been lost. Treat every aggregate as potentially dirty and
|
|
31
|
+
* recover via bounded sweep plus durable log reads. Also emitted first on
|
|
32
|
+
* every (re)subscribe, since hints during disconnection were never buffered.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SweepRequired: Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"log.sweep_required">;
|
|
36
|
+
}>;
|
|
37
|
+
export interface SweepRequired extends Schema.Schema.Type<typeof SweepRequired> {
|
|
38
|
+
}
|
|
39
|
+
export declare const Change: Schema.Union<readonly [Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"log.hint">;
|
|
41
|
+
readonly aggregateID: Schema.String;
|
|
42
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
43
|
+
}>, Schema.Struct<{
|
|
44
|
+
readonly type: Schema.Literal<"log.sweep_required">;
|
|
45
|
+
}>]>;
|
|
46
|
+
export type Change = typeof Change.Type;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * as EventLog from "./event-log.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { Event } from "./event.js";
|
|
4
|
+
import { optional } from "./schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* Replay-to-live boundary marker for a durable log read. The reader now holds
|
|
7
|
+
* every event committed at or below `seq`; `seq` is absent when the log holds
|
|
8
|
+
* no events at or before the read position. May be re-emitted after the
|
|
9
|
+
* reader internally re-attaches.
|
|
10
|
+
*/
|
|
11
|
+
export const CaughtUp = Schema.Struct({
|
|
12
|
+
type: Schema.Literal("log.caught_up"),
|
|
13
|
+
aggregateID: Schema.String,
|
|
14
|
+
seq: optional(Event.Seq),
|
|
15
|
+
}).annotate({
|
|
16
|
+
identifier: "EventLog.CaughtUp",
|
|
17
|
+
description: "Marker emitted when a log read transitions from replay to live (or completes a finite read). The reader holds every event committed at or below seq.",
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
|
|
21
|
+
* Hints are a latency optimization only; no consumer may derive correctness
|
|
22
|
+
* from receiving one. Correctness always comes from a durable log read plus
|
|
23
|
+
* the consumer's own checkpoint.
|
|
24
|
+
*/
|
|
25
|
+
export const Hint = Schema.Struct({
|
|
26
|
+
type: Schema.Literal("log.hint"),
|
|
27
|
+
aggregateID: Schema.String,
|
|
28
|
+
seq: Event.Seq,
|
|
29
|
+
}).annotate({
|
|
30
|
+
identifier: "EventLog.Hint",
|
|
31
|
+
description: "Payload-free change hint: the aggregate's durable log advanced to at least seq. Hints coalesce under backpressure (latest per aggregate) and are never a delivery guarantee.",
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Hints may have been lost. Treat every aggregate as potentially dirty and
|
|
35
|
+
* recover via bounded sweep plus durable log reads. Also emitted first on
|
|
36
|
+
* every (re)subscribe, since hints during disconnection were never buffered.
|
|
37
|
+
*/
|
|
38
|
+
export const SweepRequired = Schema.Struct({
|
|
39
|
+
type: Schema.Literal("log.sweep_required"),
|
|
40
|
+
}).annotate({
|
|
41
|
+
identifier: "EventLog.SweepRequired",
|
|
42
|
+
description: "Hints may have been lost; treat every aggregate as potentially dirty and recover via bounded sweep plus durable log reads. Emitted first on every (re)subscribe.",
|
|
43
|
+
});
|
|
44
|
+
export const Change = Schema.Union([Hint, SweepRequired]).annotate({ identifier: "EventLog.Change" });
|