@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/form.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export * as Form from "./form.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { ephemeral, inventory } from "./event.js";
|
|
4
|
-
import { ascending } from "./identifier.js";
|
|
5
|
-
import { NonNegativeInt, optional, statics } from "./schema.js";
|
|
6
|
-
const IDSchema = Schema.String.check(Schema.isStartsWith("frm_")).pipe(Schema.brand("Form.ID"));
|
|
7
|
-
export const ID = IDSchema.pipe(statics((schema) => ({ create: (id) => schema.make(id ?? "frm_" + ascending()) })));
|
|
8
|
-
export const Metadata = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Form.Metadata" });
|
|
9
|
-
export const Option = Schema.Struct({
|
|
10
|
-
value: Schema.String,
|
|
11
|
-
label: Schema.String,
|
|
12
|
-
description: Schema.String.pipe(optional),
|
|
13
|
-
}).annotate({ identifier: "Form.Option" });
|
|
14
|
-
// One visibility condition on a field. A field's `when` is a list of conditions that must all
|
|
15
|
-
// hold (AND) against the current answers for the field to be active. Semantics:
|
|
16
|
-
// - `value` must match the referenced field's type; against a multiselect answer, `eq` means
|
|
17
|
-
// "selection includes value" and `neq` means "selection does not include value".
|
|
18
|
-
// - An unanswered referenced field makes the condition false for both ops.
|
|
19
|
-
// - `key` must reference a field defined earlier in the form's field list.
|
|
20
|
-
// Inactive fields are neither required nor answerable.
|
|
21
|
-
export const When = Schema.Struct({
|
|
22
|
-
key: Schema.String,
|
|
23
|
-
op: Schema.Literals(["eq", "neq"]),
|
|
24
|
-
value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
25
|
-
}).annotate({ identifier: "Form.When" });
|
|
26
|
-
const FieldBase = {
|
|
27
|
-
key: Schema.String,
|
|
28
|
-
title: Schema.String.pipe(optional),
|
|
29
|
-
description: Schema.String.pipe(optional),
|
|
30
|
-
required: Schema.Boolean.pipe(optional),
|
|
31
|
-
when: Schema.Array(When).pipe(optional),
|
|
32
|
-
};
|
|
33
|
-
export const StringField = Schema.Struct({
|
|
34
|
-
...FieldBase,
|
|
35
|
-
type: Schema.Literal("string"),
|
|
36
|
-
format: Schema.Literals(["email", "uri", "date", "date-time"]).pipe(optional),
|
|
37
|
-
minLength: NonNegativeInt.pipe(optional),
|
|
38
|
-
maxLength: NonNegativeInt.pipe(optional),
|
|
39
|
-
pattern: Schema.String.pipe(optional),
|
|
40
|
-
placeholder: Schema.String.pipe(optional),
|
|
41
|
-
default: Schema.String.pipe(optional),
|
|
42
|
-
options: Schema.Array(Option).pipe(optional),
|
|
43
|
-
custom: Schema.Boolean.pipe(optional),
|
|
44
|
-
}).annotate({ identifier: "Form.StringField" });
|
|
45
|
-
export const NumberField = Schema.Struct({
|
|
46
|
-
...FieldBase,
|
|
47
|
-
type: Schema.Literal("number"),
|
|
48
|
-
minimum: Schema.Number.pipe(optional),
|
|
49
|
-
maximum: Schema.Number.pipe(optional),
|
|
50
|
-
default: Schema.Number.pipe(optional),
|
|
51
|
-
}).annotate({ identifier: "Form.NumberField" });
|
|
52
|
-
export const IntegerField = Schema.Struct({
|
|
53
|
-
...FieldBase,
|
|
54
|
-
type: Schema.Literal("integer"),
|
|
55
|
-
minimum: Schema.Number.pipe(optional),
|
|
56
|
-
maximum: Schema.Number.pipe(optional),
|
|
57
|
-
default: Schema.Number.pipe(optional),
|
|
58
|
-
}).annotate({ identifier: "Form.IntegerField" });
|
|
59
|
-
export const BooleanField = Schema.Struct({
|
|
60
|
-
...FieldBase,
|
|
61
|
-
type: Schema.Literal("boolean"),
|
|
62
|
-
default: Schema.Boolean.pipe(optional),
|
|
63
|
-
}).annotate({ identifier: "Form.BooleanField" });
|
|
64
|
-
export const MultiselectField = Schema.Struct({
|
|
65
|
-
...FieldBase,
|
|
66
|
-
type: Schema.Literal("multiselect"),
|
|
67
|
-
options: Schema.Array(Option),
|
|
68
|
-
minItems: NonNegativeInt.pipe(optional),
|
|
69
|
-
maxItems: NonNegativeInt.pipe(optional),
|
|
70
|
-
custom: Schema.Boolean.pipe(optional),
|
|
71
|
-
default: Schema.Array(Schema.String).pipe(optional),
|
|
72
|
-
}).annotate({ identifier: "Form.MultiselectField" });
|
|
73
|
-
export const Field = Schema.Union([StringField, NumberField, IntegerField, BooleanField, MultiselectField]).pipe(Schema.toTaggedUnion("type"));
|
|
74
|
-
const InfoBase = {
|
|
75
|
-
id: ID,
|
|
76
|
-
// This should be typed as SessionID. It is a plain string only because MCP elicitation
|
|
77
|
-
// temporarily needs the `"global"` sentinel owner, which is not a real session. Once
|
|
78
|
-
// elicitations can be attributed to real sessions, revert this to SessionID. Do not rely
|
|
79
|
-
// on non-session owners anywhere else.
|
|
80
|
-
sessionID: Schema.String,
|
|
81
|
-
title: Schema.String.pipe(optional),
|
|
82
|
-
metadata: Metadata.pipe(optional),
|
|
83
|
-
};
|
|
84
|
-
export const FormInfo = Schema.Struct({
|
|
85
|
-
...InfoBase,
|
|
86
|
-
mode: Schema.Literal("form"),
|
|
87
|
-
fields: Schema.Array(Field),
|
|
88
|
-
}).annotate({ identifier: "Form.FormInfo" });
|
|
89
|
-
export const UrlInfo = Schema.Struct({
|
|
90
|
-
...InfoBase,
|
|
91
|
-
mode: Schema.Literal("url"),
|
|
92
|
-
url: Schema.String,
|
|
93
|
-
}).annotate({ identifier: "Form.UrlInfo" });
|
|
94
|
-
export const Info = Schema.Union([FormInfo, UrlInfo]).pipe(Schema.toTaggedUnion("mode"));
|
|
95
|
-
export const Value = Schema.Union([Schema.String, Schema.Number, Schema.Boolean, Schema.Array(Schema.String)]).annotate({
|
|
96
|
-
identifier: "Form.Value",
|
|
97
|
-
});
|
|
98
|
-
export const Answer = Schema.Record(Schema.String, Value).annotate({ identifier: "Form.Answer" });
|
|
99
|
-
export const State = Schema.Union([
|
|
100
|
-
Schema.Struct({ status: Schema.Literal("pending") }),
|
|
101
|
-
Schema.Struct({ status: Schema.Literal("answered"), answer: Answer }),
|
|
102
|
-
Schema.Struct({ status: Schema.Literal("cancelled") }),
|
|
103
|
-
])
|
|
104
|
-
.pipe(Schema.toTaggedUnion("status"))
|
|
105
|
-
.annotate({ identifier: "Form.State" });
|
|
106
|
-
export const Reply = Schema.Struct({
|
|
107
|
-
answer: Answer,
|
|
108
|
-
}).annotate({ identifier: "Form.Reply" });
|
|
109
|
-
const Created = ephemeral({ type: "form.created", schema: { form: Info } });
|
|
110
|
-
const Replied = ephemeral({ type: "form.replied", schema: { id: ID, sessionID: Schema.String, answer: Answer } });
|
|
111
|
-
const Cancelled = ephemeral({ type: "form.cancelled", schema: { id: ID, sessionID: Schema.String } });
|
|
112
|
-
export const Event = { Created, Replied, Cancelled, Definitions: inventory(Created, Replied, Cancelled) };
|
package/dist/ide-event.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export * as IdeEvent from "./ide-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const Installed: 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<"ide.installed">;
|
|
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 ide: Schema.String;
|
|
31
|
-
}>;
|
|
32
|
-
}> & {
|
|
33
|
-
type: "ide.installed";
|
|
34
|
-
durability: "ephemeral";
|
|
35
|
-
durable: undefined;
|
|
36
|
-
data: Schema.Struct<{
|
|
37
|
-
readonly ide: Schema.String;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
export declare const Definitions: readonly [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<"ide.installed">;
|
|
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 ide: Schema.String;
|
|
68
|
-
}>;
|
|
69
|
-
}> & {
|
|
70
|
-
type: "ide.installed";
|
|
71
|
-
durability: "ephemeral";
|
|
72
|
-
durable: undefined;
|
|
73
|
-
data: Schema.Struct<{
|
|
74
|
-
readonly ide: Schema.String;
|
|
75
|
-
}>;
|
|
76
|
-
}];
|
package/dist/ide-event.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * as IdeEvent from "./ide-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { Event } from "./event.js";
|
|
4
|
-
export const Installed = Event.ephemeral({
|
|
5
|
-
type: "ide.installed",
|
|
6
|
-
schema: {
|
|
7
|
-
ide: Schema.String,
|
|
8
|
-
},
|
|
9
|
-
});
|
|
10
|
-
export const Definitions = Event.inventory(Installed);
|
package/dist/identifier.d.ts
DELETED
package/dist/identifier.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const length = 26;
|
|
2
|
-
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
3
|
-
let lastTimestamp = 0;
|
|
4
|
-
let counter = 0;
|
|
5
|
-
export function ascending() {
|
|
6
|
-
return create(false);
|
|
7
|
-
}
|
|
8
|
-
export function descending() {
|
|
9
|
-
return create(true);
|
|
10
|
-
}
|
|
11
|
-
export function create(descending, timestamp = Date.now()) {
|
|
12
|
-
if (timestamp !== lastTimestamp) {
|
|
13
|
-
lastTimestamp = timestamp;
|
|
14
|
-
counter = 0;
|
|
15
|
-
}
|
|
16
|
-
counter++;
|
|
17
|
-
const current = BigInt(timestamp) * 0x1000n + BigInt(counter);
|
|
18
|
-
const value = descending ? ~current : current;
|
|
19
|
-
const time = Array.from({ length: 6 }, (_, index) => Number((value >> BigInt(40 - 8 * index)) & 0xffn)
|
|
20
|
-
.toString(16)
|
|
21
|
-
.padStart(2, "0")).join("");
|
|
22
|
-
const bytes = crypto.getRandomValues(new Uint8Array(length - 12));
|
|
23
|
-
return time + Array.from(bytes, (byte) => chars[byte % 62]).join("");
|
|
24
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { Agent } from "./agent.js";
|
|
2
|
-
export { Command } from "./command.js";
|
|
3
|
-
export { Config } from "./config.js";
|
|
4
|
-
export { Connection } from "./connection.js";
|
|
5
|
-
export { Credential } from "./credential.js";
|
|
6
|
-
export { Event } from "./event.js";
|
|
7
|
-
export { FileSystem } from "./filesystem.js";
|
|
8
|
-
export { Form } from "./form.js";
|
|
9
|
-
export { Integration } from "./integration.js";
|
|
10
|
-
export { LLM } from "./llm.js";
|
|
11
|
-
export { Location } from "./location.js";
|
|
12
|
-
export { Model } from "./model.js";
|
|
13
|
-
export { Permission } from "./permission.js";
|
|
14
|
-
export { PermissionSaved } from "./permission-saved.js";
|
|
15
|
-
export { Project } from "./project.js";
|
|
16
|
-
export { ProjectCopy } from "./project-copy.js";
|
|
17
|
-
export { Provider } from "./provider.js";
|
|
18
|
-
export { Reference } from "./reference.js";
|
|
19
|
-
export { Revert } from "./revert.js";
|
|
20
|
-
export { Session } from "./session.js";
|
|
21
|
-
export { Vcs } from "./vcs.js";
|
|
22
|
-
export { SessionInput } from "./session-input.js";
|
|
23
|
-
export { SessionMessage } from "./session-message.js";
|
|
24
|
-
export { Shell } from "./shell.js";
|
|
25
|
-
export { Skill } from "./skill.js";
|
|
26
|
-
export { Pty } from "./pty.js";
|
|
27
|
-
export { PtyTicket } from "./pty-ticket.js";
|
|
28
|
-
export { Question } from "./question.js";
|
|
29
|
-
export { Workspace } from "./workspace.js";
|
|
30
|
-
export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
|
|
31
|
-
export { PromptInput } from "./prompt-input.js";
|
|
32
|
-
export * from "./schema.js";
|
package/dist/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { Agent } from "./agent.js";
|
|
2
|
-
export { Command } from "./command.js";
|
|
3
|
-
export { Config } from "./config.js";
|
|
4
|
-
export { Connection } from "./connection.js";
|
|
5
|
-
export { Credential } from "./credential.js";
|
|
6
|
-
export { Event } from "./event.js";
|
|
7
|
-
export { FileSystem } from "./filesystem.js";
|
|
8
|
-
export { Form } from "./form.js";
|
|
9
|
-
export { Integration } from "./integration.js";
|
|
10
|
-
export { LLM } from "./llm.js";
|
|
11
|
-
export { Location } from "./location.js";
|
|
12
|
-
export { Model } from "./model.js";
|
|
13
|
-
export { Permission } from "./permission.js";
|
|
14
|
-
export { PermissionSaved } from "./permission-saved.js";
|
|
15
|
-
export { Project } from "./project.js";
|
|
16
|
-
export { ProjectCopy } from "./project-copy.js";
|
|
17
|
-
export { Provider } from "./provider.js";
|
|
18
|
-
export { Reference } from "./reference.js";
|
|
19
|
-
export { Revert } from "./revert.js";
|
|
20
|
-
export { Session } from "./session.js";
|
|
21
|
-
export { Vcs } from "./vcs.js";
|
|
22
|
-
export { SessionInput } from "./session-input.js";
|
|
23
|
-
export { SessionMessage } from "./session-message.js";
|
|
24
|
-
export { Shell } from "./shell.js";
|
|
25
|
-
export { Skill } from "./skill.js";
|
|
26
|
-
export { Pty } from "./pty.js";
|
|
27
|
-
export { PtyTicket } from "./pty-ticket.js";
|
|
28
|
-
export { Question } from "./question.js";
|
|
29
|
-
export { Workspace } from "./workspace.js";
|
|
30
|
-
export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
|
|
31
|
-
export { PromptInput } from "./prompt-input.js";
|
|
32
|
-
export * from "./schema.js";
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
export * as InstallationEvent from "./installation-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const Updated: 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<"installation.updated">;
|
|
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 version: Schema.String;
|
|
31
|
-
}>;
|
|
32
|
-
}> & {
|
|
33
|
-
type: "installation.updated";
|
|
34
|
-
durability: "ephemeral";
|
|
35
|
-
durable: undefined;
|
|
36
|
-
data: Schema.Struct<{
|
|
37
|
-
readonly version: Schema.String;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
export declare const UpdateAvailable: 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<"installation.update-available">;
|
|
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 version: Schema.String;
|
|
68
|
-
}>;
|
|
69
|
-
}> & {
|
|
70
|
-
type: "installation.update-available";
|
|
71
|
-
durability: "ephemeral";
|
|
72
|
-
durable: undefined;
|
|
73
|
-
data: Schema.Struct<{
|
|
74
|
-
readonly version: Schema.String;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
export declare const Definitions: readonly [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<"installation.updated">;
|
|
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 version: Schema.String;
|
|
105
|
-
}>;
|
|
106
|
-
}> & {
|
|
107
|
-
type: "installation.updated";
|
|
108
|
-
durability: "ephemeral";
|
|
109
|
-
durable: undefined;
|
|
110
|
-
data: Schema.Struct<{
|
|
111
|
-
readonly version: Schema.String;
|
|
112
|
-
}>;
|
|
113
|
-
}, Schema.Struct<{
|
|
114
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
115
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
116
|
-
};
|
|
117
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
118
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
119
|
-
readonly type: Schema.Literal<"installation.update-available">;
|
|
120
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
121
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
122
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<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
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
126
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
127
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
128
|
-
}>, never, never>;
|
|
129
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
130
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
131
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<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
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
135
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
136
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
137
|
-
}>, never, never>;
|
|
138
|
-
}>>, never, never>;
|
|
139
|
-
readonly data: Schema.Struct<{
|
|
140
|
-
readonly version: Schema.String;
|
|
141
|
-
}>;
|
|
142
|
-
}> & {
|
|
143
|
-
type: "installation.update-available";
|
|
144
|
-
durability: "ephemeral";
|
|
145
|
-
durable: undefined;
|
|
146
|
-
data: Schema.Struct<{
|
|
147
|
-
readonly version: Schema.String;
|
|
148
|
-
}>;
|
|
149
|
-
}];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * as InstallationEvent from "./installation-event.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { Event } from "./event.js";
|
|
4
|
-
export const Updated = Event.ephemeral({
|
|
5
|
-
type: "installation.updated",
|
|
6
|
-
schema: {
|
|
7
|
-
version: Schema.String,
|
|
8
|
-
},
|
|
9
|
-
});
|
|
10
|
-
export const UpdateAvailable = Event.ephemeral({
|
|
11
|
-
type: "installation.update-available",
|
|
12
|
-
schema: {
|
|
13
|
-
version: Schema.String,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
export const Definitions = Event.inventory(Updated, UpdateAvailable);
|
package/dist/integration-id.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
export declare const IntegrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
3
|
-
export type IntegrationID = typeof IntegrationID.Type;
|
|
4
|
-
export declare const IntegrationMethodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
5
|
-
export type IntegrationMethodID = typeof IntegrationMethodID.Type;
|
package/dist/integration-id.js
DELETED