@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/skill.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export * as Skill from "./skill.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export interface DirectorySource extends Schema.Schema.Type<typeof DirectorySource> {
|
|
4
|
-
}
|
|
5
|
-
export declare const DirectorySource: Schema.Struct<{
|
|
6
|
-
readonly type: Schema.Literal<"directory">;
|
|
7
|
-
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8
|
-
}>;
|
|
9
|
-
export interface UrlSource extends Schema.Schema.Type<typeof UrlSource> {
|
|
10
|
-
}
|
|
11
|
-
export declare const UrlSource: Schema.Struct<{
|
|
12
|
-
readonly type: Schema.Literal<"url">;
|
|
13
|
-
readonly url: Schema.String;
|
|
14
|
-
}>;
|
|
15
|
-
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
16
|
-
}
|
|
17
|
-
export declare const Info: Schema.Struct<{
|
|
18
|
-
readonly name: Schema.String;
|
|
19
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
20
|
-
readonly slash: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
21
|
-
readonly autoinvoke: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
22
|
-
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
23
|
-
readonly content: Schema.String;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const Event: {
|
|
26
|
-
Updated: Schema.Struct<{
|
|
27
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
28
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
29
|
-
};
|
|
30
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
31
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
32
|
-
readonly type: Schema.Literal<"skill.updated">;
|
|
33
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
34
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
35
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
36
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
37
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
38
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
39
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
40
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
41
|
-
}>, never, never>;
|
|
42
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
43
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
44
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<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
|
-
}>>, Schema.optionalKey<Schema.brand<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
|
-
}>>, never, never>;
|
|
52
|
-
readonly data: Schema.Struct<{}>;
|
|
53
|
-
}> & {
|
|
54
|
-
type: "skill.updated";
|
|
55
|
-
durability: "ephemeral";
|
|
56
|
-
durable: undefined;
|
|
57
|
-
data: Schema.Struct<{}>;
|
|
58
|
-
};
|
|
59
|
-
Definitions: readonly [Schema.Struct<{
|
|
60
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
61
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
62
|
-
};
|
|
63
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
64
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
65
|
-
readonly type: Schema.Literal<"skill.updated">;
|
|
66
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
67
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
68
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
69
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
70
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
71
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
72
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
73
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
74
|
-
}>, never, never>;
|
|
75
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
76
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
77
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<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
|
-
}>>, Schema.optionalKey<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
|
-
}>, never, never>;
|
|
84
|
-
}>>, never, never>;
|
|
85
|
-
readonly data: Schema.Struct<{}>;
|
|
86
|
-
}> & {
|
|
87
|
-
type: "skill.updated";
|
|
88
|
-
durability: "ephemeral";
|
|
89
|
-
durable: undefined;
|
|
90
|
-
data: Schema.Struct<{}>;
|
|
91
|
-
}];
|
|
92
|
-
};
|
|
93
|
-
export interface EmbeddedSource extends Schema.Schema.Type<typeof EmbeddedSource> {
|
|
94
|
-
}
|
|
95
|
-
export declare const EmbeddedSource: Schema.Struct<{
|
|
96
|
-
readonly type: Schema.Literal<"embedded">;
|
|
97
|
-
readonly skill: Schema.suspend<Schema.Struct<{
|
|
98
|
-
readonly name: Schema.String;
|
|
99
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
100
|
-
readonly slash: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
101
|
-
readonly autoinvoke: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
102
|
-
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
103
|
-
readonly content: Schema.String;
|
|
104
|
-
}>>;
|
|
105
|
-
}>;
|
|
106
|
-
export type Source = DirectorySource | UrlSource | EmbeddedSource;
|
|
107
|
-
export declare const Source: Schema.Union<readonly [Schema.Struct<{
|
|
108
|
-
readonly type: Schema.Literal<"directory">;
|
|
109
|
-
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
110
|
-
}>, Schema.Struct<{
|
|
111
|
-
readonly type: Schema.Literal<"url">;
|
|
112
|
-
readonly url: Schema.String;
|
|
113
|
-
}>, Schema.Struct<{
|
|
114
|
-
readonly type: Schema.Literal<"embedded">;
|
|
115
|
-
readonly skill: Schema.suspend<Schema.Struct<{
|
|
116
|
-
readonly name: Schema.String;
|
|
117
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
118
|
-
readonly slash: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
119
|
-
readonly autoinvoke: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
120
|
-
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
121
|
-
readonly content: Schema.String;
|
|
122
|
-
}>>;
|
|
123
|
-
}>]> & {
|
|
124
|
-
equals: (a: Source, b: Source) => boolean;
|
|
125
|
-
key: (source: Source) => string;
|
|
126
|
-
};
|
package/dist/skill.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * as Skill from "./skill.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { AbsolutePath } from "./schema.js";
|
|
5
|
-
import { ephemeral, inventory } from "./event.js";
|
|
6
|
-
export const DirectorySource = Schema.Struct({
|
|
7
|
-
type: Schema.Literal("directory"),
|
|
8
|
-
path: AbsolutePath,
|
|
9
|
-
}).annotate({ identifier: "SkillV2.DirectorySource" });
|
|
10
|
-
export const UrlSource = Schema.Struct({
|
|
11
|
-
type: Schema.Literal("url"),
|
|
12
|
-
url: Schema.String,
|
|
13
|
-
}).annotate({ identifier: "SkillV2.UrlSource" });
|
|
14
|
-
export const Info = Schema.Struct({
|
|
15
|
-
name: Schema.String,
|
|
16
|
-
description: Schema.String.pipe(optional),
|
|
17
|
-
slash: Schema.Boolean.pipe(optional),
|
|
18
|
-
autoinvoke: Schema.Boolean.pipe(optional),
|
|
19
|
-
location: AbsolutePath,
|
|
20
|
-
content: Schema.String,
|
|
21
|
-
}).annotate({ identifier: "SkillV2.Info" });
|
|
22
|
-
const Updated = ephemeral({ type: "skill.updated", schema: {} });
|
|
23
|
-
export const Event = { Updated, Definitions: inventory(Updated) };
|
|
24
|
-
export const EmbeddedSource = Schema.Struct({
|
|
25
|
-
type: Schema.Literal("embedded"),
|
|
26
|
-
skill: Schema.suspend(() => Info),
|
|
27
|
-
}).annotate({ identifier: "SkillV2.EmbeddedSource" });
|
|
28
|
-
export const Source = Object.assign(Schema.Union([DirectorySource, UrlSource, EmbeddedSource]).pipe(Schema.toTaggedUnion("type"), Schema.annotate({ identifier: "SkillV2.Source" })), {
|
|
29
|
-
equals: (a, b) => {
|
|
30
|
-
if (a.type !== b.type)
|
|
31
|
-
return false;
|
|
32
|
-
if (a.type === "directory" && b.type === "directory")
|
|
33
|
-
return a.path === b.path;
|
|
34
|
-
if (a.type === "url" && b.type === "url")
|
|
35
|
-
return a.url === b.url;
|
|
36
|
-
if (a.type === "embedded" && b.type === "embedded")
|
|
37
|
-
return a.skill.name === b.skill.name;
|
|
38
|
-
return false;
|
|
39
|
-
},
|
|
40
|
-
key: (source) => source.type === "directory"
|
|
41
|
-
? `directory:${source.path}`
|
|
42
|
-
: source.type === "url"
|
|
43
|
-
? `url:${source.url}`
|
|
44
|
-
: `embedded:${source.skill.name}`,
|
|
45
|
-
});
|
package/dist/tui-event.d.ts
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
export * as TuiEvent from "./tui-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const PromptAppend: Schema.Struct<{
|
|
4
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
-
};
|
|
7
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9
|
-
readonly type: Schema.Literal<"tui.prompt.append">;
|
|
10
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
15
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
16
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
17
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
18
|
-
}>, never, never>;
|
|
19
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
21
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
22
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
24
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
25
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
27
|
-
}>, never, never>;
|
|
28
|
-
}>>, never, never>;
|
|
29
|
-
readonly data: Schema.Struct<{
|
|
30
|
-
readonly text: Schema.String;
|
|
31
|
-
}>;
|
|
32
|
-
}> & {
|
|
33
|
-
type: "tui.prompt.append";
|
|
34
|
-
durability: "ephemeral";
|
|
35
|
-
durable: undefined;
|
|
36
|
-
data: Schema.Struct<{
|
|
37
|
-
readonly text: Schema.String;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
export declare const CommandExecute: Schema.Struct<{
|
|
41
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
42
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
43
|
-
};
|
|
44
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
45
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
46
|
-
readonly type: Schema.Literal<"tui.command.execute">;
|
|
47
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
48
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
49
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
50
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
52
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
53
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
54
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
55
|
-
}>, never, never>;
|
|
56
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
57
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
58
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
59
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
61
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
62
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
63
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
64
|
-
}>, never, never>;
|
|
65
|
-
}>>, never, never>;
|
|
66
|
-
readonly data: Schema.Struct<{
|
|
67
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.share", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
68
|
-
}>;
|
|
69
|
-
}> & {
|
|
70
|
-
type: "tui.command.execute";
|
|
71
|
-
durability: "ephemeral";
|
|
72
|
-
durable: undefined;
|
|
73
|
-
data: Schema.Struct<{
|
|
74
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.share", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
export declare const ToastShow: Schema.Struct<{
|
|
78
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
79
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
80
|
-
};
|
|
81
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
82
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
83
|
-
readonly type: Schema.Literal<"tui.toast.show">;
|
|
84
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
85
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
86
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<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
|
-
}>>, Schema.optionalKey<Schema.brand<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
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
94
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
95
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
96
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
97
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
98
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
99
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
100
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
101
|
-
}>, never, never>;
|
|
102
|
-
}>>, never, never>;
|
|
103
|
-
readonly data: Schema.Struct<{
|
|
104
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
105
|
-
readonly message: Schema.String;
|
|
106
|
-
readonly variant: Schema.Literals<readonly ["info", "success", "warning", "error"]>;
|
|
107
|
-
readonly duration: Schema.withDecodingDefault<Schema.Int, never>;
|
|
108
|
-
}>;
|
|
109
|
-
}> & {
|
|
110
|
-
type: "tui.toast.show";
|
|
111
|
-
durability: "ephemeral";
|
|
112
|
-
durable: undefined;
|
|
113
|
-
data: Schema.Struct<{
|
|
114
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
115
|
-
readonly message: Schema.String;
|
|
116
|
-
readonly variant: Schema.Literals<readonly ["info", "success", "warning", "error"]>;
|
|
117
|
-
readonly duration: Schema.withDecodingDefault<Schema.Int, never>;
|
|
118
|
-
}>;
|
|
119
|
-
};
|
|
120
|
-
export declare const SessionSelect: Schema.Struct<{
|
|
121
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
122
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
123
|
-
};
|
|
124
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
125
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
126
|
-
readonly type: Schema.Literal<"tui.session.select">;
|
|
127
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
128
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
129
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
130
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
131
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
132
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
133
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
134
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
135
|
-
}>, never, never>;
|
|
136
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
137
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
138
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
139
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
140
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
141
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
142
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
143
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
144
|
-
}>, never, never>;
|
|
145
|
-
}>>, never, never>;
|
|
146
|
-
readonly data: Schema.Struct<{
|
|
147
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID">;
|
|
148
|
-
}>;
|
|
149
|
-
}> & {
|
|
150
|
-
type: "tui.session.select";
|
|
151
|
-
durability: "ephemeral";
|
|
152
|
-
durable: undefined;
|
|
153
|
-
data: Schema.Struct<{
|
|
154
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID">;
|
|
155
|
-
}>;
|
|
156
|
-
};
|
|
157
|
-
export declare const Definitions: readonly [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<"tui.prompt.append">;
|
|
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 text: Schema.String;
|
|
185
|
-
}>;
|
|
186
|
-
}> & {
|
|
187
|
-
type: "tui.prompt.append";
|
|
188
|
-
durability: "ephemeral";
|
|
189
|
-
durable: undefined;
|
|
190
|
-
data: Schema.Struct<{
|
|
191
|
-
readonly text: Schema.String;
|
|
192
|
-
}>;
|
|
193
|
-
}, Schema.Struct<{
|
|
194
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
195
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
196
|
-
};
|
|
197
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
198
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
199
|
-
readonly type: Schema.Literal<"tui.command.execute">;
|
|
200
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
201
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
202
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
203
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
204
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
205
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
206
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
207
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
208
|
-
}>, never, never>;
|
|
209
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
210
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
211
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
212
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
213
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
214
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
215
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
216
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
217
|
-
}>, never, never>;
|
|
218
|
-
}>>, never, never>;
|
|
219
|
-
readonly data: Schema.Struct<{
|
|
220
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.share", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
221
|
-
}>;
|
|
222
|
-
}> & {
|
|
223
|
-
type: "tui.command.execute";
|
|
224
|
-
durability: "ephemeral";
|
|
225
|
-
durable: undefined;
|
|
226
|
-
data: Schema.Struct<{
|
|
227
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.share", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
228
|
-
}>;
|
|
229
|
-
}, Schema.Struct<{
|
|
230
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
231
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
232
|
-
};
|
|
233
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
234
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
235
|
-
readonly type: Schema.Literal<"tui.toast.show">;
|
|
236
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
237
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
238
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
239
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
240
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
241
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
242
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
243
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
244
|
-
}>, never, never>;
|
|
245
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
246
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
247
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
248
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
249
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
250
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
251
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
252
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
253
|
-
}>, never, never>;
|
|
254
|
-
}>>, never, never>;
|
|
255
|
-
readonly data: Schema.Struct<{
|
|
256
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
257
|
-
readonly message: Schema.String;
|
|
258
|
-
readonly variant: Schema.Literals<readonly ["info", "success", "warning", "error"]>;
|
|
259
|
-
readonly duration: Schema.withDecodingDefault<Schema.Int, never>;
|
|
260
|
-
}>;
|
|
261
|
-
}> & {
|
|
262
|
-
type: "tui.toast.show";
|
|
263
|
-
durability: "ephemeral";
|
|
264
|
-
durable: undefined;
|
|
265
|
-
data: Schema.Struct<{
|
|
266
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
267
|
-
readonly message: Schema.String;
|
|
268
|
-
readonly variant: Schema.Literals<readonly ["info", "success", "warning", "error"]>;
|
|
269
|
-
readonly duration: Schema.withDecodingDefault<Schema.Int, never>;
|
|
270
|
-
}>;
|
|
271
|
-
}, Schema.Struct<{
|
|
272
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
273
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
274
|
-
};
|
|
275
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
276
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
277
|
-
readonly type: Schema.Literal<"tui.session.select">;
|
|
278
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
279
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
280
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
281
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
282
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
283
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
284
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
285
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
286
|
-
}>, never, never>;
|
|
287
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
288
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
289
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
290
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
291
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
292
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
293
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
294
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
295
|
-
}>, never, never>;
|
|
296
|
-
}>>, never, never>;
|
|
297
|
-
readonly data: Schema.Struct<{
|
|
298
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID">;
|
|
299
|
-
}>;
|
|
300
|
-
}> & {
|
|
301
|
-
type: "tui.session.select";
|
|
302
|
-
durability: "ephemeral";
|
|
303
|
-
durable: undefined;
|
|
304
|
-
data: Schema.Struct<{
|
|
305
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID">;
|
|
306
|
-
}>;
|
|
307
|
-
}];
|
package/dist/tui-event.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export * as TuiEvent from "./tui-event.js";
|
|
2
|
-
import { Effect, Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { Event } from "./event.js";
|
|
5
|
-
import { PositiveInt } from "./schema.js";
|
|
6
|
-
import { SessionID } from "./session-id.js";
|
|
7
|
-
const DEFAULT_TOAST_DURATION = 5000;
|
|
8
|
-
export const PromptAppend = Event.ephemeral({ type: "tui.prompt.append", schema: { text: Schema.String } });
|
|
9
|
-
export const CommandExecute = Event.ephemeral({
|
|
10
|
-
type: "tui.command.execute",
|
|
11
|
-
schema: {
|
|
12
|
-
command: Schema.Union([
|
|
13
|
-
Schema.Literals([
|
|
14
|
-
"session.list",
|
|
15
|
-
"session.new",
|
|
16
|
-
"session.share",
|
|
17
|
-
"session.interrupt",
|
|
18
|
-
"session.background",
|
|
19
|
-
"session.compact",
|
|
20
|
-
"session.page.up",
|
|
21
|
-
"session.page.down",
|
|
22
|
-
"session.line.up",
|
|
23
|
-
"session.line.down",
|
|
24
|
-
"session.half.page.up",
|
|
25
|
-
"session.half.page.down",
|
|
26
|
-
"session.first",
|
|
27
|
-
"session.last",
|
|
28
|
-
"prompt.clear",
|
|
29
|
-
"prompt.submit",
|
|
30
|
-
"agent.cycle",
|
|
31
|
-
]),
|
|
32
|
-
Schema.String,
|
|
33
|
-
]),
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
export const ToastShow = Event.ephemeral({
|
|
37
|
-
type: "tui.toast.show",
|
|
38
|
-
schema: {
|
|
39
|
-
title: optional(Schema.String),
|
|
40
|
-
message: Schema.String,
|
|
41
|
-
variant: Schema.Literals(["info", "success", "warning", "error"]),
|
|
42
|
-
duration: PositiveInt.pipe(Schema.withDecodingDefault(Effect.succeed(DEFAULT_TOAST_DURATION))).annotate({
|
|
43
|
-
description: "Duration in milliseconds",
|
|
44
|
-
}),
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
export const SessionSelect = Event.ephemeral({
|
|
48
|
-
type: "tui.session.select",
|
|
49
|
-
schema: {
|
|
50
|
-
sessionID: SessionID.annotate({ description: "Session ID to navigate to" }),
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
export const Definitions = Event.inventory(PromptAppend, CommandExecute, ToastShow, SessionSelect);
|
package/dist/v1/filesystem.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export * as FileSystemV1 from "./filesystem.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const Event: {
|
|
4
|
-
Edited: Schema.Struct<{
|
|
5
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7
|
-
};
|
|
8
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10
|
-
readonly type: Schema.Literal<"file.edited">;
|
|
11
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
15
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
16
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
17
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
18
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
19
|
-
}>, never, never>;
|
|
20
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
21
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
22
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
23
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
24
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
25
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
26
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
27
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
28
|
-
}>, never, never>;
|
|
29
|
-
}>>, never, never>;
|
|
30
|
-
readonly data: Schema.Struct<{
|
|
31
|
-
readonly file: Schema.String;
|
|
32
|
-
}>;
|
|
33
|
-
}> & {
|
|
34
|
-
type: "file.edited";
|
|
35
|
-
durability: "ephemeral";
|
|
36
|
-
durable: undefined;
|
|
37
|
-
data: Schema.Struct<{
|
|
38
|
-
readonly file: Schema.String;
|
|
39
|
-
}>;
|
|
40
|
-
};
|
|
41
|
-
Definitions: readonly [Schema.Struct<{
|
|
42
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
43
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
44
|
-
};
|
|
45
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
46
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
47
|
-
readonly type: Schema.Literal<"file.edited">;
|
|
48
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
49
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
50
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
51
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
52
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
53
|
-
}>>, Schema.optionalKey<Schema.brand<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
|
-
}>, never, never>;
|
|
57
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
58
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
59
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
60
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
61
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
62
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
63
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
64
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
65
|
-
}>, never, never>;
|
|
66
|
-
}>>, never, never>;
|
|
67
|
-
readonly data: Schema.Struct<{
|
|
68
|
-
readonly file: Schema.String;
|
|
69
|
-
}>;
|
|
70
|
-
}> & {
|
|
71
|
-
type: "file.edited";
|
|
72
|
-
durability: "ephemeral";
|
|
73
|
-
durable: undefined;
|
|
74
|
-
data: Schema.Struct<{
|
|
75
|
-
readonly file: Schema.String;
|
|
76
|
-
}>;
|
|
77
|
-
}];
|
|
78
|
-
};
|
package/dist/v1/filesystem.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * as FileSystemV1 from "./filesystem.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { ephemeral, inventory } from "../event.js";
|
|
4
|
-
const Edited = ephemeral({
|
|
5
|
-
type: "file.edited",
|
|
6
|
-
schema: { file: Schema.String },
|
|
7
|
-
});
|
|
8
|
-
export const Event = { Edited, Definitions: inventory(Edited) };
|