@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.
Files changed (147) hide show
  1. package/README.md +3 -0
  2. package/index.js +1 -0
  3. package/package.json +3 -26
  4. package/dist/agent.d.ts +0 -159
  5. package/dist/agent.js +0 -43
  6. package/dist/catalog.d.ts +0 -69
  7. package/dist/catalog.js +0 -4
  8. package/dist/command.d.ts +0 -112
  9. package/dist/command.js +0 -18
  10. package/dist/config.d.ts +0 -69
  11. package/dist/config.js +0 -7
  12. package/dist/connection.d.ts +0 -28
  13. package/dist/connection.js +0 -15
  14. package/dist/credential.d.ts +0 -36
  15. package/dist/credential.js +0 -23
  16. package/dist/durable-event-manifest.d.ts +0 -2370
  17. package/dist/durable-event-manifest.js +0 -9
  18. package/dist/event-log.d.ts +0 -45
  19. package/dist/event-log.js +0 -43
  20. package/dist/event-manifest.d.ts +0 -15273
  21. package/dist/event-manifest.js +0 -52
  22. package/dist/event.d.ts +0 -142
  23. package/dist/event.js +0 -102
  24. package/dist/file-diff.d.ts +0 -11
  25. package/dist/file-diff.js +0 -10
  26. package/dist/filesystem-v1.d.ts +0 -1
  27. package/dist/filesystem-v1.js +0 -1
  28. package/dist/filesystem.d.ts +0 -118
  29. package/dist/filesystem.js +0 -35
  30. package/dist/form.d.ts +0 -1279
  31. package/dist/form.js +0 -112
  32. package/dist/ide-event.d.ts +0 -76
  33. package/dist/ide-event.js +0 -10
  34. package/dist/identifier.d.ts +0 -3
  35. package/dist/identifier.js +0 -24
  36. package/dist/index.d.ts +0 -32
  37. package/dist/index.js +0 -32
  38. package/dist/installation-event.d.ts +0 -149
  39. package/dist/installation-event.js +0 -16
  40. package/dist/integration-id.d.ts +0 -5
  41. package/dist/integration-id.js +0 -3
  42. package/dist/integration.d.ts +0 -532
  43. package/dist/integration.js +0 -93
  44. package/dist/legacy-event.d.ts +0 -1
  45. package/dist/legacy-event.js +0 -1
  46. package/dist/llm.d.ts +0 -28
  47. package/dist/llm.js +0 -19
  48. package/dist/location.d.ts +0 -36
  49. package/dist/location.js +0 -21
  50. package/dist/lsp-event.d.ts +0 -67
  51. package/dist/lsp-event.js +0 -4
  52. package/dist/mcp-event.d.ts +0 -188
  53. package/dist/mcp-event.js +0 -25
  54. package/dist/mcp.d.ts +0 -39
  55. package/dist/mcp.js +0 -38
  56. package/dist/model.d.ts +0 -213
  57. package/dist/model.js +0 -86
  58. package/dist/models-dev.d.ts +0 -69
  59. package/dist/models-dev.js +0 -7
  60. package/dist/permission-saved.d.ts +0 -18
  61. package/dist/permission-saved.js +0 -12
  62. package/dist/permission-v1.d.ts +0 -1
  63. package/dist/permission-v1.js +0 -1
  64. package/dist/permission.d.ts +0 -306
  65. package/dist/permission.js +0 -45
  66. package/dist/plugin.d.ts +0 -85
  67. package/dist/plugin.js +0 -12
  68. package/dist/project-copy.d.ts +0 -29
  69. package/dist/project-copy.js +0 -21
  70. package/dist/project-directories.d.ts +0 -85
  71. package/dist/project-directories.js +0 -8
  72. package/dist/project-id.d.ts +0 -5
  73. package/dist/project-id.js +0 -3
  74. package/dist/project.d.ts +0 -258
  75. package/dist/project.js +0 -44
  76. package/dist/prompt-input.d.ts +0 -106
  77. package/dist/prompt-input.js +0 -19
  78. package/dist/prompt.d.ts +0 -177
  79. package/dist/prompt.js +0 -43
  80. package/dist/provider.d.ts +0 -118
  81. package/dist/provider.js +0 -55
  82. package/dist/pty-ticket.d.ts +0 -8
  83. package/dist/pty-ticket.js +0 -7
  84. package/dist/pty.d.ts +0 -462
  85. package/dist/pty.js +0 -43
  86. package/dist/question-v1.d.ts +0 -1
  87. package/dist/question-v1.js +0 -1
  88. package/dist/question.d.ts +0 -456
  89. package/dist/question.js +0 -64
  90. package/dist/reference.d.ts +0 -120
  91. package/dist/reference.js +0 -31
  92. package/dist/revert.d.ts +0 -35
  93. package/dist/revert.js +0 -19
  94. package/dist/schema.d.ts +0 -10
  95. package/dist/schema.js +0 -14
  96. package/dist/server-event.d.ts +0 -132
  97. package/dist/server-event.js +0 -5
  98. package/dist/session-compaction-event.d.ts +0 -87
  99. package/dist/session-compaction-event.js +0 -10
  100. package/dist/session-context-entry.d.ts +0 -15
  101. package/dist/session-context-entry.js +0 -15
  102. package/dist/session-delivery.d.ts +0 -4
  103. package/dist/session-delivery.js +0 -3
  104. package/dist/session-event.d.ts +0 -12728
  105. package/dist/session-event.js +0 -423
  106. package/dist/session-id.d.ts +0 -6
  107. package/dist/session-id.js +0 -10
  108. package/dist/session-input.d.ts +0 -146
  109. package/dist/session-input.js +0 -18
  110. package/dist/session-message.d.ts +0 -1390
  111. package/dist/session-message.js +0 -175
  112. package/dist/session-status-event.d.ts +0 -299
  113. package/dist/session-status-event.js +0 -43
  114. package/dist/session-todo.d.ts +0 -117
  115. package/dist/session-todo.js +0 -21
  116. package/dist/session-v1.d.ts +0 -1
  117. package/dist/session-v1.js +0 -1
  118. package/dist/session.d.ts +0 -142
  119. package/dist/session.js +0 -43
  120. package/dist/shell.d.ts +0 -381
  121. package/dist/shell.js +0 -58
  122. package/dist/skill.d.ts +0 -126
  123. package/dist/skill.js +0 -45
  124. package/dist/tui-event.d.ts +0 -307
  125. package/dist/tui-event.js +0 -53
  126. package/dist/v1/filesystem.d.ts +0 -78
  127. package/dist/v1/filesystem.js +0 -8
  128. package/dist/v1/legacy-event.d.ts +0 -108
  129. package/dist/v1/legacy-event.js +0 -15
  130. package/dist/v1/permission.d.ts +0 -316
  131. package/dist/v1/permission.js +0 -41
  132. package/dist/v1/question.d.ts +0 -444
  133. package/dist/v1/question.js +0 -57
  134. package/dist/v1/session.d.ts +0 -7657
  135. package/dist/v1/session.js +0 -535
  136. package/dist/vcs-event.d.ts +0 -76
  137. package/dist/vcs-event.js +0 -11
  138. package/dist/vcs.d.ts +0 -12
  139. package/dist/vcs.js +0 -10
  140. package/dist/workspace-event.d.ts +0 -247
  141. package/dist/workspace-event.js +0 -25
  142. package/dist/workspace-id.d.ts +0 -6
  143. package/dist/workspace-id.js +0 -16
  144. package/dist/workspace.d.ts +0 -9
  145. package/dist/workspace.js +0 -5
  146. package/dist/worktree-event.d.ts +0 -153
  147. package/dist/worktree-event.js +0 -18
