@opencode-ai/schema 0.0.0-next-14659

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 (133) hide show
  1. package/dist/agent.d.ts +175 -0
  2. package/dist/agent.js +43 -0
  3. package/dist/catalog.d.ts +89 -0
  4. package/dist/catalog.js +4 -0
  5. package/dist/command.d.ts +44 -0
  6. package/dist/command.js +12 -0
  7. package/dist/connection.d.ts +28 -0
  8. package/dist/connection.js +15 -0
  9. package/dist/credential.d.ts +36 -0
  10. package/dist/credential.js +23 -0
  11. package/dist/durable-event-manifest.d.ts +10626 -0
  12. package/dist/durable-event-manifest.js +12 -0
  13. package/dist/event-manifest.d.ts +15309 -0
  14. package/dist/event-manifest.js +43 -0
  15. package/dist/event.d.ts +82 -0
  16. package/dist/event.js +73 -0
  17. package/dist/file-diff.d.ts +11 -0
  18. package/dist/file-diff.js +10 -0
  19. package/dist/filesystem-watcher.d.ts +102 -0
  20. package/dist/filesystem-watcher.js +11 -0
  21. package/dist/filesystem.d.ts +134 -0
  22. package/dist/filesystem.js +32 -0
  23. package/dist/ide-event.d.ts +96 -0
  24. package/dist/ide-event.js +10 -0
  25. package/dist/identifier.d.ts +3 -0
  26. package/dist/identifier.js +24 -0
  27. package/dist/index.d.ts +29 -0
  28. package/dist/index.js +29 -0
  29. package/dist/installation-event.d.ts +189 -0
  30. package/dist/installation-event.js +16 -0
  31. package/dist/integration-id.d.ts +5 -0
  32. package/dist/integration-id.js +3 -0
  33. package/dist/integration.d.ts +572 -0
  34. package/dist/integration.js +93 -0
  35. package/dist/legacy-event.d.ts +1 -0
  36. package/dist/legacy-event.js +1 -0
  37. package/dist/llm.d.ts +28 -0
  38. package/dist/llm.js +19 -0
  39. package/dist/location.d.ts +36 -0
  40. package/dist/location.js +21 -0
  41. package/dist/lsp-event.d.ts +87 -0
  42. package/dist/lsp-event.js +4 -0
  43. package/dist/mcp-event.d.ts +286 -0
  44. package/dist/mcp-event.js +25 -0
  45. package/dist/mcp.d.ts +39 -0
  46. package/dist/mcp.js +38 -0
  47. package/dist/model.d.ts +205 -0
  48. package/dist/model.js +86 -0
  49. package/dist/models-dev.d.ts +89 -0
  50. package/dist/models-dev.js +7 -0
  51. package/dist/permission-saved.d.ts +18 -0
  52. package/dist/permission-saved.js +12 -0
  53. package/dist/permission-v1.d.ts +1 -0
  54. package/dist/permission-v1.js +1 -0
  55. package/dist/permission.d.ts +346 -0
  56. package/dist/permission.js +45 -0
  57. package/dist/plugin.d.ts +105 -0
  58. package/dist/plugin.js +12 -0
  59. package/dist/project-copy.d.ts +29 -0
  60. package/dist/project-copy.js +21 -0
  61. package/dist/project-directories.d.ts +105 -0
  62. package/dist/project-directories.js +8 -0
  63. package/dist/project-id.d.ts +5 -0
  64. package/dist/project-id.js +3 -0
  65. package/dist/project.d.ts +278 -0
  66. package/dist/project.js +44 -0
  67. package/dist/prompt-input.d.ts +106 -0
  68. package/dist/prompt-input.js +19 -0
  69. package/dist/prompt.d.ts +177 -0
  70. package/dist/prompt.js +43 -0
  71. package/dist/provider.d.ts +111 -0
  72. package/dist/provider.js +53 -0
  73. package/dist/pty-ticket.d.ts +8 -0
  74. package/dist/pty-ticket.js +7 -0
  75. package/dist/pty.d.ts +542 -0
  76. package/dist/pty.js +43 -0
  77. package/dist/question-v1.d.ts +1 -0
  78. package/dist/question-v1.js +1 -0
  79. package/dist/question.d.ts +516 -0
  80. package/dist/question.js +64 -0
  81. package/dist/reference.d.ts +140 -0
  82. package/dist/reference.js +31 -0
  83. package/dist/revert.d.ts +34 -0
  84. package/dist/revert.js +19 -0
  85. package/dist/schema.d.ts +10 -0
  86. package/dist/schema.js +14 -0
  87. package/dist/server-event.d.ts +172 -0
  88. package/dist/server-event.js +5 -0
  89. package/dist/session-compaction-event.d.ts +107 -0
  90. package/dist/session-compaction-event.js +10 -0
  91. package/dist/session-delivery.d.ts +4 -0
  92. package/dist/session-delivery.js +3 -0
  93. package/dist/session-event.d.ts +14225 -0
  94. package/dist/session-event.js +421 -0
  95. package/dist/session-id.d.ts +6 -0
  96. package/dist/session-id.js +10 -0
  97. package/dist/session-input.d.ts +145 -0
  98. package/dist/session-input.js +18 -0
  99. package/dist/session-message.d.ts +1318 -0
  100. package/dist/session-message.js +171 -0
  101. package/dist/session-status-event.d.ts +339 -0
  102. package/dist/session-status-event.js +43 -0
  103. package/dist/session-todo.d.ts +137 -0
  104. package/dist/session-todo.js +21 -0
  105. package/dist/session-v1.d.ts +1 -0
  106. package/dist/session-v1.js +1 -0
  107. package/dist/session.d.ts +140 -0
  108. package/dist/session.js +43 -0
  109. package/dist/shell.d.ts +441 -0
  110. package/dist/shell.js +58 -0
  111. package/dist/skill.d.ts +146 -0
  112. package/dist/skill.js +45 -0
  113. package/dist/tui-event.d.ts +387 -0
  114. package/dist/tui-event.js +53 -0
  115. package/dist/v1/legacy-event.d.ts +128 -0
  116. package/dist/v1/legacy-event.js +15 -0
  117. package/dist/v1/permission.d.ts +356 -0
  118. package/dist/v1/permission.js +41 -0
  119. package/dist/v1/question.d.ts +504 -0
  120. package/dist/v1/question.js +57 -0
  121. package/dist/v1/session.d.ts +7775 -0
  122. package/dist/v1/session.js +535 -0
  123. package/dist/vcs-event.d.ts +96 -0
  124. package/dist/vcs-event.js +11 -0
  125. package/dist/workspace-event.d.ts +307 -0
  126. package/dist/workspace-event.js +25 -0
  127. package/dist/workspace-id.d.ts +6 -0
  128. package/dist/workspace-id.js +16 -0
  129. package/dist/workspace.d.ts +9 -0
  130. package/dist/workspace.js +5 -0
  131. package/dist/worktree-event.d.ts +193 -0
  132. package/dist/worktree-event.js +18 -0
  133. package/package.json +41 -0
