@h-rig/contracts 0.0.6-alpha.78 → 0.0.6-alpha.79

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.
@@ -0,0 +1,50 @@
1
+ import { Schema } from "effect";
2
+ export declare const EngineMessageRole: Schema.Literals<readonly ["user", "assistant", "system"]>;
3
+ export type EngineMessageRole = typeof EngineMessageRole.Type;
4
+ export declare const EngineMessageState: Schema.Literals<readonly ["streaming", "completed", "interrupted", "errored"]>;
5
+ export type EngineMessageState = typeof EngineMessageState.Type;
6
+ export declare const ConversationSummary: Schema.Struct<{
7
+ readonly id: Schema.brand<Schema.Trim, "ConversationId">;
8
+ readonly runId: Schema.brand<Schema.Trim, "RunId">;
9
+ readonly title: Schema.Trim;
10
+ readonly createdAt: Schema.String;
11
+ readonly updatedAt: Schema.String;
12
+ }>;
13
+ export type ConversationSummary = typeof ConversationSummary.Type;
14
+ export declare const EngineMessage: Schema.Struct<{
15
+ readonly id: Schema.brand<Schema.Trim, "MessageId">;
16
+ readonly conversationId: Schema.brand<Schema.Trim, "ConversationId">;
17
+ readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
18
+ readonly text: Schema.String;
19
+ readonly attachments: Schema.$Array<Schema.Unknown>;
20
+ readonly state: Schema.Literals<readonly ["streaming", "completed", "interrupted", "errored"]>;
21
+ readonly createdAt: Schema.String;
22
+ readonly completedAt: Schema.NullOr<Schema.String>;
23
+ }>;
24
+ export type EngineMessage = typeof EngineMessage.Type;
25
+ export declare const EngineAction: Schema.Struct<{
26
+ readonly id: Schema.brand<Schema.Trim, "ActionId">;
27
+ readonly runId: Schema.brand<Schema.Trim, "RunId">;
28
+ readonly messageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
29
+ readonly actionType: Schema.Trim;
30
+ readonly title: Schema.Trim;
31
+ readonly detail: Schema.NullOr<Schema.String>;
32
+ readonly state: Schema.Trim;
33
+ readonly payload: Schema.Unknown;
34
+ readonly startedAt: Schema.String;
35
+ readonly completedAt: Schema.NullOr<Schema.String>;
36
+ }>;
37
+ export type EngineAction = typeof EngineAction.Type;
38
+ export declare const EngineLogTone: Schema.Literals<readonly ["thinking", "tool", "info", "error"]>;
39
+ export type EngineLogTone = typeof EngineLogTone.Type;
40
+ export declare const EngineRunLog: Schema.Struct<{
41
+ readonly id: Schema.Trim;
42
+ readonly runId: Schema.brand<Schema.Trim, "RunId">;
43
+ readonly title: Schema.Trim;
44
+ readonly detail: Schema.NullOr<Schema.String>;
45
+ readonly tone: Schema.Literals<readonly ["thinking", "tool", "info", "error"]>;
46
+ readonly status: Schema.NullOr<Schema.Trim>;
47
+ readonly payload: Schema.Unknown;
48
+ readonly createdAt: Schema.String;
49
+ }>;
50
+ export type EngineRunLog = typeof EngineRunLog.Type;
@@ -0,0 +1,25 @@
1
+ import { Schema } from "effect";
2
+ export declare const EDITORS: readonly [{
3
+ readonly id: "cursor";
4
+ readonly label: "Cursor";
5
+ readonly command: "cursor";
6
+ }, {
7
+ readonly id: "vscode";
8
+ readonly label: "VS Code";
9
+ readonly command: "code";
10
+ }, {
11
+ readonly id: "zed";
12
+ readonly label: "Zed";
13
+ readonly command: "zed";
14
+ }, {
15
+ readonly id: "file-manager";
16
+ readonly label: "File Manager";
17
+ readonly command: null;
18
+ }];
19
+ export declare const EditorId: Schema.Literals<("cursor" | "vscode" | "zed" | "file-manager")[]>;
20
+ export type EditorId = typeof EditorId.Type;
21
+ export declare const OpenInEditorInput: Schema.Struct<{
22
+ readonly cwd: Schema.Trim;
23
+ readonly editor: Schema.Literals<("cursor" | "vscode" | "zed" | "file-manager")[]>;
24
+ }>;
25
+ export type OpenInEditorInput = typeof OpenInEditorInput.Type;