@h-rig/contracts 0.0.6-alpha.8 → 0.0.6-alpha.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.cjs +5277 -0
  2. package/dist/index.mjs +5234 -0
  3. package/dist/src/artifact.d.ts +13 -0
  4. package/dist/src/baseSchemas.d.ts +57 -0
  5. package/dist/src/cli-output.d.ts +234 -0
  6. package/dist/src/cli-output.js +154 -0
  7. package/dist/src/config.d.ts +316 -0
  8. package/dist/src/config.js +14 -2
  9. package/dist/src/conversation.d.ts +50 -0
  10. package/dist/src/editor.d.ts +25 -0
  11. package/dist/src/engine.d.ts +2789 -0
  12. package/dist/src/engine.js +4 -2
  13. package/dist/src/git.d.ts +144 -0
  14. package/dist/src/graph.d.ts +39 -0
  15. package/dist/src/index.d.ts +33 -0
  16. package/dist/src/index.js +1906 -1219
  17. package/dist/src/ipc.d.ts +247 -0
  18. package/dist/src/keybindings.d.ts +71 -0
  19. package/dist/src/model.d.ts +77 -0
  20. package/dist/src/orchestration.d.ts +3695 -0
  21. package/dist/src/pi-session.d.ts +113 -0
  22. package/dist/src/pi-session.js +1 -0
  23. package/dist/src/plugin-hooks.d.ts +51 -0
  24. package/dist/src/plugin-hooks.js +112 -0
  25. package/dist/src/plugin.d.ts +230 -0
  26. package/dist/src/policy.d.ts +16 -0
  27. package/dist/src/project.d.ts +71 -0
  28. package/dist/src/protocol-version.d.ts +21 -0
  29. package/dist/src/protocol-version.js +6 -0
  30. package/dist/src/provider.d.ts +105 -0
  31. package/dist/src/providerRuntime.d.ts +3949 -0
  32. package/dist/src/remote.d.ts +326 -0
  33. package/dist/src/remote.js +4 -2
  34. package/dist/src/review.d.ts +18 -0
  35. package/dist/src/rig.d.ts +753 -0
  36. package/dist/src/rig.js +32 -4
  37. package/dist/src/run-journal.d.ts +763 -0
  38. package/dist/src/run-journal.js +1506 -0
  39. package/dist/src/runtime.d.ts +103 -0
  40. package/dist/src/runtime.js +4 -2
  41. package/dist/src/server.d.ts +106 -0
  42. package/dist/src/serviceFabric.d.ts +62 -0
  43. package/dist/src/task-source.d.ts +28 -0
  44. package/dist/src/terminal.d.ts +130 -0
  45. package/dist/src/validation.d.ts +14 -0
  46. package/dist/src/workspace.d.ts +204 -0
  47. package/dist/src/ws.d.ts +733 -0
  48. package/dist/src/ws.js +27 -3
  49. package/package.json +6 -3