package/dist/reference.js DELETED
@@ -1,31 +0,0 @@
1
- export * as Reference from "./reference.js";
2
- import { Schema } from "effect";
3
- import { optional } from "./schema.js";
4
- import { ephemeral, inventory } from "./event.js";
5
- import { AbsolutePath } from "./schema.js";
6
- const Updated = ephemeral({ type: "reference.updated", schema: {} });
7
- export const Event = { Updated, Definitions: inventory(Updated) };
8
- export const LocalSource = Schema.Struct({
9
- type: Schema.Literal("local"),
10
- path: AbsolutePath,
11
- description: Schema.String.pipe(optional),
12
- hidden: Schema.Boolean.pipe(optional),
13
- }).annotate({ identifier: "Reference.LocalSource" });
14
- export const GitSource = Schema.Struct({
15
- type: Schema.Literal("git"),
16
- repository: Schema.String,
17
- branch: Schema.String.pipe(optional),
18
- description: Schema.String.pipe(optional),
19
- hidden: Schema.Boolean.pipe(optional),
20
- }).annotate({ identifier: "Reference.GitSource" });
21
- export const Source = Schema.Union([LocalSource, GitSource])
22
- .pipe(Schema.toTaggedUnion("type"))
23
- .annotate({ identifier: "Reference.Source" });
24
- export class Info extends Schema.Class("Reference.Info")({
25
- name: Schema.String,
26
- path: AbsolutePath,
27
- description: Schema.String.pipe(optional),
28
- hidden: Schema.Boolean.pipe(optional),
29
- source: Source,
30
- }) {
31
- }
package/dist/revert.d.ts DELETED
@@ -1,35 +0,0 @@
1
- export * as Revert from "./revert.js";
2
- import { Schema } from "effect";
3
- export declare const FileDiff: Schema.Struct<{
4
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6
- readonly additions: Schema.Int;
7
- readonly deletions: Schema.Int;
8
- readonly patch: Schema.String;
9
- }>;
10
- export interface FileDiff extends Schema.Schema.Type<typeof FileDiff> {
11
- }
12
- export declare const State: Schema.Struct<{
13
- readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
14
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15
- fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
16
- };
17
- readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
18
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
19
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
20
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
21
- readonly path: Schema.brand<Schema.String, "RelativePath">;
22
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
23
- readonly additions: Schema.Int;
24
- readonly deletions: Schema.Int;
25
- readonly patch: Schema.String;
26
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
27
- readonly path: Schema.brand<Schema.String, "RelativePath">;
28
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
29
- readonly additions: Schema.Int;
30
- readonly deletions: Schema.Int;
31
- readonly patch: Schema.String;
32
- }>>>, never, never>;
33
- }>;
34
- export interface State extends Schema.Schema.Type<typeof State> {
35
- }
package/dist/revert.js DELETED
@@ -1,19 +0,0 @@
1
- export * as Revert from "./revert.js";
2
- import { Schema } from "effect";
3
- import { optional } from "./schema.js";
4
- import { NonNegativeInt, RelativePath } from "./schema.js";
5
- import { SessionMessage } from "./session-message.js";
6
- export const FileDiff = Schema.Struct({
7
- path: RelativePath,
8
- status: Schema.Literals(["added", "modified", "deleted"]),
9
- additions: NonNegativeInt,
10
- deletions: NonNegativeInt,
11
- patch: Schema.String,
12
- }).annotate({ identifier: "File.Diff" });
13
- export const State = Schema.Struct({
14
- messageID: SessionMessage.ID,
15
- partID: Schema.String.pipe(optional),
16
- snapshot: Schema.String.pipe(optional),
17
- diff: Schema.String.pipe(optional),
18
- files: Schema.Array(FileDiff).pipe(optional),
19
- }).annotate({ identifier: "Revert.State" });
package/dist/schema.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { Schema } from "effect";
2
- export declare const PositiveInt: Schema.Int;
3
- export declare const NonNegativeInt: Schema.Int;
4
- export declare const RelativePath: Schema.brand<Schema.String, "RelativePath">;
5
- export type RelativePath = typeof RelativePath.Type;
6
- export declare const AbsolutePath: Schema.brand<Schema.String, "AbsolutePath">;
7
- export type AbsolutePath = typeof AbsolutePath.Type;
8
- export declare const optional: <S extends Schema.Top>(schema: S) => Schema.decodeTo<Schema.optional<Schema.toType<S>>, Schema.optionalKey<S>, never, never>;
9
- export declare const statics: <S extends object, M extends Record<string, unknown>>(methods: (schema: S) => M) => (schema: S) => S & M;
10
- export declare const DateTimeUtcFromMillis: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
package/dist/schema.js DELETED
@@ -1,14 +0,0 @@
1
- import { DateTime, Option, Schema, SchemaGetter } from "effect";
2
- export const PositiveInt = Schema.Int.check(Schema.isGreaterThan(0));
3
- export const NonNegativeInt = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0));
4
- export const RelativePath = Schema.String.pipe(Schema.brand("RelativePath"));
5
- export const AbsolutePath = Schema.String.pipe(Schema.brand("AbsolutePath"));
6
- export const optional = (schema) => Schema.optionalKey(schema).pipe(Schema.decodeTo(Schema.optional(Schema.toType(schema)), {
7
- decode: SchemaGetter.passthrough({ strict: false }),
8
- encode: SchemaGetter.transformOptional(Option.filter((value) => value !== undefined)),
9
- }));
10
- export const statics = (methods) => (schema) => Object.assign(schema, methods(schema));
11
- export const DateTimeUtcFromMillis = Schema.Finite.pipe(Schema.decodeTo(Schema.DateTimeUtc, {
12
- decode: SchemaGetter.transform((value) => DateTime.makeUnsafe(value)),
13
- encode: SchemaGetter.transform((value) => DateTime.toEpochMillis(value)),
14
- }));
@@ -1,132 +0,0 @@
1
- export * as ServerEvent from "./server-event.js";
2
- export declare const Connected: import("effect/Schema").Struct<{
3
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
4
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
5
- };
6
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
7
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
8
- readonly type: import("effect/Schema").Literal<"server.connected">;
9
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
10
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
11
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
12
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
15
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
17
- }>, never, never>;
18
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
19
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
20
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
21
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
22
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
23
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
24
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
25
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
26
- }>, never, never>;
27
- }>>, never, never>;
28
- readonly data: import("effect/Schema").Struct<{}>;
29
- }> & {
30
- type: "server.connected";
31
- durability: "ephemeral";
32
- durable: undefined;
33
- data: import("effect/Schema").Struct<{}>;
34
- };
35
- export declare const Disposed: import("effect/Schema").Struct<{
36
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
37
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
38
- };
39
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
40
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
41
- readonly type: import("effect/Schema").Literal<"global.disposed">;
42
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
43
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
44
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
45
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
46
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
47
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
48
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
49
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
50
- }>, never, never>;
51
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
52
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
53
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
54
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
55
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
56
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
57
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
58
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
59
- }>, never, never>;
60
- }>>, never, never>;
61
- readonly data: import("effect/Schema").Struct<{}>;
62
- }> & {
63
- type: "global.disposed";
64
- durability: "ephemeral";
65
- durable: undefined;
66
- data: import("effect/Schema").Struct<{}>;
67
- };
68
- export declare const Definitions: readonly [import("effect/Schema").Struct<{
69
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
70
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
71
- };
72
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
73
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
74
- readonly type: import("effect/Schema").Literal<"server.connected">;
75
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
76
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
77
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
78
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
79
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
80
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
81
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
82
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
83
- }>, never, never>;
84
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
85
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
86
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
87
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
88
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
89
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
90
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
91
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
92
- }>, never, never>;
93
- }>>, never, never>;
94
- readonly data: import("effect/Schema").Struct<{}>;
95
- }> & {
96
- type: "server.connected";
97
- durability: "ephemeral";
98
- durable: undefined;
99
- data: import("effect/Schema").Struct<{}>;
100
- }, import("effect/Schema").Struct<{
101
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
102
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
103
- };
104
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
105
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
106
- readonly type: import("effect/Schema").Literal<"global.disposed">;
107
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
108
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
109
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
110
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
111
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
112
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
113
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
114
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
115
- }>, never, never>;
116
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
117
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
118
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
119
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
120
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
121
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
122
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
123
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
124
- }>, never, never>;
125
- }>>, never, never>;
126
- readonly data: import("effect/Schema").Struct<{}>;
127
- }> & {
128
- type: "global.disposed";
129
- durability: "ephemeral";
130
- durable: undefined;
131
- data: import("effect/Schema").Struct<{}>;
132
- }];
@@ -1,5 +0,0 @@
1
- export * as ServerEvent from "./server-event.js";
2
- import { Event } from "./event.js";
3
- export const Connected = Event.ephemeral({ type: "server.connected", schema: {} });
4
- export const Disposed = Event.ephemeral({ type: "global.disposed", schema: {} });
5
- export const Definitions = Event.inventory(Connected, Disposed);
@@ -1,87 +0,0 @@
1
- export * as SessionCompactionEvent from "./session-compaction-event.js";
2
- export declare const Compacted: import("effect/Schema").Struct<{
3
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
4
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
5
- };
6
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
7
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
8
- readonly type: import("effect/Schema").Literal<"session.compacted">;
9
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
10
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
11
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
12
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
14
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
15
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
16
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
17
- }>, never, never>;
18
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
19
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
20
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
21
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
22
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
23
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
24
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
25
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
26
- }>, never, never>;
27
- }>>, never, never>;
28
- readonly data: import("effect/Schema").Struct<{
29
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
30
- create: () => string & import("effect/Brand").Brand<"SessionID">;
31
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
32
- };
33
- }>;
34
- }> & {
35
- type: "session.compacted";
36
- durability: "ephemeral";
37
- durable: undefined;
38
- data: import("effect/Schema").Struct<{
39
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
40
- create: () => string & import("effect/Brand").Brand<"SessionID">;
41
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
42
- };
43
- }>;
44
- };
45
- export declare const Definitions: readonly [import("effect/Schema").Struct<{
46
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
47
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
48
- };
49
- readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
50
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
51
- readonly type: import("effect/Schema").Literal<"session.compacted">;
52
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
53
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
54
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
55
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
56
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
57
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
58
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
59
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
60
- }>, never, never>;
61
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
62
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
63
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
64
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
65
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
66
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
67
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
68
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
69
- }>, never, never>;
70
- }>>, never, never>;
71
- readonly data: import("effect/Schema").Struct<{
72
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
73
- create: () => string & import("effect/Brand").Brand<"SessionID">;
74
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
75
- };
76
- }>;
77
- }> & {
78
- type: "session.compacted";
79
- durability: "ephemeral";
80
- durable: undefined;
81
- data: import("effect/Schema").Struct<{
82
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
83
- create: () => string & import("effect/Brand").Brand<"SessionID">;
84
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
85
- };
86
- }>;
87
- }];
@@ -1,10 +0,0 @@
1
- export * as SessionCompactionEvent from "./session-compaction-event.js";
2
- import { Event } from "./event.js";
3
- import { SessionID } from "./session-id.js";
4
- export const Compacted = Event.ephemeral({
5
- type: "session.compacted",
6
- schema: {
7
- sessionID: SessionID,
8
- },
9
- });
10
- export const Definitions = Event.inventory(Compacted);
@@ -1,15 +0,0 @@
1
- export * as SessionContextEntry from "./session-context-entry.js";
2
- import { Schema } from "effect";
3
- /**
4
- * Slash-free client-facing key for one API-managed context entry. The server
5
- * derives the namespaced SystemContext key as `api/<key>`, keeping the
6
- * `api/*` namespace enforced by construction.
7
- */
8
- export declare const Key: Schema.String;
9
- export type Key = typeof Key.Type;
10
- export declare const Info: Schema.Struct<{
11
- readonly key: Schema.String;
12
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
13
- }>;
14
- export interface Info extends Schema.Schema.Type<typeof Info> {
15
- }
@@ -1,15 +0,0 @@
1
- export * as SessionContextEntry from "./session-context-entry.js";
2
- import { Schema } from "effect";
3
- /**
4
- * Slash-free client-facing key for one API-managed context entry. The server
5
- * derives the namespaced SystemContext key as `api/<key>`, keeping the
6
- * `api/*` namespace enforced by construction.
7
- */
8
- export const Key = Schema.String.check(Schema.isPattern(/^[a-z0-9][a-z0-9._-]*$/)).annotate({
9
- identifier: "SessionContextEntry.Key",
10
- description: "Context entry key (lowercase alphanumerics plus . _ -)",
11
- });
12
- export const Info = Schema.Struct({
13
- key: Key,
14
- value: Schema.Json.annotate({ description: "JSON value attached to the session's system context" }),
15
- }).annotate({ identifier: "SessionContextEntry.Info" });
@@ -1,4 +0,0 @@
1
- export * as SessionDelivery from "./session-delivery.js";
2
- import { Schema } from "effect";
3
- export declare const Delivery: Schema.Literals<readonly ["steer", "queue"]>;
4
- export type Delivery = typeof Delivery.Type;
@@ -1,3 +0,0 @@
1
- export * as SessionDelivery from "./session-delivery.js";
2
- import { Schema } from "effect";
3
- export const Delivery = Schema.Literals(["steer", "queue"]);