@vercel/factory 0.0.17 → 0.0.18
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/CHANGELOG.md +46 -0
- package/dist/api-contracts.d.mts +665 -715
- package/dist/api-contracts.mjs +91 -4
- package/dist/api-contracts.mjs.map +1 -1
- package/dist/api-task-graph.mjs +14 -5
- package/dist/api-task-graph.mjs.map +1 -1
- package/dist/api.d.mts +58 -11
- package/dist/api.mjs +715 -399
- package/dist/api.mjs.map +1 -1
- package/dist/approval-access.d.mts +1 -1
- package/dist/approval-contracts.d.mts +3 -4
- package/dist/approval-contracts.mjs +1 -2
- package/dist/approval-contracts.mjs.map +1 -1
- package/dist/blob/index.d.mts +1 -1
- package/dist/budget.mjs +20 -3
- package/dist/budget.mjs.map +1 -1
- package/dist/change-verification/brief.d.mts +1 -1
- package/dist/change-verification/dispatch.mjs +8 -1
- package/dist/change-verification/dispatch.mjs.map +1 -1
- package/dist/changes/eve-record-change.mjs +4 -1
- package/dist/changes/eve-record-change.mjs.map +1 -1
- package/dist/client-stream.d.mts +19 -2
- package/dist/client-stream.mjs +115 -53
- package/dist/client-stream.mjs.map +1 -1
- package/dist/client-transcript.d.mts +25 -2
- package/dist/client-transcript.mjs +95 -13
- package/dist/client-transcript.mjs.map +1 -1
- package/dist/client.d.mts +145 -19
- package/dist/client.mjs +89 -16
- package/dist/client.mjs.map +1 -1
- package/dist/code-review/contracts.d.mts +1 -0
- package/dist/code-review/eve-post-review.d.mts +4 -2
- package/dist/code-review/eve-post-review.mjs +8 -0
- package/dist/code-review/eve-post-review.mjs.map +1 -1
- package/dist/code-review/github-reporter.d.mts +6 -2
- package/dist/code-review/github-reporter.mjs +86 -35
- package/dist/code-review/github-reporter.mjs.map +1 -1
- package/dist/code-review/preparation.d.mts +2 -1
- package/dist/code-review/preparation.mjs +2 -1
- package/dist/code-review/preparation.mjs.map +1 -1
- package/dist/code-review/stall.mjs +11 -2
- package/dist/code-review/stall.mjs.map +1 -1
- package/dist/connectors/github.d.mts +1 -1
- package/dist/connectors/index.d.mts +1 -1
- package/dist/connectors/slack.d.mts +1 -1
- package/dist/delivery-metrics/metrics.d.mts +1 -1
- package/dist/dispatch.mjs +3 -3
- package/dist/dispatch.mjs.map +1 -1
- package/dist/eve/index.d.mts +1 -1
- package/dist/eve/index.mjs +8 -1
- package/dist/eve/index.mjs.map +1 -1
- package/dist/eve/task-execution.d.mts +4 -4
- package/dist/eve/transcript.d.mts +3 -1
- package/dist/eve/transcript.mjs.map +1 -1
- package/dist/finding-remediation/admission.d.mts +1 -1
- package/dist/finding-remediation/brief.d.mts +1 -1
- package/dist/github-app.d.mts +1 -1
- package/dist/github-publication.d.mts +1 -1
- package/dist/github.d.mts +9 -1
- package/dist/github.mjs +29 -11
- package/dist/github.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/intake-contracts.d.mts +1 -0
- package/dist/intake-contracts.mjs +2 -1
- package/dist/intake-contracts.mjs.map +1 -1
- package/dist/integrations/github-issues.d.mts +53 -0
- package/dist/integrations/github-issues.mjs +170 -0
- package/dist/integrations/github-issues.mjs.map +1 -0
- package/dist/integrations/github.d.mts +2 -1
- package/dist/integrations/github.mjs +2 -1
- package/dist/multi-repository-changes/coordination.mjs +1 -1
- package/dist/planning/reconcile.mjs +15 -2
- package/dist/planning/reconcile.mjs.map +1 -1
- package/dist/postgres/index.d.mts +2 -1
- package/dist/postgres/index.mjs +11 -5
- package/dist/postgres/index.mjs.map +1 -1
- package/dist/postgres/indexed-codec.mjs +137 -0
- package/dist/postgres/indexed-codec.mjs.map +1 -0
- package/dist/postgres/indexed-schema.mjs +99 -0
- package/dist/postgres/indexed-schema.mjs.map +1 -0
- package/dist/postgres/indexed.d.mts +28 -0
- package/dist/postgres/indexed.mjs +277 -0
- package/dist/postgres/indexed.mjs.map +1 -0
- package/dist/postgres/record-predicates.mjs +23 -0
- package/dist/postgres/record-predicates.mjs.map +1 -0
- package/dist/presets/software-development/deepsec-brief.d.mts +1 -1
- package/dist/presets/software-development/dispatch.mjs +1 -1
- package/dist/presets/software-development/dispatch.mjs.map +1 -1
- package/dist/presets/software-development/recovery.mjs +9 -2
- package/dist/presets/software-development/recovery.mjs.map +1 -1
- package/dist/pull-requests/eve-fetch.d.mts +4 -1
- package/dist/pull-requests/eve-fetch.mjs +9 -0
- package/dist/pull-requests/eve-fetch.mjs.map +1 -1
- package/dist/pull-requests/github-publisher.d.mts +1 -1
- package/dist/pull-requests/github-publisher.mjs +19 -7
- package/dist/pull-requests/github-publisher.mjs.map +1 -1
- package/dist/repositories.mjs +20 -13
- package/dist/repositories.mjs.map +1 -1
- package/dist/sandbox/execution-run-ledger.d.mts +2 -2
- package/dist/sandbox/execution-run-ledger.mjs.map +1 -1
- package/dist/sandbox/execution.d.mts +2 -2
- package/dist/sandbox/execution.mjs.map +1 -1
- package/dist/schema/catalog.mjs +1 -1
- package/dist/schema/change.d.mts +1 -1
- package/dist/schema/communication.d.mts +2 -2
- package/dist/schema/factory-config.d.mts +1 -1
- package/dist/schema/outbox.d.mts +6 -6
- package/dist/schema/session-summary.d.mts +218 -0
- package/dist/schema/session-summary.mjs +68 -0
- package/dist/schema/session-summary.mjs.map +1 -0
- package/dist/schema/session.d.mts +39 -59
- package/dist/schema/session.mjs +6 -6
- package/dist/schema/session.mjs.map +1 -1
- package/dist/schema/task-graph.d.mts +24 -24
- package/dist/schema/transcript.d.mts +141 -3
- package/dist/schema/transcript.mjs +19 -3
- package/dist/schema/transcript.mjs.map +1 -1
- package/dist/schema/transitions.d.mts +1 -1
- package/dist/schema/transitions.mjs +1 -1
- package/dist/schema/transitions.mjs.map +1 -1
- package/dist/signals.d.mts +1 -1
- package/dist/stall.mjs +10 -2
- package/dist/stall.mjs.map +1 -1
- package/dist/storage.d.mts +10 -1
- package/dist/storage.mjs +7 -1
- package/dist/store/approvals.d.mts +14 -0
- package/dist/store/approvals.mjs +78 -0
- package/dist/store/approvals.mjs.map +1 -0
- package/dist/store/conversations.d.mts +59 -0
- package/dist/store/conversations.mjs +549 -0
- package/dist/store/conversations.mjs.map +1 -0
- package/dist/store/driver.d.mts +1 -1
- package/dist/store/driver.mjs.map +1 -1
- package/dist/store/engine.d.mts +38 -16
- package/dist/store/engine.mjs +229 -106
- package/dist/store/engine.mjs.map +1 -1
- package/dist/store/indexed-engine.d.mts +57 -0
- package/dist/store/indexed-engine.mjs +155 -0
- package/dist/store/indexed-engine.mjs.map +1 -0
- package/dist/store/indexed-memory.d.mts +7 -0
- package/dist/store/indexed-memory.mjs +200 -0
- package/dist/store/indexed-memory.mjs.map +1 -0
- package/dist/store/indexed-projections.d.mts +280 -0
- package/dist/store/indexed-projections.mjs +481 -0
- package/dist/store/indexed-projections.mjs.map +1 -0
- package/dist/store/indexed.d.mts +101 -0
- package/dist/store/indexed.mjs +19 -0
- package/dist/store/indexed.mjs.map +1 -0
- package/dist/store/iterate.d.mts +9 -0
- package/dist/store/iterate.mjs +23 -0
- package/dist/store/iterate.mjs.map +1 -0
- package/dist/store/query-scope.mjs +62 -0
- package/dist/store/query-scope.mjs.map +1 -0
- package/dist/store/query.d.mts +32 -0
- package/dist/store/query.mjs +103 -0
- package/dist/store/query.mjs.map +1 -0
- package/dist/store/session-history.mjs +24 -0
- package/dist/store/session-history.mjs.map +1 -0
- package/dist/store/slack-pr-notifications.d.mts +2 -2
- package/dist/store/slack-pr-notifications.mjs.map +1 -1
- package/dist/store/state.d.mts +26 -0
- package/dist/store/state.mjs +95 -0
- package/dist/store/state.mjs.map +1 -0
- package/dist/store/task-effects.d.mts +1 -1
- package/dist/store/task-graphs.d.mts +1 -1
- package/dist/store/task-messages.d.mts +1 -1
- package/dist/store/task-work.d.mts +1 -1
- package/dist/store/task-work.mjs +1 -1
- package/dist/store/transcripts.mjs +308 -0
- package/dist/store/transcripts.mjs.map +1 -0
- package/dist/sweep.d.mts +1 -1
- package/dist/sweep.mjs +12 -7
- package/dist/sweep.mjs.map +1 -1
- package/dist/task-communication.mjs +15 -1
- package/dist/task-communication.mjs.map +1 -1
- package/dist/task-protocols.d.mts +3 -3
- package/dist/tasks.d.mts +1 -1
- package/dist/vercel.d.mts +1 -1
- package/dist/work-triage/find-existing-work.d.mts +1 -1
- package/dist/work-triage/find-existing-work.mjs +12 -2
- package/dist/work-triage/find-existing-work.mjs.map +1 -1
- package/docs/index.md +4 -0
- package/docs/recipes/persistence-recovery.md +15 -9
- package/docs/recipes/postgres-indexed-engine.md +108 -0
- package/docs/recipes/postgres-indexed-storage.md +145 -0
- package/package.json +3 -1
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import "./indexed.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/store/indexed-projections.d.ts
|
|
4
|
+
/** Validates an exact, trusted query scope; transport callers must authorize it before querying. */
|
|
5
|
+
declare const factoryIndexScopeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
6
|
+
collection: z.ZodEnum<{
|
|
7
|
+
sessionContinuations: "sessionContinuations";
|
|
8
|
+
sessionNotifications: "sessionNotifications";
|
|
9
|
+
}>;
|
|
10
|
+
by: z.ZodLiteral<"session">;
|
|
11
|
+
sessionId: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
collection: z.ZodEnum<{
|
|
14
|
+
changes: "changes";
|
|
15
|
+
tasks: "tasks";
|
|
16
|
+
repositories: "repositories";
|
|
17
|
+
sessionContinuations: "sessionContinuations";
|
|
18
|
+
sessionNotifications: "sessionNotifications";
|
|
19
|
+
signals: "signals";
|
|
20
|
+
receipts: "receipts";
|
|
21
|
+
sessions: "sessions";
|
|
22
|
+
externalSessions: "externalSessions";
|
|
23
|
+
transcripts: "transcripts";
|
|
24
|
+
}>;
|
|
25
|
+
by: z.ZodLiteral<"all">;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
collection: z.ZodEnum<{
|
|
28
|
+
changes: "changes";
|
|
29
|
+
tasks: "tasks";
|
|
30
|
+
sessionContinuations: "sessionContinuations";
|
|
31
|
+
sessionNotifications: "sessionNotifications";
|
|
32
|
+
signals: "signals";
|
|
33
|
+
receipts: "receipts";
|
|
34
|
+
sessions: "sessions";
|
|
35
|
+
externalSessions: "externalSessions";
|
|
36
|
+
}>;
|
|
37
|
+
by: z.ZodLiteral<"repository">;
|
|
38
|
+
repositoryId: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
collection: z.ZodLiteral<"tasks">;
|
|
41
|
+
by: z.ZodLiteral<"state">;
|
|
42
|
+
state: z.ZodEnum<{
|
|
43
|
+
queued: "queued";
|
|
44
|
+
running: "running";
|
|
45
|
+
stalled: "stalled";
|
|
46
|
+
verifying: "verifying";
|
|
47
|
+
succeeded: "succeeded";
|
|
48
|
+
failed: "failed";
|
|
49
|
+
needs_human: "needs_human";
|
|
50
|
+
cancelled: "cancelled";
|
|
51
|
+
}>;
|
|
52
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
collection: z.ZodLiteral<"changes">;
|
|
55
|
+
by: z.ZodLiteral<"state">;
|
|
56
|
+
state: z.ZodEnum<{
|
|
57
|
+
verifying: "verifying";
|
|
58
|
+
ready: "ready";
|
|
59
|
+
closed: "closed";
|
|
60
|
+
merged: "merged";
|
|
61
|
+
deployed: "deployed";
|
|
62
|
+
rolled_out: "rolled_out";
|
|
63
|
+
rolled_back: "rolled_back";
|
|
64
|
+
}>;
|
|
65
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
collection: z.ZodLiteral<"tasks">;
|
|
68
|
+
by: z.ZodLiteral<"root">;
|
|
69
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
70
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
+
collection: z.ZodLiteral<"tasks">;
|
|
72
|
+
by: z.ZodLiteral<"reply">;
|
|
73
|
+
replyTo: z.ZodObject<{
|
|
74
|
+
channel: z.ZodString;
|
|
75
|
+
address: z.ZodString;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
collection: z.ZodEnum<{
|
|
79
|
+
changes: "changes";
|
|
80
|
+
sessionContinuations: "sessionContinuations";
|
|
81
|
+
receipts: "receipts";
|
|
82
|
+
sessions: "sessions";
|
|
83
|
+
}>;
|
|
84
|
+
by: z.ZodLiteral<"task">;
|
|
85
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
collection: z.ZodEnum<{
|
|
88
|
+
sessions: "sessions";
|
|
89
|
+
externalSessions: "externalSessions";
|
|
90
|
+
}>;
|
|
91
|
+
by: z.ZodLiteral<"owner">;
|
|
92
|
+
owner: z.ZodString;
|
|
93
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
collection: z.ZodEnum<{
|
|
96
|
+
sessions: "sessions";
|
|
97
|
+
externalSessions: "externalSessions";
|
|
98
|
+
}>;
|
|
99
|
+
by: z.ZodLiteral<"execution">;
|
|
100
|
+
execution: z.ZodObject<{
|
|
101
|
+
provider: z.ZodString;
|
|
102
|
+
sessionId: z.ZodString;
|
|
103
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
105
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
+
collection: z.ZodEnum<{
|
|
109
|
+
changes: "changes";
|
|
110
|
+
tasks: "tasks";
|
|
111
|
+
}>;
|
|
112
|
+
by: z.ZodLiteral<"attention">;
|
|
113
|
+
repositoryId: z.ZodOptional<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>;
|
|
114
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
|
+
collection: z.ZodLiteral<"transcripts">;
|
|
116
|
+
by: z.ZodLiteral<"attention">;
|
|
117
|
+
}, z.core.$strict>]>;
|
|
118
|
+
/** Exact membership partition selected by the trusted engine or authorized application. */
|
|
119
|
+
type FactoryIndexScope = z.infer<typeof factoryIndexScopeSchema>;
|
|
120
|
+
/** Validates compact source summaries, without Task inputs, messages, histories, or transcript bodies. */
|
|
121
|
+
declare const factoryRecordSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
collection: z.ZodLiteral<"sessionContinuations">;
|
|
123
|
+
sessionId: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
124
|
+
taskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
125
|
+
committed: z.ZodBoolean;
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
128
|
+
createdAt: z.ZodISODateTime;
|
|
129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
+
collection: z.ZodLiteral<"sessionNotifications">;
|
|
131
|
+
sessionId: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
132
|
+
outcome: z.ZodString;
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
135
|
+
createdAt: z.ZodISODateTime;
|
|
136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
137
|
+
collection: z.ZodLiteral<"repositories">;
|
|
138
|
+
id: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
139
|
+
slug: z.ZodString;
|
|
140
|
+
enabled: z.ZodBoolean;
|
|
141
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
142
|
+
createdAt: z.ZodISODateTime;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
collection: z.ZodLiteral<"signals">;
|
|
145
|
+
id: z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>;
|
|
146
|
+
source: z.ZodString;
|
|
147
|
+
outcome: z.ZodString;
|
|
148
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
149
|
+
createdAt: z.ZodISODateTime;
|
|
150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
+
collection: z.ZodLiteral<"tasks">;
|
|
152
|
+
title: z.ZodString;
|
|
153
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
154
|
+
kind: z.ZodString;
|
|
155
|
+
state: z.ZodEnum<{
|
|
156
|
+
queued: "queued";
|
|
157
|
+
running: "running";
|
|
158
|
+
stalled: "stalled";
|
|
159
|
+
verifying: "verifying";
|
|
160
|
+
succeeded: "succeeded";
|
|
161
|
+
failed: "failed";
|
|
162
|
+
needs_human: "needs_human";
|
|
163
|
+
cancelled: "cancelled";
|
|
164
|
+
}>;
|
|
165
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
166
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
167
|
+
attempt: z.ZodNumber;
|
|
168
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
169
|
+
route: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
version: z.ZodNumber;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
174
|
+
required: "required";
|
|
175
|
+
granted: "granted";
|
|
176
|
+
denied: "denied";
|
|
177
|
+
}>>;
|
|
178
|
+
updatedAt: z.ZodISODateTime;
|
|
179
|
+
attention: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
stalled: "stalled";
|
|
181
|
+
failed: "failed";
|
|
182
|
+
question: "question";
|
|
183
|
+
approval: "approval";
|
|
184
|
+
}>>;
|
|
185
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
186
|
+
createdAt: z.ZodISODateTime;
|
|
187
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
188
|
+
collection: z.ZodLiteral<"changes">;
|
|
189
|
+
id: z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>;
|
|
190
|
+
state: z.ZodEnum<{
|
|
191
|
+
verifying: "verifying";
|
|
192
|
+
ready: "ready";
|
|
193
|
+
closed: "closed";
|
|
194
|
+
merged: "merged";
|
|
195
|
+
deployed: "deployed";
|
|
196
|
+
rolled_out: "rolled_out";
|
|
197
|
+
rolled_back: "rolled_back";
|
|
198
|
+
}>;
|
|
199
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
200
|
+
prNumber: z.ZodNumber;
|
|
201
|
+
updatedAt: z.ZodISODateTime;
|
|
202
|
+
attention: z.ZodOptional<z.ZodLiteral<"review">>;
|
|
203
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
204
|
+
createdAt: z.ZodISODateTime;
|
|
205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
206
|
+
collection: z.ZodLiteral<"receipts">;
|
|
207
|
+
id: z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>;
|
|
208
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
209
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
210
|
+
kind: z.ZodString;
|
|
211
|
+
state: z.ZodString;
|
|
212
|
+
attempt: z.ZodNumber;
|
|
213
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
214
|
+
createdAt: z.ZodISODateTime;
|
|
215
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
216
|
+
collection: z.ZodLiteral<"sessions">;
|
|
217
|
+
id: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
218
|
+
owner: z.ZodString;
|
|
219
|
+
title: z.ZodString;
|
|
220
|
+
agent: z.ZodString;
|
|
221
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
222
|
+
attached: z.ZodBoolean;
|
|
223
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
provider: z.ZodString;
|
|
225
|
+
sessionId: z.ZodString;
|
|
226
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
228
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
231
|
+
createdAt: z.ZodISODateTime;
|
|
232
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
233
|
+
collection: z.ZodLiteral<"externalSessions">;
|
|
234
|
+
id: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
235
|
+
owner: z.ZodString;
|
|
236
|
+
title: z.ZodString;
|
|
237
|
+
agent: z.ZodString;
|
|
238
|
+
execution: z.ZodObject<{
|
|
239
|
+
provider: z.ZodString;
|
|
240
|
+
sessionId: z.ZodString;
|
|
241
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
242
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
243
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
source: z.ZodString;
|
|
246
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
247
|
+
createdAt: z.ZodISODateTime;
|
|
248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
collection: z.ZodLiteral<"transcripts">;
|
|
250
|
+
execution: z.ZodObject<{
|
|
251
|
+
provider: z.ZodString;
|
|
252
|
+
sessionId: z.ZodString;
|
|
253
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
254
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
255
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
state: z.ZodEnum<{
|
|
258
|
+
running: "running";
|
|
259
|
+
failed: "failed";
|
|
260
|
+
completed: "completed";
|
|
261
|
+
connecting: "connecting";
|
|
262
|
+
"needs input": "needs input";
|
|
263
|
+
waiting: "waiting";
|
|
264
|
+
}>;
|
|
265
|
+
cursor: z.ZodNumber;
|
|
266
|
+
inputCount: z.ZodNumber;
|
|
267
|
+
updatedAt: z.ZodISODateTime;
|
|
268
|
+
attention: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
failed: "failed";
|
|
270
|
+
conversation: "conversation";
|
|
271
|
+
}>>;
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
repositoryIds: z.ZodReadonly<z.ZodArray<z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
274
|
+
createdAt: z.ZodISODateTime;
|
|
275
|
+
}, z.core.$strict>], "collection">;
|
|
276
|
+
/** Compact, discriminated source entity projection returned by indexed engine queries. */
|
|
277
|
+
type FactoryRecordSummary = z.infer<typeof factoryRecordSummarySchema>;
|
|
278
|
+
//#endregion
|
|
279
|
+
export { FactoryIndexScope, FactoryRecordSummary, factoryIndexScopeSchema, factoryRecordSummarySchema };
|
|
280
|
+
//# sourceMappingURL=indexed-projections.d.mts.map
|