@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
package/dist/session-v1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./v1/session.js";
|
package/dist/session.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
93
|
-
};
|
|
94
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
95
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
96
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
97
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
98
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
99
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
100
|
-
readonly additions: Schema.Int;
|
|
101
|
-
readonly deletions: Schema.Int;
|
|
102
|
-
readonly patch: Schema.String;
|
|
103
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
104
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
105
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
106
|
-
readonly additions: Schema.Int;
|
|
107
|
-
readonly deletions: Schema.Int;
|
|
108
|
-
readonly patch: Schema.String;
|
|
109
|
-
}>>>, never, never>;
|
|
110
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
111
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
112
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
113
|
-
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
114
|
-
};
|
|
115
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
116
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
117
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
118
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
119
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
120
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
121
|
-
readonly additions: Schema.Int;
|
|
122
|
-
readonly deletions: Schema.Int;
|
|
123
|
-
readonly patch: Schema.String;
|
|
124
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
125
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
126
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
127
|
-
readonly additions: Schema.Int;
|
|
128
|
-
readonly deletions: Schema.Int;
|
|
129
|
-
readonly patch: Schema.String;
|
|
130
|
-
}>>>, never, never>;
|
|
131
|
-
}>>, never, never>;
|
|
132
|
-
}>;
|
|
133
|
-
export declare const ListAnchor: Schema.Struct<{
|
|
134
|
-
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
135
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
136
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
137
|
-
};
|
|
138
|
-
readonly time: Schema.Finite;
|
|
139
|
-
readonly direction: Schema.Literals<readonly ["previous", "next"]>;
|
|
140
|
-
}>;
|
|
141
|
-
export interface ListAnchor extends Schema.Schema.Type<typeof ListAnchor> {
|
|
142
|
-
}
|
package/dist/session.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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" });
|
package/dist/shell.d.ts
DELETED
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
export * as Shell from "./shell.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ID: Schema.brand<Schema.String, "ShellID"> & {
|
|
4
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
5
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
6
|
-
};
|
|
7
|
-
export type ID = typeof ID.Type;
|
|
8
|
-
export declare const Status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
9
|
-
export type Status = typeof Status.Type;
|
|
10
|
-
export declare const Time: Schema.Struct<{
|
|
11
|
-
readonly started: Schema.Number;
|
|
12
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
13
|
-
}>;
|
|
14
|
-
export interface Time extends Schema.Schema.Type<typeof Time> {
|
|
15
|
-
}
|
|
16
|
-
export declare const Metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
17
|
-
export type Metadata = typeof Metadata.Type;
|
|
18
|
-
export declare const Info: Schema.Struct<{
|
|
19
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
20
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
21
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
22
|
-
};
|
|
23
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
24
|
-
readonly command: Schema.String;
|
|
25
|
-
readonly cwd: Schema.String;
|
|
26
|
-
readonly shell: Schema.String;
|
|
27
|
-
readonly file: Schema.String;
|
|
28
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
29
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
30
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
31
|
-
readonly time: Schema.Struct<{
|
|
32
|
-
readonly started: Schema.Number;
|
|
33
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
34
|
-
}>;
|
|
35
|
-
}>;
|
|
36
|
-
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
37
|
-
}
|
|
38
|
-
export declare const Event: {
|
|
39
|
-
Created: Schema.Struct<{
|
|
40
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
41
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
42
|
-
};
|
|
43
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
44
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
45
|
-
readonly type: Schema.Literal<"shell.created">;
|
|
46
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
47
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
48
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
49
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
50
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
52
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
53
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
54
|
-
}>, never, never>;
|
|
55
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
56
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
57
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<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
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
61
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
62
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
63
|
-
}>, never, never>;
|
|
64
|
-
}>>, never, never>;
|
|
65
|
-
readonly data: Schema.Struct<{
|
|
66
|
-
readonly info: Schema.Struct<{
|
|
67
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
68
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
69
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
70
|
-
};
|
|
71
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
72
|
-
readonly command: Schema.String;
|
|
73
|
-
readonly cwd: Schema.String;
|
|
74
|
-
readonly shell: Schema.String;
|
|
75
|
-
readonly file: Schema.String;
|
|
76
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
77
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
78
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
79
|
-
readonly time: Schema.Struct<{
|
|
80
|
-
readonly started: Schema.Number;
|
|
81
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
82
|
-
}>;
|
|
83
|
-
}>;
|
|
84
|
-
}>;
|
|
85
|
-
}> & {
|
|
86
|
-
type: "shell.created";
|
|
87
|
-
durability: "ephemeral";
|
|
88
|
-
durable: undefined;
|
|
89
|
-
data: Schema.Struct<{
|
|
90
|
-
readonly info: Schema.Struct<{
|
|
91
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
92
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
93
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
94
|
-
};
|
|
95
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
96
|
-
readonly command: Schema.String;
|
|
97
|
-
readonly cwd: Schema.String;
|
|
98
|
-
readonly shell: Schema.String;
|
|
99
|
-
readonly file: Schema.String;
|
|
100
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
101
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
102
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
103
|
-
readonly time: Schema.Struct<{
|
|
104
|
-
readonly started: Schema.Number;
|
|
105
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
106
|
-
}>;
|
|
107
|
-
}>;
|
|
108
|
-
}>;
|
|
109
|
-
};
|
|
110
|
-
Exited: Schema.Struct<{
|
|
111
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
112
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
113
|
-
};
|
|
114
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
115
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
116
|
-
readonly type: Schema.Literal<"shell.exited">;
|
|
117
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
118
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
119
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
120
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
121
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
122
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
123
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
124
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
125
|
-
}>, never, never>;
|
|
126
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
127
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
128
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
129
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
130
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
131
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
132
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
133
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
134
|
-
}>, never, never>;
|
|
135
|
-
}>>, never, never>;
|
|
136
|
-
readonly data: Schema.Struct<{
|
|
137
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
138
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
139
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
140
|
-
};
|
|
141
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
142
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
143
|
-
}>;
|
|
144
|
-
}> & {
|
|
145
|
-
type: "shell.exited";
|
|
146
|
-
durability: "ephemeral";
|
|
147
|
-
durable: undefined;
|
|
148
|
-
data: Schema.Struct<{
|
|
149
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
150
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
151
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
152
|
-
};
|
|
153
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
154
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
155
|
-
}>;
|
|
156
|
-
};
|
|
157
|
-
Deleted: Schema.Struct<{
|
|
158
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
159
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
160
|
-
};
|
|
161
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
162
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
163
|
-
readonly type: Schema.Literal<"shell.deleted">;
|
|
164
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
165
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
166
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
167
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
168
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
169
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
170
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
171
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
172
|
-
}>, never, never>;
|
|
173
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
174
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
175
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
176
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
177
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
178
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
179
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
180
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
181
|
-
}>, never, never>;
|
|
182
|
-
}>>, never, never>;
|
|
183
|
-
readonly data: Schema.Struct<{
|
|
184
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
185
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
186
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
187
|
-
};
|
|
188
|
-
}>;
|
|
189
|
-
}> & {
|
|
190
|
-
type: "shell.deleted";
|
|
191
|
-
durability: "ephemeral";
|
|
192
|
-
durable: undefined;
|
|
193
|
-
data: Schema.Struct<{
|
|
194
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
195
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
196
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
197
|
-
};
|
|
198
|
-
}>;
|
|
199
|
-
};
|
|
200
|
-
Definitions: readonly [Schema.Struct<{
|
|
201
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
202
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
203
|
-
};
|
|
204
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
205
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
206
|
-
readonly type: Schema.Literal<"shell.created">;
|
|
207
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
208
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
209
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
210
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
211
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
212
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
213
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
214
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
215
|
-
}>, never, never>;
|
|
216
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
217
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
218
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
219
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
220
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
221
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
222
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
223
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
224
|
-
}>, never, never>;
|
|
225
|
-
}>>, never, never>;
|
|
226
|
-
readonly data: Schema.Struct<{
|
|
227
|
-
readonly info: Schema.Struct<{
|
|
228
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
229
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
230
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
231
|
-
};
|
|
232
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
233
|
-
readonly command: Schema.String;
|
|
234
|
-
readonly cwd: Schema.String;
|
|
235
|
-
readonly shell: Schema.String;
|
|
236
|
-
readonly file: Schema.String;
|
|
237
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
238
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
239
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
240
|
-
readonly time: Schema.Struct<{
|
|
241
|
-
readonly started: Schema.Number;
|
|
242
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
243
|
-
}>;
|
|
244
|
-
}>;
|
|
245
|
-
}>;
|
|
246
|
-
}> & {
|
|
247
|
-
type: "shell.created";
|
|
248
|
-
durability: "ephemeral";
|
|
249
|
-
durable: undefined;
|
|
250
|
-
data: Schema.Struct<{
|
|
251
|
-
readonly info: Schema.Struct<{
|
|
252
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
253
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
254
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
255
|
-
};
|
|
256
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
257
|
-
readonly command: Schema.String;
|
|
258
|
-
readonly cwd: Schema.String;
|
|
259
|
-
readonly shell: Schema.String;
|
|
260
|
-
readonly file: Schema.String;
|
|
261
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
262
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
263
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
264
|
-
readonly time: Schema.Struct<{
|
|
265
|
-
readonly started: Schema.Number;
|
|
266
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
267
|
-
}>;
|
|
268
|
-
}>;
|
|
269
|
-
}>;
|
|
270
|
-
}, Schema.Struct<{
|
|
271
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
272
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
273
|
-
};
|
|
274
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
275
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
276
|
-
readonly type: Schema.Literal<"shell.exited">;
|
|
277
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
278
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
279
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
280
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
281
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
282
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
283
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
284
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
285
|
-
}>, never, never>;
|
|
286
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
287
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
288
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
289
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
290
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
291
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
292
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
293
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
294
|
-
}>, never, never>;
|
|
295
|
-
}>>, never, never>;
|
|
296
|
-
readonly data: Schema.Struct<{
|
|
297
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
298
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
299
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
300
|
-
};
|
|
301
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
302
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
303
|
-
}>;
|
|
304
|
-
}> & {
|
|
305
|
-
type: "shell.exited";
|
|
306
|
-
durability: "ephemeral";
|
|
307
|
-
durable: undefined;
|
|
308
|
-
data: Schema.Struct<{
|
|
309
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
310
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
311
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
312
|
-
};
|
|
313
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
314
|
-
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
315
|
-
}>;
|
|
316
|
-
}, Schema.Struct<{
|
|
317
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
318
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
319
|
-
};
|
|
320
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
321
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
322
|
-
readonly type: Schema.Literal<"shell.deleted">;
|
|
323
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
324
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
325
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
326
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
327
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
328
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
329
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
330
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
331
|
-
}>, never, never>;
|
|
332
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
333
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
334
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
335
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
336
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
337
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
338
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
339
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
340
|
-
}>, never, never>;
|
|
341
|
-
}>>, never, never>;
|
|
342
|
-
readonly data: Schema.Struct<{
|
|
343
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
344
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
345
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
346
|
-
};
|
|
347
|
-
}>;
|
|
348
|
-
}> & {
|
|
349
|
-
type: "shell.deleted";
|
|
350
|
-
durability: "ephemeral";
|
|
351
|
-
durable: undefined;
|
|
352
|
-
data: Schema.Struct<{
|
|
353
|
-
readonly id: Schema.brand<Schema.String, "ShellID"> & {
|
|
354
|
-
create: () => string & import("effect/Brand").Brand<"ShellID">;
|
|
355
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
|
|
356
|
-
};
|
|
357
|
-
}>;
|
|
358
|
-
}];
|
|
359
|
-
};
|
|
360
|
-
export declare const CreateInput: Schema.Struct<{
|
|
361
|
-
readonly command: Schema.String;
|
|
362
|
-
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
363
|
-
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
364
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
365
|
-
}>;
|
|
366
|
-
export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
|
|
367
|
-
}
|
|
368
|
-
export declare const OutputInput: Schema.Struct<{
|
|
369
|
-
readonly cursor: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
370
|
-
readonly limit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
371
|
-
}>;
|
|
372
|
-
export interface OutputInput extends Schema.Schema.Type<typeof OutputInput> {
|
|
373
|
-
}
|
|
374
|
-
export declare const Output: Schema.Struct<{
|
|
375
|
-
readonly output: Schema.String;
|
|
376
|
-
readonly cursor: Schema.Int;
|
|
377
|
-
readonly size: Schema.Int;
|
|
378
|
-
readonly truncated: Schema.Boolean;
|
|
379
|
-
}>;
|
|
380
|
-
export interface Output extends Schema.Schema.Type<typeof Output> {
|
|
381
|
-
}
|
package/dist/shell.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export * as Shell from "./shell.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { ephemeral, inventory } from "./event.js";
|
|
5
|
-
import { ascending } from "./identifier.js";
|
|
6
|
-
import { NonNegativeInt, statics } from "./schema.js";
|
|
7
|
-
const IDSchema = Schema.String.check(Schema.isStartsWith("sh_")).pipe(Schema.brand("ShellID"));
|
|
8
|
-
export const ID = IDSchema.pipe(statics((schema) => {
|
|
9
|
-
const create = () => schema.make("sh_" + ascending());
|
|
10
|
-
return {
|
|
11
|
-
create,
|
|
12
|
-
ascending: (id) => (id === undefined ? create() : schema.make(id)),
|
|
13
|
-
};
|
|
14
|
-
}));
|
|
15
|
-
export const Status = Schema.Literals(["running", "exited", "timeout", "killed"]);
|
|
16
|
-
export const Time = Schema.Struct({
|
|
17
|
-
started: Schema.Number,
|
|
18
|
-
completed: optional(Schema.Number),
|
|
19
|
-
});
|
|
20
|
-
// Opaque caller-supplied tags echoed back on Info and events. The Shell service never interprets
|
|
21
|
-
// these; callers (e.g. ShellTool stores the originating session ID) use them to filter or correlate.
|
|
22
|
-
export const Metadata = Schema.Record(Schema.String, Schema.Unknown);
|
|
23
|
-
export const Info = Schema.Struct({
|
|
24
|
-
id: ID,
|
|
25
|
-
status: Status,
|
|
26
|
-
command: Schema.String,
|
|
27
|
-
cwd: Schema.String,
|
|
28
|
-
shell: Schema.String,
|
|
29
|
-
// Absolute path of the file capturing combined stdout/stderr. Page through it via `output`.
|
|
30
|
-
file: Schema.String,
|
|
31
|
-
pid: optional(NonNegativeInt),
|
|
32
|
-
exit: optional(Schema.Number),
|
|
33
|
-
// Always present; defaults to an empty object when the creator supplies no metadata.
|
|
34
|
-
metadata: Metadata,
|
|
35
|
-
time: Time,
|
|
36
|
-
}).annotate({ identifier: "Shell" });
|
|
37
|
-
const Created = ephemeral({ type: "shell.created", schema: { info: Info } });
|
|
38
|
-
const Exited = ephemeral({ type: "shell.exited", schema: { id: ID, exit: optional(Schema.Number), status: Status } });
|
|
39
|
-
const Deleted = ephemeral({ type: "shell.deleted", schema: { id: ID } });
|
|
40
|
-
export const Event = { Created, Exited, Deleted, Definitions: inventory(Created, Exited, Deleted) };
|
|
41
|
-
export const CreateInput = Schema.Struct({
|
|
42
|
-
command: Schema.String,
|
|
43
|
-
cwd: optional(Schema.String),
|
|
44
|
-
timeout: optional(NonNegativeInt),
|
|
45
|
-
metadata: optional(Metadata),
|
|
46
|
-
});
|
|
47
|
-
export const OutputInput = Schema.Struct({
|
|
48
|
-
cursor: optional(NonNegativeInt),
|
|
49
|
-
limit: optional(NonNegativeInt),
|
|
50
|
-
});
|
|
51
|
-
export const Output = Schema.Struct({
|
|
52
|
-
output: Schema.String,
|
|
53
|
-
// Absolute cursor after this page. Equals `size` once fully caught up.
|
|
54
|
-
cursor: NonNegativeInt,
|
|
55
|
-
// Total bytes captured so far. A consumer has more to page while `cursor < size`.
|
|
56
|
-
size: NonNegativeInt,
|
|
57
|
-
truncated: Schema.Boolean,
|
|
58
|
-
});
|