@agent-relay/factory 0.1.57 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -1
- package/dist/cli/fleet.d.ts +20 -1
- package/dist/cli/fleet.d.ts.map +1 -1
- package/dist/cli/fleet.js +550 -106
- package/dist/cli/fleet.js.map +1 -1
- package/dist/config/schema.d.ts +1778 -515
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +104 -6
- package/dist/config/schema.js.map +1 -1
- package/dist/delivery/ticket-dispatch.d.ts +15 -0
- package/dist/delivery/ticket-dispatch.d.ts.map +1 -0
- package/dist/delivery/ticket-dispatch.js +20 -0
- package/dist/delivery/ticket-dispatch.js.map +1 -0
- package/dist/feature-guardian/conversation.d.ts +251 -0
- package/dist/feature-guardian/conversation.d.ts.map +1 -0
- package/dist/feature-guardian/conversation.js +1893 -0
- package/dist/feature-guardian/conversation.js.map +1 -0
- package/dist/feature-guardian/index.d.ts +2 -0
- package/dist/feature-guardian/index.d.ts.map +1 -0
- package/dist/feature-guardian/index.js +2 -0
- package/dist/feature-guardian/index.js.map +1 -0
- package/dist/git/agent-worktree.d.ts.map +1 -1
- package/dist/git/agent-worktree.js +4 -0
- package/dist/git/agent-worktree.js.map +1 -1
- package/dist/github/index.d.ts +2 -0
- package/dist/github/index.d.ts.map +1 -1
- package/dist/github/index.js +1 -0
- package/dist/github/index.js.map +1 -1
- package/dist/github/routed-pr-babysitter.d.ts +48 -0
- package/dist/github/routed-pr-babysitter.d.ts.map +1 -0
- package/dist/github/routed-pr-babysitter.js +197 -0
- package/dist/github/routed-pr-babysitter.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/intake/index.d.ts +4 -0
- package/dist/intake/index.d.ts.map +1 -0
- package/dist/intake/index.js +4 -0
- package/dist/intake/index.js.map +1 -0
- package/dist/intake/notion-relay-claim.d.ts +32 -0
- package/dist/intake/notion-relay-claim.d.ts.map +1 -0
- package/dist/intake/notion-relay-claim.js +173 -0
- package/dist/intake/notion-relay-claim.js.map +1 -0
- package/dist/intake/notion-relay-contract.d.ts +33 -0
- package/dist/intake/notion-relay-contract.d.ts.map +1 -0
- package/dist/intake/notion-relay-contract.js +163 -0
- package/dist/intake/notion-relay-contract.js.map +1 -0
- package/dist/intake/notion.d.ts +375 -0
- package/dist/intake/notion.d.ts.map +1 -0
- package/dist/intake/notion.js +773 -0
- package/dist/intake/notion.js.map +1 -0
- package/dist/issue-key-match.d.ts +6 -0
- package/dist/issue-key-match.d.ts.map +1 -1
- package/dist/issue-key-match.js +14 -0
- package/dist/issue-key-match.js.map +1 -1
- package/dist/mount/github-api-issue-read.d.ts +28 -0
- package/dist/mount/github-api-issue-read.d.ts.map +1 -0
- package/dist/mount/github-api-issue-read.js +163 -0
- package/dist/mount/github-api-issue-read.js.map +1 -0
- package/dist/mount/local-mount-preflight.d.ts +2 -0
- package/dist/mount/local-mount-preflight.d.ts.map +1 -1
- package/dist/mount/local-mount-preflight.js +59 -9
- package/dist/mount/local-mount-preflight.js.map +1 -1
- package/dist/mount/mount-auth-error.d.ts +41 -0
- package/dist/mount/mount-auth-error.d.ts.map +1 -0
- package/dist/mount/mount-auth-error.js +94 -0
- package/dist/mount/mount-auth-error.js.map +1 -0
- package/dist/mount/relayfile-binary.d.ts +5 -0
- package/dist/mount/relayfile-binary.d.ts.map +1 -1
- package/dist/mount/relayfile-binary.js +16 -2
- package/dist/mount/relayfile-binary.js.map +1 -1
- package/dist/mount/relayfile-cloud-mount-client.d.ts +18 -3
- package/dist/mount/relayfile-cloud-mount-client.d.ts.map +1 -1
- package/dist/mount/relayfile-cloud-mount-client.js +157 -13
- package/dist/mount/relayfile-cloud-mount-client.js.map +1 -1
- package/dist/mount/relayfile-github-connection-write.d.ts.map +1 -1
- package/dist/mount/relayfile-github-connection-write.js +6 -3
- package/dist/mount/relayfile-github-connection-write.js.map +1 -1
- package/dist/mount/workspace-mirror.d.ts +13 -0
- package/dist/mount/workspace-mirror.d.ts.map +1 -0
- package/dist/mount/workspace-mirror.js +94 -0
- package/dist/mount/workspace-mirror.js.map +1 -0
- package/dist/observability/events.d.ts +32 -32
- package/dist/orchestrator/batch-tracker.d.ts +2 -1
- package/dist/orchestrator/batch-tracker.d.ts.map +1 -1
- package/dist/orchestrator/batch-tracker.js.map +1 -1
- package/dist/orchestrator/factory.d.ts +51 -0
- package/dist/orchestrator/factory.d.ts.map +1 -1
- package/dist/orchestrator/factory.js +1736 -116
- package/dist/orchestrator/factory.js.map +1 -1
- package/dist/ports/fleet.d.ts +4 -0
- package/dist/ports/fleet.d.ts.map +1 -1
- package/dist/ports/index.d.ts +1 -1
- package/dist/ports/index.d.ts.map +1 -1
- package/dist/ports/mount.d.ts +60 -1
- package/dist/ports/mount.d.ts.map +1 -1
- package/dist/ports/state.d.ts +66 -1
- package/dist/ports/state.d.ts.map +1 -1
- package/dist/state/file-state-store.d.ts +15 -1
- package/dist/state/file-state-store.d.ts.map +1 -1
- package/dist/state/file-state-store.js +210 -2
- package/dist/state/file-state-store.js.map +1 -1
- package/dist/state/in-memory-state-store.d.ts +15 -1
- package/dist/state/in-memory-state-store.d.ts.map +1 -1
- package/dist/state/in-memory-state-store.js +105 -0
- package/dist/state/in-memory-state-store.js.map +1 -1
- package/dist/testing/fakes.d.ts +4 -0
- package/dist/testing/fakes.d.ts.map +1 -1
- package/dist/testing/fakes.js +6 -0
- package/dist/testing/fakes.js.map +1 -1
- package/dist/triage/schema.d.ts +169 -0
- package/dist/triage/schema.d.ts.map +1 -1
- package/dist/triage/schema.js +21 -0
- package/dist/triage/schema.js.map +1 -1
- package/dist/types.d.ts +61 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version-info.d.ts +21 -0
- package/dist/version-info.d.ts.map +1 -0
- package/dist/version-info.js +146 -0
- package/dist/version-info.js.map +1 -0
- package/dist/writeback/github.d.ts.map +1 -1
- package/dist/writeback/github.js +51 -0
- package/dist/writeback/github.js.map +1 -1
- package/package.json +10 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const recipeSchema: z.ZodEnum<["single", "workflow", "team"]>;
|
|
3
|
+
declare const targetSchema: z.ZodUnion<[z.ZodObject<{
|
|
4
|
+
repo: z.ZodString;
|
|
5
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
publicSummary: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
labels: string[];
|
|
9
|
+
repo: string;
|
|
10
|
+
publicSummary?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
repo: string;
|
|
13
|
+
labels?: string[] | undefined;
|
|
14
|
+
publicSummary?: string | undefined;
|
|
15
|
+
}>, z.ZodObject<{
|
|
16
|
+
projectPath: z.ZodEffects<z.ZodString, string, string>;
|
|
17
|
+
node: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
projectPath: string;
|
|
20
|
+
node?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
projectPath: string;
|
|
23
|
+
node?: string | undefined;
|
|
24
|
+
}>]>;
|
|
25
|
+
declare const contractDeliverySchema: z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"relay-channel">;
|
|
27
|
+
channel: z.ZodString;
|
|
28
|
+
messageIds: z.ZodArray<z.ZodString, "many">;
|
|
29
|
+
encoding: z.ZodLiteral<"base64-chunks-v1">;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
kind: "relay-channel";
|
|
32
|
+
channel: string;
|
|
33
|
+
encoding: "base64-chunks-v1";
|
|
34
|
+
messageIds: string[];
|
|
35
|
+
}, {
|
|
36
|
+
kind: "relay-channel";
|
|
37
|
+
channel: string;
|
|
38
|
+
encoding: "base64-chunks-v1";
|
|
39
|
+
messageIds: string[];
|
|
40
|
+
}>;
|
|
41
|
+
declare const manifestSchema: z.ZodObject<{
|
|
42
|
+
version: z.ZodLiteral<1>;
|
|
43
|
+
mountRoot: z.ZodDefault<z.ZodString>;
|
|
44
|
+
workerMountRoot: z.ZodDefault<z.ZodString>;
|
|
45
|
+
workerMountTransport: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
46
|
+
kind: z.ZodLiteral<"local">;
|
|
47
|
+
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
kind: "local";
|
|
49
|
+
}, {
|
|
50
|
+
kind: "local";
|
|
51
|
+
}>, z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"relay-channel">;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
kind: "relay-channel";
|
|
55
|
+
}, {
|
|
56
|
+
kind: "relay-channel";
|
|
57
|
+
}>]>>;
|
|
58
|
+
statePath: z.ZodDefault<z.ZodString>;
|
|
59
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
60
|
+
page: z.ZodString;
|
|
61
|
+
bootstrap: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
authorizedPageId: z.ZodString;
|
|
63
|
+
reason: z.ZodString;
|
|
64
|
+
status: z.ZodLiteral<"ready">;
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
recipe: z.ZodEnum<["single", "workflow", "team"]>;
|
|
67
|
+
summary: z.ZodString;
|
|
68
|
+
targets: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
69
|
+
repo: z.ZodString;
|
|
70
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
71
|
+
publicSummary: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
labels: string[];
|
|
74
|
+
repo: string;
|
|
75
|
+
publicSummary?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
repo: string;
|
|
78
|
+
labels?: string[] | undefined;
|
|
79
|
+
publicSummary?: string | undefined;
|
|
80
|
+
}>, z.ZodObject<{
|
|
81
|
+
projectPath: z.ZodEffects<z.ZodString, string, string>;
|
|
82
|
+
node: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, "strict", z.ZodTypeAny, {
|
|
84
|
+
projectPath: string;
|
|
85
|
+
node?: string | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
projectPath: string;
|
|
88
|
+
node?: string | undefined;
|
|
89
|
+
}>]>, "many">;
|
|
90
|
+
}, "strict", z.ZodTypeAny, {
|
|
91
|
+
status: "ready";
|
|
92
|
+
recipe: "workflow" | "team" | "single";
|
|
93
|
+
reason: string;
|
|
94
|
+
title: string;
|
|
95
|
+
targets: ({
|
|
96
|
+
labels: string[];
|
|
97
|
+
repo: string;
|
|
98
|
+
publicSummary?: string | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
projectPath: string;
|
|
101
|
+
node?: string | undefined;
|
|
102
|
+
})[];
|
|
103
|
+
summary: string;
|
|
104
|
+
authorizedPageId: string;
|
|
105
|
+
}, {
|
|
106
|
+
status: "ready";
|
|
107
|
+
recipe: "workflow" | "team" | "single";
|
|
108
|
+
reason: string;
|
|
109
|
+
title: string;
|
|
110
|
+
targets: ({
|
|
111
|
+
repo: string;
|
|
112
|
+
labels?: string[] | undefined;
|
|
113
|
+
publicSummary?: string | undefined;
|
|
114
|
+
} | {
|
|
115
|
+
projectPath: string;
|
|
116
|
+
node?: string | undefined;
|
|
117
|
+
})[];
|
|
118
|
+
summary: string;
|
|
119
|
+
authorizedPageId: string;
|
|
120
|
+
}>>;
|
|
121
|
+
}, "strict", z.ZodTypeAny, {
|
|
122
|
+
page: string;
|
|
123
|
+
bootstrap?: {
|
|
124
|
+
status: "ready";
|
|
125
|
+
recipe: "workflow" | "team" | "single";
|
|
126
|
+
reason: string;
|
|
127
|
+
title: string;
|
|
128
|
+
targets: ({
|
|
129
|
+
labels: string[];
|
|
130
|
+
repo: string;
|
|
131
|
+
publicSummary?: string | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
projectPath: string;
|
|
134
|
+
node?: string | undefined;
|
|
135
|
+
})[];
|
|
136
|
+
summary: string;
|
|
137
|
+
authorizedPageId: string;
|
|
138
|
+
} | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
page: string;
|
|
141
|
+
bootstrap?: {
|
|
142
|
+
status: "ready";
|
|
143
|
+
recipe: "workflow" | "team" | "single";
|
|
144
|
+
reason: string;
|
|
145
|
+
title: string;
|
|
146
|
+
targets: ({
|
|
147
|
+
repo: string;
|
|
148
|
+
labels?: string[] | undefined;
|
|
149
|
+
publicSummary?: string | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
projectPath: string;
|
|
152
|
+
node?: string | undefined;
|
|
153
|
+
})[];
|
|
154
|
+
summary: string;
|
|
155
|
+
authorizedPageId: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}>, "many">;
|
|
158
|
+
}, "strict", z.ZodTypeAny, {
|
|
159
|
+
version: 1;
|
|
160
|
+
mountRoot: string;
|
|
161
|
+
tasks: {
|
|
162
|
+
page: string;
|
|
163
|
+
bootstrap?: {
|
|
164
|
+
status: "ready";
|
|
165
|
+
recipe: "workflow" | "team" | "single";
|
|
166
|
+
reason: string;
|
|
167
|
+
title: string;
|
|
168
|
+
targets: ({
|
|
169
|
+
labels: string[];
|
|
170
|
+
repo: string;
|
|
171
|
+
publicSummary?: string | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
projectPath: string;
|
|
174
|
+
node?: string | undefined;
|
|
175
|
+
})[];
|
|
176
|
+
summary: string;
|
|
177
|
+
authorizedPageId: string;
|
|
178
|
+
} | undefined;
|
|
179
|
+
}[];
|
|
180
|
+
workerMountRoot: string;
|
|
181
|
+
workerMountTransport: {
|
|
182
|
+
kind: "local";
|
|
183
|
+
} | {
|
|
184
|
+
kind: "relay-channel";
|
|
185
|
+
};
|
|
186
|
+
statePath: string;
|
|
187
|
+
}, {
|
|
188
|
+
version: 1;
|
|
189
|
+
tasks: {
|
|
190
|
+
page: string;
|
|
191
|
+
bootstrap?: {
|
|
192
|
+
status: "ready";
|
|
193
|
+
recipe: "workflow" | "team" | "single";
|
|
194
|
+
reason: string;
|
|
195
|
+
title: string;
|
|
196
|
+
targets: ({
|
|
197
|
+
repo: string;
|
|
198
|
+
labels?: string[] | undefined;
|
|
199
|
+
publicSummary?: string | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
projectPath: string;
|
|
202
|
+
node?: string | undefined;
|
|
203
|
+
})[];
|
|
204
|
+
summary: string;
|
|
205
|
+
authorizedPageId: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
mountRoot?: string | undefined;
|
|
209
|
+
workerMountRoot?: string | undefined;
|
|
210
|
+
workerMountTransport?: {
|
|
211
|
+
kind: "local";
|
|
212
|
+
} | {
|
|
213
|
+
kind: "relay-channel";
|
|
214
|
+
} | undefined;
|
|
215
|
+
statePath?: string | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
export type NotionRecipe = z.infer<typeof recipeSchema>;
|
|
218
|
+
export type NotionIntakeTarget = z.infer<typeof targetSchema>;
|
|
219
|
+
export type NotionIntakeManifest = z.infer<typeof manifestSchema>;
|
|
220
|
+
export interface NormalizedNotionTask {
|
|
221
|
+
pageId: string;
|
|
222
|
+
sourceKey: string;
|
|
223
|
+
sourcePath: string;
|
|
224
|
+
workerSourcePath: string;
|
|
225
|
+
content: string;
|
|
226
|
+
authorizationDigestInput?: string;
|
|
227
|
+
contentDigest: string;
|
|
228
|
+
digest: string;
|
|
229
|
+
title: string;
|
|
230
|
+
summary: string;
|
|
231
|
+
recipe: NotionRecipe;
|
|
232
|
+
target: NotionIntakeTarget;
|
|
233
|
+
bootstrap: boolean;
|
|
234
|
+
}
|
|
235
|
+
export interface ExistingGithubIssue {
|
|
236
|
+
number: number;
|
|
237
|
+
url: string;
|
|
238
|
+
body: string;
|
|
239
|
+
}
|
|
240
|
+
export interface GithubIssuePublisher {
|
|
241
|
+
repositoryVisibility(repo: string): Promise<'public' | 'private' | 'internal'>;
|
|
242
|
+
missingLabels(repo: string, labels: readonly string[]): Promise<string[]>;
|
|
243
|
+
findBySource(repo: string, sourceKey: string): Promise<ExistingGithubIssue | undefined>;
|
|
244
|
+
createIssue(input: {
|
|
245
|
+
repo: string;
|
|
246
|
+
title: string;
|
|
247
|
+
body: string;
|
|
248
|
+
labels: readonly string[];
|
|
249
|
+
}): Promise<{
|
|
250
|
+
number: number;
|
|
251
|
+
url: string;
|
|
252
|
+
}>;
|
|
253
|
+
updateIssue(input: {
|
|
254
|
+
repo: string;
|
|
255
|
+
number: number;
|
|
256
|
+
body: string;
|
|
257
|
+
}): Promise<void>;
|
|
258
|
+
}
|
|
259
|
+
export type NotionContractDelivery = z.infer<typeof contractDeliverySchema>;
|
|
260
|
+
export interface NotionContractPublisher {
|
|
261
|
+
publish(input: {
|
|
262
|
+
pageId: string;
|
|
263
|
+
sourceKey: string;
|
|
264
|
+
content: string;
|
|
265
|
+
contentDigest: string;
|
|
266
|
+
}): Promise<NotionContractDelivery>;
|
|
267
|
+
dispose?(): Promise<void>;
|
|
268
|
+
}
|
|
269
|
+
export interface NotionIntakeClaim {
|
|
270
|
+
sourceKey: string;
|
|
271
|
+
digest: string;
|
|
272
|
+
claimedAt: string;
|
|
273
|
+
}
|
|
274
|
+
export interface NotionIntakeClaimStore {
|
|
275
|
+
get(sourceKey: string): Promise<NotionIntakeClaim | undefined>;
|
|
276
|
+
claim(input: NotionIntakeClaim): Promise<{
|
|
277
|
+
status: 'claimed' | 'existing';
|
|
278
|
+
claim: NotionIntakeClaim;
|
|
279
|
+
}>;
|
|
280
|
+
dispose?(): Promise<void>;
|
|
281
|
+
}
|
|
282
|
+
export interface WorkspaceTaskDispatcher {
|
|
283
|
+
find?(name: string): Promise<{
|
|
284
|
+
agent: string;
|
|
285
|
+
node?: string;
|
|
286
|
+
} | undefined>;
|
|
287
|
+
dispatch(input: {
|
|
288
|
+
name: string;
|
|
289
|
+
invocationId: string;
|
|
290
|
+
node?: string;
|
|
291
|
+
projectPath: string;
|
|
292
|
+
title: string;
|
|
293
|
+
task: string;
|
|
294
|
+
}): Promise<{
|
|
295
|
+
agent: string;
|
|
296
|
+
node?: string;
|
|
297
|
+
status?: string;
|
|
298
|
+
}>;
|
|
299
|
+
redispatch?(input: {
|
|
300
|
+
name: string;
|
|
301
|
+
invocationId: string;
|
|
302
|
+
node?: string;
|
|
303
|
+
projectPath: string;
|
|
304
|
+
title: string;
|
|
305
|
+
task: string;
|
|
306
|
+
}): Promise<{
|
|
307
|
+
agent: string;
|
|
308
|
+
node?: string;
|
|
309
|
+
status?: string;
|
|
310
|
+
}>;
|
|
311
|
+
}
|
|
312
|
+
export type NotionIntakeResult = {
|
|
313
|
+
sourceKey: string;
|
|
314
|
+
pageId: string;
|
|
315
|
+
target: NotionIntakeTarget;
|
|
316
|
+
status: 'ready' | 'dispatched' | 'already-dispatched' | 'blocked';
|
|
317
|
+
digest: string;
|
|
318
|
+
issue?: {
|
|
319
|
+
number: number;
|
|
320
|
+
url: string;
|
|
321
|
+
};
|
|
322
|
+
agent?: string;
|
|
323
|
+
node?: string;
|
|
324
|
+
reason?: string;
|
|
325
|
+
};
|
|
326
|
+
export interface NotionIntakeReport {
|
|
327
|
+
ok: boolean;
|
|
328
|
+
dispatch: boolean;
|
|
329
|
+
results: NotionIntakeResult[];
|
|
330
|
+
}
|
|
331
|
+
/** Load and validate an operator-reviewed intake manifest with paths resolved from the manifest directory. */
|
|
332
|
+
export declare function loadNotionIntakeManifest(path: string): Promise<NotionIntakeManifest>;
|
|
333
|
+
/** Plan or execute every mounted Notion destination and return one durable result per source key. */
|
|
334
|
+
export declare function runNotionIntake(input: {
|
|
335
|
+
manifest: NotionIntakeManifest;
|
|
336
|
+
dispatch: boolean;
|
|
337
|
+
github?: GithubIssuePublisher;
|
|
338
|
+
workspace?: WorkspaceTaskDispatcher;
|
|
339
|
+
contracts?: NotionContractPublisher;
|
|
340
|
+
claims?: NotionIntakeClaimStore;
|
|
341
|
+
now?: () => Date;
|
|
342
|
+
}): Promise<NotionIntakeReport>;
|
|
343
|
+
/** Read mounted page bodies and normalize strict headers or exact bootstrap mappings into Factory tasks. */
|
|
344
|
+
export declare function normalizeNotionManifest(manifest: NotionIntakeManifest): Promise<NormalizedNotionTask[]>;
|
|
345
|
+
/** Extract one boundary-delimited Notion UUID from a bare identifier or application URL. */
|
|
346
|
+
export declare function normalizeNotionPageId(value: string): string;
|
|
347
|
+
/** Parse the fail-closed Chief Spec header at the start of a mounted Notion page. */
|
|
348
|
+
export declare function parseChiefSpecHeader(content: string): {
|
|
349
|
+
title: string;
|
|
350
|
+
summary: string;
|
|
351
|
+
recipe: NotionRecipe;
|
|
352
|
+
targets: NotionIntakeTarget[];
|
|
353
|
+
};
|
|
354
|
+
/** GitHub CLI publisher with shell-free arguments, bounded output, and source-marker reconciliation. */
|
|
355
|
+
export declare class GhCliIssuePublisher implements GithubIssuePublisher {
|
|
356
|
+
repositoryVisibility(repo: string): Promise<'public' | 'private' | 'internal'>;
|
|
357
|
+
missingLabels(repo: string, labels: readonly string[]): Promise<string[]>;
|
|
358
|
+
findBySource(repo: string, sourceKey: string): Promise<ExistingGithubIssue | undefined>;
|
|
359
|
+
createIssue(input: {
|
|
360
|
+
repo: string;
|
|
361
|
+
title: string;
|
|
362
|
+
body: string;
|
|
363
|
+
labels: readonly string[];
|
|
364
|
+
}): Promise<{
|
|
365
|
+
number: number;
|
|
366
|
+
url: string;
|
|
367
|
+
}>;
|
|
368
|
+
updateIssue(input: {
|
|
369
|
+
repo: string;
|
|
370
|
+
number: number;
|
|
371
|
+
body: string;
|
|
372
|
+
}): Promise<void>;
|
|
373
|
+
}
|
|
374
|
+
export {};
|
|
375
|
+
//# sourceMappingURL=notion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notion.d.ts","sourceRoot":"","sources":["../../src/intake/notion.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,C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