@opencode-ai/schema 0.0.0-next-14855 → 0.0.0-reserved.0
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/README.md +3 -0
- package/index.js +1 -0
- package/package.json +3 -26
- package/dist/agent.d.ts +0 -159
- package/dist/agent.js +0 -43
- package/dist/catalog.d.ts +0 -69
- package/dist/catalog.js +0 -4
- package/dist/command.d.ts +0 -112
- package/dist/command.js +0 -18
- package/dist/config.d.ts +0 -69
- package/dist/config.js +0 -7
- package/dist/connection.d.ts +0 -28
- package/dist/connection.js +0 -15
- package/dist/credential.d.ts +0 -36
- package/dist/credential.js +0 -23
- package/dist/durable-event-manifest.d.ts +0 -2370
- package/dist/durable-event-manifest.js +0 -9
- package/dist/event-log.d.ts +0 -45
- package/dist/event-log.js +0 -43
- package/dist/event-manifest.d.ts +0 -15273
- package/dist/event-manifest.js +0 -52
- package/dist/event.d.ts +0 -142
- package/dist/event.js +0 -102
- package/dist/file-diff.d.ts +0 -11
- package/dist/file-diff.js +0 -10
- package/dist/filesystem-v1.d.ts +0 -1
- package/dist/filesystem-v1.js +0 -1
- package/dist/filesystem.d.ts +0 -118
- package/dist/filesystem.js +0 -35
- package/dist/form.d.ts +0 -1279
- package/dist/form.js +0 -112
- package/dist/ide-event.d.ts +0 -76
- package/dist/ide-event.js +0 -10
- package/dist/identifier.d.ts +0 -3
- package/dist/identifier.js +0 -24
- package/dist/index.d.ts +0 -32
- package/dist/index.js +0 -32
- package/dist/installation-event.d.ts +0 -149
- package/dist/installation-event.js +0 -16
- package/dist/integration-id.d.ts +0 -5
- package/dist/integration-id.js +0 -3
- package/dist/integration.d.ts +0 -532
- package/dist/integration.js +0 -93
- package/dist/legacy-event.d.ts +0 -1
- package/dist/legacy-event.js +0 -1
- package/dist/llm.d.ts +0 -28
- package/dist/llm.js +0 -19
- package/dist/location.d.ts +0 -36
- package/dist/location.js +0 -21
- package/dist/lsp-event.d.ts +0 -67
- package/dist/lsp-event.js +0 -4
- package/dist/mcp-event.d.ts +0 -188
- package/dist/mcp-event.js +0 -25
- package/dist/mcp.d.ts +0 -39
- package/dist/mcp.js +0 -38
- package/dist/model.d.ts +0 -213
- package/dist/model.js +0 -86
- package/dist/models-dev.d.ts +0 -69
- package/dist/models-dev.js +0 -7
- package/dist/permission-saved.d.ts +0 -18
- package/dist/permission-saved.js +0 -12
- package/dist/permission-v1.d.ts +0 -1
- package/dist/permission-v1.js +0 -1
- package/dist/permission.d.ts +0 -306
- package/dist/permission.js +0 -45
- package/dist/plugin.d.ts +0 -85
- package/dist/plugin.js +0 -12
- package/dist/project-copy.d.ts +0 -29
- package/dist/project-copy.js +0 -21
- package/dist/project-directories.d.ts +0 -85
- package/dist/project-directories.js +0 -8
- package/dist/project-id.d.ts +0 -5
- package/dist/project-id.js +0 -3
- package/dist/project.d.ts +0 -258
- package/dist/project.js +0 -44
- package/dist/prompt-input.d.ts +0 -106
- package/dist/prompt-input.js +0 -19
- package/dist/prompt.d.ts +0 -177
- package/dist/prompt.js +0 -43
- package/dist/provider.d.ts +0 -118
- package/dist/provider.js +0 -55
- package/dist/pty-ticket.d.ts +0 -8
- package/dist/pty-ticket.js +0 -7
- package/dist/pty.d.ts +0 -462
- package/dist/pty.js +0 -43
- package/dist/question-v1.d.ts +0 -1
- package/dist/question-v1.js +0 -1
- package/dist/question.d.ts +0 -456
- package/dist/question.js +0 -64
- package/dist/reference.d.ts +0 -120
- package/dist/reference.js +0 -31
- package/dist/revert.d.ts +0 -35
- package/dist/revert.js +0 -19
- package/dist/schema.d.ts +0 -10
- package/dist/schema.js +0 -14
- package/dist/server-event.d.ts +0 -132
- package/dist/server-event.js +0 -5
- package/dist/session-compaction-event.d.ts +0 -87
- package/dist/session-compaction-event.js +0 -10
- package/dist/session-context-entry.d.ts +0 -15
- package/dist/session-context-entry.js +0 -15
- package/dist/session-delivery.d.ts +0 -4
- package/dist/session-delivery.js +0 -3
- package/dist/session-event.d.ts +0 -12728
- package/dist/session-event.js +0 -423
- package/dist/session-id.d.ts +0 -6
- package/dist/session-id.js +0 -10
- package/dist/session-input.d.ts +0 -146
- package/dist/session-input.js +0 -18
- package/dist/session-message.d.ts +0 -1390
- package/dist/session-message.js +0 -175
- package/dist/session-status-event.d.ts +0 -299
- package/dist/session-status-event.js +0 -43
- package/dist/session-todo.d.ts +0 -117
- package/dist/session-todo.js +0 -21
- package/dist/session-v1.d.ts +0 -1
- package/dist/session-v1.js +0 -1
- package/dist/session.d.ts +0 -142
- package/dist/session.js +0 -43
- package/dist/shell.d.ts +0 -381
- package/dist/shell.js +0 -58
- package/dist/skill.d.ts +0 -126
- package/dist/skill.js +0 -45
- package/dist/tui-event.d.ts +0 -307
- package/dist/tui-event.js +0 -53
- package/dist/v1/filesystem.d.ts +0 -78
- package/dist/v1/filesystem.js +0 -8
- package/dist/v1/legacy-event.d.ts +0 -108
- package/dist/v1/legacy-event.js +0 -15
- package/dist/v1/permission.d.ts +0 -316
- package/dist/v1/permission.js +0 -41
- package/dist/v1/question.d.ts +0 -444
- package/dist/v1/question.js +0 -57
- package/dist/v1/session.d.ts +0 -7657
- package/dist/v1/session.js +0 -535
- package/dist/vcs-event.d.ts +0 -76
- package/dist/vcs-event.js +0 -11
- package/dist/vcs.d.ts +0 -12
- package/dist/vcs.js +0 -10
- package/dist/workspace-event.d.ts +0 -247
- package/dist/workspace-event.js +0 -25
- package/dist/workspace-id.d.ts +0 -6
- package/dist/workspace-id.js +0 -16
- package/dist/workspace.d.ts +0 -9
- package/dist/workspace.js +0 -5
- package/dist/worktree-event.d.ts +0 -153
- package/dist/worktree-event.js +0 -18
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * as DurableEventManifest from "./durable-event-manifest.js";
|
|
2
|
-
import { Event } from "./event.js";
|
|
3
|
-
import { SessionEvent } from "./session-event.js";
|
|
4
|
-
import { SessionV1 } from "./session-v1.js";
|
|
5
|
-
export const SessionDurable = {
|
|
6
|
-
definitions: Event.durableMap(SessionEvent.Definitions),
|
|
7
|
-
schema: SessionEvent.Durable,
|
|
8
|
-
};
|
|
9
|
-
export const Durable = Event.durableMap([...SessionV1.Event.Definitions, ...SessionEvent.Definitions]);
|
package/dist/event-log.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
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 this watermark; `seq` is absent when the
|
|
6
|
-
* captured watermark is empty. Emitted once for the captured watermark.
|
|
7
|
-
*/
|
|
8
|
-
export declare const Synced: Schema.Struct<{
|
|
9
|
-
readonly type: Schema.Literal<"log.synced">;
|
|
10
|
-
readonly aggregateID: Schema.String;
|
|
11
|
-
readonly seq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Int, "Event.Seq">>>, Schema.optionalKey<Schema.brand<Schema.Int, "Event.Seq">>, never, never>;
|
|
12
|
-
}>;
|
|
13
|
-
export interface Synced extends Schema.Schema.Type<typeof Synced> {
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
|
|
17
|
-
* Hints are a latency optimization only; no consumer may derive correctness
|
|
18
|
-
* from receiving one. Correctness always comes from a durable log read plus
|
|
19
|
-
* the consumer's own checkpoint.
|
|
20
|
-
*/
|
|
21
|
-
export declare const Hint: Schema.Struct<{
|
|
22
|
-
readonly type: Schema.Literal<"log.hint">;
|
|
23
|
-
readonly aggregateID: Schema.String;
|
|
24
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
25
|
-
}>;
|
|
26
|
-
export interface Hint extends Schema.Schema.Type<typeof Hint> {
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hints may have been lost. Treat every aggregate as potentially dirty and
|
|
30
|
-
* recover via bounded sweep plus durable log reads. Also emitted first on
|
|
31
|
-
* every (re)subscribe, since hints during disconnection were never buffered.
|
|
32
|
-
*/
|
|
33
|
-
export declare const SweepRequired: Schema.Struct<{
|
|
34
|
-
readonly type: Schema.Literal<"log.sweep_required">;
|
|
35
|
-
}>;
|
|
36
|
-
export interface SweepRequired extends Schema.Schema.Type<typeof SweepRequired> {
|
|
37
|
-
}
|
|
38
|
-
export declare const Change: Schema.Union<readonly [Schema.Struct<{
|
|
39
|
-
readonly type: Schema.Literal<"log.hint">;
|
|
40
|
-
readonly aggregateID: Schema.String;
|
|
41
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
42
|
-
}>, Schema.Struct<{
|
|
43
|
-
readonly type: Schema.Literal<"log.sweep_required">;
|
|
44
|
-
}>]>;
|
|
45
|
-
export type Change = typeof Change.Type;
|
package/dist/event-log.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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 this watermark; `seq` is absent when the
|
|
8
|
-
* captured watermark is empty. Emitted once for the captured watermark.
|
|
9
|
-
*/
|
|
10
|
-
export const Synced = Schema.Struct({
|
|
11
|
-
type: Schema.Literal("log.synced"),
|
|
12
|
-
aggregateID: Schema.String,
|
|
13
|
-
seq: optional(Event.Seq),
|
|
14
|
-
}).annotate({
|
|
15
|
-
identifier: "EventLog.Synced",
|
|
16
|
-
description: "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq.",
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* A payload-free doorbell: the aggregate's log advanced to at least `seq`.
|
|
20
|
-
* Hints are a latency optimization only; no consumer may derive correctness
|
|
21
|
-
* from receiving one. Correctness always comes from a durable log read plus
|
|
22
|
-
* the consumer's own checkpoint.
|
|
23
|
-
*/
|
|
24
|
-
export const Hint = Schema.Struct({
|
|
25
|
-
type: Schema.Literal("log.hint"),
|
|
26
|
-
aggregateID: Schema.String,
|
|
27
|
-
seq: Event.Seq,
|
|
28
|
-
}).annotate({
|
|
29
|
-
identifier: "EventLog.Hint",
|
|
30
|
-
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.",
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* Hints may have been lost. Treat every aggregate as potentially dirty and
|
|
34
|
-
* recover via bounded sweep plus durable log reads. Also emitted first on
|
|
35
|
-
* every (re)subscribe, since hints during disconnection were never buffered.
|
|
36
|
-
*/
|
|
37
|
-
export const SweepRequired = Schema.Struct({
|
|
38
|
-
type: Schema.Literal("log.sweep_required"),
|
|
39
|
-
}).annotate({
|
|
40
|
-
identifier: "EventLog.SweepRequired",
|
|
41
|
-
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.",
|
|
42
|
-
});
|
|
43
|
-
export const Change = Schema.Union([Hint, SweepRequired]).annotate({ identifier: "EventLog.Change" });
|