@@ -0,0 +1,137 @@
1
+ export * as SessionTodo from "./session-todo.js";
2
+ import { Schema } from "effect";
3
+ export declare const Info: Schema.Struct<{
4
+ readonly content: Schema.String;
5
+ readonly status: Schema.String;
6
+ readonly priority: Schema.String;
7
+ }>;
8
+ export interface Info extends Schema.Schema.Type<typeof Info> {
9
+ }
10
+ export declare const Event: {
11
+ Updated: Schema.Struct<{
12
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
14
+ };
15
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
16
+ readonly type: Schema.Literal<"todo.updated">;
17
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
18
+ readonly aggregateID: Schema.String;
19
+ readonly seq: Schema.Int;
20
+ readonly version: Schema.Int;
21
+ }>>>, Schema.optionalKey<Schema.Struct<{
22
+ readonly aggregateID: Schema.String;
23
+ readonly seq: Schema.Int;
24
+ readonly version: Schema.Int;
25
+ }>>, never, never>;
26
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
27
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
28
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
29
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
30
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
31
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
32
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
33
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
34
+ }>, never, never>;
35
+ }>>>, Schema.optionalKey<Schema.Struct<{
36
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
37
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
38
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
39
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
40
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
41
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
42
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
43
+ }>, never, never>;
44
+ }>>, never, never>;
45
+ readonly data: Schema.Struct<{
46
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
47
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
48
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
49
+ };
50
+ readonly todos: Schema.$Array<Schema.Struct<{
51
+ readonly content: Schema.String;
52
+ readonly status: Schema.String;
53
+ readonly priority: Schema.String;
54
+ }>>;
55
+ }>;
56
+ }> & {
57
+ data: Schema.Struct<{
58
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
59
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
60
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
61
+ };
62
+ readonly todos: Schema.$Array<Schema.Struct<{
63
+ readonly content: Schema.String;
64
+ readonly status: Schema.String;
65
+ readonly priority: Schema.String;
66
+ }>>;
67
+ }>;
68
+ durable?: {
69
+ readonly version: number;
70
+ readonly aggregate: string;
71
+ } | undefined;
72
+ type: "todo.updated";
73
+ };
74
+ Definitions: readonly [Schema.Struct<{
75
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
76
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
77
+ };
78
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
79
+ readonly type: Schema.Literal<"todo.updated">;
80
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
81
+ readonly aggregateID: Schema.String;
82
+ readonly seq: Schema.Int;
83
+ readonly version: Schema.Int;
84
+ }>>>, Schema.optionalKey<Schema.Struct<{
85
+ readonly aggregateID: Schema.String;
86
+ readonly seq: Schema.Int;
87
+ readonly version: Schema.Int;
88
+ }>>, never, never>;
89
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
90
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
91
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
92
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
93
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
94
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
95
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
96
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
97
+ }>, never, never>;
98
+ }>>>, Schema.optionalKey<Schema.Struct<{
99
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
100
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
101
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
102
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
103
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
104
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
105
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
106
+ }>, never, never>;
107
+ }>>, never, never>;
108
+ readonly data: Schema.Struct<{
109
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
110
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
111
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
112
+ };
113
+ readonly todos: Schema.$Array<Schema.Struct<{
114
+ readonly content: Schema.String;
115
+ readonly status: Schema.String;
116
+ readonly priority: Schema.String;
117
+ }>>;
118
+ }>;
119
+ }> & {
120
+ data: Schema.Struct<{
121
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
122
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
123
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
124
+ };
125
+ readonly todos: Schema.$Array<Schema.Struct<{
126
+ readonly content: Schema.String;
127
+ readonly status: Schema.String;
128
+ readonly priority: Schema.String;
129
+ }>>;
130
+ }>;
131
+ durable?: {
132
+ readonly version: number;
133
+ readonly aggregate: string;
134
+ } | undefined;
135
+ type: "todo.updated";
136
+ }];
137
+ };
@@ -0,0 +1,21 @@
1
+ export * as SessionTodo from "./session-todo.js";
2
+ import { Schema } from "effect";
3
+ import { define, inventory } from "./event.js";
4
+ import { SessionID } from "./session-id.js";
5
+ export const Info = Schema.Struct({
6
+ content: Schema.String.annotate({ description: "Brief description of the task" }),
7
+ status: Schema.String.annotate({
8
+ description: "Current status of the task: pending, in_progress, completed, cancelled",
9
+ }),
10
+ priority: Schema.String.annotate({
11
+ description: "Priority level of the task: high, medium, low",
12
+ }),
13
+ }).annotate({ identifier: "Todo" });
14
+ const Updated = define({
15
+ type: "todo.updated",
16
+ schema: {
17
+ sessionID: SessionID,
18
+ todos: Schema.Array(Info),
19
+ },
20
+ });
21
+ export const Event = { Updated, Definitions: inventory(Updated) };
@@ -0,0 +1 @@
1
+ export * from "./v1/session.js";
@@ -0,0 +1 @@
1
+ export * from "./v1/session.js";
@@ -0,0 +1,140 @@
1
+ export * as Session from "./session.js";
2
+ import { Schema } from "effect";
3
+ import { SessionEvent } from "./session-event.js";
4
+ import { SessionID } from "./session-id.js";
5
+ export declare const ID: Schema.brand<Schema.String, "SessionID"> & {
6
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8
+ };
9
+ export type ID = SessionID;
10
+ export declare const Event: typeof SessionEvent;
11
+ export interface Info extends Schema.Schema.Type<typeof Info> {
12
+ }
13
+ export declare const Info: Schema.Struct<{
14
+ readonly id: Schema.brand<Schema.String, "SessionID"> & {
15
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
16
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
17
+ };
18
+ readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
19
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
20
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
21
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
22
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
23
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
24
+ }>, never, never>;
25
+ readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
26
+ global: string & import("effect/Brand").Brand<"Project.ID">;
27
+ };
28
+ readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AgentV2.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "AgentV2.ID">>, never, never>;
29
+ readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
30
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
31
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
32
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
33
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
34
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
35
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
36
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
37
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
38
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
39
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
41
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
42
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
43
+ };
44
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
45
+ }>>>, Schema.optionalKey<Schema.Struct<{
46
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
47
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
48
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
49
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
50
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
51
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
52
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
53
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
54
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
55
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
56
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
57
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
58
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
59
+ };
60
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
61
+ }>>, never, never>;
62
+ readonly cost: Schema.Finite;
63
+ readonly tokens: Schema.Struct<{
64
+ readonly input: Schema.Finite;
65
+ readonly output: Schema.Finite;
66
+ readonly reasoning: Schema.Finite;
67
+ readonly cache: Schema.Struct<{
68
+ readonly read: Schema.Finite;
69
+ readonly write: Schema.Finite;
70
+ }>;
71
+ }>;
72
+ readonly time: Schema.Struct<{
73
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
74
+ readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
75
+ readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
76
+ }>;
77
+ readonly title: Schema.String;
78
+ readonly location: Schema.Struct<{
79
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
80
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<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
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
84
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
85
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
86
+ }>, never, never>;
87
+ }>;
88
+ readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
89
+ readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
90
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
91
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
92
+ };
93
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
94
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
95
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
96
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
97
+ readonly path: Schema.brand<Schema.String, "RelativePath">;
98
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
99
+ readonly additions: Schema.Int;
100
+ readonly deletions: Schema.Int;
101
+ readonly patch: Schema.String;
102
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
103
+ readonly path: Schema.brand<Schema.String, "RelativePath">;
104
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
105
+ readonly additions: Schema.Int;
106
+ readonly deletions: Schema.Int;
107
+ readonly patch: Schema.String;
108
+ }>>>, never, never>;
109
+ }>>>, Schema.optionalKey<Schema.Struct<{
110
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
111
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
112
+ };
113
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
114
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
115
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
116
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
117
+ readonly path: Schema.brand<Schema.String, "RelativePath">;
118
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
119
+ readonly additions: Schema.Int;
120
+ readonly deletions: Schema.Int;
121
+ readonly patch: Schema.String;
122
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
123
+ readonly path: Schema.brand<Schema.String, "RelativePath">;
124
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
125
+ readonly additions: Schema.Int;
126
+ readonly deletions: Schema.Int;
127
+ readonly patch: Schema.String;
128
+ }>>>, never, never>;
129
+ }>>, never, never>;
130
+ }>;
131
+ export declare const ListAnchor: Schema.Struct<{
132
+ readonly id: Schema.brand<Schema.String, "SessionID"> & {
133
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
134
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
135
+ };
136
+ readonly time: Schema.Finite;
137
+ readonly direction: Schema.Literals<readonly ["previous", "next"]>;
138
+ }>;
139
+ export interface ListAnchor extends Schema.Schema.Type<typeof ListAnchor> {
140
+ }
@@ -0,0 +1,43 @@
1
+ export * as Session from "./session.js";
2
+ import { Schema } from "effect";
3
+ import { Agent } from "./agent.js";
4
+ import { Location } from "./location.js";
5
+ import { Model } from "./model.js";
6
+ import { Project } from "./project.js";
7
+ import { DateTimeUtcFromMillis, optional, RelativePath } from "./schema.js";
8
+ import { SessionEvent } from "./session-event.js";
9
+ import { SessionID } from "./session-id.js";
10
+ import { Revert } from "./revert.js";
11
+ export const ID = SessionID;
12
+ export const Event = SessionEvent;
13
+ export const Info = Schema.Struct({
14
+ id: ID,
15
+ parentID: ID.pipe(optional),
16
+ projectID: Project.ID,
17
+ agent: Agent.ID.pipe(optional),
18
+ model: Model.Ref.pipe(optional),
19
+ cost: Schema.Finite,
20
+ tokens: Schema.Struct({
21
+ input: Schema.Finite,
22
+ output: Schema.Finite,
23
+ reasoning: Schema.Finite,
24
+ cache: Schema.Struct({
25
+ read: Schema.Finite,
26
+ write: Schema.Finite,
27
+ }),
28
+ }),
29
+ time: Schema.Struct({
30
+ created: DateTimeUtcFromMillis,
31
+ updated: DateTimeUtcFromMillis,
32
+ archived: DateTimeUtcFromMillis.pipe(optional),
33
+ }),
34
+ title: Schema.String,
35
+ location: Location.Ref,
36
+ subpath: RelativePath.pipe(optional),
37
+ revert: Revert.State.pipe(optional),
38
+ }).annotate({ identifier: "SessionV2.Info" });
39
+ export const ListAnchor = Schema.Struct({
40
+ id: ID,
41
+ time: Schema.Finite,
42
+ direction: Schema.Literals(["previous", "next"]),
43
+ }).annotate({ identifier: "Session.ListAnchor" });