@@ -0,0 +1,204 @@
1
+ import { Schema } from "effect";
2
+ export declare const WorkspaceSourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
3
+ export type WorkspaceSourceKind = typeof WorkspaceSourceKind.Type;
4
+ export declare const WorkspaceTopologyStatus: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
5
+ export type WorkspaceTopologyStatus = typeof WorkspaceTopologyStatus.Type;
6
+ export declare const WorkspaceRemoteFleetStatus: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
7
+ export type WorkspaceRemoteFleetStatus = typeof WorkspaceRemoteFleetStatus.Type;
8
+ export declare const WorkspaceServiceFabricStatus: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
9
+ export type WorkspaceServiceFabricStatus = typeof WorkspaceServiceFabricStatus.Type;
10
+ export declare const WorkspaceRemoteHostStatus: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
11
+ export type WorkspaceRemoteHostStatus = typeof WorkspaceRemoteHostStatus.Type;
12
+ export declare const WorkspaceTopologyServiceSummary: Schema.Struct<{
13
+ readonly name: Schema.Trim;
14
+ readonly relativeRootPath: Schema.Trim;
15
+ readonly runtime: Schema.Trim;
16
+ readonly port: Schema.NullOr<Schema.Number>;
17
+ readonly healthcheck: Schema.NullOr<Schema.Trim>;
18
+ readonly sourceOfTruth: Schema.Struct<{
19
+ readonly code: Schema.NullOr<Schema.Trim>;
20
+ readonly tests: Schema.NullOr<Schema.Trim>;
21
+ readonly infra: Schema.NullOr<Schema.Trim>;
22
+ readonly deploy: Schema.NullOr<Schema.Trim>;
23
+ readonly dependencies: Schema.NullOr<Schema.Trim>;
24
+ }>;
25
+ readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
26
+ }>;
27
+ export type WorkspaceTopologyServiceSummary = typeof WorkspaceTopologyServiceSummary.Type;
28
+ export declare const WorkspaceTopologySummary: Schema.Struct<{
29
+ readonly compiledAt: Schema.String;
30
+ readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
31
+ readonly manifestCount: Schema.Number;
32
+ readonly serviceCount: Schema.Number;
33
+ readonly services: Schema.$Array<Schema.Struct<{
34
+ readonly name: Schema.Trim;
35
+ readonly relativeRootPath: Schema.Trim;
36
+ readonly runtime: Schema.Trim;
37
+ readonly port: Schema.NullOr<Schema.Number>;
38
+ readonly healthcheck: Schema.NullOr<Schema.Trim>;
39
+ readonly sourceOfTruth: Schema.Struct<{
40
+ readonly code: Schema.NullOr<Schema.Trim>;
41
+ readonly tests: Schema.NullOr<Schema.Trim>;
42
+ readonly infra: Schema.NullOr<Schema.Trim>;
43
+ readonly deploy: Schema.NullOr<Schema.Trim>;
44
+ readonly dependencies: Schema.NullOr<Schema.Trim>;
45
+ }>;
46
+ readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
47
+ }>>;
48
+ readonly warnings: Schema.$Array<Schema.String>;
49
+ }>;
50
+ export type WorkspaceTopologySummary = typeof WorkspaceTopologySummary.Type;
51
+ export declare const WorkspaceRemoteHostSummary: Schema.Struct<{
52
+ readonly id: Schema.Trim;
53
+ readonly name: Schema.Trim;
54
+ readonly baseUrl: Schema.Trim;
55
+ readonly workspacePath: Schema.NullOr<Schema.Trim>;
56
+ readonly transport: Schema.Trim;
57
+ readonly hostname: Schema.NullOr<Schema.Trim>;
58
+ readonly region: Schema.NullOr<Schema.Trim>;
59
+ readonly labels: Schema.$Array<Schema.Trim>;
60
+ readonly capabilities: Schema.$Array<Schema.Trim>;
61
+ readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
62
+ readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
63
+ readonly currentLeaseCount: Schema.Number;
64
+ readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
65
+ readonly registeredAt: Schema.String;
66
+ readonly manifestPath: Schema.Trim;
67
+ }>;
68
+ export type WorkspaceRemoteHostSummary = typeof WorkspaceRemoteHostSummary.Type;
69
+ export declare const WorkspaceRemoteFleetSummary: Schema.Struct<{
70
+ readonly updatedAt: Schema.String;
71
+ readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
72
+ readonly manifestCount: Schema.Number;
73
+ readonly hostCount: Schema.Number;
74
+ readonly onlineHostCount: Schema.Number;
75
+ readonly hosts: Schema.$Array<Schema.Struct<{
76
+ readonly id: Schema.Trim;
77
+ readonly name: Schema.Trim;
78
+ readonly baseUrl: Schema.Trim;
79
+ readonly workspacePath: Schema.NullOr<Schema.Trim>;
80
+ readonly transport: Schema.Trim;
81
+ readonly hostname: Schema.NullOr<Schema.Trim>;
82
+ readonly region: Schema.NullOr<Schema.Trim>;
83
+ readonly labels: Schema.$Array<Schema.Trim>;
84
+ readonly capabilities: Schema.$Array<Schema.Trim>;
85
+ readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
86
+ readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
87
+ readonly currentLeaseCount: Schema.Number;
88
+ readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
89
+ readonly registeredAt: Schema.String;
90
+ readonly manifestPath: Schema.Trim;
91
+ }>>;
92
+ readonly warnings: Schema.$Array<Schema.String>;
93
+ }>;
94
+ export type WorkspaceRemoteFleetSummary = typeof WorkspaceRemoteFleetSummary.Type;
95
+ export declare const WorkspaceServiceFabricServiceSummary: Schema.Struct<{
96
+ readonly name: Schema.Trim;
97
+ readonly relativeRootPath: Schema.Trim;
98
+ readonly mode: Schema.Literals<readonly ["stub", "process"]>;
99
+ readonly port: Schema.Number;
100
+ readonly healthcheck: Schema.Trim;
101
+ readonly routePrefix: Schema.NullOr<Schema.Trim>;
102
+ readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
103
+ readonly pid: Schema.NullOr<Schema.Number>;
104
+ readonly logPath: Schema.NullOr<Schema.Trim>;
105
+ }>;
106
+ export type WorkspaceServiceFabricServiceSummary = typeof WorkspaceServiceFabricServiceSummary.Type;
107
+ export declare const WorkspaceServiceFabricSummary: Schema.Struct<{
108
+ readonly updatedAt: Schema.String;
109
+ readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
110
+ readonly serviceCount: Schema.Number;
111
+ readonly healthyServiceCount: Schema.Number;
112
+ readonly stateDir: Schema.Trim;
113
+ readonly services: Schema.$Array<Schema.Struct<{
114
+ readonly name: Schema.Trim;
115
+ readonly relativeRootPath: Schema.Trim;
116
+ readonly mode: Schema.Literals<readonly ["stub", "process"]>;
117
+ readonly port: Schema.Number;
118
+ readonly healthcheck: Schema.Trim;
119
+ readonly routePrefix: Schema.NullOr<Schema.Trim>;
120
+ readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
121
+ readonly pid: Schema.NullOr<Schema.Number>;
122
+ readonly logPath: Schema.NullOr<Schema.Trim>;
123
+ }>>;
124
+ readonly warnings: Schema.$Array<Schema.String>;
125
+ }>;
126
+ export type WorkspaceServiceFabricSummary = typeof WorkspaceServiceFabricSummary.Type;
127
+ export declare const WorkspaceSummary: Schema.Struct<{
128
+ readonly id: Schema.brand<Schema.Trim, "WorkspaceId">;
129
+ readonly title: Schema.Trim;
130
+ readonly rootPath: Schema.Trim;
131
+ readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
132
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
133
+ readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
134
+ readonly defaultModel: Schema.NullOr<Schema.Trim>;
135
+ readonly topology: Schema.optional<Schema.Struct<{
136
+ readonly compiledAt: Schema.String;
137
+ readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
138
+ readonly manifestCount: Schema.Number;
139
+ readonly serviceCount: Schema.Number;
140
+ readonly services: Schema.$Array<Schema.Struct<{
141
+ readonly name: Schema.Trim;
142
+ readonly relativeRootPath: Schema.Trim;
143
+ readonly runtime: Schema.Trim;
144
+ readonly port: Schema.NullOr<Schema.Number>;
145
+ readonly healthcheck: Schema.NullOr<Schema.Trim>;
146
+ readonly sourceOfTruth: Schema.Struct<{
147
+ readonly code: Schema.NullOr<Schema.Trim>;
148
+ readonly tests: Schema.NullOr<Schema.Trim>;
149
+ readonly infra: Schema.NullOr<Schema.Trim>;
150
+ readonly deploy: Schema.NullOr<Schema.Trim>;
151
+ readonly dependencies: Schema.NullOr<Schema.Trim>;
152
+ }>;
153
+ readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
154
+ }>>;
155
+ readonly warnings: Schema.$Array<Schema.String>;
156
+ }>>;
157
+ readonly remoteFleet: Schema.optional<Schema.Struct<{
158
+ readonly updatedAt: Schema.String;
159
+ readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
160
+ readonly manifestCount: Schema.Number;
161
+ readonly hostCount: Schema.Number;
162
+ readonly onlineHostCount: Schema.Number;
163
+ readonly hosts: Schema.$Array<Schema.Struct<{
164
+ readonly id: Schema.Trim;
165
+ readonly name: Schema.Trim;
166
+ readonly baseUrl: Schema.Trim;
167
+ readonly workspacePath: Schema.NullOr<Schema.Trim>;
168
+ readonly transport: Schema.Trim;
169
+ readonly hostname: Schema.NullOr<Schema.Trim>;
170
+ readonly region: Schema.NullOr<Schema.Trim>;
171
+ readonly labels: Schema.$Array<Schema.Trim>;
172
+ readonly capabilities: Schema.$Array<Schema.Trim>;
173
+ readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
174
+ readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
175
+ readonly currentLeaseCount: Schema.Number;
176
+ readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
177
+ readonly registeredAt: Schema.String;
178
+ readonly manifestPath: Schema.Trim;
179
+ }>>;
180
+ readonly warnings: Schema.$Array<Schema.String>;
181
+ }>>;
182
+ readonly serviceFabric: Schema.optional<Schema.Struct<{
183
+ readonly updatedAt: Schema.String;
184
+ readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
185
+ readonly serviceCount: Schema.Number;
186
+ readonly healthyServiceCount: Schema.Number;
187
+ readonly stateDir: Schema.Trim;
188
+ readonly services: Schema.$Array<Schema.Struct<{
189
+ readonly name: Schema.Trim;
190
+ readonly relativeRootPath: Schema.Trim;
191
+ readonly mode: Schema.Literals<readonly ["stub", "process"]>;
192
+ readonly port: Schema.Number;
193
+ readonly healthcheck: Schema.Trim;
194
+ readonly routePrefix: Schema.NullOr<Schema.Trim>;
195
+ readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
196
+ readonly pid: Schema.NullOr<Schema.Number>;
197
+ readonly logPath: Schema.NullOr<Schema.Trim>;
198
+ }>>;
199
+ readonly warnings: Schema.$Array<Schema.String>;
200
+ }>>;
201
+ readonly createdAt: Schema.String;
202
+ readonly updatedAt: Schema.String;
203
+ }>;
204
+ export type WorkspaceSummary = typeof WorkspaceSummary.Type;