@jamesaphoenix/tx-api-server 0.1.1
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/dist/__tests__/api.test.d.ts +7 -0
- package/dist/__tests__/api.test.d.ts.map +1 -0
- package/dist/__tests__/api.test.js +184 -0
- package/dist/__tests__/api.test.js.map +1 -0
- package/dist/__tests__/auth.test.d.ts +7 -0
- package/dist/__tests__/auth.test.d.ts.map +1 -0
- package/dist/__tests__/auth.test.js +174 -0
- package/dist/__tests__/auth.test.js.map +1 -0
- package/dist/__tests__/body-limit.test.d.ts +7 -0
- package/dist/__tests__/body-limit.test.d.ts.map +1 -0
- package/dist/__tests__/body-limit.test.js +60 -0
- package/dist/__tests__/body-limit.test.js.map +1 -0
- package/dist/__tests__/health.test.d.ts.map +1 -0
- package/dist/__tests__/health.test.js.map +1 -0
- package/dist/__tests__/log-reader.test.d.ts +8 -0
- package/dist/__tests__/log-reader.test.d.ts.map +1 -0
- package/dist/__tests__/log-reader.test.js +55 -0
- package/dist/__tests__/log-reader.test.js.map +1 -0
- package/dist/__tests__/rate-limit.test.d.ts.map +1 -0
- package/dist/__tests__/rate-limit.test.js.map +1 -0
- package/dist/__tests__/server-lib.test.d.ts +10 -0
- package/dist/__tests__/server-lib.test.d.ts.map +1 -0
- package/dist/__tests__/server-lib.test.js +145 -0
- package/dist/__tests__/server-lib.test.js.map +1 -0
- package/dist/api.d.ts +1616 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +566 -0
- package/dist/api.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/auth.d.ts +31 -0
- package/dist/middleware/auth.d.ts.map +1 -0
- package/dist/middleware/auth.js +65 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/body-limit.d.ts +33 -0
- package/dist/middleware/body-limit.d.ts.map +1 -0
- package/dist/middleware/body-limit.js +50 -0
- package/dist/middleware/body-limit.js.map +1 -0
- package/dist/middleware/cors.d.ts +15 -0
- package/dist/middleware/cors.d.ts.map +1 -0
- package/dist/middleware/cors.js +31 -0
- package/dist/middleware/cors.js.map +1 -0
- package/dist/middleware/error.d.ts +26 -0
- package/dist/middleware/error.d.ts.map +1 -0
- package/dist/middleware/error.js +84 -0
- package/dist/middleware/error.js.map +1 -0
- package/dist/middleware/rate-limit.d.ts +59 -0
- package/dist/middleware/rate-limit.d.ts.map +1 -0
- package/dist/middleware/rate-limit.js +296 -0
- package/dist/middleware/rate-limit.js.map +1 -0
- package/dist/routes/attempts.d.ts +9 -0
- package/dist/routes/attempts.d.ts.map +1 -0
- package/dist/routes/attempts.js +26 -0
- package/dist/routes/attempts.js.map +1 -0
- package/dist/routes/claims.d.ts +9 -0
- package/dist/routes/claims.d.ts.map +1 -0
- package/dist/routes/claims.js +42 -0
- package/dist/routes/claims.js.map +1 -0
- package/dist/routes/docs.d.ts +9 -0
- package/dist/routes/docs.d.ts.map +1 -0
- package/dist/routes/docs.js +80 -0
- package/dist/routes/docs.js.map +1 -0
- package/dist/routes/health.d.ts +8 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +101 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/invariants.d.ts +9 -0
- package/dist/routes/invariants.d.ts.map +1 -0
- package/dist/routes/invariants.js +64 -0
- package/dist/routes/invariants.js.map +1 -0
- package/dist/routes/learnings.d.ts +8 -0
- package/dist/routes/learnings.d.ts.map +1 -0
- package/dist/routes/learnings.js +93 -0
- package/dist/routes/learnings.js.map +1 -0
- package/dist/routes/runs.d.ts +8 -0
- package/dist/routes/runs.d.ts.map +1 -0
- package/dist/routes/runs.js +195 -0
- package/dist/routes/runs.js.map +1 -0
- package/dist/routes/sync.d.ts +8 -0
- package/dist/routes/sync.d.ts.map +1 -0
- package/dist/routes/sync.js +67 -0
- package/dist/routes/sync.js.map +1 -0
- package/dist/routes/tasks.d.ts +9 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +167 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +10 -0
- package/dist/runtime.js.map +1 -0
- package/dist/server-lib.d.ts +26 -0
- package/dist/server-lib.d.ts.map +1 -0
- package/dist/server-lib.js +123 -0
- package/dist/server-lib.js.map +1 -0
- package/dist/server.d.ts +14 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +15 -0
- package/dist/server.js.map +1 -0
- package/dist/utils/log-reader.d.ts +26 -0
- package/dist/utils/log-reader.d.ts.map +1 -0
- package/dist/utils/log-reader.js +52 -0
- package/dist/utils/log-reader.js.map +1 -0
- package/dist/utils/transcript-parser.d.ts +40 -0
- package/dist/utils/transcript-parser.d.ts.map +1 -0
- package/dist/utils/transcript-parser.js +216 -0
- package/dist/utils/transcript-parser.js.map +1 -0
- package/package.json +75 -0
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,1616 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TX API Definition
|
|
3
|
+
*
|
|
4
|
+
* Declarative API definition using Effect HttpApi.
|
|
5
|
+
* Defines all endpoints, groups, errors, and their schemas.
|
|
6
|
+
* Handlers are implemented separately in routes/*.ts files.
|
|
7
|
+
*/
|
|
8
|
+
import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "@effect/platform";
|
|
9
|
+
import { Schema } from "effect";
|
|
10
|
+
declare const NotFound_base: Schema.TaggedErrorClass<NotFound, "NotFound", {
|
|
11
|
+
readonly _tag: Schema.tag<"NotFound">;
|
|
12
|
+
} & {
|
|
13
|
+
message: typeof Schema.String;
|
|
14
|
+
}>;
|
|
15
|
+
export declare class NotFound extends NotFound_base {
|
|
16
|
+
}
|
|
17
|
+
declare const BadRequest_base: Schema.TaggedErrorClass<BadRequest, "BadRequest", {
|
|
18
|
+
readonly _tag: Schema.tag<"BadRequest">;
|
|
19
|
+
} & {
|
|
20
|
+
message: typeof Schema.String;
|
|
21
|
+
}>;
|
|
22
|
+
export declare class BadRequest extends BadRequest_base {
|
|
23
|
+
}
|
|
24
|
+
declare const InternalError_base: Schema.TaggedErrorClass<InternalError, "InternalError", {
|
|
25
|
+
readonly _tag: Schema.tag<"InternalError">;
|
|
26
|
+
} & {
|
|
27
|
+
message: typeof Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
export declare class InternalError extends InternalError_base {
|
|
30
|
+
}
|
|
31
|
+
declare const Unauthorized_base: Schema.TaggedErrorClass<Unauthorized, "Unauthorized", {
|
|
32
|
+
readonly _tag: Schema.tag<"Unauthorized">;
|
|
33
|
+
} & {
|
|
34
|
+
message: typeof Schema.String;
|
|
35
|
+
}>;
|
|
36
|
+
export declare class Unauthorized extends Unauthorized_base {
|
|
37
|
+
}
|
|
38
|
+
declare const Forbidden_base: Schema.TaggedErrorClass<Forbidden, "Forbidden", {
|
|
39
|
+
readonly _tag: Schema.tag<"Forbidden">;
|
|
40
|
+
} & {
|
|
41
|
+
message: typeof Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
export declare class Forbidden extends Forbidden_base {
|
|
44
|
+
}
|
|
45
|
+
declare const ServiceUnavailable_base: Schema.TaggedErrorClass<ServiceUnavailable, "ServiceUnavailable", {
|
|
46
|
+
readonly _tag: Schema.tag<"ServiceUnavailable">;
|
|
47
|
+
} & {
|
|
48
|
+
message: typeof Schema.String;
|
|
49
|
+
}>;
|
|
50
|
+
export declare class ServiceUnavailable extends ServiceUnavailable_base {
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Maps tx-core tagged errors to API error types.
|
|
54
|
+
* Used by all route handlers for consistent error handling.
|
|
55
|
+
*/
|
|
56
|
+
export declare const mapCoreError: (e: unknown) => NotFound | BadRequest | InternalError | ServiceUnavailable;
|
|
57
|
+
/**
|
|
58
|
+
* A Schema.String with basic path traversal protection.
|
|
59
|
+
* Rejects null bytes and '..' traversal sequences at the schema level.
|
|
60
|
+
* Handler-level validation still checks allowed directories (defense-in-depth).
|
|
61
|
+
*/
|
|
62
|
+
export declare const SafePathString: Schema.filter<typeof Schema.String>;
|
|
63
|
+
export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"health", HttpApiEndpoint.HttpApiEndpoint<"health", "GET", never, never, never, never, {
|
|
64
|
+
readonly status: "healthy" | "degraded" | "unhealthy";
|
|
65
|
+
readonly timestamp: string;
|
|
66
|
+
readonly version: string;
|
|
67
|
+
readonly database: {
|
|
68
|
+
readonly connected: boolean;
|
|
69
|
+
readonly path: string | null;
|
|
70
|
+
};
|
|
71
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stats", "GET", never, never, never, never, {
|
|
72
|
+
readonly tasks: number;
|
|
73
|
+
readonly done: number;
|
|
74
|
+
readonly ready: number;
|
|
75
|
+
readonly learnings: number;
|
|
76
|
+
readonly runsRunning?: number | undefined;
|
|
77
|
+
readonly runsTotal?: number | undefined;
|
|
78
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ralph", "GET", never, never, never, never, {
|
|
79
|
+
readonly running: boolean;
|
|
80
|
+
readonly pid: number | null;
|
|
81
|
+
readonly currentIteration: number;
|
|
82
|
+
readonly currentTask: string | null;
|
|
83
|
+
readonly recentActivity: readonly {
|
|
84
|
+
readonly status: "started" | "completed" | "failed";
|
|
85
|
+
readonly timestamp: string;
|
|
86
|
+
readonly iteration: number;
|
|
87
|
+
readonly task: string;
|
|
88
|
+
readonly taskTitle: string;
|
|
89
|
+
readonly agent: string;
|
|
90
|
+
}[];
|
|
91
|
+
}, never, never, never>, never, never, false>;
|
|
92
|
+
export declare const TasksGroup: HttpApiGroup.HttpApiGroup<"tasks", HttpApiEndpoint.HttpApiEndpoint<"listTasks", "GET", never, {
|
|
93
|
+
readonly status?: string | undefined;
|
|
94
|
+
readonly cursor?: string | undefined;
|
|
95
|
+
readonly limit?: number | undefined;
|
|
96
|
+
readonly search?: string | undefined;
|
|
97
|
+
}, never, never, {
|
|
98
|
+
readonly tasks: readonly {
|
|
99
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
100
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
101
|
+
readonly title: string;
|
|
102
|
+
readonly description: string;
|
|
103
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
104
|
+
readonly score: number;
|
|
105
|
+
readonly createdAt: string;
|
|
106
|
+
readonly updatedAt: string;
|
|
107
|
+
readonly completedAt: string | null;
|
|
108
|
+
readonly metadata: {
|
|
109
|
+
readonly [x: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
112
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
113
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
114
|
+
readonly isReady: boolean;
|
|
115
|
+
}[];
|
|
116
|
+
readonly nextCursor: string | null;
|
|
117
|
+
readonly hasMore: boolean;
|
|
118
|
+
readonly total: number;
|
|
119
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"readyTasks", "GET", never, {
|
|
120
|
+
readonly limit?: number | undefined;
|
|
121
|
+
}, never, never, {
|
|
122
|
+
readonly tasks: readonly {
|
|
123
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
124
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
125
|
+
readonly title: string;
|
|
126
|
+
readonly description: string;
|
|
127
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
128
|
+
readonly score: number;
|
|
129
|
+
readonly createdAt: string;
|
|
130
|
+
readonly updatedAt: string;
|
|
131
|
+
readonly completedAt: string | null;
|
|
132
|
+
readonly metadata: {
|
|
133
|
+
readonly [x: string]: unknown;
|
|
134
|
+
};
|
|
135
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
136
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
137
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
138
|
+
readonly isReady: boolean;
|
|
139
|
+
}[];
|
|
140
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTask", "GET", {
|
|
141
|
+
readonly id: string;
|
|
142
|
+
}, never, never, never, {
|
|
143
|
+
readonly task: {
|
|
144
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
145
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
146
|
+
readonly title: string;
|
|
147
|
+
readonly description: string;
|
|
148
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
149
|
+
readonly score: number;
|
|
150
|
+
readonly createdAt: string;
|
|
151
|
+
readonly updatedAt: string;
|
|
152
|
+
readonly completedAt: string | null;
|
|
153
|
+
readonly metadata: {
|
|
154
|
+
readonly [x: string]: unknown;
|
|
155
|
+
};
|
|
156
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
157
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
158
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
159
|
+
readonly isReady: boolean;
|
|
160
|
+
};
|
|
161
|
+
readonly blockedByTasks: readonly {
|
|
162
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
163
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
164
|
+
readonly title: string;
|
|
165
|
+
readonly description: string;
|
|
166
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
167
|
+
readonly score: number;
|
|
168
|
+
readonly createdAt: string;
|
|
169
|
+
readonly updatedAt: string;
|
|
170
|
+
readonly completedAt: string | null;
|
|
171
|
+
readonly metadata: {
|
|
172
|
+
readonly [x: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
175
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
176
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
177
|
+
readonly isReady: boolean;
|
|
178
|
+
}[];
|
|
179
|
+
readonly blocksTasks: readonly {
|
|
180
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
181
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
182
|
+
readonly title: string;
|
|
183
|
+
readonly description: string;
|
|
184
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
185
|
+
readonly score: number;
|
|
186
|
+
readonly createdAt: string;
|
|
187
|
+
readonly updatedAt: string;
|
|
188
|
+
readonly completedAt: string | null;
|
|
189
|
+
readonly metadata: {
|
|
190
|
+
readonly [x: string]: unknown;
|
|
191
|
+
};
|
|
192
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
193
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
194
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
195
|
+
readonly isReady: boolean;
|
|
196
|
+
}[];
|
|
197
|
+
readonly childTasks: readonly {
|
|
198
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
199
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
200
|
+
readonly title: string;
|
|
201
|
+
readonly description: string;
|
|
202
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
203
|
+
readonly score: number;
|
|
204
|
+
readonly createdAt: string;
|
|
205
|
+
readonly updatedAt: string;
|
|
206
|
+
readonly completedAt: string | null;
|
|
207
|
+
readonly metadata: {
|
|
208
|
+
readonly [x: string]: unknown;
|
|
209
|
+
};
|
|
210
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
211
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
212
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
213
|
+
readonly isReady: boolean;
|
|
214
|
+
}[];
|
|
215
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createTask", "POST", never, never, {
|
|
216
|
+
readonly title: string;
|
|
217
|
+
readonly description?: string | undefined;
|
|
218
|
+
readonly parentId?: string | undefined;
|
|
219
|
+
readonly score?: number | undefined;
|
|
220
|
+
readonly metadata?: {
|
|
221
|
+
readonly [x: string]: unknown;
|
|
222
|
+
} | undefined;
|
|
223
|
+
}, never, {
|
|
224
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
225
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
226
|
+
readonly title: string;
|
|
227
|
+
readonly description: string;
|
|
228
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
229
|
+
readonly score: number;
|
|
230
|
+
readonly createdAt: string;
|
|
231
|
+
readonly updatedAt: string;
|
|
232
|
+
readonly completedAt: string | null;
|
|
233
|
+
readonly metadata: {
|
|
234
|
+
readonly [x: string]: unknown;
|
|
235
|
+
};
|
|
236
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
237
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
238
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
239
|
+
readonly isReady: boolean;
|
|
240
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateTask", "PATCH", {
|
|
241
|
+
readonly id: string;
|
|
242
|
+
}, never, {
|
|
243
|
+
readonly status?: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review" | undefined;
|
|
244
|
+
readonly title?: string | undefined;
|
|
245
|
+
readonly description?: string | undefined;
|
|
246
|
+
readonly parentId?: string | null | undefined;
|
|
247
|
+
readonly score?: number | undefined;
|
|
248
|
+
readonly metadata?: {
|
|
249
|
+
readonly [x: string]: unknown;
|
|
250
|
+
} | undefined;
|
|
251
|
+
}, never, {
|
|
252
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
253
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
254
|
+
readonly title: string;
|
|
255
|
+
readonly description: string;
|
|
256
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
257
|
+
readonly score: number;
|
|
258
|
+
readonly createdAt: string;
|
|
259
|
+
readonly updatedAt: string;
|
|
260
|
+
readonly completedAt: string | null;
|
|
261
|
+
readonly metadata: {
|
|
262
|
+
readonly [x: string]: unknown;
|
|
263
|
+
};
|
|
264
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
265
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
266
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
267
|
+
readonly isReady: boolean;
|
|
268
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeTask", "POST", {
|
|
269
|
+
readonly id: string;
|
|
270
|
+
}, never, never, never, {
|
|
271
|
+
readonly task: {
|
|
272
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
273
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
274
|
+
readonly title: string;
|
|
275
|
+
readonly description: string;
|
|
276
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
277
|
+
readonly score: number;
|
|
278
|
+
readonly createdAt: string;
|
|
279
|
+
readonly updatedAt: string;
|
|
280
|
+
readonly completedAt: string | null;
|
|
281
|
+
readonly metadata: {
|
|
282
|
+
readonly [x: string]: unknown;
|
|
283
|
+
};
|
|
284
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
285
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
286
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
287
|
+
readonly isReady: boolean;
|
|
288
|
+
};
|
|
289
|
+
readonly nowReady: readonly {
|
|
290
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
291
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
292
|
+
readonly title: string;
|
|
293
|
+
readonly description: string;
|
|
294
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
295
|
+
readonly score: number;
|
|
296
|
+
readonly createdAt: string;
|
|
297
|
+
readonly updatedAt: string;
|
|
298
|
+
readonly completedAt: string | null;
|
|
299
|
+
readonly metadata: {
|
|
300
|
+
readonly [x: string]: unknown;
|
|
301
|
+
};
|
|
302
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
303
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
304
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
305
|
+
readonly isReady: boolean;
|
|
306
|
+
}[];
|
|
307
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteTask", "DELETE", {
|
|
308
|
+
readonly id: string;
|
|
309
|
+
}, {
|
|
310
|
+
readonly cascade?: string | undefined;
|
|
311
|
+
}, never, never, {
|
|
312
|
+
readonly id: string;
|
|
313
|
+
readonly success: boolean;
|
|
314
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"blockTask", "POST", {
|
|
315
|
+
readonly id: string;
|
|
316
|
+
}, never, {
|
|
317
|
+
readonly blockerId: string;
|
|
318
|
+
}, never, {
|
|
319
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
320
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
321
|
+
readonly title: string;
|
|
322
|
+
readonly description: string;
|
|
323
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
324
|
+
readonly score: number;
|
|
325
|
+
readonly createdAt: string;
|
|
326
|
+
readonly updatedAt: string;
|
|
327
|
+
readonly completedAt: string | null;
|
|
328
|
+
readonly metadata: {
|
|
329
|
+
readonly [x: string]: unknown;
|
|
330
|
+
};
|
|
331
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
332
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
333
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
334
|
+
readonly isReady: boolean;
|
|
335
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unblockTask", "DELETE", {
|
|
336
|
+
readonly id: string;
|
|
337
|
+
readonly blockerId: string;
|
|
338
|
+
}, never, never, never, {
|
|
339
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
340
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
341
|
+
readonly title: string;
|
|
342
|
+
readonly description: string;
|
|
343
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
344
|
+
readonly score: number;
|
|
345
|
+
readonly createdAt: string;
|
|
346
|
+
readonly updatedAt: string;
|
|
347
|
+
readonly completedAt: string | null;
|
|
348
|
+
readonly metadata: {
|
|
349
|
+
readonly [x: string]: unknown;
|
|
350
|
+
};
|
|
351
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
352
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
353
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
354
|
+
readonly isReady: boolean;
|
|
355
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskTree", "GET", {
|
|
356
|
+
readonly id: string;
|
|
357
|
+
}, never, never, never, {
|
|
358
|
+
readonly tasks: readonly {
|
|
359
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
360
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
361
|
+
readonly title: string;
|
|
362
|
+
readonly description: string;
|
|
363
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
364
|
+
readonly score: number;
|
|
365
|
+
readonly createdAt: string;
|
|
366
|
+
readonly updatedAt: string;
|
|
367
|
+
readonly completedAt: string | null;
|
|
368
|
+
readonly metadata: {
|
|
369
|
+
readonly [x: string]: unknown;
|
|
370
|
+
};
|
|
371
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
372
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
373
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
374
|
+
readonly isReady: boolean;
|
|
375
|
+
}[];
|
|
376
|
+
}, never, never, never>, never, never, false>;
|
|
377
|
+
export declare const LearningsGroup: HttpApiGroup.HttpApiGroup<"learnings", HttpApiEndpoint.HttpApiEndpoint<"searchLearnings", "GET", never, {
|
|
378
|
+
readonly limit?: number | undefined;
|
|
379
|
+
readonly query?: string | undefined;
|
|
380
|
+
readonly minScore?: number | undefined;
|
|
381
|
+
readonly category?: string | undefined;
|
|
382
|
+
}, never, never, {
|
|
383
|
+
readonly learnings: readonly {
|
|
384
|
+
readonly id: number;
|
|
385
|
+
readonly createdAt: string;
|
|
386
|
+
readonly category: string | null;
|
|
387
|
+
readonly relevanceScore: number;
|
|
388
|
+
readonly bm25Score: number;
|
|
389
|
+
readonly vectorScore: number;
|
|
390
|
+
readonly recencyScore: number;
|
|
391
|
+
readonly rrfScore: number;
|
|
392
|
+
readonly bm25Rank: number;
|
|
393
|
+
readonly vectorRank: number;
|
|
394
|
+
readonly rerankerScore?: number | undefined;
|
|
395
|
+
readonly feedbackScore?: number | undefined;
|
|
396
|
+
readonly content: string;
|
|
397
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
398
|
+
readonly sourceRef: string | null;
|
|
399
|
+
readonly keywords: readonly string[];
|
|
400
|
+
readonly usageCount: number;
|
|
401
|
+
readonly lastUsedAt: string | null;
|
|
402
|
+
readonly outcomeScore: number | null;
|
|
403
|
+
readonly embedding: readonly number[] | null;
|
|
404
|
+
}[];
|
|
405
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getLearning", "GET", {
|
|
406
|
+
readonly id: number;
|
|
407
|
+
}, never, never, never, {
|
|
408
|
+
readonly id: number;
|
|
409
|
+
readonly createdAt: string;
|
|
410
|
+
readonly category: string | null;
|
|
411
|
+
readonly content: string;
|
|
412
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
413
|
+
readonly sourceRef: string | null;
|
|
414
|
+
readonly keywords: readonly string[];
|
|
415
|
+
readonly usageCount: number;
|
|
416
|
+
readonly lastUsedAt: string | null;
|
|
417
|
+
readonly outcomeScore: number | null;
|
|
418
|
+
readonly embedding: readonly number[] | null;
|
|
419
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createLearning", "POST", never, never, {
|
|
420
|
+
readonly category?: string | undefined;
|
|
421
|
+
readonly content: string;
|
|
422
|
+
readonly sourceType?: "compaction" | "run" | "manual" | "claude_md" | undefined;
|
|
423
|
+
readonly sourceRef?: string | undefined;
|
|
424
|
+
readonly keywords?: readonly string[] | undefined;
|
|
425
|
+
}, never, {
|
|
426
|
+
readonly id: number;
|
|
427
|
+
readonly createdAt: string;
|
|
428
|
+
readonly category: string | null;
|
|
429
|
+
readonly content: string;
|
|
430
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
431
|
+
readonly sourceRef: string | null;
|
|
432
|
+
readonly keywords: readonly string[];
|
|
433
|
+
readonly usageCount: number;
|
|
434
|
+
readonly lastUsedAt: string | null;
|
|
435
|
+
readonly outcomeScore: number | null;
|
|
436
|
+
readonly embedding: readonly number[] | null;
|
|
437
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateHelpfulness", "POST", {
|
|
438
|
+
readonly id: number;
|
|
439
|
+
}, never, {
|
|
440
|
+
readonly score: number;
|
|
441
|
+
}, never, {
|
|
442
|
+
readonly id: number;
|
|
443
|
+
readonly score: number;
|
|
444
|
+
readonly success: boolean;
|
|
445
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getContext", "GET", {
|
|
446
|
+
readonly taskId: string;
|
|
447
|
+
}, never, never, never, {
|
|
448
|
+
readonly taskId: string;
|
|
449
|
+
readonly learnings: readonly {
|
|
450
|
+
readonly id: number;
|
|
451
|
+
readonly createdAt: string;
|
|
452
|
+
readonly category: string | null;
|
|
453
|
+
readonly relevanceScore: number;
|
|
454
|
+
readonly bm25Score: number;
|
|
455
|
+
readonly vectorScore: number;
|
|
456
|
+
readonly recencyScore: number;
|
|
457
|
+
readonly rrfScore: number;
|
|
458
|
+
readonly bm25Rank: number;
|
|
459
|
+
readonly vectorRank: number;
|
|
460
|
+
readonly rerankerScore?: number | undefined;
|
|
461
|
+
readonly feedbackScore?: number | undefined;
|
|
462
|
+
readonly content: string;
|
|
463
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
464
|
+
readonly sourceRef: string | null;
|
|
465
|
+
readonly keywords: readonly string[];
|
|
466
|
+
readonly usageCount: number;
|
|
467
|
+
readonly lastUsedAt: string | null;
|
|
468
|
+
readonly outcomeScore: number | null;
|
|
469
|
+
readonly embedding: readonly number[] | null;
|
|
470
|
+
}[];
|
|
471
|
+
readonly taskTitle: string;
|
|
472
|
+
readonly searchQuery: string;
|
|
473
|
+
readonly searchDuration: number;
|
|
474
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listFileLearnings", "GET", never, {
|
|
475
|
+
readonly path?: string | undefined;
|
|
476
|
+
}, never, never, {
|
|
477
|
+
readonly learnings: readonly {
|
|
478
|
+
readonly id: number & import("effect/Brand").Brand<"FileLearningId">;
|
|
479
|
+
readonly taskId: string | null;
|
|
480
|
+
readonly createdAt: string;
|
|
481
|
+
readonly filePattern: string;
|
|
482
|
+
readonly note: string;
|
|
483
|
+
}[];
|
|
484
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createFileLearning", "POST", never, never, {
|
|
485
|
+
readonly taskId?: string | undefined;
|
|
486
|
+
readonly filePattern: string;
|
|
487
|
+
readonly note: string;
|
|
488
|
+
}, never, {
|
|
489
|
+
readonly id: number & import("effect/Brand").Brand<"FileLearningId">;
|
|
490
|
+
readonly taskId: string | null;
|
|
491
|
+
readonly createdAt: string;
|
|
492
|
+
readonly filePattern: string;
|
|
493
|
+
readonly note: string;
|
|
494
|
+
}, never, never, never>, never, never, false>;
|
|
495
|
+
export declare const RunsGroup: HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"listRuns", "GET", never, {
|
|
496
|
+
readonly taskId?: string | undefined;
|
|
497
|
+
readonly status?: string | undefined;
|
|
498
|
+
readonly agent?: string | undefined;
|
|
499
|
+
readonly cursor?: string | undefined;
|
|
500
|
+
readonly limit?: number | undefined;
|
|
501
|
+
}, never, never, {
|
|
502
|
+
readonly nextCursor: string | null;
|
|
503
|
+
readonly hasMore: boolean;
|
|
504
|
+
readonly total: number;
|
|
505
|
+
readonly runs: readonly {
|
|
506
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
507
|
+
readonly taskId: string | null;
|
|
508
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
509
|
+
readonly pid: number | null;
|
|
510
|
+
readonly agent: string;
|
|
511
|
+
readonly metadata: {
|
|
512
|
+
readonly [x: string]: unknown;
|
|
513
|
+
};
|
|
514
|
+
readonly startedAt: string;
|
|
515
|
+
readonly endedAt: string | null;
|
|
516
|
+
readonly exitCode: number | null;
|
|
517
|
+
readonly transcriptPath: string | null;
|
|
518
|
+
readonly stderrPath: string | null;
|
|
519
|
+
readonly stdoutPath: string | null;
|
|
520
|
+
readonly contextInjected: string | null;
|
|
521
|
+
readonly summary: string | null;
|
|
522
|
+
readonly errorMessage: string | null;
|
|
523
|
+
}[];
|
|
524
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRun", "GET", {
|
|
525
|
+
readonly id: string;
|
|
526
|
+
}, never, never, never, {
|
|
527
|
+
readonly run: {
|
|
528
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
529
|
+
readonly taskId: string | null;
|
|
530
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
531
|
+
readonly pid: number | null;
|
|
532
|
+
readonly agent: string;
|
|
533
|
+
readonly metadata: {
|
|
534
|
+
readonly [x: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
readonly startedAt: string;
|
|
537
|
+
readonly endedAt: string | null;
|
|
538
|
+
readonly exitCode: number | null;
|
|
539
|
+
readonly transcriptPath: string | null;
|
|
540
|
+
readonly stderrPath: string | null;
|
|
541
|
+
readonly stdoutPath: string | null;
|
|
542
|
+
readonly contextInjected: string | null;
|
|
543
|
+
readonly summary: string | null;
|
|
544
|
+
readonly errorMessage: string | null;
|
|
545
|
+
};
|
|
546
|
+
readonly messages: readonly {
|
|
547
|
+
readonly timestamp?: string | undefined;
|
|
548
|
+
readonly content: unknown;
|
|
549
|
+
readonly role: "user" | "assistant" | "system";
|
|
550
|
+
readonly type?: "tool_use" | "tool_result" | "text" | "thinking" | undefined;
|
|
551
|
+
readonly tool_name?: string | undefined;
|
|
552
|
+
}[];
|
|
553
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createRun", "POST", never, never, {
|
|
554
|
+
readonly taskId?: string | undefined;
|
|
555
|
+
readonly pid?: number | undefined;
|
|
556
|
+
readonly agent: string;
|
|
557
|
+
readonly metadata?: {
|
|
558
|
+
readonly [x: string]: unknown;
|
|
559
|
+
} | undefined;
|
|
560
|
+
readonly transcriptPath?: string | undefined;
|
|
561
|
+
readonly contextInjected?: string | undefined;
|
|
562
|
+
}, never, {
|
|
563
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
564
|
+
readonly taskId: string | null;
|
|
565
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
566
|
+
readonly pid: number | null;
|
|
567
|
+
readonly agent: string;
|
|
568
|
+
readonly metadata: {
|
|
569
|
+
readonly [x: string]: unknown;
|
|
570
|
+
};
|
|
571
|
+
readonly startedAt: string;
|
|
572
|
+
readonly endedAt: string | null;
|
|
573
|
+
readonly exitCode: number | null;
|
|
574
|
+
readonly transcriptPath: string | null;
|
|
575
|
+
readonly stderrPath: string | null;
|
|
576
|
+
readonly stdoutPath: string | null;
|
|
577
|
+
readonly contextInjected: string | null;
|
|
578
|
+
readonly summary: string | null;
|
|
579
|
+
readonly errorMessage: string | null;
|
|
580
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateRun", "PATCH", {
|
|
581
|
+
readonly id: string;
|
|
582
|
+
}, never, {
|
|
583
|
+
readonly status?: "running" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
|
|
584
|
+
readonly endedAt?: string | undefined;
|
|
585
|
+
readonly exitCode?: number | undefined;
|
|
586
|
+
readonly transcriptPath?: string | undefined;
|
|
587
|
+
readonly summary?: string | undefined;
|
|
588
|
+
readonly errorMessage?: string | undefined;
|
|
589
|
+
}, never, {
|
|
590
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
591
|
+
readonly taskId: string | null;
|
|
592
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
593
|
+
readonly pid: number | null;
|
|
594
|
+
readonly agent: string;
|
|
595
|
+
readonly metadata: {
|
|
596
|
+
readonly [x: string]: unknown;
|
|
597
|
+
};
|
|
598
|
+
readonly startedAt: string;
|
|
599
|
+
readonly endedAt: string | null;
|
|
600
|
+
readonly exitCode: number | null;
|
|
601
|
+
readonly transcriptPath: string | null;
|
|
602
|
+
readonly stderrPath: string | null;
|
|
603
|
+
readonly stdoutPath: string | null;
|
|
604
|
+
readonly contextInjected: string | null;
|
|
605
|
+
readonly summary: string | null;
|
|
606
|
+
readonly errorMessage: string | null;
|
|
607
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStdout", "GET", {
|
|
608
|
+
readonly id: string;
|
|
609
|
+
}, {
|
|
610
|
+
readonly tail?: number | undefined;
|
|
611
|
+
}, never, never, {
|
|
612
|
+
readonly content: string;
|
|
613
|
+
readonly truncated: boolean;
|
|
614
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStderr", "GET", {
|
|
615
|
+
readonly id: string;
|
|
616
|
+
}, {
|
|
617
|
+
readonly tail?: number | undefined;
|
|
618
|
+
}, never, never, {
|
|
619
|
+
readonly content: string;
|
|
620
|
+
readonly truncated: boolean;
|
|
621
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunContext", "GET", {
|
|
622
|
+
readonly id: string;
|
|
623
|
+
}, never, never, never, {
|
|
624
|
+
readonly content: string;
|
|
625
|
+
readonly truncated: boolean;
|
|
626
|
+
}, never, never, never>, never, never, false>;
|
|
627
|
+
export declare const SyncGroup: HttpApiGroup.HttpApiGroup<"sync", HttpApiEndpoint.HttpApiEndpoint<"syncExport", "POST", never, never, {
|
|
628
|
+
readonly path?: string | undefined;
|
|
629
|
+
}, never, {
|
|
630
|
+
readonly path: string;
|
|
631
|
+
readonly opCount: number;
|
|
632
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncImport", "POST", never, never, {
|
|
633
|
+
readonly path?: string | undefined;
|
|
634
|
+
}, never, {
|
|
635
|
+
readonly imported: number;
|
|
636
|
+
readonly skipped: number;
|
|
637
|
+
readonly conflicts: number;
|
|
638
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStatus", "GET", never, never, never, never, {
|
|
639
|
+
readonly dbTaskCount: number;
|
|
640
|
+
readonly jsonlOpCount: number;
|
|
641
|
+
readonly lastExport: string | null;
|
|
642
|
+
readonly lastImport: string | null;
|
|
643
|
+
readonly isDirty: boolean;
|
|
644
|
+
readonly autoSyncEnabled: boolean;
|
|
645
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncCompact", "POST", never, never, {
|
|
646
|
+
readonly path?: string | undefined;
|
|
647
|
+
}, never, {
|
|
648
|
+
readonly before: number;
|
|
649
|
+
readonly after: number;
|
|
650
|
+
}, never, never, never>, never, never, false>;
|
|
651
|
+
export declare const DocsGroup: HttpApiGroup.HttpApiGroup<"docs", HttpApiEndpoint.HttpApiEndpoint<"listDocs", "GET", never, {
|
|
652
|
+
readonly status?: string | undefined;
|
|
653
|
+
readonly kind?: string | undefined;
|
|
654
|
+
}, never, never, {
|
|
655
|
+
readonly docs: readonly {
|
|
656
|
+
readonly id: number;
|
|
657
|
+
readonly status: string;
|
|
658
|
+
readonly version: number;
|
|
659
|
+
readonly title: string;
|
|
660
|
+
readonly createdAt: string;
|
|
661
|
+
readonly updatedAt: string | null;
|
|
662
|
+
readonly name: string;
|
|
663
|
+
readonly kind: string;
|
|
664
|
+
readonly filePath: string | null;
|
|
665
|
+
readonly hash: string;
|
|
666
|
+
readonly lockedAt: string | null;
|
|
667
|
+
}[];
|
|
668
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDoc", "GET", {
|
|
669
|
+
readonly name: string;
|
|
670
|
+
}, never, never, never, {
|
|
671
|
+
readonly id: number;
|
|
672
|
+
readonly status: string;
|
|
673
|
+
readonly version: number;
|
|
674
|
+
readonly title: string;
|
|
675
|
+
readonly createdAt: string;
|
|
676
|
+
readonly updatedAt: string | null;
|
|
677
|
+
readonly name: string;
|
|
678
|
+
readonly kind: string;
|
|
679
|
+
readonly filePath: string | null;
|
|
680
|
+
readonly hash: string;
|
|
681
|
+
readonly lockedAt: string | null;
|
|
682
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createDoc", "POST", never, never, {
|
|
683
|
+
readonly title: string;
|
|
684
|
+
readonly metadata?: {
|
|
685
|
+
readonly [x: string]: unknown;
|
|
686
|
+
} | undefined;
|
|
687
|
+
readonly name: string;
|
|
688
|
+
readonly kind: "overview" | "prd" | "design";
|
|
689
|
+
readonly yamlContent: string;
|
|
690
|
+
}, never, {
|
|
691
|
+
readonly id: number;
|
|
692
|
+
readonly status: string;
|
|
693
|
+
readonly version: number;
|
|
694
|
+
readonly title: string;
|
|
695
|
+
readonly createdAt: string;
|
|
696
|
+
readonly updatedAt: string | null;
|
|
697
|
+
readonly name: string;
|
|
698
|
+
readonly kind: string;
|
|
699
|
+
readonly filePath: string | null;
|
|
700
|
+
readonly hash: string;
|
|
701
|
+
readonly lockedAt: string | null;
|
|
702
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateDoc", "PATCH", {
|
|
703
|
+
readonly name: string;
|
|
704
|
+
}, never, {
|
|
705
|
+
readonly yamlContent: string;
|
|
706
|
+
}, never, {
|
|
707
|
+
readonly id: number;
|
|
708
|
+
readonly status: string;
|
|
709
|
+
readonly version: number;
|
|
710
|
+
readonly title: string;
|
|
711
|
+
readonly createdAt: string;
|
|
712
|
+
readonly updatedAt: string | null;
|
|
713
|
+
readonly name: string;
|
|
714
|
+
readonly kind: string;
|
|
715
|
+
readonly filePath: string | null;
|
|
716
|
+
readonly hash: string;
|
|
717
|
+
readonly lockedAt: string | null;
|
|
718
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"lockDoc", "POST", {
|
|
719
|
+
readonly name: string;
|
|
720
|
+
}, never, never, never, {
|
|
721
|
+
readonly id: number;
|
|
722
|
+
readonly status: string;
|
|
723
|
+
readonly version: number;
|
|
724
|
+
readonly title: string;
|
|
725
|
+
readonly createdAt: string;
|
|
726
|
+
readonly updatedAt: string | null;
|
|
727
|
+
readonly name: string;
|
|
728
|
+
readonly kind: string;
|
|
729
|
+
readonly filePath: string | null;
|
|
730
|
+
readonly hash: string;
|
|
731
|
+
readonly lockedAt: string | null;
|
|
732
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkDoc", "POST", {
|
|
733
|
+
readonly name: string;
|
|
734
|
+
}, never, {
|
|
735
|
+
readonly toName: string;
|
|
736
|
+
readonly linkType?: string | undefined;
|
|
737
|
+
}, never, {
|
|
738
|
+
readonly success: boolean;
|
|
739
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renderDoc", "POST", {
|
|
740
|
+
readonly name: string;
|
|
741
|
+
}, never, never, never, {
|
|
742
|
+
readonly rendered: readonly string[];
|
|
743
|
+
}, never, never, never>, never, never, false>;
|
|
744
|
+
export declare const ClaimsGroup: HttpApiGroup.HttpApiGroup<"claims", HttpApiEndpoint.HttpApiEndpoint<"createClaim", "POST", never, never, {
|
|
745
|
+
readonly taskId: string;
|
|
746
|
+
readonly workerId: string;
|
|
747
|
+
readonly leaseDurationMinutes?: number | undefined;
|
|
748
|
+
}, never, {
|
|
749
|
+
readonly id: number;
|
|
750
|
+
readonly taskId: string;
|
|
751
|
+
readonly status: string;
|
|
752
|
+
readonly workerId: string;
|
|
753
|
+
readonly claimedAt: string;
|
|
754
|
+
readonly leaseExpiresAt: string;
|
|
755
|
+
readonly renewedCount: number;
|
|
756
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseClaim", "DELETE", {
|
|
757
|
+
readonly taskId: string;
|
|
758
|
+
readonly workerId: string;
|
|
759
|
+
}, never, never, never, {
|
|
760
|
+
readonly success: boolean;
|
|
761
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renewClaim", "POST", {
|
|
762
|
+
readonly taskId: string;
|
|
763
|
+
readonly workerId: string;
|
|
764
|
+
}, never, never, never, {
|
|
765
|
+
readonly id: number;
|
|
766
|
+
readonly taskId: string;
|
|
767
|
+
readonly status: string;
|
|
768
|
+
readonly workerId: string;
|
|
769
|
+
readonly claimedAt: string;
|
|
770
|
+
readonly leaseExpiresAt: string;
|
|
771
|
+
readonly renewedCount: number;
|
|
772
|
+
}, never, never, never>, never, never, false>;
|
|
773
|
+
export declare const AttemptsGroup: HttpApiGroup.HttpApiGroup<"attempts", HttpApiEndpoint.HttpApiEndpoint<"listAttempts", "GET", {
|
|
774
|
+
readonly id: string;
|
|
775
|
+
}, never, never, never, {
|
|
776
|
+
readonly attempts: readonly {
|
|
777
|
+
readonly id: number & import("effect/Brand").Brand<"AttemptId">;
|
|
778
|
+
readonly taskId: string & import("effect/Brand").Brand<"TaskId">;
|
|
779
|
+
readonly createdAt: string;
|
|
780
|
+
readonly approach: string;
|
|
781
|
+
readonly outcome: "failed" | "succeeded";
|
|
782
|
+
readonly reason: string | null;
|
|
783
|
+
}[];
|
|
784
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createAttempt", "POST", {
|
|
785
|
+
readonly id: string;
|
|
786
|
+
}, never, {
|
|
787
|
+
readonly approach: string;
|
|
788
|
+
readonly outcome: "failed" | "succeeded";
|
|
789
|
+
readonly reason?: string | null | undefined;
|
|
790
|
+
}, never, {
|
|
791
|
+
readonly id: number & import("effect/Brand").Brand<"AttemptId">;
|
|
792
|
+
readonly taskId: string & import("effect/Brand").Brand<"TaskId">;
|
|
793
|
+
readonly createdAt: string;
|
|
794
|
+
readonly approach: string;
|
|
795
|
+
readonly outcome: "failed" | "succeeded";
|
|
796
|
+
readonly reason: string | null;
|
|
797
|
+
}, never, never, never>, never, never, false>;
|
|
798
|
+
export declare const InvariantsGroup: HttpApiGroup.HttpApiGroup<"invariants", HttpApiEndpoint.HttpApiEndpoint<"listInvariants", "GET", never, {
|
|
799
|
+
readonly status?: "changing" | "locked" | undefined;
|
|
800
|
+
readonly enforcement?: "integration_test" | "linter" | "llm_as_judge" | undefined;
|
|
801
|
+
readonly subsystem?: string | undefined;
|
|
802
|
+
}, never, never, {
|
|
803
|
+
readonly invariants: readonly {
|
|
804
|
+
readonly id: string;
|
|
805
|
+
readonly status: string;
|
|
806
|
+
readonly createdAt: string;
|
|
807
|
+
readonly rule: string;
|
|
808
|
+
readonly enforcement: string;
|
|
809
|
+
readonly docId: number;
|
|
810
|
+
readonly subsystem: string | null;
|
|
811
|
+
readonly testRef: string | null;
|
|
812
|
+
readonly lintRule: string | null;
|
|
813
|
+
readonly promptRef: string | null;
|
|
814
|
+
}[];
|
|
815
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getInvariant", "GET", {
|
|
816
|
+
readonly id: string;
|
|
817
|
+
}, never, never, never, {
|
|
818
|
+
readonly id: string;
|
|
819
|
+
readonly status: string;
|
|
820
|
+
readonly createdAt: string;
|
|
821
|
+
readonly rule: string;
|
|
822
|
+
readonly enforcement: string;
|
|
823
|
+
readonly docId: number;
|
|
824
|
+
readonly subsystem: string | null;
|
|
825
|
+
readonly testRef: string | null;
|
|
826
|
+
readonly lintRule: string | null;
|
|
827
|
+
readonly promptRef: string | null;
|
|
828
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"checkInvariant", "POST", {
|
|
829
|
+
readonly id: string;
|
|
830
|
+
}, never, {
|
|
831
|
+
readonly passed: boolean;
|
|
832
|
+
readonly details?: string | undefined;
|
|
833
|
+
readonly durationMs?: number | undefined;
|
|
834
|
+
}, never, {
|
|
835
|
+
readonly id: number;
|
|
836
|
+
readonly invariantId: string;
|
|
837
|
+
readonly passed: boolean;
|
|
838
|
+
readonly details: string | null;
|
|
839
|
+
readonly checkedAt: string;
|
|
840
|
+
readonly durationMs: number | null;
|
|
841
|
+
}, never, never, never>, never, never, false>;
|
|
842
|
+
declare const TxApi_base: HttpApi.HttpApi<"tx", HttpApiGroup.HttpApiGroup<"health", HttpApiEndpoint.HttpApiEndpoint<"health", "GET", never, never, never, never, {
|
|
843
|
+
readonly status: "healthy" | "degraded" | "unhealthy";
|
|
844
|
+
readonly timestamp: string;
|
|
845
|
+
readonly version: string;
|
|
846
|
+
readonly database: {
|
|
847
|
+
readonly connected: boolean;
|
|
848
|
+
readonly path: string | null;
|
|
849
|
+
};
|
|
850
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stats", "GET", never, never, never, never, {
|
|
851
|
+
readonly tasks: number;
|
|
852
|
+
readonly done: number;
|
|
853
|
+
readonly ready: number;
|
|
854
|
+
readonly learnings: number;
|
|
855
|
+
readonly runsRunning?: number | undefined;
|
|
856
|
+
readonly runsTotal?: number | undefined;
|
|
857
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ralph", "GET", never, never, never, never, {
|
|
858
|
+
readonly running: boolean;
|
|
859
|
+
readonly pid: number | null;
|
|
860
|
+
readonly currentIteration: number;
|
|
861
|
+
readonly currentTask: string | null;
|
|
862
|
+
readonly recentActivity: readonly {
|
|
863
|
+
readonly status: "started" | "completed" | "failed";
|
|
864
|
+
readonly timestamp: string;
|
|
865
|
+
readonly iteration: number;
|
|
866
|
+
readonly task: string;
|
|
867
|
+
readonly taskTitle: string;
|
|
868
|
+
readonly agent: string;
|
|
869
|
+
}[];
|
|
870
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"tasks", HttpApiEndpoint.HttpApiEndpoint<"listTasks", "GET", never, {
|
|
871
|
+
readonly status?: string | undefined;
|
|
872
|
+
readonly cursor?: string | undefined;
|
|
873
|
+
readonly limit?: number | undefined;
|
|
874
|
+
readonly search?: string | undefined;
|
|
875
|
+
}, never, never, {
|
|
876
|
+
readonly tasks: readonly {
|
|
877
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
878
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
879
|
+
readonly title: string;
|
|
880
|
+
readonly description: string;
|
|
881
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
882
|
+
readonly score: number;
|
|
883
|
+
readonly createdAt: string;
|
|
884
|
+
readonly updatedAt: string;
|
|
885
|
+
readonly completedAt: string | null;
|
|
886
|
+
readonly metadata: {
|
|
887
|
+
readonly [x: string]: unknown;
|
|
888
|
+
};
|
|
889
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
890
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
891
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
892
|
+
readonly isReady: boolean;
|
|
893
|
+
}[];
|
|
894
|
+
readonly nextCursor: string | null;
|
|
895
|
+
readonly hasMore: boolean;
|
|
896
|
+
readonly total: number;
|
|
897
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"readyTasks", "GET", never, {
|
|
898
|
+
readonly limit?: number | undefined;
|
|
899
|
+
}, never, never, {
|
|
900
|
+
readonly tasks: readonly {
|
|
901
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
902
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
903
|
+
readonly title: string;
|
|
904
|
+
readonly description: string;
|
|
905
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
906
|
+
readonly score: number;
|
|
907
|
+
readonly createdAt: string;
|
|
908
|
+
readonly updatedAt: string;
|
|
909
|
+
readonly completedAt: string | null;
|
|
910
|
+
readonly metadata: {
|
|
911
|
+
readonly [x: string]: unknown;
|
|
912
|
+
};
|
|
913
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
914
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
915
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
916
|
+
readonly isReady: boolean;
|
|
917
|
+
}[];
|
|
918
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTask", "GET", {
|
|
919
|
+
readonly id: string;
|
|
920
|
+
}, never, never, never, {
|
|
921
|
+
readonly task: {
|
|
922
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
923
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
924
|
+
readonly title: string;
|
|
925
|
+
readonly description: string;
|
|
926
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
927
|
+
readonly score: number;
|
|
928
|
+
readonly createdAt: string;
|
|
929
|
+
readonly updatedAt: string;
|
|
930
|
+
readonly completedAt: string | null;
|
|
931
|
+
readonly metadata: {
|
|
932
|
+
readonly [x: string]: unknown;
|
|
933
|
+
};
|
|
934
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
935
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
936
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
937
|
+
readonly isReady: boolean;
|
|
938
|
+
};
|
|
939
|
+
readonly blockedByTasks: readonly {
|
|
940
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
941
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
942
|
+
readonly title: string;
|
|
943
|
+
readonly description: string;
|
|
944
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
945
|
+
readonly score: number;
|
|
946
|
+
readonly createdAt: string;
|
|
947
|
+
readonly updatedAt: string;
|
|
948
|
+
readonly completedAt: string | null;
|
|
949
|
+
readonly metadata: {
|
|
950
|
+
readonly [x: string]: unknown;
|
|
951
|
+
};
|
|
952
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
953
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
954
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
955
|
+
readonly isReady: boolean;
|
|
956
|
+
}[];
|
|
957
|
+
readonly blocksTasks: readonly {
|
|
958
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
959
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
960
|
+
readonly title: string;
|
|
961
|
+
readonly description: string;
|
|
962
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
963
|
+
readonly score: number;
|
|
964
|
+
readonly createdAt: string;
|
|
965
|
+
readonly updatedAt: string;
|
|
966
|
+
readonly completedAt: string | null;
|
|
967
|
+
readonly metadata: {
|
|
968
|
+
readonly [x: string]: unknown;
|
|
969
|
+
};
|
|
970
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
971
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
972
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
973
|
+
readonly isReady: boolean;
|
|
974
|
+
}[];
|
|
975
|
+
readonly childTasks: readonly {
|
|
976
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
977
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
978
|
+
readonly title: string;
|
|
979
|
+
readonly description: string;
|
|
980
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
981
|
+
readonly score: number;
|
|
982
|
+
readonly createdAt: string;
|
|
983
|
+
readonly updatedAt: string;
|
|
984
|
+
readonly completedAt: string | null;
|
|
985
|
+
readonly metadata: {
|
|
986
|
+
readonly [x: string]: unknown;
|
|
987
|
+
};
|
|
988
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
989
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
990
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
991
|
+
readonly isReady: boolean;
|
|
992
|
+
}[];
|
|
993
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createTask", "POST", never, never, {
|
|
994
|
+
readonly title: string;
|
|
995
|
+
readonly description?: string | undefined;
|
|
996
|
+
readonly parentId?: string | undefined;
|
|
997
|
+
readonly score?: number | undefined;
|
|
998
|
+
readonly metadata?: {
|
|
999
|
+
readonly [x: string]: unknown;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
}, never, {
|
|
1002
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1003
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1004
|
+
readonly title: string;
|
|
1005
|
+
readonly description: string;
|
|
1006
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1007
|
+
readonly score: number;
|
|
1008
|
+
readonly createdAt: string;
|
|
1009
|
+
readonly updatedAt: string;
|
|
1010
|
+
readonly completedAt: string | null;
|
|
1011
|
+
readonly metadata: {
|
|
1012
|
+
readonly [x: string]: unknown;
|
|
1013
|
+
};
|
|
1014
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1015
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1016
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1017
|
+
readonly isReady: boolean;
|
|
1018
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateTask", "PATCH", {
|
|
1019
|
+
readonly id: string;
|
|
1020
|
+
}, never, {
|
|
1021
|
+
readonly status?: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review" | undefined;
|
|
1022
|
+
readonly title?: string | undefined;
|
|
1023
|
+
readonly description?: string | undefined;
|
|
1024
|
+
readonly parentId?: string | null | undefined;
|
|
1025
|
+
readonly score?: number | undefined;
|
|
1026
|
+
readonly metadata?: {
|
|
1027
|
+
readonly [x: string]: unknown;
|
|
1028
|
+
} | undefined;
|
|
1029
|
+
}, never, {
|
|
1030
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1031
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1032
|
+
readonly title: string;
|
|
1033
|
+
readonly description: string;
|
|
1034
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1035
|
+
readonly score: number;
|
|
1036
|
+
readonly createdAt: string;
|
|
1037
|
+
readonly updatedAt: string;
|
|
1038
|
+
readonly completedAt: string | null;
|
|
1039
|
+
readonly metadata: {
|
|
1040
|
+
readonly [x: string]: unknown;
|
|
1041
|
+
};
|
|
1042
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1043
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1044
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1045
|
+
readonly isReady: boolean;
|
|
1046
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeTask", "POST", {
|
|
1047
|
+
readonly id: string;
|
|
1048
|
+
}, never, never, never, {
|
|
1049
|
+
readonly task: {
|
|
1050
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1051
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1052
|
+
readonly title: string;
|
|
1053
|
+
readonly description: string;
|
|
1054
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1055
|
+
readonly score: number;
|
|
1056
|
+
readonly createdAt: string;
|
|
1057
|
+
readonly updatedAt: string;
|
|
1058
|
+
readonly completedAt: string | null;
|
|
1059
|
+
readonly metadata: {
|
|
1060
|
+
readonly [x: string]: unknown;
|
|
1061
|
+
};
|
|
1062
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1063
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1064
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1065
|
+
readonly isReady: boolean;
|
|
1066
|
+
};
|
|
1067
|
+
readonly nowReady: readonly {
|
|
1068
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1069
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1070
|
+
readonly title: string;
|
|
1071
|
+
readonly description: string;
|
|
1072
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1073
|
+
readonly score: number;
|
|
1074
|
+
readonly createdAt: string;
|
|
1075
|
+
readonly updatedAt: string;
|
|
1076
|
+
readonly completedAt: string | null;
|
|
1077
|
+
readonly metadata: {
|
|
1078
|
+
readonly [x: string]: unknown;
|
|
1079
|
+
};
|
|
1080
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1081
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1082
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1083
|
+
readonly isReady: boolean;
|
|
1084
|
+
}[];
|
|
1085
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteTask", "DELETE", {
|
|
1086
|
+
readonly id: string;
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly cascade?: string | undefined;
|
|
1089
|
+
}, never, never, {
|
|
1090
|
+
readonly id: string;
|
|
1091
|
+
readonly success: boolean;
|
|
1092
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"blockTask", "POST", {
|
|
1093
|
+
readonly id: string;
|
|
1094
|
+
}, never, {
|
|
1095
|
+
readonly blockerId: string;
|
|
1096
|
+
}, never, {
|
|
1097
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1098
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1099
|
+
readonly title: string;
|
|
1100
|
+
readonly description: string;
|
|
1101
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1102
|
+
readonly score: number;
|
|
1103
|
+
readonly createdAt: string;
|
|
1104
|
+
readonly updatedAt: string;
|
|
1105
|
+
readonly completedAt: string | null;
|
|
1106
|
+
readonly metadata: {
|
|
1107
|
+
readonly [x: string]: unknown;
|
|
1108
|
+
};
|
|
1109
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1110
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1111
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1112
|
+
readonly isReady: boolean;
|
|
1113
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unblockTask", "DELETE", {
|
|
1114
|
+
readonly id: string;
|
|
1115
|
+
readonly blockerId: string;
|
|
1116
|
+
}, never, never, never, {
|
|
1117
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1118
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1119
|
+
readonly title: string;
|
|
1120
|
+
readonly description: string;
|
|
1121
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1122
|
+
readonly score: number;
|
|
1123
|
+
readonly createdAt: string;
|
|
1124
|
+
readonly updatedAt: string;
|
|
1125
|
+
readonly completedAt: string | null;
|
|
1126
|
+
readonly metadata: {
|
|
1127
|
+
readonly [x: string]: unknown;
|
|
1128
|
+
};
|
|
1129
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1130
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1131
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1132
|
+
readonly isReady: boolean;
|
|
1133
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTaskTree", "GET", {
|
|
1134
|
+
readonly id: string;
|
|
1135
|
+
}, never, never, never, {
|
|
1136
|
+
readonly tasks: readonly {
|
|
1137
|
+
readonly id: string & import("effect/Brand").Brand<"TaskId">;
|
|
1138
|
+
readonly status: "done" | "ready" | "backlog" | "planning" | "active" | "blocked" | "review" | "human_needs_to_review";
|
|
1139
|
+
readonly title: string;
|
|
1140
|
+
readonly description: string;
|
|
1141
|
+
readonly parentId: (string & import("effect/Brand").Brand<"TaskId">) | null;
|
|
1142
|
+
readonly score: number;
|
|
1143
|
+
readonly createdAt: string;
|
|
1144
|
+
readonly updatedAt: string;
|
|
1145
|
+
readonly completedAt: string | null;
|
|
1146
|
+
readonly metadata: {
|
|
1147
|
+
readonly [x: string]: unknown;
|
|
1148
|
+
};
|
|
1149
|
+
readonly blockedBy: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1150
|
+
readonly blocks: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1151
|
+
readonly children: readonly (string & import("effect/Brand").Brand<"TaskId">)[];
|
|
1152
|
+
readonly isReady: boolean;
|
|
1153
|
+
}[];
|
|
1154
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"learnings", HttpApiEndpoint.HttpApiEndpoint<"searchLearnings", "GET", never, {
|
|
1155
|
+
readonly limit?: number | undefined;
|
|
1156
|
+
readonly query?: string | undefined;
|
|
1157
|
+
readonly minScore?: number | undefined;
|
|
1158
|
+
readonly category?: string | undefined;
|
|
1159
|
+
}, never, never, {
|
|
1160
|
+
readonly learnings: readonly {
|
|
1161
|
+
readonly id: number;
|
|
1162
|
+
readonly createdAt: string;
|
|
1163
|
+
readonly category: string | null;
|
|
1164
|
+
readonly relevanceScore: number;
|
|
1165
|
+
readonly bm25Score: number;
|
|
1166
|
+
readonly vectorScore: number;
|
|
1167
|
+
readonly recencyScore: number;
|
|
1168
|
+
readonly rrfScore: number;
|
|
1169
|
+
readonly bm25Rank: number;
|
|
1170
|
+
readonly vectorRank: number;
|
|
1171
|
+
readonly rerankerScore?: number | undefined;
|
|
1172
|
+
readonly feedbackScore?: number | undefined;
|
|
1173
|
+
readonly content: string;
|
|
1174
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
1175
|
+
readonly sourceRef: string | null;
|
|
1176
|
+
readonly keywords: readonly string[];
|
|
1177
|
+
readonly usageCount: number;
|
|
1178
|
+
readonly lastUsedAt: string | null;
|
|
1179
|
+
readonly outcomeScore: number | null;
|
|
1180
|
+
readonly embedding: readonly number[] | null;
|
|
1181
|
+
}[];
|
|
1182
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getLearning", "GET", {
|
|
1183
|
+
readonly id: number;
|
|
1184
|
+
}, never, never, never, {
|
|
1185
|
+
readonly id: number;
|
|
1186
|
+
readonly createdAt: string;
|
|
1187
|
+
readonly category: string | null;
|
|
1188
|
+
readonly content: string;
|
|
1189
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
1190
|
+
readonly sourceRef: string | null;
|
|
1191
|
+
readonly keywords: readonly string[];
|
|
1192
|
+
readonly usageCount: number;
|
|
1193
|
+
readonly lastUsedAt: string | null;
|
|
1194
|
+
readonly outcomeScore: number | null;
|
|
1195
|
+
readonly embedding: readonly number[] | null;
|
|
1196
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createLearning", "POST", never, never, {
|
|
1197
|
+
readonly category?: string | undefined;
|
|
1198
|
+
readonly content: string;
|
|
1199
|
+
readonly sourceType?: "compaction" | "run" | "manual" | "claude_md" | undefined;
|
|
1200
|
+
readonly sourceRef?: string | undefined;
|
|
1201
|
+
readonly keywords?: readonly string[] | undefined;
|
|
1202
|
+
}, never, {
|
|
1203
|
+
readonly id: number;
|
|
1204
|
+
readonly createdAt: string;
|
|
1205
|
+
readonly category: string | null;
|
|
1206
|
+
readonly content: string;
|
|
1207
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
1208
|
+
readonly sourceRef: string | null;
|
|
1209
|
+
readonly keywords: readonly string[];
|
|
1210
|
+
readonly usageCount: number;
|
|
1211
|
+
readonly lastUsedAt: string | null;
|
|
1212
|
+
readonly outcomeScore: number | null;
|
|
1213
|
+
readonly embedding: readonly number[] | null;
|
|
1214
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateHelpfulness", "POST", {
|
|
1215
|
+
readonly id: number;
|
|
1216
|
+
}, never, {
|
|
1217
|
+
readonly score: number;
|
|
1218
|
+
}, never, {
|
|
1219
|
+
readonly id: number;
|
|
1220
|
+
readonly score: number;
|
|
1221
|
+
readonly success: boolean;
|
|
1222
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getContext", "GET", {
|
|
1223
|
+
readonly taskId: string;
|
|
1224
|
+
}, never, never, never, {
|
|
1225
|
+
readonly taskId: string;
|
|
1226
|
+
readonly learnings: readonly {
|
|
1227
|
+
readonly id: number;
|
|
1228
|
+
readonly createdAt: string;
|
|
1229
|
+
readonly category: string | null;
|
|
1230
|
+
readonly relevanceScore: number;
|
|
1231
|
+
readonly bm25Score: number;
|
|
1232
|
+
readonly vectorScore: number;
|
|
1233
|
+
readonly recencyScore: number;
|
|
1234
|
+
readonly rrfScore: number;
|
|
1235
|
+
readonly bm25Rank: number;
|
|
1236
|
+
readonly vectorRank: number;
|
|
1237
|
+
readonly rerankerScore?: number | undefined;
|
|
1238
|
+
readonly feedbackScore?: number | undefined;
|
|
1239
|
+
readonly content: string;
|
|
1240
|
+
readonly sourceType: "compaction" | "run" | "manual" | "claude_md";
|
|
1241
|
+
readonly sourceRef: string | null;
|
|
1242
|
+
readonly keywords: readonly string[];
|
|
1243
|
+
readonly usageCount: number;
|
|
1244
|
+
readonly lastUsedAt: string | null;
|
|
1245
|
+
readonly outcomeScore: number | null;
|
|
1246
|
+
readonly embedding: readonly number[] | null;
|
|
1247
|
+
}[];
|
|
1248
|
+
readonly taskTitle: string;
|
|
1249
|
+
readonly searchQuery: string;
|
|
1250
|
+
readonly searchDuration: number;
|
|
1251
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listFileLearnings", "GET", never, {
|
|
1252
|
+
readonly path?: string | undefined;
|
|
1253
|
+
}, never, never, {
|
|
1254
|
+
readonly learnings: readonly {
|
|
1255
|
+
readonly id: number & import("effect/Brand").Brand<"FileLearningId">;
|
|
1256
|
+
readonly taskId: string | null;
|
|
1257
|
+
readonly createdAt: string;
|
|
1258
|
+
readonly filePattern: string;
|
|
1259
|
+
readonly note: string;
|
|
1260
|
+
}[];
|
|
1261
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createFileLearning", "POST", never, never, {
|
|
1262
|
+
readonly taskId?: string | undefined;
|
|
1263
|
+
readonly filePattern: string;
|
|
1264
|
+
readonly note: string;
|
|
1265
|
+
}, never, {
|
|
1266
|
+
readonly id: number & import("effect/Brand").Brand<"FileLearningId">;
|
|
1267
|
+
readonly taskId: string | null;
|
|
1268
|
+
readonly createdAt: string;
|
|
1269
|
+
readonly filePattern: string;
|
|
1270
|
+
readonly note: string;
|
|
1271
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"runs", HttpApiEndpoint.HttpApiEndpoint<"listRuns", "GET", never, {
|
|
1272
|
+
readonly taskId?: string | undefined;
|
|
1273
|
+
readonly status?: string | undefined;
|
|
1274
|
+
readonly agent?: string | undefined;
|
|
1275
|
+
readonly cursor?: string | undefined;
|
|
1276
|
+
readonly limit?: number | undefined;
|
|
1277
|
+
}, never, never, {
|
|
1278
|
+
readonly nextCursor: string | null;
|
|
1279
|
+
readonly hasMore: boolean;
|
|
1280
|
+
readonly total: number;
|
|
1281
|
+
readonly runs: readonly {
|
|
1282
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
1283
|
+
readonly taskId: string | null;
|
|
1284
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
1285
|
+
readonly pid: number | null;
|
|
1286
|
+
readonly agent: string;
|
|
1287
|
+
readonly metadata: {
|
|
1288
|
+
readonly [x: string]: unknown;
|
|
1289
|
+
};
|
|
1290
|
+
readonly startedAt: string;
|
|
1291
|
+
readonly endedAt: string | null;
|
|
1292
|
+
readonly exitCode: number | null;
|
|
1293
|
+
readonly transcriptPath: string | null;
|
|
1294
|
+
readonly stderrPath: string | null;
|
|
1295
|
+
readonly stdoutPath: string | null;
|
|
1296
|
+
readonly contextInjected: string | null;
|
|
1297
|
+
readonly summary: string | null;
|
|
1298
|
+
readonly errorMessage: string | null;
|
|
1299
|
+
}[];
|
|
1300
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRun", "GET", {
|
|
1301
|
+
readonly id: string;
|
|
1302
|
+
}, never, never, never, {
|
|
1303
|
+
readonly run: {
|
|
1304
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
1305
|
+
readonly taskId: string | null;
|
|
1306
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
1307
|
+
readonly pid: number | null;
|
|
1308
|
+
readonly agent: string;
|
|
1309
|
+
readonly metadata: {
|
|
1310
|
+
readonly [x: string]: unknown;
|
|
1311
|
+
};
|
|
1312
|
+
readonly startedAt: string;
|
|
1313
|
+
readonly endedAt: string | null;
|
|
1314
|
+
readonly exitCode: number | null;
|
|
1315
|
+
readonly transcriptPath: string | null;
|
|
1316
|
+
readonly stderrPath: string | null;
|
|
1317
|
+
readonly stdoutPath: string | null;
|
|
1318
|
+
readonly contextInjected: string | null;
|
|
1319
|
+
readonly summary: string | null;
|
|
1320
|
+
readonly errorMessage: string | null;
|
|
1321
|
+
};
|
|
1322
|
+
readonly messages: readonly {
|
|
1323
|
+
readonly timestamp?: string | undefined;
|
|
1324
|
+
readonly content: unknown;
|
|
1325
|
+
readonly role: "user" | "assistant" | "system";
|
|
1326
|
+
readonly type?: "tool_use" | "tool_result" | "text" | "thinking" | undefined;
|
|
1327
|
+
readonly tool_name?: string | undefined;
|
|
1328
|
+
}[];
|
|
1329
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createRun", "POST", never, never, {
|
|
1330
|
+
readonly taskId?: string | undefined;
|
|
1331
|
+
readonly pid?: number | undefined;
|
|
1332
|
+
readonly agent: string;
|
|
1333
|
+
readonly metadata?: {
|
|
1334
|
+
readonly [x: string]: unknown;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
readonly transcriptPath?: string | undefined;
|
|
1337
|
+
readonly contextInjected?: string | undefined;
|
|
1338
|
+
}, never, {
|
|
1339
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
1340
|
+
readonly taskId: string | null;
|
|
1341
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
1342
|
+
readonly pid: number | null;
|
|
1343
|
+
readonly agent: string;
|
|
1344
|
+
readonly metadata: {
|
|
1345
|
+
readonly [x: string]: unknown;
|
|
1346
|
+
};
|
|
1347
|
+
readonly startedAt: string;
|
|
1348
|
+
readonly endedAt: string | null;
|
|
1349
|
+
readonly exitCode: number | null;
|
|
1350
|
+
readonly transcriptPath: string | null;
|
|
1351
|
+
readonly stderrPath: string | null;
|
|
1352
|
+
readonly stdoutPath: string | null;
|
|
1353
|
+
readonly contextInjected: string | null;
|
|
1354
|
+
readonly summary: string | null;
|
|
1355
|
+
readonly errorMessage: string | null;
|
|
1356
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateRun", "PATCH", {
|
|
1357
|
+
readonly id: string;
|
|
1358
|
+
}, never, {
|
|
1359
|
+
readonly status?: "running" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
|
|
1360
|
+
readonly endedAt?: string | undefined;
|
|
1361
|
+
readonly exitCode?: number | undefined;
|
|
1362
|
+
readonly transcriptPath?: string | undefined;
|
|
1363
|
+
readonly summary?: string | undefined;
|
|
1364
|
+
readonly errorMessage?: string | undefined;
|
|
1365
|
+
}, never, {
|
|
1366
|
+
readonly id: string & import("effect/Brand").Brand<"RunId">;
|
|
1367
|
+
readonly taskId: string | null;
|
|
1368
|
+
readonly status: "running" | "completed" | "failed" | "timeout" | "cancelled";
|
|
1369
|
+
readonly pid: number | null;
|
|
1370
|
+
readonly agent: string;
|
|
1371
|
+
readonly metadata: {
|
|
1372
|
+
readonly [x: string]: unknown;
|
|
1373
|
+
};
|
|
1374
|
+
readonly startedAt: string;
|
|
1375
|
+
readonly endedAt: string | null;
|
|
1376
|
+
readonly exitCode: number | null;
|
|
1377
|
+
readonly transcriptPath: string | null;
|
|
1378
|
+
readonly stderrPath: string | null;
|
|
1379
|
+
readonly stdoutPath: string | null;
|
|
1380
|
+
readonly contextInjected: string | null;
|
|
1381
|
+
readonly summary: string | null;
|
|
1382
|
+
readonly errorMessage: string | null;
|
|
1383
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStdout", "GET", {
|
|
1384
|
+
readonly id: string;
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly tail?: number | undefined;
|
|
1387
|
+
}, never, never, {
|
|
1388
|
+
readonly content: string;
|
|
1389
|
+
readonly truncated: boolean;
|
|
1390
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunStderr", "GET", {
|
|
1391
|
+
readonly id: string;
|
|
1392
|
+
}, {
|
|
1393
|
+
readonly tail?: number | undefined;
|
|
1394
|
+
}, never, never, {
|
|
1395
|
+
readonly content: string;
|
|
1396
|
+
readonly truncated: boolean;
|
|
1397
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getRunContext", "GET", {
|
|
1398
|
+
readonly id: string;
|
|
1399
|
+
}, never, never, never, {
|
|
1400
|
+
readonly content: string;
|
|
1401
|
+
readonly truncated: boolean;
|
|
1402
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"sync", HttpApiEndpoint.HttpApiEndpoint<"syncExport", "POST", never, never, {
|
|
1403
|
+
readonly path?: string | undefined;
|
|
1404
|
+
}, never, {
|
|
1405
|
+
readonly path: string;
|
|
1406
|
+
readonly opCount: number;
|
|
1407
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncImport", "POST", never, never, {
|
|
1408
|
+
readonly path?: string | undefined;
|
|
1409
|
+
}, never, {
|
|
1410
|
+
readonly imported: number;
|
|
1411
|
+
readonly skipped: number;
|
|
1412
|
+
readonly conflicts: number;
|
|
1413
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncStatus", "GET", never, never, never, never, {
|
|
1414
|
+
readonly dbTaskCount: number;
|
|
1415
|
+
readonly jsonlOpCount: number;
|
|
1416
|
+
readonly lastExport: string | null;
|
|
1417
|
+
readonly lastImport: string | null;
|
|
1418
|
+
readonly isDirty: boolean;
|
|
1419
|
+
readonly autoSyncEnabled: boolean;
|
|
1420
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"syncCompact", "POST", never, never, {
|
|
1421
|
+
readonly path?: string | undefined;
|
|
1422
|
+
}, never, {
|
|
1423
|
+
readonly before: number;
|
|
1424
|
+
readonly after: number;
|
|
1425
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"docs", HttpApiEndpoint.HttpApiEndpoint<"listDocs", "GET", never, {
|
|
1426
|
+
readonly status?: string | undefined;
|
|
1427
|
+
readonly kind?: string | undefined;
|
|
1428
|
+
}, never, never, {
|
|
1429
|
+
readonly docs: readonly {
|
|
1430
|
+
readonly id: number;
|
|
1431
|
+
readonly status: string;
|
|
1432
|
+
readonly version: number;
|
|
1433
|
+
readonly title: string;
|
|
1434
|
+
readonly createdAt: string;
|
|
1435
|
+
readonly updatedAt: string | null;
|
|
1436
|
+
readonly name: string;
|
|
1437
|
+
readonly kind: string;
|
|
1438
|
+
readonly filePath: string | null;
|
|
1439
|
+
readonly hash: string;
|
|
1440
|
+
readonly lockedAt: string | null;
|
|
1441
|
+
}[];
|
|
1442
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDoc", "GET", {
|
|
1443
|
+
readonly name: string;
|
|
1444
|
+
}, never, never, never, {
|
|
1445
|
+
readonly id: number;
|
|
1446
|
+
readonly status: string;
|
|
1447
|
+
readonly version: number;
|
|
1448
|
+
readonly title: string;
|
|
1449
|
+
readonly createdAt: string;
|
|
1450
|
+
readonly updatedAt: string | null;
|
|
1451
|
+
readonly name: string;
|
|
1452
|
+
readonly kind: string;
|
|
1453
|
+
readonly filePath: string | null;
|
|
1454
|
+
readonly hash: string;
|
|
1455
|
+
readonly lockedAt: string | null;
|
|
1456
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createDoc", "POST", never, never, {
|
|
1457
|
+
readonly title: string;
|
|
1458
|
+
readonly metadata?: {
|
|
1459
|
+
readonly [x: string]: unknown;
|
|
1460
|
+
} | undefined;
|
|
1461
|
+
readonly name: string;
|
|
1462
|
+
readonly kind: "overview" | "prd" | "design";
|
|
1463
|
+
readonly yamlContent: string;
|
|
1464
|
+
}, never, {
|
|
1465
|
+
readonly id: number;
|
|
1466
|
+
readonly status: string;
|
|
1467
|
+
readonly version: number;
|
|
1468
|
+
readonly title: string;
|
|
1469
|
+
readonly createdAt: string;
|
|
1470
|
+
readonly updatedAt: string | null;
|
|
1471
|
+
readonly name: string;
|
|
1472
|
+
readonly kind: string;
|
|
1473
|
+
readonly filePath: string | null;
|
|
1474
|
+
readonly hash: string;
|
|
1475
|
+
readonly lockedAt: string | null;
|
|
1476
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateDoc", "PATCH", {
|
|
1477
|
+
readonly name: string;
|
|
1478
|
+
}, never, {
|
|
1479
|
+
readonly yamlContent: string;
|
|
1480
|
+
}, never, {
|
|
1481
|
+
readonly id: number;
|
|
1482
|
+
readonly status: string;
|
|
1483
|
+
readonly version: number;
|
|
1484
|
+
readonly title: string;
|
|
1485
|
+
readonly createdAt: string;
|
|
1486
|
+
readonly updatedAt: string | null;
|
|
1487
|
+
readonly name: string;
|
|
1488
|
+
readonly kind: string;
|
|
1489
|
+
readonly filePath: string | null;
|
|
1490
|
+
readonly hash: string;
|
|
1491
|
+
readonly lockedAt: string | null;
|
|
1492
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"lockDoc", "POST", {
|
|
1493
|
+
readonly name: string;
|
|
1494
|
+
}, never, never, never, {
|
|
1495
|
+
readonly id: number;
|
|
1496
|
+
readonly status: string;
|
|
1497
|
+
readonly version: number;
|
|
1498
|
+
readonly title: string;
|
|
1499
|
+
readonly createdAt: string;
|
|
1500
|
+
readonly updatedAt: string | null;
|
|
1501
|
+
readonly name: string;
|
|
1502
|
+
readonly kind: string;
|
|
1503
|
+
readonly filePath: string | null;
|
|
1504
|
+
readonly hash: string;
|
|
1505
|
+
readonly lockedAt: string | null;
|
|
1506
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkDoc", "POST", {
|
|
1507
|
+
readonly name: string;
|
|
1508
|
+
}, never, {
|
|
1509
|
+
readonly toName: string;
|
|
1510
|
+
readonly linkType?: string | undefined;
|
|
1511
|
+
}, never, {
|
|
1512
|
+
readonly success: boolean;
|
|
1513
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renderDoc", "POST", {
|
|
1514
|
+
readonly name: string;
|
|
1515
|
+
}, never, never, never, {
|
|
1516
|
+
readonly rendered: readonly string[];
|
|
1517
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"claims", HttpApiEndpoint.HttpApiEndpoint<"createClaim", "POST", never, never, {
|
|
1518
|
+
readonly taskId: string;
|
|
1519
|
+
readonly workerId: string;
|
|
1520
|
+
readonly leaseDurationMinutes?: number | undefined;
|
|
1521
|
+
}, never, {
|
|
1522
|
+
readonly id: number;
|
|
1523
|
+
readonly taskId: string;
|
|
1524
|
+
readonly status: string;
|
|
1525
|
+
readonly workerId: string;
|
|
1526
|
+
readonly claimedAt: string;
|
|
1527
|
+
readonly leaseExpiresAt: string;
|
|
1528
|
+
readonly renewedCount: number;
|
|
1529
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"releaseClaim", "DELETE", {
|
|
1530
|
+
readonly taskId: string;
|
|
1531
|
+
readonly workerId: string;
|
|
1532
|
+
}, never, never, never, {
|
|
1533
|
+
readonly success: boolean;
|
|
1534
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"renewClaim", "POST", {
|
|
1535
|
+
readonly taskId: string;
|
|
1536
|
+
readonly workerId: string;
|
|
1537
|
+
}, never, never, never, {
|
|
1538
|
+
readonly id: number;
|
|
1539
|
+
readonly taskId: string;
|
|
1540
|
+
readonly status: string;
|
|
1541
|
+
readonly workerId: string;
|
|
1542
|
+
readonly claimedAt: string;
|
|
1543
|
+
readonly leaseExpiresAt: string;
|
|
1544
|
+
readonly renewedCount: number;
|
|
1545
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"attempts", HttpApiEndpoint.HttpApiEndpoint<"listAttempts", "GET", {
|
|
1546
|
+
readonly id: string;
|
|
1547
|
+
}, never, never, never, {
|
|
1548
|
+
readonly attempts: readonly {
|
|
1549
|
+
readonly id: number & import("effect/Brand").Brand<"AttemptId">;
|
|
1550
|
+
readonly taskId: string & import("effect/Brand").Brand<"TaskId">;
|
|
1551
|
+
readonly createdAt: string;
|
|
1552
|
+
readonly approach: string;
|
|
1553
|
+
readonly outcome: "failed" | "succeeded";
|
|
1554
|
+
readonly reason: string | null;
|
|
1555
|
+
}[];
|
|
1556
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createAttempt", "POST", {
|
|
1557
|
+
readonly id: string;
|
|
1558
|
+
}, never, {
|
|
1559
|
+
readonly approach: string;
|
|
1560
|
+
readonly outcome: "failed" | "succeeded";
|
|
1561
|
+
readonly reason?: string | null | undefined;
|
|
1562
|
+
}, never, {
|
|
1563
|
+
readonly id: number & import("effect/Brand").Brand<"AttemptId">;
|
|
1564
|
+
readonly taskId: string & import("effect/Brand").Brand<"TaskId">;
|
|
1565
|
+
readonly createdAt: string;
|
|
1566
|
+
readonly approach: string;
|
|
1567
|
+
readonly outcome: "failed" | "succeeded";
|
|
1568
|
+
readonly reason: string | null;
|
|
1569
|
+
}, never, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"invariants", HttpApiEndpoint.HttpApiEndpoint<"listInvariants", "GET", never, {
|
|
1570
|
+
readonly status?: "changing" | "locked" | undefined;
|
|
1571
|
+
readonly enforcement?: "integration_test" | "linter" | "llm_as_judge" | undefined;
|
|
1572
|
+
readonly subsystem?: string | undefined;
|
|
1573
|
+
}, never, never, {
|
|
1574
|
+
readonly invariants: readonly {
|
|
1575
|
+
readonly id: string;
|
|
1576
|
+
readonly status: string;
|
|
1577
|
+
readonly createdAt: string;
|
|
1578
|
+
readonly rule: string;
|
|
1579
|
+
readonly enforcement: string;
|
|
1580
|
+
readonly docId: number;
|
|
1581
|
+
readonly subsystem: string | null;
|
|
1582
|
+
readonly testRef: string | null;
|
|
1583
|
+
readonly lintRule: string | null;
|
|
1584
|
+
readonly promptRef: string | null;
|
|
1585
|
+
}[];
|
|
1586
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getInvariant", "GET", {
|
|
1587
|
+
readonly id: string;
|
|
1588
|
+
}, never, never, never, {
|
|
1589
|
+
readonly id: string;
|
|
1590
|
+
readonly status: string;
|
|
1591
|
+
readonly createdAt: string;
|
|
1592
|
+
readonly rule: string;
|
|
1593
|
+
readonly enforcement: string;
|
|
1594
|
+
readonly docId: number;
|
|
1595
|
+
readonly subsystem: string | null;
|
|
1596
|
+
readonly testRef: string | null;
|
|
1597
|
+
readonly lintRule: string | null;
|
|
1598
|
+
readonly promptRef: string | null;
|
|
1599
|
+
}, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"checkInvariant", "POST", {
|
|
1600
|
+
readonly id: string;
|
|
1601
|
+
}, never, {
|
|
1602
|
+
readonly passed: boolean;
|
|
1603
|
+
readonly details?: string | undefined;
|
|
1604
|
+
readonly durationMs?: number | undefined;
|
|
1605
|
+
}, never, {
|
|
1606
|
+
readonly id: number;
|
|
1607
|
+
readonly invariantId: string;
|
|
1608
|
+
readonly passed: boolean;
|
|
1609
|
+
readonly details: string | null;
|
|
1610
|
+
readonly checkedAt: string;
|
|
1611
|
+
readonly durationMs: number | null;
|
|
1612
|
+
}, never, never, never>, never, never, false>, NotFound | BadRequest | InternalError | Unauthorized | Forbidden | ServiceUnavailable | import("@effect/platform/HttpApiError").HttpApiDecodeError, never>;
|
|
1613
|
+
export declare class TxApi extends TxApi_base {
|
|
1614
|
+
}
|
|
1615
|
+
export {};
|
|
1616
|
+
//# sourceMappingURL=api.d.ts.map
|