@opencode-ai/schema 0.0.0-next-15234 → 0.0.0-next-15241
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/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Provider } from "./provider.js";
|
|
|
20
20
|
export { Reference } from "./reference.js";
|
|
21
21
|
export { Session } from "./session.js";
|
|
22
22
|
export { Vcs } from "./vcs.js";
|
|
23
|
-
export {
|
|
23
|
+
export { SessionPending } from "./session-pending.js";
|
|
24
24
|
export { SessionError } from "./session-error.js";
|
|
25
25
|
export { SessionMessage } from "./session-message.js";
|
|
26
26
|
export { Snapshot } from "./snapshot.js";
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { Provider } from "./provider.js";
|
|
|
20
20
|
export { Reference } from "./reference.js";
|
|
21
21
|
export { Session } from "./session.js";
|
|
22
22
|
export { Vcs } from "./vcs.js";
|
|
23
|
-
export {
|
|
23
|
+
export { SessionPending } from "./session-pending.js";
|
|
24
24
|
export { SessionError } from "./session-error.js";
|
|
25
25
|
export { SessionMessage } from "./session-message.js";
|
|
26
26
|
export { Snapshot } from "./snapshot.js";
|
package/dist/session-event.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Skill as SkillSchema } from "./skill.js";
|
|
|
18
18
|
import { Money } from "./money.js";
|
|
19
19
|
import { Snapshot } from "./snapshot.js";
|
|
20
20
|
import { TokenUsage } from "./token-usage.js";
|
|
21
|
-
import {
|
|
21
|
+
import { SessionPending } from "./session-pending.js";
|
|
22
22
|
export { FileAttachment };
|
|
23
23
|
export const Source = Schema.Struct({
|
|
24
24
|
start: NonNegativeInt,
|
|
@@ -108,7 +108,7 @@ export const InputAdmitted = Event.durable({
|
|
|
108
108
|
schema: {
|
|
109
109
|
...Base,
|
|
110
110
|
inputID: SessionMessage.ID,
|
|
111
|
-
input:
|
|
111
|
+
input: SessionPending.Message,
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
114
|
export var Execution;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as SessionPending from "./session-pending.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { SessionDelivery } from "./session-delivery.js";
|
|
4
4
|
export declare const Delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
@@ -463,7 +463,6 @@ export declare const User: Schema.Struct<{
|
|
|
463
463
|
}>>>, never, never>;
|
|
464
464
|
}>;
|
|
465
465
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
466
|
-
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
467
466
|
readonly admittedSeq: Schema.Int;
|
|
468
467
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
469
468
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -485,7 +484,6 @@ export declare const Synthetic: Schema.Struct<{
|
|
|
485
484
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
486
485
|
}>;
|
|
487
486
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
488
|
-
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
489
487
|
readonly admittedSeq: Schema.Int;
|
|
490
488
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
491
489
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -501,7 +499,6 @@ export interface Compaction extends Schema.Schema.Type<typeof Compaction> {
|
|
|
501
499
|
}
|
|
502
500
|
export declare const Compaction: Schema.Struct<{
|
|
503
501
|
readonly type: Schema.tag<"compaction">;
|
|
504
|
-
readonly handledSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
505
502
|
readonly admittedSeq: Schema.Int;
|
|
506
503
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
507
504
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -620,7 +617,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
620
617
|
}>>>, never, never>;
|
|
621
618
|
}>;
|
|
622
619
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
623
|
-
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
624
620
|
readonly admittedSeq: Schema.Int;
|
|
625
621
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
626
622
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -639,7 +635,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
639
635
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
640
636
|
}>;
|
|
641
637
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
642
|
-
readonly promotedSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
643
638
|
readonly admittedSeq: Schema.Int;
|
|
644
639
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
645
640
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -652,7 +647,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
652
647
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
653
648
|
}>, Schema.Struct<{
|
|
654
649
|
readonly type: Schema.tag<"compaction">;
|
|
655
|
-
readonly handledSeq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
656
650
|
readonly admittedSeq: Schema.Int;
|
|
657
651
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
658
652
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as SessionPending from "./session-pending.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
4
|
import { Prompt } from "./prompt.js";
|
|
@@ -10,44 +10,39 @@ export const Delivery = SessionDelivery.Delivery;
|
|
|
10
10
|
export const UserData = Schema.Struct({
|
|
11
11
|
...Prompt.fields,
|
|
12
12
|
metadata: Schema.Record(Schema.String, Schema.Unknown).pipe(optional),
|
|
13
|
-
}).annotate({ identifier: "
|
|
13
|
+
}).annotate({ identifier: "SessionPending.UserData" });
|
|
14
14
|
export const SyntheticData = Schema.Struct({
|
|
15
15
|
text: Schema.String,
|
|
16
16
|
description: Schema.String.pipe(optional),
|
|
17
17
|
metadata: Schema.Record(Schema.String, Schema.Unknown).pipe(optional),
|
|
18
|
-
}).annotate({ identifier: "
|
|
18
|
+
}).annotate({ identifier: "SessionPending.SyntheticData" });
|
|
19
19
|
export const UserMessage = Schema.Struct({
|
|
20
20
|
type: Schema.tag("user"),
|
|
21
21
|
data: UserData,
|
|
22
22
|
delivery: Delivery,
|
|
23
|
-
}).annotate({ identifier: "
|
|
23
|
+
}).annotate({ identifier: "SessionPending.UserMessage" });
|
|
24
24
|
export const SyntheticMessage = Schema.Struct({
|
|
25
25
|
type: Schema.tag("synthetic"),
|
|
26
26
|
data: SyntheticData,
|
|
27
27
|
delivery: Delivery,
|
|
28
|
-
}).annotate({ identifier: "
|
|
29
|
-
export const Message = Schema.Union([UserMessage, SyntheticMessage]).pipe(Schema.toTaggedUnion("type"), Schema.annotate({ identifier: "
|
|
28
|
+
}).annotate({ identifier: "SessionPending.SyntheticMessage" });
|
|
29
|
+
export const Message = Schema.Union([UserMessage, SyntheticMessage]).pipe(Schema.toTaggedUnion("type"), Schema.annotate({ identifier: "SessionPending.Message" }));
|
|
30
30
|
const Admitted = {
|
|
31
31
|
admittedSeq: NonNegativeInt,
|
|
32
32
|
id: SessionMessage.ID,
|
|
33
33
|
sessionID: SessionID,
|
|
34
34
|
timeCreated: DateTimeUtcFromMillis,
|
|
35
35
|
};
|
|
36
|
-
const MessageLifecycle = {
|
|
37
|
-
...Admitted,
|
|
38
|
-
promotedSeq: NonNegativeInt.pipe(optional),
|
|
39
|
-
};
|
|
40
36
|
export const User = Schema.Struct({
|
|
41
|
-
...
|
|
37
|
+
...Admitted,
|
|
42
38
|
...UserMessage.fields,
|
|
43
|
-
}).annotate({ identifier: "
|
|
39
|
+
}).annotate({ identifier: "SessionPending.User" });
|
|
44
40
|
export const Synthetic = Schema.Struct({
|
|
45
|
-
...
|
|
41
|
+
...Admitted,
|
|
46
42
|
...SyntheticMessage.fields,
|
|
47
|
-
}).annotate({ identifier: "
|
|
43
|
+
}).annotate({ identifier: "SessionPending.Synthetic" });
|
|
48
44
|
export const Compaction = Schema.Struct({
|
|
49
45
|
...Admitted,
|
|
50
46
|
type: Schema.tag("compaction"),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export const Info = Schema.Union([User, Synthetic, Compaction]).pipe(Schema.toTaggedUnion("type"), Schema.annotate({ identifier: "SessionInput.Info" }));
|
|
47
|
+
}).annotate({ identifier: "SessionPending.Compaction" });
|
|
48
|
+
export const Info = Schema.Union([User, Synthetic, Compaction]).pipe(Schema.toTaggedUnion("type"), Schema.annotate({ identifier: "SessionPending.Info" }));
|