@halcyonlabs/app 0.47.0-halcyon.623 → 0.47.0-halcyon.624
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/index.d.ts +83 -83
- package/package.json +2 -2
- package/server/dist/builtin-plugins/github/dist/server.js +30 -20
- package/server/dist/builtin-plugins/marketplace.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,8 +84,8 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
84
84
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
85
85
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
86
86
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
87
|
-
collapse: "collapse";
|
|
88
87
|
flat: "flat";
|
|
88
|
+
collapse: "collapse";
|
|
89
89
|
}>>;
|
|
90
90
|
streamerMode: z$1.ZodBoolean;
|
|
91
91
|
allowFastServiceTier: z$1.ZodBoolean;
|
|
@@ -106,8 +106,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
106
106
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
107
107
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
108
108
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
109
|
-
collapse: "collapse";
|
|
110
109
|
flat: "flat";
|
|
110
|
+
collapse: "collapse";
|
|
111
111
|
}>>;
|
|
112
112
|
streamerMode: z$1.ZodBoolean;
|
|
113
113
|
managedBranchPrefix: z$1.ZodString;
|
|
@@ -145,8 +145,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
145
145
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
146
146
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
147
147
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
148
|
-
collapse: "collapse";
|
|
149
148
|
flat: "flat";
|
|
149
|
+
collapse: "collapse";
|
|
150
150
|
}>>;
|
|
151
151
|
streamerMode: z$1.ZodBoolean;
|
|
152
152
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -320,8 +320,8 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
320
320
|
shift: z$1.ZodBoolean;
|
|
321
321
|
}, z$1.core.$strict>>;
|
|
322
322
|
platform: z$1.ZodOptional<z$1.ZodEnum<{
|
|
323
|
-
windows: "windows";
|
|
324
323
|
mac: "mac";
|
|
324
|
+
windows: "windows";
|
|
325
325
|
linux: "linux";
|
|
326
326
|
}>>;
|
|
327
327
|
}, z$1.core.$strict>>;
|
|
@@ -528,8 +528,8 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
528
528
|
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
529
529
|
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
530
530
|
status: z$1.ZodEnum<{
|
|
531
|
-
running: "running";
|
|
532
531
|
failed: "failed";
|
|
532
|
+
running: "running";
|
|
533
533
|
removed: "removed";
|
|
534
534
|
}>;
|
|
535
535
|
attempt: z$1.ZodNumber;
|
|
@@ -624,8 +624,8 @@ declare const hostSchema: z$1.ZodObject<{
|
|
|
624
624
|
pendingLog: z$1.ZodString;
|
|
625
625
|
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
626
626
|
status: z$1.ZodEnum<{
|
|
627
|
-
running: "running";
|
|
628
627
|
failed: "failed";
|
|
628
|
+
running: "running";
|
|
629
629
|
removed: "removed";
|
|
630
630
|
}>;
|
|
631
631
|
attempt: z$1.ZodNumber;
|
|
@@ -736,8 +736,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
736
736
|
providerThreadId: z$1.ZodString;
|
|
737
737
|
objective: z$1.ZodString;
|
|
738
738
|
status: z$1.ZodEnum<{
|
|
739
|
-
paused: "paused";
|
|
740
739
|
active: "active";
|
|
740
|
+
paused: "paused";
|
|
741
741
|
budgetLimited: "budgetLimited";
|
|
742
742
|
complete: "complete";
|
|
743
743
|
}>;
|
|
@@ -1308,9 +1308,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1308
1308
|
step: z$1.ZodString;
|
|
1309
1309
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1310
1310
|
pending: "pending";
|
|
1311
|
+
active: "active";
|
|
1311
1312
|
completed: "completed";
|
|
1312
1313
|
failed: "failed";
|
|
1313
|
-
active: "active";
|
|
1314
1314
|
}>>;
|
|
1315
1315
|
}, z$1.core.$strip>>;
|
|
1316
1316
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1389,10 +1389,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1389
1389
|
}>;
|
|
1390
1390
|
taskStatus: z$1.ZodEnum<{
|
|
1391
1391
|
pending: "pending";
|
|
1392
|
-
running: "running";
|
|
1393
|
-
paused: "paused";
|
|
1394
1392
|
completed: "completed";
|
|
1395
1393
|
failed: "failed";
|
|
1394
|
+
paused: "paused";
|
|
1395
|
+
running: "running";
|
|
1396
1396
|
killed: "killed";
|
|
1397
1397
|
stopped: "stopped";
|
|
1398
1398
|
}>;
|
|
@@ -1409,8 +1409,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1409
1409
|
index: z$1.ZodNumber;
|
|
1410
1410
|
label: z$1.ZodString;
|
|
1411
1411
|
state: z$1.ZodEnum<{
|
|
1412
|
-
running: "running";
|
|
1413
1412
|
failed: "failed";
|
|
1413
|
+
running: "running";
|
|
1414
1414
|
queued: "queued";
|
|
1415
1415
|
done: "done";
|
|
1416
1416
|
skipped: "skipped";
|
|
@@ -2080,9 +2080,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2080
2080
|
step: z$1.ZodString;
|
|
2081
2081
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2082
2082
|
pending: "pending";
|
|
2083
|
+
active: "active";
|
|
2083
2084
|
completed: "completed";
|
|
2084
2085
|
failed: "failed";
|
|
2085
|
-
active: "active";
|
|
2086
2086
|
}>>;
|
|
2087
2087
|
}, z$1.core.$strip>>;
|
|
2088
2088
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2161,10 +2161,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2161
2161
|
}>;
|
|
2162
2162
|
taskStatus: z$1.ZodEnum<{
|
|
2163
2163
|
pending: "pending";
|
|
2164
|
-
running: "running";
|
|
2165
|
-
paused: "paused";
|
|
2166
2164
|
completed: "completed";
|
|
2167
2165
|
failed: "failed";
|
|
2166
|
+
paused: "paused";
|
|
2167
|
+
running: "running";
|
|
2168
2168
|
killed: "killed";
|
|
2169
2169
|
stopped: "stopped";
|
|
2170
2170
|
}>;
|
|
@@ -2181,8 +2181,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2181
2181
|
index: z$1.ZodNumber;
|
|
2182
2182
|
label: z$1.ZodString;
|
|
2183
2183
|
state: z$1.ZodEnum<{
|
|
2184
|
-
running: "running";
|
|
2185
2184
|
failed: "failed";
|
|
2185
|
+
running: "running";
|
|
2186
2186
|
queued: "queued";
|
|
2187
2187
|
done: "done";
|
|
2188
2188
|
skipped: "skipped";
|
|
@@ -2393,10 +2393,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2393
2393
|
}>;
|
|
2394
2394
|
taskStatus: z$1.ZodEnum<{
|
|
2395
2395
|
pending: "pending";
|
|
2396
|
-
running: "running";
|
|
2397
|
-
paused: "paused";
|
|
2398
2396
|
completed: "completed";
|
|
2399
2397
|
failed: "failed";
|
|
2398
|
+
paused: "paused";
|
|
2399
|
+
running: "running";
|
|
2400
2400
|
killed: "killed";
|
|
2401
2401
|
stopped: "stopped";
|
|
2402
2402
|
}>;
|
|
@@ -2413,8 +2413,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2413
2413
|
index: z$1.ZodNumber;
|
|
2414
2414
|
label: z$1.ZodString;
|
|
2415
2415
|
state: z$1.ZodEnum<{
|
|
2416
|
-
running: "running";
|
|
2417
2416
|
failed: "failed";
|
|
2417
|
+
running: "running";
|
|
2418
2418
|
queued: "queued";
|
|
2419
2419
|
done: "done";
|
|
2420
2420
|
skipped: "skipped";
|
|
@@ -2492,10 +2492,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2492
2492
|
}>;
|
|
2493
2493
|
taskStatus: z$1.ZodEnum<{
|
|
2494
2494
|
pending: "pending";
|
|
2495
|
-
running: "running";
|
|
2496
|
-
paused: "paused";
|
|
2497
2495
|
completed: "completed";
|
|
2498
2496
|
failed: "failed";
|
|
2497
|
+
paused: "paused";
|
|
2498
|
+
running: "running";
|
|
2499
2499
|
killed: "killed";
|
|
2500
2500
|
stopped: "stopped";
|
|
2501
2501
|
}>;
|
|
@@ -2512,8 +2512,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2512
2512
|
index: z$1.ZodNumber;
|
|
2513
2513
|
label: z$1.ZodString;
|
|
2514
2514
|
state: z$1.ZodEnum<{
|
|
2515
|
-
running: "running";
|
|
2516
2515
|
failed: "failed";
|
|
2516
|
+
running: "running";
|
|
2517
2517
|
queued: "queued";
|
|
2518
2518
|
done: "done";
|
|
2519
2519
|
skipped: "skipped";
|
|
@@ -2708,9 +2708,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2708
2708
|
step: z$1.ZodString;
|
|
2709
2709
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2710
2710
|
pending: "pending";
|
|
2711
|
+
active: "active";
|
|
2711
2712
|
completed: "completed";
|
|
2712
2713
|
failed: "failed";
|
|
2713
|
-
active: "active";
|
|
2714
2714
|
}>>;
|
|
2715
2715
|
}, z$1.core.$strip>>;
|
|
2716
2716
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2719,8 +2719,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2719
2719
|
threadId: z$1.ZodString;
|
|
2720
2720
|
providerThreadId: z$1.ZodString;
|
|
2721
2721
|
state: z$1.ZodEnum<{
|
|
2722
|
-
running: "running";
|
|
2723
2722
|
idle: "idle";
|
|
2723
|
+
running: "running";
|
|
2724
2724
|
}>;
|
|
2725
2725
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2726
2726
|
type: z$1.ZodLiteral<"turn/diff/updated">;
|
|
@@ -2790,10 +2790,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2790
2790
|
}, z$1.core.$strip>>;
|
|
2791
2791
|
reachedReason: z$1.ZodNullable<z$1.ZodString>;
|
|
2792
2792
|
overageStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
2793
|
-
unavailable: "unavailable";
|
|
2794
2793
|
allowed: "allowed";
|
|
2795
2794
|
warning: "warning";
|
|
2796
2795
|
rejected: "rejected";
|
|
2796
|
+
unavailable: "unavailable";
|
|
2797
2797
|
}>>;
|
|
2798
2798
|
overageReason: z$1.ZodNullable<z$1.ZodString>;
|
|
2799
2799
|
}, z$1.core.$strip>;
|
|
@@ -3582,9 +3582,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3582
3582
|
threadId: z$1.ZodString;
|
|
3583
3583
|
provisioningId: z$1.ZodString;
|
|
3584
3584
|
status: z$1.ZodEnum<{
|
|
3585
|
+
active: "active";
|
|
3585
3586
|
completed: "completed";
|
|
3586
3587
|
failed: "failed";
|
|
3587
|
-
active: "active";
|
|
3588
3588
|
cancelled: "cancelled";
|
|
3589
3589
|
}>;
|
|
3590
3590
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -4244,8 +4244,8 @@ declare const providerInfoSchema: z$1.ZodObject<{
|
|
|
4244
4244
|
}, z$1.core.$strip>;
|
|
4245
4245
|
}, z$1.core.$strip>], "kind">>;
|
|
4246
4246
|
completedTurnDisplay: z$1.ZodEnum<{
|
|
4247
|
-
collapse: "collapse";
|
|
4248
4247
|
flat: "flat";
|
|
4248
|
+
collapse: "collapse";
|
|
4249
4249
|
}>;
|
|
4250
4250
|
available: z$1.ZodBoolean;
|
|
4251
4251
|
strings: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -4333,8 +4333,8 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
|
|
|
4333
4333
|
type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
|
|
4334
4334
|
|
|
4335
4335
|
declare const threadParentNotificationsSchema: z$1.ZodEnum<{
|
|
4336
|
-
auto: "auto";
|
|
4337
4336
|
off: "off";
|
|
4337
|
+
auto: "auto";
|
|
4338
4338
|
stuck: "stuck";
|
|
4339
4339
|
}>;
|
|
4340
4340
|
type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
|
|
@@ -5772,9 +5772,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5772
5772
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5773
5773
|
kind: z$1.ZodLiteral<"wording">;
|
|
5774
5774
|
status: z$1.ZodEnum<{
|
|
5775
|
-
unavailable: "unavailable";
|
|
5776
5775
|
pass: "pass";
|
|
5777
5776
|
revise: "revise";
|
|
5777
|
+
unavailable: "unavailable";
|
|
5778
5778
|
}>;
|
|
5779
5779
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5780
5780
|
kind: z$1.ZodLiteral<"review">;
|
|
@@ -6015,8 +6015,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6015
6015
|
providerInstallation: z$1.ZodBoolean;
|
|
6016
6016
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6017
6017
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6018
|
-
auto: "auto";
|
|
6019
6018
|
"accept-edits": "accept-edits";
|
|
6019
|
+
auto: "auto";
|
|
6020
6020
|
full: "full";
|
|
6021
6021
|
}>>;
|
|
6022
6022
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6042,16 +6042,16 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6042
6042
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6043
6043
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
6044
6044
|
permissionEscalation: z$1.ZodEnum<{
|
|
6045
|
-
deny: "deny";
|
|
6046
6045
|
ask: "ask";
|
|
6046
|
+
deny: "deny";
|
|
6047
6047
|
}>;
|
|
6048
6048
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6049
6049
|
permissionMode: z$1.ZodLiteral<"auto">;
|
|
6050
6050
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6051
6051
|
approvalReviewer: z$1.ZodLiteral<"automatic">;
|
|
6052
6052
|
permissionEscalation: z$1.ZodEnum<{
|
|
6053
|
-
deny: "deny";
|
|
6054
6053
|
ask: "ask";
|
|
6054
|
+
deny: "deny";
|
|
6055
6055
|
}>;
|
|
6056
6056
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6057
6057
|
permissionMode: z$1.ZodLiteral<"full">;
|
|
@@ -6135,8 +6135,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6135
6135
|
skillFilePath: z$1.ZodString;
|
|
6136
6136
|
}, z$1.core.$strict>], "kind">>;
|
|
6137
6137
|
instructionMode: z$1.ZodEnum<{
|
|
6138
|
-
replace: "replace";
|
|
6139
6138
|
append: "append";
|
|
6139
|
+
replace: "replace";
|
|
6140
6140
|
}>;
|
|
6141
6141
|
type: z$1.ZodLiteral<"thread.rewind.prepare">;
|
|
6142
6142
|
leaseId: z$1.ZodString;
|
|
@@ -6164,8 +6164,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6164
6164
|
providerInstallation: z$1.ZodBoolean;
|
|
6165
6165
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6166
6166
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6167
|
-
auto: "auto";
|
|
6168
6167
|
"accept-edits": "accept-edits";
|
|
6168
|
+
auto: "auto";
|
|
6169
6169
|
full: "full";
|
|
6170
6170
|
}>>;
|
|
6171
6171
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6191,16 +6191,16 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6191
6191
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6192
6192
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
6193
6193
|
permissionEscalation: z$1.ZodEnum<{
|
|
6194
|
-
deny: "deny";
|
|
6195
6194
|
ask: "ask";
|
|
6195
|
+
deny: "deny";
|
|
6196
6196
|
}>;
|
|
6197
6197
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6198
6198
|
permissionMode: z$1.ZodLiteral<"auto">;
|
|
6199
6199
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6200
6200
|
approvalReviewer: z$1.ZodLiteral<"automatic">;
|
|
6201
6201
|
permissionEscalation: z$1.ZodEnum<{
|
|
6202
|
-
deny: "deny";
|
|
6203
6202
|
ask: "ask";
|
|
6203
|
+
deny: "deny";
|
|
6204
6204
|
}>;
|
|
6205
6205
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6206
6206
|
permissionMode: z$1.ZodLiteral<"full">;
|
|
@@ -6284,8 +6284,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6284
6284
|
skillFilePath: z$1.ZodString;
|
|
6285
6285
|
}, z$1.core.$strict>], "kind">>;
|
|
6286
6286
|
instructionMode: z$1.ZodEnum<{
|
|
6287
|
-
replace: "replace";
|
|
6288
6287
|
append: "append";
|
|
6288
|
+
replace: "replace";
|
|
6289
6289
|
}>;
|
|
6290
6290
|
type: z$1.ZodLiteral<"thread.start">;
|
|
6291
6291
|
requestId: z$1.ZodString;
|
|
@@ -6336,8 +6336,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6336
6336
|
}>;
|
|
6337
6337
|
origin: z$1.ZodEnum<{
|
|
6338
6338
|
builtin: "builtin";
|
|
6339
|
-
user: "user";
|
|
6340
6339
|
project: "project";
|
|
6340
|
+
user: "user";
|
|
6341
6341
|
}>;
|
|
6342
6342
|
label: z$1.ZodString;
|
|
6343
6343
|
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -6426,8 +6426,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6426
6426
|
}>;
|
|
6427
6427
|
origin: z$1.ZodEnum<{
|
|
6428
6428
|
builtin: "builtin";
|
|
6429
|
-
user: "user";
|
|
6430
6429
|
project: "project";
|
|
6430
|
+
user: "user";
|
|
6431
6431
|
}>;
|
|
6432
6432
|
label: z$1.ZodString;
|
|
6433
6433
|
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -6529,8 +6529,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6529
6529
|
}>;
|
|
6530
6530
|
origin: z$1.ZodEnum<{
|
|
6531
6531
|
builtin: "builtin";
|
|
6532
|
-
user: "user";
|
|
6533
6532
|
project: "project";
|
|
6533
|
+
user: "user";
|
|
6534
6534
|
}>;
|
|
6535
6535
|
label: z$1.ZodString;
|
|
6536
6536
|
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -6619,8 +6619,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6619
6619
|
}>;
|
|
6620
6620
|
origin: z$1.ZodEnum<{
|
|
6621
6621
|
builtin: "builtin";
|
|
6622
|
-
user: "user";
|
|
6623
6622
|
project: "project";
|
|
6623
|
+
user: "user";
|
|
6624
6624
|
}>;
|
|
6625
6625
|
label: z$1.ZodString;
|
|
6626
6626
|
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -6674,16 +6674,16 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6674
6674
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6675
6675
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
6676
6676
|
permissionEscalation: z$1.ZodEnum<{
|
|
6677
|
-
deny: "deny";
|
|
6678
6677
|
ask: "ask";
|
|
6678
|
+
deny: "deny";
|
|
6679
6679
|
}>;
|
|
6680
6680
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6681
6681
|
permissionMode: z$1.ZodLiteral<"auto">;
|
|
6682
6682
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6683
6683
|
approvalReviewer: z$1.ZodLiteral<"automatic">;
|
|
6684
6684
|
permissionEscalation: z$1.ZodEnum<{
|
|
6685
|
-
deny: "deny";
|
|
6686
6685
|
ask: "ask";
|
|
6686
|
+
deny: "deny";
|
|
6687
6687
|
}>;
|
|
6688
6688
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6689
6689
|
permissionMode: z$1.ZodLiteral<"full">;
|
|
@@ -6702,8 +6702,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6702
6702
|
providerInstallation: z$1.ZodBoolean;
|
|
6703
6703
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6704
6704
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6705
|
-
auto: "auto";
|
|
6706
6705
|
"accept-edits": "accept-edits";
|
|
6706
|
+
auto: "auto";
|
|
6707
6707
|
full: "full";
|
|
6708
6708
|
}>>;
|
|
6709
6709
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6721,9 +6721,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6721
6721
|
workspaceContext: z$1.ZodObject<{
|
|
6722
6722
|
workspacePath: z$1.ZodString;
|
|
6723
6723
|
}, z$1.core.$strip>;
|
|
6724
|
-
projectId: z$1.ZodString;
|
|
6725
|
-
providerThreadId: z$1.ZodString;
|
|
6726
|
-
providerId: z$1.ZodString;
|
|
6727
6724
|
bridgeLaunch: z$1.ZodObject<{
|
|
6728
6725
|
pluginId: z$1.ZodString;
|
|
6729
6726
|
source: z$1.ZodObject<{
|
|
@@ -6735,8 +6732,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6735
6732
|
providerInstallation: z$1.ZodBoolean;
|
|
6736
6733
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6737
6734
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6738
|
-
auto: "auto";
|
|
6739
6735
|
"accept-edits": "accept-edits";
|
|
6736
|
+
auto: "auto";
|
|
6740
6737
|
full: "full";
|
|
6741
6738
|
}>>;
|
|
6742
6739
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6751,9 +6748,11 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6751
6748
|
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6752
6749
|
}, z$1.core.$strict>;
|
|
6753
6750
|
instructionMode: z$1.ZodEnum<{
|
|
6754
|
-
replace: "replace";
|
|
6755
6751
|
append: "append";
|
|
6752
|
+
replace: "replace";
|
|
6756
6753
|
}>;
|
|
6754
|
+
projectId: z$1.ZodString;
|
|
6755
|
+
providerId: z$1.ZodString;
|
|
6757
6756
|
instructions: z$1.ZodString;
|
|
6758
6757
|
dynamicTools: z$1.ZodArray<z$1.ZodObject<{
|
|
6759
6758
|
name: z$1.ZodString;
|
|
@@ -6829,6 +6828,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6829
6828
|
sourceRootPath: z$1.ZodString;
|
|
6830
6829
|
skillFilePath: z$1.ZodString;
|
|
6831
6830
|
}, z$1.core.$strict>], "kind">>;
|
|
6831
|
+
providerThreadId: z$1.ZodString;
|
|
6832
6832
|
}, z$1.core.$strict>;
|
|
6833
6833
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6834
6834
|
mode: z$1.ZodLiteral<"start">;
|
|
@@ -6890,16 +6890,16 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6890
6890
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6891
6891
|
approvalReviewer: z$1.ZodLiteral<"user">;
|
|
6892
6892
|
permissionEscalation: z$1.ZodEnum<{
|
|
6893
|
-
deny: "deny";
|
|
6894
6893
|
ask: "ask";
|
|
6894
|
+
deny: "deny";
|
|
6895
6895
|
}>;
|
|
6896
6896
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6897
6897
|
permissionMode: z$1.ZodLiteral<"auto">;
|
|
6898
6898
|
permissionScope: z$1.ZodLiteral<"workspace">;
|
|
6899
6899
|
approvalReviewer: z$1.ZodLiteral<"automatic">;
|
|
6900
6900
|
permissionEscalation: z$1.ZodEnum<{
|
|
6901
|
-
deny: "deny";
|
|
6902
6901
|
ask: "ask";
|
|
6902
|
+
deny: "deny";
|
|
6903
6903
|
}>;
|
|
6904
6904
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6905
6905
|
permissionMode: z$1.ZodLiteral<"full">;
|
|
@@ -6918,8 +6918,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6918
6918
|
providerInstallation: z$1.ZodBoolean;
|
|
6919
6919
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6920
6920
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6921
|
-
auto: "auto";
|
|
6922
6921
|
"accept-edits": "accept-edits";
|
|
6922
|
+
auto: "auto";
|
|
6923
6923
|
full: "full";
|
|
6924
6924
|
}>>;
|
|
6925
6925
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6937,9 +6937,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6937
6937
|
workspaceContext: z$1.ZodObject<{
|
|
6938
6938
|
workspacePath: z$1.ZodString;
|
|
6939
6939
|
}, z$1.core.$strip>;
|
|
6940
|
-
projectId: z$1.ZodString;
|
|
6941
|
-
providerThreadId: z$1.ZodString;
|
|
6942
|
-
providerId: z$1.ZodString;
|
|
6943
6940
|
bridgeLaunch: z$1.ZodObject<{
|
|
6944
6941
|
pluginId: z$1.ZodString;
|
|
6945
6942
|
source: z$1.ZodObject<{
|
|
@@ -6951,8 +6948,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6951
6948
|
providerInstallation: z$1.ZodBoolean;
|
|
6952
6949
|
supportsServiceTier: z$1.ZodBoolean;
|
|
6953
6950
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
6954
|
-
auto: "auto";
|
|
6955
6951
|
"accept-edits": "accept-edits";
|
|
6952
|
+
auto: "auto";
|
|
6956
6953
|
full: "full";
|
|
6957
6954
|
}>>;
|
|
6958
6955
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -6967,9 +6964,11 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6967
6964
|
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6968
6965
|
}, z$1.core.$strict>;
|
|
6969
6966
|
instructionMode: z$1.ZodEnum<{
|
|
6970
|
-
replace: "replace";
|
|
6971
6967
|
append: "append";
|
|
6968
|
+
replace: "replace";
|
|
6972
6969
|
}>;
|
|
6970
|
+
projectId: z$1.ZodString;
|
|
6971
|
+
providerId: z$1.ZodString;
|
|
6973
6972
|
instructions: z$1.ZodString;
|
|
6974
6973
|
dynamicTools: z$1.ZodArray<z$1.ZodObject<{
|
|
6975
6974
|
name: z$1.ZodString;
|
|
@@ -7045,6 +7044,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7045
7044
|
sourceRootPath: z$1.ZodString;
|
|
7046
7045
|
skillFilePath: z$1.ZodString;
|
|
7047
7046
|
}, z$1.core.$strict>], "kind">>;
|
|
7047
|
+
providerThreadId: z$1.ZodString;
|
|
7048
7048
|
}, z$1.core.$strict>;
|
|
7049
7049
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7050
7050
|
cleared: z$1.ZodBoolean;
|
|
@@ -7083,8 +7083,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7083
7083
|
providerInstallation: z$1.ZodBoolean;
|
|
7084
7084
|
supportsServiceTier: z$1.ZodBoolean;
|
|
7085
7085
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
7086
|
-
auto: "auto";
|
|
7087
7086
|
"accept-edits": "accept-edits";
|
|
7087
|
+
auto: "auto";
|
|
7088
7088
|
full: "full";
|
|
7089
7089
|
}>>;
|
|
7090
7090
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -7116,8 +7116,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7116
7116
|
providerInstallation: z$1.ZodBoolean;
|
|
7117
7117
|
supportsServiceTier: z$1.ZodBoolean;
|
|
7118
7118
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
7119
|
-
auto: "auto";
|
|
7120
7119
|
"accept-edits": "accept-edits";
|
|
7120
|
+
auto: "auto";
|
|
7121
7121
|
full: "full";
|
|
7122
7122
|
}>>;
|
|
7123
7123
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -7499,8 +7499,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7499
7499
|
skills: z$1.ZodArray<z$1.ZodObject<{
|
|
7500
7500
|
path: z$1.ZodString;
|
|
7501
7501
|
origin: z$1.ZodEnum<{
|
|
7502
|
-
user: "user";
|
|
7503
7502
|
project: "project";
|
|
7503
|
+
user: "user";
|
|
7504
7504
|
}>;
|
|
7505
7505
|
recursive: z$1.ZodBoolean;
|
|
7506
7506
|
ancestors: z$1.ZodBoolean;
|
|
@@ -7518,8 +7518,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7518
7518
|
commands: z$1.ZodArray<z$1.ZodObject<{
|
|
7519
7519
|
path: z$1.ZodString;
|
|
7520
7520
|
origin: z$1.ZodEnum<{
|
|
7521
|
-
user: "user";
|
|
7522
7521
|
project: "project";
|
|
7522
|
+
user: "user";
|
|
7523
7523
|
}>;
|
|
7524
7524
|
recursive: z$1.ZodBoolean;
|
|
7525
7525
|
ancestors: z$1.ZodBoolean;
|
|
@@ -7544,8 +7544,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7544
7544
|
skill: "skill";
|
|
7545
7545
|
}>;
|
|
7546
7546
|
origin: z$1.ZodEnum<{
|
|
7547
|
-
user: "user";
|
|
7548
7547
|
project: "project";
|
|
7548
|
+
user: "user";
|
|
7549
7549
|
}>;
|
|
7550
7550
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
7551
7551
|
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -7592,8 +7592,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7592
7592
|
skills: z$1.ZodArray<z$1.ZodObject<{
|
|
7593
7593
|
path: z$1.ZodString;
|
|
7594
7594
|
origin: z$1.ZodEnum<{
|
|
7595
|
-
user: "user";
|
|
7596
7595
|
project: "project";
|
|
7596
|
+
user: "user";
|
|
7597
7597
|
}>;
|
|
7598
7598
|
recursive: z$1.ZodBoolean;
|
|
7599
7599
|
ancestors: z$1.ZodBoolean;
|
|
@@ -7611,8 +7611,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7611
7611
|
commands: z$1.ZodArray<z$1.ZodObject<{
|
|
7612
7612
|
path: z$1.ZodString;
|
|
7613
7613
|
origin: z$1.ZodEnum<{
|
|
7614
|
-
user: "user";
|
|
7615
7614
|
project: "project";
|
|
7615
|
+
user: "user";
|
|
7616
7616
|
}>;
|
|
7617
7617
|
recursive: z$1.ZodBoolean;
|
|
7618
7618
|
ancestors: z$1.ZodBoolean;
|
|
@@ -7638,14 +7638,14 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7638
7638
|
realPath: z$1.ZodString;
|
|
7639
7639
|
contentSha256: z$1.ZodString;
|
|
7640
7640
|
rootKind: z$1.ZodEnum<{
|
|
7641
|
-
plugin: "plugin";
|
|
7642
7641
|
"shared-user": "shared-user";
|
|
7643
7642
|
"shared-project": "shared-project";
|
|
7643
|
+
plugin: "plugin";
|
|
7644
7644
|
"bb-project": "bb-project";
|
|
7645
|
+
"provider-user": "provider-user";
|
|
7646
|
+
"provider-project": "provider-project";
|
|
7645
7647
|
"bb-data-dir": "bb-data-dir";
|
|
7646
7648
|
"bb-builtin": "bb-builtin";
|
|
7647
|
-
"provider-project": "provider-project";
|
|
7648
|
-
"provider-user": "provider-user";
|
|
7649
7649
|
}>;
|
|
7650
7650
|
linked: z$1.ZodBoolean;
|
|
7651
7651
|
}, z$1.core.$strip>>;
|
|
@@ -7699,14 +7699,14 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7699
7699
|
realPath: z$1.ZodString;
|
|
7700
7700
|
contentSha256: z$1.ZodString;
|
|
7701
7701
|
rootKind: z$1.ZodEnum<{
|
|
7702
|
-
plugin: "plugin";
|
|
7703
7702
|
"shared-user": "shared-user";
|
|
7704
7703
|
"shared-project": "shared-project";
|
|
7704
|
+
plugin: "plugin";
|
|
7705
7705
|
"bb-project": "bb-project";
|
|
7706
|
+
"provider-user": "provider-user";
|
|
7707
|
+
"provider-project": "provider-project";
|
|
7706
7708
|
"bb-data-dir": "bb-data-dir";
|
|
7707
7709
|
"bb-builtin": "bb-builtin";
|
|
7708
|
-
"provider-project": "provider-project";
|
|
7709
|
-
"provider-user": "provider-user";
|
|
7710
7710
|
}>;
|
|
7711
7711
|
linked: z$1.ZodBoolean;
|
|
7712
7712
|
}, z$1.core.$strip>>;
|
|
@@ -7714,10 +7714,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7714
7714
|
"host.delete_skill": HostDaemonCommandDescriptor<"host.delete_skill", z$1.ZodObject<{
|
|
7715
7715
|
type: z$1.ZodLiteral<"host.delete_skill">;
|
|
7716
7716
|
scope: z$1.ZodEnum<{
|
|
7717
|
+
"bb-user": "bb-user";
|
|
7717
7718
|
"bb-project": "bb-project";
|
|
7718
|
-
"provider-project": "provider-project";
|
|
7719
7719
|
"provider-user": "provider-user";
|
|
7720
|
-
"
|
|
7720
|
+
"provider-project": "provider-project";
|
|
7721
7721
|
}>;
|
|
7722
7722
|
name: z$1.ZodString;
|
|
7723
7723
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -7728,8 +7728,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7728
7728
|
"host.write_skill": HostDaemonCommandDescriptor<"host.write_skill", z$1.ZodObject<{
|
|
7729
7729
|
type: z$1.ZodLiteral<"host.write_skill">;
|
|
7730
7730
|
scope: z$1.ZodEnum<{
|
|
7731
|
-
"bb-project": "bb-project";
|
|
7732
7731
|
"bb-user": "bb-user";
|
|
7732
|
+
"bb-project": "bb-project";
|
|
7733
7733
|
}>;
|
|
7734
7734
|
name: z$1.ZodString;
|
|
7735
7735
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -7826,8 +7826,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7826
7826
|
selectedBranch: z$1.ZodOptional<z$1.ZodString>;
|
|
7827
7827
|
limit: z$1.ZodNumber;
|
|
7828
7828
|
remoteRefresh: z$1.ZodEnum<{
|
|
7829
|
-
background: "background";
|
|
7830
7829
|
none: "none";
|
|
7830
|
+
background: "background";
|
|
7831
7831
|
}>;
|
|
7832
7832
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7833
7833
|
branches: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -7871,8 +7871,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7871
7871
|
base64: "base64";
|
|
7872
7872
|
utf8: "utf8";
|
|
7873
7873
|
}>;
|
|
7874
|
-
sizeBytes: z$1.ZodNumber;
|
|
7875
7874
|
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7875
|
+
sizeBytes: z$1.ZodNumber;
|
|
7876
7876
|
sha256: z$1.ZodString;
|
|
7877
7877
|
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7878
7878
|
notModified: z$1.ZodLiteral<true>;
|
|
@@ -7948,8 +7948,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7948
7948
|
providerInstallation: z$1.ZodBoolean;
|
|
7949
7949
|
supportsServiceTier: z$1.ZodBoolean;
|
|
7950
7950
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
7951
|
-
auto: "auto";
|
|
7952
7951
|
"accept-edits": "accept-edits";
|
|
7952
|
+
auto: "auto";
|
|
7953
7953
|
full: "full";
|
|
7954
7954
|
}>>;
|
|
7955
7955
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8078,8 +8078,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8078
8078
|
providerInstallation: z$1.ZodBoolean;
|
|
8079
8079
|
supportsServiceTier: z$1.ZodBoolean;
|
|
8080
8080
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8081
|
-
auto: "auto";
|
|
8082
8081
|
"accept-edits": "accept-edits";
|
|
8082
|
+
auto: "auto";
|
|
8083
8083
|
full: "full";
|
|
8084
8084
|
}>>;
|
|
8085
8085
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8115,8 +8115,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8115
8115
|
providerInstallation: z$1.ZodBoolean;
|
|
8116
8116
|
supportsServiceTier: z$1.ZodBoolean;
|
|
8117
8117
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8118
|
-
auto: "auto";
|
|
8119
8118
|
"accept-edits": "accept-edits";
|
|
8119
|
+
auto: "auto";
|
|
8120
8120
|
full: "full";
|
|
8121
8121
|
}>>;
|
|
8122
8122
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8138,10 +8138,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8138
8138
|
health: z$1.ZodObject<{
|
|
8139
8139
|
status: z$1.ZodEnum<{
|
|
8140
8140
|
unknown: "unknown";
|
|
8141
|
-
ready: "ready";
|
|
8142
8141
|
not_installed: "not_installed";
|
|
8143
8142
|
unauthenticated: "unauthenticated";
|
|
8144
8143
|
expired: "expired";
|
|
8144
|
+
ready: "ready";
|
|
8145
8145
|
unsupported_version: "unsupported_version";
|
|
8146
8146
|
}>;
|
|
8147
8147
|
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8169,8 +8169,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8169
8169
|
providerInstallation: z$1.ZodBoolean;
|
|
8170
8170
|
supportsServiceTier: z$1.ZodBoolean;
|
|
8171
8171
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8172
|
-
auto: "auto";
|
|
8173
8172
|
"accept-edits": "accept-edits";
|
|
8173
|
+
auto: "auto";
|
|
8174
8174
|
full: "full";
|
|
8175
8175
|
}>>;
|
|
8176
8176
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8189,9 +8189,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8189
8189
|
executablePath: z$1.ZodNullable<z$1.ZodString>;
|
|
8190
8190
|
installed: z$1.ZodBoolean;
|
|
8191
8191
|
installSource: z$1.ZodEnum<{
|
|
8192
|
+
external: "external";
|
|
8192
8193
|
notInstalled: "notInstalled";
|
|
8193
8194
|
npmGlobal: "npmGlobal";
|
|
8194
|
-
external: "external";
|
|
8195
8195
|
}>;
|
|
8196
8196
|
currentVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8197
8197
|
latestVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8230,8 +8230,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8230
8230
|
providerInstallation: z$1.ZodBoolean;
|
|
8231
8231
|
supportsServiceTier: z$1.ZodBoolean;
|
|
8232
8232
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8233
|
-
auto: "auto";
|
|
8234
8233
|
"accept-edits": "accept-edits";
|
|
8234
|
+
auto: "auto";
|
|
8235
8235
|
full: "full";
|
|
8236
8236
|
}>>;
|
|
8237
8237
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8284,8 +8284,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8284
8284
|
providerInstallation: z$1.ZodBoolean;
|
|
8285
8285
|
supportsServiceTier: z$1.ZodBoolean;
|
|
8286
8286
|
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8287
|
-
auto: "auto";
|
|
8288
8287
|
"accept-edits": "accept-edits";
|
|
8288
|
+
auto: "auto";
|
|
8289
8289
|
full: "full";
|
|
8290
8290
|
}>>;
|
|
8291
8291
|
supportsThreadArchive: z$1.ZodBoolean;
|
|
@@ -8740,9 +8740,9 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
|
|
|
8740
8740
|
executablePath: z$1.ZodNullable<z$1.ZodString>;
|
|
8741
8741
|
installed: z$1.ZodBoolean;
|
|
8742
8742
|
installSource: z$1.ZodEnum<{
|
|
8743
|
+
external: "external";
|
|
8743
8744
|
notInstalled: "notInstalled";
|
|
8744
8745
|
npmGlobal: "npmGlobal";
|
|
8745
|
-
external: "external";
|
|
8746
8746
|
}>;
|
|
8747
8747
|
currentVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8748
8748
|
latestVersion: z$1.ZodNullable<z$1.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halcyonlabs/app",
|
|
3
|
-
"version": "0.47.0-halcyon.
|
|
3
|
+
"version": "0.47.0-halcyon.624",
|
|
4
4
|
"description": "Moonlet app launcher for npx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bb",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"node": "^22.19.0 || ^24.0.0 || ^26.0.0"
|
|
109
109
|
},
|
|
110
110
|
"moonletRelease": {
|
|
111
|
-
"summary": "
|
|
111
|
+
"summary": "Check GitHub for changes every minute, within its rate limits (#666)"
|
|
112
112
|
},
|
|
113
113
|
"license": "SEE LICENSE IN LICENSE"
|
|
114
114
|
}
|
|
@@ -4,28 +4,32 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
var sn=Object.create;var ne=Object.defineProperty;var on=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var cn=Object.getPrototypeOf,un=Object.prototype.hasOwnProperty;var c=(e,n)=>ne(e,"name",{value:n,configurable:!0}),_=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var C=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(i){throw n=0,i}};var ln=(e,n,i,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of an(n))!un.call(e,l)&&l!==i&&ne(e,l,{get:()=>n[l],enumerable:!(u=on(n,l))||u.enumerable});return e};var dn=(e,n,i)=>(i=e!=null?sn(cn(e)):{},ln(n||!e||!e.__esModule?ne(i,"default",{value:e,enumerable:!0}):i,e));var Me=C(($r,De)=>{De.exports=Le;Le.sync=mn;var Oe=_("fs");function pn(e,n){var i=n.pathExt!==void 0?n.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var u=0;u<i.length;u++){var l=i[u].toLowerCase();if(l&&e.substr(-l.length).toLowerCase()===l)return!0}return!1}c(pn,"checkPathExt");function _e(e,n,i){return!e.isSymbolicLink()&&!e.isFile()?!1:pn(n,i)}c(_e,"checkStat");function Le(e,n,i){Oe.stat(e,function(u,l){i(u,u?!1:_e(l,e,n))})}c(Le,"isexe");function mn(e,n){return _e(Oe.statSync(e),e,n)}c(mn,"sync")});var He=C((Tr,Ue)=>{Ue.exports=Ge;Ge.sync=fn;var Fe=_("fs");function Ge(e,n,i){Fe.stat(e,function(u,l){i(u,u?!1:qe(l,n))})}c(Ge,"isexe");function fn(e,n){return qe(Fe.statSync(e),n)}c(fn,"sync");function qe(e,n){return e.isFile()&&hn(e,n)}c(qe,"checkStat");function hn(e,n){var i=e.mode,u=e.uid,l=e.gid,g=n.uid!==void 0?n.uid:process.getuid&&process.getuid(),f=n.gid!==void 0?n.gid:process.getgid&&process.getgid(),y=parseInt("100",8),S=parseInt("010",8),b=parseInt("001",8),P=y|S,N=i&b||i&S&&l===f||i&y&&u===g||i&P&&g===0;return N}c(hn,"checkMode")});var ze=C((Lr,We)=>{var _r=_("fs"),V;process.platform==="win32"||global.TESTING_WINDOWS?V=Me():V=He();We.exports=re;re.sync=gn;function re(e,n,i){if(typeof n=="function"&&(i=n,n={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(u,l){re(e,n||{},function(g,f){g?l(g):u(f)})})}V(e,n||{},function(u,l){u&&(u.code==="EACCES"||n&&n.ignoreErrors)&&(u=null,l=!1),i(u,l)})}c(re,"isexe");function gn(e,n){try{return V.sync(e,n||{})}catch(i){if(n&&n.ignoreErrors||i.code==="EACCES")return!1;throw i}}c(gn,"sync")});var Ze=C((Mr,Ye)=>{var M=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ve=_("path"),bn=M?";":":",Be=ze(),Je=c(e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),"getNotFoundError"),Ke=c((e,n)=>{let i=n.colon||bn,u=e.match(/\//)||M&&e.match(/\\/)?[""]:[...M?[process.cwd()]:[],...(n.path||process.env.PATH||"").split(i)],l=M?n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=M?l.split(i):[""];return M&&e.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:u,pathExt:g,pathExtExe:l}},"getPathInfo"),Xe=c((e,n,i)=>{typeof n=="function"&&(i=n,n={}),n||(n={});let{pathEnv:u,pathExt:l,pathExtExe:g}=Ke(e,n),f=[],y=c(b=>new Promise((P,N)=>{if(b===u.length)return n.all&&f.length?P(f):N(Je(e));let j=u[b],T=/^".*"$/.test(j)?j.slice(1,-1):j,A=Ve.join(T,e),D=!T&&/^\.[\\\/]/.test(e)?e.slice(0,2)+A:A;P(S(D,b,0))}),"step"),S=c((b,P,N)=>new Promise((j,T)=>{if(N===l.length)return j(y(P+1));let A=l[N];Be(b+A,{pathExt:g},(D,U)=>{if(!D&&U)if(n.all)f.push(b+A);else return j(b+A);return j(S(b,P,N+1))})}),"subStep");return i?y(0).then(b=>i(null,b),i):y(0)},"which"),wn=c((e,n)=>{n=n||{};let{pathEnv:i,pathExt:u,pathExtExe:l}=Ke(e,n),g=[];for(let f=0;f<i.length;f++){let y=i[f],S=/^".*"$/.test(y)?y.slice(1,-1):y,b=Ve.join(S,e),P=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+b:b;for(let N=0;N<u.length;N++){let j=P+u[N];try{if(Be.sync(j,{pathExt:l}))if(n.all)g.push(j);else return j}catch{}}}if(n.all&&g.length)return g;if(n.nothrow)return null;throw Je(e)},"whichSync");Ye.exports=Xe;Xe.sync=wn});var et=C((Gr,se)=>{"use strict";var Qe=c((e={})=>{let n=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(n).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"},"pathKey");se.exports=Qe;se.exports.default=Qe});var st=C((Ur,rt)=>{"use strict";var tt=_("path"),yn=Ze(),Sn=et();function nt(e,n){let i=e.options.env||process.env,u=process.cwd(),l=e.options.cwd!=null,g=l&&process.chdir!==void 0&&!process.chdir.disabled;if(g)try{process.chdir(e.options.cwd)}catch{}let f;try{f=yn.sync(e.command,{path:i[Sn({env:i})],pathExt:n?tt.delimiter:void 0})}catch{}finally{g&&process.chdir(u)}return f&&(f=tt.resolve(l?e.options.cwd:"",f)),f}c(nt,"resolveCommandAttempt");function kn(e){return nt(e)||nt(e,!0)}c(kn,"resolveCommand");rt.exports=kn});var it=C((Wr,oe)=>{"use strict";var ie=/([()\][%!^"`<>&|;, *?])/g;function vn(e){return e=e.replace(ie,"^$1"),e}c(vn,"escapeCommand");function En(e,n){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ie,"^$1"),n&&(e=e.replace(ie,"^$1")),e}c(En,"escapeArgument");oe.exports.command=vn;oe.exports.argument=En});var at=C((Vr,ot)=>{"use strict";ot.exports=/^#!(.*)/});var ut=C((Br,ct)=>{"use strict";var Rn=at();ct.exports=(e="")=>{let n=e.match(Rn);if(!n)return null;let[i,u]=n[0].replace(/#! ?/,"").split(" "),l=i.split("/").pop();return l==="env"?u:u?`${l} ${u}`:l}});var dt=C((Jr,lt)=>{"use strict";var ae=_("fs"),Pn=ut();function An(e){let i=Buffer.alloc(150),u;try{u=ae.openSync(e,"r"),ae.readSync(u,i,0,150,0),ae.closeSync(u)}catch{}return Pn(i.toString())}c(An,"readShebang");lt.exports=An});var ht=C((Xr,ft)=>{"use strict";var Nn=_("path"),pt=st(),mt=it(),jn=dt(),In=process.platform==="win32",Cn=/\.(?:com|exe)$/i,$n=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function xn(e){e.file=pt(e);let n=e.file&&jn(e.file);return n?(e.args.unshift(e.file),e.command=n,pt(e)):e.file}c(xn,"detectShebang");function Tn(e){if(!In)return e;let n=xn(e),i=!Cn.test(n);if(e.options.forceShell||i){let u=$n.test(n);e.command=Nn.normalize(e.command),e.command=mt.command(e.command),e.args=e.args.map(g=>mt.argument(g,u));let l=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${l}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}c(Tn,"parseNonShell");function On(e,n,i){n&&!Array.isArray(n)&&(i=n,n=null),n=n?n.slice(0):[],i=Object.assign({},i);let u={command:e,args:n,options:i,file:void 0,original:{command:e,args:n}};return i.shell?u:Tn(u)}c(On,"parse");ft.exports=On});var wt=C((Zr,bt)=>{"use strict";var ce=process.platform==="win32";function ue(e,n){return Object.assign(new Error(`${n} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${n} ${e.command}`,path:e.command,spawnargs:e.args})}c(ue,"notFoundError");function _n(e,n){if(!ce)return;let i=e.emit;e.emit=function(u,l){if(u==="exit"){let g=gt(l,n);if(g)return i.call(e,"error",g)}return i.apply(e,arguments)}}c(_n,"hookChildProcess");function gt(e,n){return ce&&e===1&&!n.file?ue(n.original,"spawn"):null}c(gt,"verifyENOENT");function Ln(e,n){return ce&&e===1&&!n.file?ue(n.original,"spawnSync"):null}c(Ln,"verifyENOENTSync");bt.exports={hookChildProcess:_n,verifyENOENT:gt,verifyENOENTSync:Ln,notFoundError:ue}});var kt=C((es,F)=>{"use strict";var yt=_("child_process"),le=ht(),de=wt();function St(e,n,i){let u=le(e,n,i),l=yt.spawn(u.command,u.args,u.options);return de.hookChildProcess(l,u),l}c(St,"spawn");function Dn(e,n,i){let u=le(e,n,i),l=yt.spawnSync(u.command,u.args,u.options);return l.error=l.error||de.verifyENOENTSync(l.status,u),l}c(Dn,"spawnSync");F.exports=St;F.exports.spawn=St;F.exports.sync=Dn;F.exports._parse=le;F.exports._enoent=de});import{z as G}from"zod";import{z as w}from"zod";var er=dn(kt());import Yn from"node:path";import{z as R}from"zod";import{AsyncLocalStorage as It}from"node:async_hooks";import{availableParallelism as tr}from"node:os";import{execFile as ur}from"node:child_process";import{promisify as lr}from"node:util";function Mn(e){if(e.length===0)return!1;let n=e.replaceAll("\\","/"),i=/^[a-zA-Z]:\//u.exec(n),u=i?n.slice(i[0].length):n.slice(1);return!i&&!n.startsWith("/")?!1:u.split("/").every(l=>l!==""&&l!=="."&&l!=="..")}c(Mn,"isAbsoluteProviderSkillRootPath");function xt(e){if(e.length===0)return!1;let n=e.replaceAll("\\","/");return!n.startsWith("/")&&!/^[a-zA-Z]:\//u.test(n)&&n.split("/").every(i=>i!==""&&i!=="."&&i!=="..")}c(xt,"isRelativeProviderSkillRootPath");var Fn=32,Gn=/^[A-Za-z0-9][A-Za-z0-9._-]{0,62}:$/u,fe=w.string().refine(e=>e===""||Gn.test(e),"A root name prefix is a plugin-name-like token ending in ':'"),he=w.string().min(1).refine(xt,"A manifest marker is a relative path without dot segments"),qn=w.string().min(1).refine(xt,"Roots must be relative paths without dot segments"),Un=w.string().min(1).refine(Mn,"Absolute roots must be absolute paths without dot segments"),vt=w.union([w.string().min(1),w.object({path:w.string().min(1),recursive:w.boolean().optional(),ancestors:w.boolean().optional(),namePrefix:fe.optional(),skipIfManifest:he.optional()}).strict()]),ss=w.object({user:w.array(vt).optional(),project:w.array(vt).optional()}).strict(),Hn=w.object({path:w.string().min(1),recursive:w.boolean(),ancestors:w.boolean(),namePrefix:fe,skipIfManifest:he.optional()}).strict();function Wn(e){return new Set(e.map(n=>n.path)).size===e.length}c(Wn,"uniqueByPath");function Et(e){return w.array(Hn.extend({path:qn}).superRefine((n,i)=>{n.ancestors&&e!=="project"&&i.addIssue({code:"custom",message:"Only project roots may walk ancestors"})})).max(Fn).refine(Wn,"Roots must not repeat a path")}c(Et,"nativeRootSideSchema");var Rt=w.object({user:Et("user"),project:Et("project")}).strict(),is=Object.freeze({user:Object.freeze([]),project:Object.freeze([])}),zn=w.enum(["skills","skill","skill-file","commands","command-file"]),Tt=w.object({path:Un,origin:w.enum(["user","project"]),recursive:w.boolean(),ancestors:w.boolean(),namePrefix:fe,shape:zn,fallbackName:w.string().min(1).optional(),skipIfManifest:he.optional()}).strict(),Pt=Tt.superRefine((e,n)=>{e.skipIfManifest!==void 0&&e.shape!=="skills"&&n.addIssue({code:"custom",message:"Only a skills root carries a manifest marker"}),e.ancestors&&e.origin!=="project"&&n.addIssue({code:"custom",message:"Only project roots may walk ancestors"}),e.fallbackName!==void 0&&e.shape!=="skill-file"&&n.addIssue({code:"custom",message:"Only a skill-file root carries a fallback name"})}),At=Tt.partial({recursive:!0,ancestors:!0,namePrefix:!0,shape:!0});function Nt(e,n){return{path:e.path,origin:e.origin,recursive:e.recursive??!1,ancestors:e.ancestors??!1,namePrefix:e.namePrefix??"",shape:e.shape??(n==="skills"?"skills":"commands"),...e.fallbackName===void 0?{}:{fallbackName:e.fallbackName},...n==="skills"&&e.skipIfManifest!==void 0?{skipIfManifest:e.skipIfManifest}:{}}}c(Nt,"normalizeProviderResolvedNativeRoot");var Vn=new Set(["skills","skill","skill-file"]),Bn=new Set(["commands","command-file"]),B=256,Ot=w.object({skills:w.array(Pt.refine(e=>Vn.has(e.shape),"A skills root needs a skill shape")).max(B),commands:w.array(Pt.refine(e=>Bn.has(e.shape),"A commands root needs a command shape")).max(B)}).strict(),os=Object.freeze({skills:Object.freeze([]),commands:Object.freeze([])}),as=w.object({skills:Rt,commands:Rt,resolved:Ot}).strict(),Jn=Symbol.for("@get-bb/plugin-sdk/rpc-refusal"),cs=class extends Error{static{c(this,"experimental_PluginRpcRefusal")}[Jn]=!0;code;issues;constructor(e){super(e.message),this.name="experimental_PluginRpcRefusal",this.code=e.code,this.issues=e.issues}};var Kn=G.object({providerId:G.string().min(1),cwd:G.string().min(1).nullable()}).strict(),Xn=G.object({skills:G.array(At).optional(),commands:G.array(At).optional()}).strict().transform(e=>({skills:(e.skills??[]).slice(0,B).map(n=>Nt(n,"skills")),commands:(e.commands??[]).slice(0,B).map(n=>Nt(n,"commands"))})).pipe(Ot);var us={resolveNativeRoots:{input:Kn,output:Xn}};var ps=Yn.join(".claude-plugin","plugin.json");var Zn=R.enum(["managed","project","local","user"]),ms=R.object({enabledPlugins:R.record(R.string(),R.boolean()).optional()}).passthrough(),Qn=R.object({gitCommitSha:R.string().nullable().optional(),installPath:R.string().min(1),scope:Zn}).passthrough(),fs=R.object({plugins:R.record(R.string(),R.array(Qn))}).passthrough(),jt=R.union([R.string(),R.array(R.string())]),hs=R.object({name:R.string().min(1).optional(),defaultEnabled:R.boolean().optional(),skills:jt.optional(),commands:jt.optional()}).passthrough();var Ct={interactive:0,status:1,background:2};function nr(e){let n=Math.min(6,Math.max(4,e-2));return[n,n-1,n-2]}c(nr,"localProcessCapacities");var $t={local:nr(tr()),network:[4,3,2]},rr=2,pe=15e3,sr=new Set(["fetch","pull","push","clone","ls-remote"]),ir=new Set(["-C","-c","--git-dir","--work-tree","--namespace","--config-env"]);function or(e){let n=0;for(;n<e.length&&e[n].startsWith("-");)n+=ir.has(e[n])?2:1;let i=e[n];if(i===void 0)return!1;if(sr.has(i))return!0;let u=e.slice(n+1).find(l=>!l.startsWith("-"));return(i==="submodule"||i==="remote")&&u==="update"}c(or,"isNetworkGitCommand");var ar=class{static{c(this,"VcsProcessScheduler")}priority=new It;admitted=new It;active={local:0,network:0};githubActive=0;queue=[];timer;acquire(e,n,i){let u=e==="gh"||or(n)?"network":"local",l=i.slots??1;return!Number.isInteger(l)||l<1||l>$t[u][Ct.background]?Promise.reject(new Error("Invalid VCS process slot count")):i.signal?.aborted?Promise.reject(this.abortError(i.signal)):new Promise((g,f)=>{let y={command:e,pool:u,priority:i.priority??this.priority.getStore()??"status",slots:l,queuedAt:performance.now(),signal:i.signal,grant:g,onAbort:c(()=>{let S=this.queue.indexOf(y);S!==-1&&(this.queue.splice(S,1),f(this.abortError(i.signal)),this.drain())},"onAbort")};this.queue.push(y),i.signal?.addEventListener("abort",y.onAbort,{once:!0}),this.drain()})}abortError(e){return Object.assign(new Error("The operation was aborted",{cause:e?.reason}),{name:"AbortError",code:"ABORT_ERR"})}rank(e){return Math.max(0,Ct[e.priority]-Math.floor((performance.now()-e.queuedAt)/pe))}drain(){clearTimeout(this.timer),this.queue.sort((n,i)=>this.rank(n)-this.rank(i)||n.queuedAt-i.queuedAt);let e=new Set;for(let n=0;n<this.queue.length;){let i=this.queue[n];if(e.has(i.pool)||i.command==="gh"&&this.githubActive+i.slots>rr){n+=1;continue}if(this.active[i.pool]+i.slots>$t[i.pool][this.rank(i)]){e.add(i.pool),n+=1;continue}this.queue.splice(n,1),i.signal?.removeEventListener("abort",i.onAbort),this.active[i.pool]+=i.slots,i.command==="gh"&&(this.githubActive+=i.slots);let u=!1;i.grant(()=>{u||(u=!0,this.active[i.pool]-=i.slots,i.command==="gh"&&(this.githubActive-=i.slots),this.drain())})}if(this.queue.length>0){let n=Math.min(...this.queue.map(i=>pe-(performance.now()-i.queuedAt)%pe));this.timer=setTimeout(()=>this.drain(),n)}}},cr=globalThis,me=cr.__bbVcsProcessScheduler??=new ar;async function _t(e,n,i,u={}){if(me.admitted.getStore())return u.signal?.throwIfAborted(),i();let l=await me.acquire(e,n,u);try{return u.signal?.throwIfAborted(),await me.admitted.run(!0,i)}finally{l()}}c(_t,"runVcsProcess");var Ss=lr(ur);import{execFile as dr}from"node:child_process";import{defineRpcContract as pr,PluginCliError as Se,cliCommand as ge,defineCli as mr}from"@get-bb/plugin-sdk";import{z as t}from"zod";var fr=15*6e4,hr=5*6e4,gr=3e4,zt=100,Vt=50,Bt=50,Jt=30,Lt="Install the GitHub CLI (https://cli.github.com) and run `gh auth login`, then `moonlet plugin reload github`.",x=t.string().regex(/^[\w.-]+\/[\w.-]+$/),L=t.number().int().positive(),O=t.object({repo:x,number:L}).strict(),be=t.string().refine(e=>e.trim().length>0,"must not be blank"),br=t.object({repo:x,projectId:t.string().nullable()}).strict(),wr=t.object({repo:x,number:L,kind:t.enum(["issue","pr"]),title:t.string(),state:t.string(),author:t.string(),labels:t.array(t.string()),assignees:t.array(t.string()),url:t.string(),body:t.string(),updatedAt:t.string()}).strict(),yr=t.object({repos:t.number().int().nonnegative(),items:t.number().int().nonnegative()}).strict(),we=t.object({ok:t.literal(!0)}).strict(),ke=t.object({author:t.string(),body:t.string(),createdAt:t.string()}).strict(),Sr=t.object({kind:t.enum(["issue","pr"]),repo:x,number:L,threadId:t.string().min(1),createdAt:t.string()}).strict(),kr=t.object({repo:x,number:L,title:t.string(),state:t.string(),author:t.string(),body:t.string(),url:t.string(),createdAt:t.string(),updatedAt:t.string(),baseRefName:t.string(),headRefName:t.string(),additions:t.number().nonnegative(),deletions:t.number().nonnegative(),changedFiles:t.number().int().nonnegative(),labels:t.array(t.string()),assignees:t.array(t.string()),reviewDecision:t.string(),mergeStateStatus:t.string(),reviewRequests:t.array(t.string()),checks:t.array(t.object({name:t.string(),status:t.enum(["success","failure","pending","neutral"]),url:t.string()}).strict()),comments:t.array(ke),reviews:t.array(t.object({author:t.string(),state:t.string(),body:t.string(),createdAt:t.string()}).strict()),reviewThreads:t.array(t.object({path:t.string(),line:t.number().int().nonnegative().nullable(),diffHunk:t.string(),comments:t.array(ke)}).strict()),files:t.array(t.object({path:t.string(),status:t.string(),additions:t.number().nonnegative(),deletions:t.number().nonnegative(),patch:t.string().nullable()}).strict())}).strict(),vr=pr({status:{input:t.null(),output:t.object({ghOk:t.boolean(),ghState:t.enum(["ready","needs_configuration","unavailable"]),ghError:t.string().nullable(),repos:t.array(br),lastSyncedAt:t.string().nullable()}).strict()},refresh:{input:t.null(),output:yr},listItems:{input:t.object({kind:t.enum(["issue","pr"]).optional(),repo:x.optional(),query:t.string().optional(),state:t.enum(["open","closed"]).optional(),mine:t.boolean().optional()}).strict(),output:t.object({items:t.array(wr)}).strict()},viewer:{input:t.null(),output:t.object({login:t.string().min(1)}).strict()},assignableUsers:{input:t.object({repo:x}).strict(),output:t.object({users:t.array(t.string().min(1))}).strict()},repositoryLabels:{input:t.object({repo:x}).strict(),output:t.object({labels:t.array(t.string().min(1))}).strict()},setIssueState:{input:O.extend({state:t.enum(["open","closed"])}).strict(),output:we},setAssignees:{input:O.extend({assignees:t.array(t.string().min(1))}).strict(),output:t.object({ok:t.literal(!0),assignees:t.array(t.string().min(1))}).strict()},setLabels:{input:O.extend({labels:t.array(t.string())}).strict(),output:t.object({ok:t.literal(!0),labels:t.array(t.string().min(1))}).strict()},getIssue:{input:O,output:t.object({issue:t.object({repo:x,number:L,title:t.string(),state:t.string(),author:t.string(),body:t.string(),labels:t.array(t.string()),assignees:t.array(t.string()),url:t.string(),updatedAt:t.string(),comments:t.array(ke)}).strict()}).strict()},getPull:{input:O,output:t.object({pull:kr}).strict()},commentPull:{input:O.extend({body:be}).strict(),output:we},pullForThread:{input:t.object({threadId:t.string().min(1)}).strict(),output:t.object({pull:t.object({repo:x,number:L,environmentId:t.string().nullable()}).strict().nullable()}).strict()},commentIssue:{input:O.extend({body:be}).strict(),output:we},createIssue:{input:t.object({repo:x,title:be,body:t.string().optional()}).strict(),output:t.object({number:L.nullable(),url:t.string()}).strict()},startWork:{input:O,output:t.object({threadId:t.string().min(1)}).strict()},startReview:{input:O,output:t.object({threadId:t.string().min(1)}).strict()},listLinks:{input:t.null(),output:t.object({links:t.record(t.string(),t.array(Sr))}).strict()}});function q(e){return e instanceof Error?e.message:String(e)}c(q,"errorMessage");function Dt(e){return Object.assign(new Error(e),{name:"NeedsConfigurationError"})}c(Dt,"needsConfiguration");function Mt(e){return e instanceof Error&&e.name==="NeedsConfigurationError"}c(Mt,"isNeedsConfigurationError");function Ft(e){return Object.assign(new Error(e),{name:"GhUnavailableError"})}c(Ft,"ghUnavailable");function Gt(e){return e instanceof Error&&e.name==="GhUnavailableError"}c(Gt,"isGhUnavailableError");var Er=/no oauth token|not logged in/i,ve="github.com";function Rr(e){let n=e.trim().match(/github\.com[:/]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/);return n===null?null:`${n[1]}/${n[2]}`}c(Rr,"parseGithubRemote");function Kt(e){return typeof e=="string"&&/^[\w.-]+\/[\w.-]+$/.test(e)}c(Kt,"isRepoName");function qt(e){let n=[],i=[];for(let u of e.split(/[\s,]+/))u!==""&&(Kt(u)?n.includes(u)||n.push(u):i.includes(u)||i.push(u));return{repos:n,ignored:i}}c(qt,"parseExtraRepos");function Ut(e){return`ignoring ${e.length} extraRepos ${e.length===1?"entry":"entries"} that ${e.length===1?"is":"are"} not "owner/repo": ${e.join(", ")}`}c(Ut,"describeIgnoredExtraRepos");var Pr=t.record(t.string(),t.union([t.object({outcome:t.literal("available"),pullRequest:t.object({url:t.string()})}),t.object({outcome:t.enum(["absent","unavailable"])})]));function ye(e,n,i=3e4,u="background"){return _t(e==="git"?"git":"gh",n,()=>new Promise((l,g)=>{dr(e,n,{timeout:i,maxBuffer:16*1024*1024},(f,y,S)=>{f?g(new Error(`${e} ${n.slice(0,3).join(" ")} failed: ${S.trim()||f.message}`)):l({stdout:y,stderr:S})})}),{priority:u})}c(ye,"run");function Ht(e){let n=JSON.parse(e);if(!Array.isArray(n))throw new Error("GitHub API pagination returned a non-array response");let i=[];for(let u of n){if(!Array.isArray(u))throw new Error("GitHub API pagination returned a malformed page");for(let l of u){if(typeof l!="object"||l===null||Array.isArray(l))throw new Error("GitHub API pagination returned a malformed row");i.push(l)}}return i}c(Ht,"parsePaginatedGhApi");function Ar(e){if(e!==void 0){if(!Kt(e))throw new Se(`Invalid repository "${e}"; expected owner/repo.`,{code:"invalid_repository"});return e}}c(Ar,"requireRepoName");var J=t.object({number:L,title:t.string(),state:t.enum(["OPEN","CLOSED","MERGED"]),author:t.object({login:t.string(),id:t.string().optional()}).nullable(),labels:t.object({nodes:t.array(t.object({name:t.string()})).max(100)}),assignees:t.object({nodes:t.array(t.object({login:t.string()})).max(100)}),url:t.string(),body:t.string(),updatedAt:t.string()}),Nr=t.object({data:t.object({repository:t.object({hasIssuesEnabled:t.boolean(),openIssues:t.object({nodes:t.array(J.extend({state:t.literal("OPEN")})).max(zt)}),closedIssues:t.object({nodes:t.array(J.extend({state:t.literal("CLOSED")})).max(Vt)}),openPrs:t.object({nodes:t.array(J.extend({state:t.literal("OPEN")})).max(Bt)}),closedPrs:t.object({nodes:t.array(J.extend({state:t.enum(["CLOSED","MERGED"])})).max(Jt)})})}),errors:t.array(t.unknown()).max(0).optional()}),K=`
|
|
7
|
+
var $n=Object.create;var me=Object.defineProperty;var Tn=Object.getOwnPropertyDescriptor;var _n=Object.getOwnPropertyNames;var On=Object.getPrototypeOf,Ln=Object.prototype.hasOwnProperty;var c=(e,t)=>me(e,"name",{value:t,configurable:!0}),M=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,s)=>(typeof require<"u"?require:t)[s]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var C=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(s){throw t=0,s}};var Dn=(e,t,s,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of _n(t))!Ln.call(e,d)&&d!==s&&me(e,d,{get:()=>t[d],enumerable:!(u=Tn(t,d))||u.enumerable});return e};var Mn=(e,t,s)=>(s=e!=null?$n(On(e)):{},Dn(t||!e||!e.__esModule?me(s,"default",{value:e,enumerable:!0}):s,e));var rt=C((as,nt)=>{nt.exports=tt;tt.sync=Fn;var Qe=M("fs");function Gn(e,t){var s=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!s||(s=s.split(";"),s.indexOf("")!==-1))return!0;for(var u=0;u<s.length;u++){var d=s[u].toLowerCase();if(d&&e.substr(-d.length).toLowerCase()===d)return!0}return!1}c(Gn,"checkPathExt");function et(e,t,s){return!e.isSymbolicLink()&&!e.isFile()?!1:Gn(t,s)}c(et,"checkStat");function tt(e,t,s){Qe.stat(e,function(u,d){s(u,u?!1:et(d,e,t))})}c(tt,"isexe");function Fn(e,t){return et(Qe.statSync(e),e,t)}c(Fn,"sync")});var ct=C((us,at)=>{at.exports=it;it.sync=Hn;var st=M("fs");function it(e,t,s){st.stat(e,function(u,d){s(u,u?!1:ot(d,t))})}c(it,"isexe");function Hn(e,t){return ot(st.statSync(e),t)}c(Hn,"sync");function ot(e,t){return e.isFile()&&qn(e,t)}c(ot,"checkStat");function qn(e,t){var s=e.mode,u=e.uid,d=e.gid,g=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),b=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),S=parseInt("100",8),E=parseInt("010",8),h=parseInt("001",8),A=S|E,I=s&h||s&E&&d===b||s&S&&u===g||s&A&&g===0;return I}c(qn,"checkMode")});var lt=C((ps,ut)=>{var ds=M("fs"),Q;process.platform==="win32"||global.TESTING_WINDOWS?Q=rt():Q=ct();ut.exports=fe;fe.sync=Un;function fe(e,t,s){if(typeof t=="function"&&(s=t,t={}),!s){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(u,d){fe(e,t||{},function(g,b){g?d(g):u(b)})})}Q(e,t||{},function(u,d){u&&(u.code==="EACCES"||t&&t.ignoreErrors)&&(u=null,d=!1),s(u,d)})}c(fe,"isexe");function Un(e,t){try{return Q.sync(e,t||{})}catch(s){if(t&&t.ignoreErrors||s.code==="EACCES")return!1;throw s}}c(Un,"sync")});var bt=C((fs,gt)=>{var U=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",dt=M("path"),Wn=U?";":":",pt=lt(),mt=c(e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),"getNotFoundError"),ft=c((e,t)=>{let s=t.colon||Wn,u=e.match(/\//)||U&&e.match(/\\/)?[""]:[...U?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(s)],d=U?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=U?d.split(s):[""];return U&&e.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:u,pathExt:g,pathExtExe:d}},"getPathInfo"),ht=c((e,t,s)=>{typeof t=="function"&&(s=t,t={}),t||(t={});let{pathEnv:u,pathExt:d,pathExtExe:g}=ft(e,t),b=[],S=c(h=>new Promise((A,I)=>{if(h===u.length)return t.all&&b.length?A(b):I(mt(e));let N=u[h],O=/^".*"$/.test(N)?N.slice(1,-1):N,T=dt.join(O,e),D=!O&&/^\.[\\\/]/.test(e)?e.slice(0,2)+T:T;A(E(D,h,0))}),"step"),E=c((h,A,I)=>new Promise((N,O)=>{if(I===d.length)return N(S(A+1));let T=d[I];pt(h+T,{pathExt:g},(D,B)=>{if(!D&&B)if(t.all)b.push(h+T);else return N(h+T);return N(E(h,A,I+1))})}),"subStep");return s?S(0).then(h=>s(null,h),s):S(0)},"which"),Vn=c((e,t)=>{t=t||{};let{pathEnv:s,pathExt:u,pathExtExe:d}=ft(e,t),g=[];for(let b=0;b<s.length;b++){let S=s[b],E=/^".*"$/.test(S)?S.slice(1,-1):S,h=dt.join(E,e),A=!E&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;for(let I=0;I<u.length;I++){let N=A+u[I];try{if(pt.sync(N,{pathExt:d}))if(t.all)g.push(N);else return N}catch{}}}if(t.all&&g.length)return g;if(t.nothrow)return null;throw mt(e)},"whichSync");gt.exports=ht;ht.sync=Vn});var yt=C((gs,he)=>{"use strict";var wt=c((e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(u=>u.toUpperCase()==="PATH")||"Path"},"pathKey");he.exports=wt;he.exports.default=wt});var Et=C((ws,vt)=>{"use strict";var St=M("path"),zn=bt(),Jn=yt();function kt(e,t){let s=e.options.env||process.env,u=process.cwd(),d=e.options.cwd!=null,g=d&&process.chdir!==void 0&&!process.chdir.disabled;if(g)try{process.chdir(e.options.cwd)}catch{}let b;try{b=zn.sync(e.command,{path:s[Jn({env:s})],pathExt:t?St.delimiter:void 0})}catch{}finally{g&&process.chdir(u)}return b&&(b=St.resolve(d?e.options.cwd:"",b)),b}c(kt,"resolveCommandAttempt");function Bn(e){return kt(e)||kt(e,!0)}c(Bn,"resolveCommand");vt.exports=Bn});var Rt=C((Ss,be)=>{"use strict";var ge=/([()\][%!^"`<>&|;, *?])/g;function Kn(e){return e=e.replace(ge,"^$1"),e}c(Kn,"escapeCommand");function Xn(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ge,"^$1"),t&&(e=e.replace(ge,"^$1")),e}c(Xn,"escapeArgument");be.exports.command=Kn;be.exports.argument=Xn});var At=C((vs,Pt)=>{"use strict";Pt.exports=/^#!(.*)/});var It=C((Es,Nt)=>{"use strict";var Yn=At();Nt.exports=(e="")=>{let t=e.match(Yn);if(!t)return null;let[s,u]=t[0].replace(/#! ?/,"").split(" "),d=s.split("/").pop();return d==="env"?u:u?`${d} ${u}`:d}});var jt=C((Rs,xt)=>{"use strict";var we=M("fs"),Zn=It();function Qn(e){let s=Buffer.alloc(150),u;try{u=we.openSync(e,"r"),we.readSync(u,s,0,150,0),we.closeSync(u)}catch{}return Zn(s.toString())}c(Qn,"readShebang");xt.exports=Qn});var _t=C((As,Tt)=>{"use strict";var er=M("path"),Ct=Et(),$t=Rt(),tr=jt(),nr=process.platform==="win32",rr=/\.(?:com|exe)$/i,sr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ir(e){e.file=Ct(e);let t=e.file&&tr(e.file);return t?(e.args.unshift(e.file),e.command=t,Ct(e)):e.file}c(ir,"detectShebang");function or(e){if(!nr)return e;let t=ir(e),s=!rr.test(t);if(e.options.forceShell||s){let u=sr.test(t);e.command=er.normalize(e.command),e.command=$t.command(e.command),e.args=e.args.map(g=>$t.argument(g,u));let d=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${d}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}c(or,"parseNonShell");function ar(e,t,s){t&&!Array.isArray(t)&&(s=t,t=null),t=t?t.slice(0):[],s=Object.assign({},s);let u={command:e,args:t,options:s,file:void 0,original:{command:e,args:t}};return s.shell?u:or(u)}c(ar,"parse");Tt.exports=ar});var Dt=C((Is,Lt)=>{"use strict";var ye=process.platform==="win32";function Se(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}c(Se,"notFoundError");function cr(e,t){if(!ye)return;let s=e.emit;e.emit=function(u,d){if(u==="exit"){let g=Ot(d,t);if(g)return s.call(e,"error",g)}return s.apply(e,arguments)}}c(cr,"hookChildProcess");function Ot(e,t){return ye&&e===1&&!t.file?Se(t.original,"spawn"):null}c(Ot,"verifyENOENT");function ur(e,t){return ye&&e===1&&!t.file?Se(t.original,"spawnSync"):null}c(ur,"verifyENOENTSync");Lt.exports={hookChildProcess:cr,verifyENOENT:Ot,verifyENOENTSync:ur,notFoundError:Se}});var Ft=C((js,W)=>{"use strict";var Mt=M("child_process"),ke=_t(),ve=Dt();function Gt(e,t,s){let u=ke(e,t,s),d=Mt.spawn(u.command,u.args,u.options);return ve.hookChildProcess(d,u),d}c(Gt,"spawn");function lr(e,t,s){let u=ke(e,t,s),d=Mt.spawnSync(u.command,u.args,u.options);return d.error=d.error||ve.verifyENOENTSync(d.status,u),d}c(lr,"spawnSync");W.exports=Gt;W.exports.spawn=Gt;W.exports.sync=lr;W.exports._parse=ke;W.exports._enoent=ve});import{z as V}from"zod";import{z as k}from"zod";var Nr=Mn(Ft());import Rr from"node:path";import{z as P}from"zod";import{AsyncLocalStorage as Bt}from"node:async_hooks";import{availableParallelism as Ir}from"node:os";import{execFile as Lr}from"node:child_process";import{promisify as Dr}from"node:util";function dr(e){if(e.length===0)return!1;let t=e.replaceAll("\\","/"),s=/^[a-zA-Z]:\//u.exec(t),u=s?t.slice(s[0].length):t.slice(1);return!s&&!t.startsWith("/")?!1:u.split("/").every(d=>d!==""&&d!=="."&&d!=="..")}c(dr,"isAbsoluteProviderSkillRootPath");function Yt(e){if(e.length===0)return!1;let t=e.replaceAll("\\","/");return!t.startsWith("/")&&!/^[a-zA-Z]:\//u.test(t)&&t.split("/").every(s=>s!==""&&s!=="."&&s!=="..")}c(Yt,"isRelativeProviderSkillRootPath");var pr=32,mr=/^[A-Za-z0-9][A-Za-z0-9._-]{0,62}:$/u,Pe=k.string().refine(e=>e===""||mr.test(e),"A root name prefix is a plugin-name-like token ending in ':'"),Ae=k.string().min(1).refine(Yt,"A manifest marker is a relative path without dot segments"),fr=k.string().min(1).refine(Yt,"Roots must be relative paths without dot segments"),hr=k.string().min(1).refine(dr,"Absolute roots must be absolute paths without dot segments"),Ht=k.union([k.string().min(1),k.object({path:k.string().min(1),recursive:k.boolean().optional(),ancestors:k.boolean().optional(),namePrefix:Pe.optional(),skipIfManifest:Ae.optional()}).strict()]),_s=k.object({user:k.array(Ht).optional(),project:k.array(Ht).optional()}).strict(),gr=k.object({path:k.string().min(1),recursive:k.boolean(),ancestors:k.boolean(),namePrefix:Pe,skipIfManifest:Ae.optional()}).strict();function br(e){return new Set(e.map(t=>t.path)).size===e.length}c(br,"uniqueByPath");function qt(e){return k.array(gr.extend({path:fr}).superRefine((t,s)=>{t.ancestors&&e!=="project"&&s.addIssue({code:"custom",message:"Only project roots may walk ancestors"})})).max(pr).refine(br,"Roots must not repeat a path")}c(qt,"nativeRootSideSchema");var Ut=k.object({user:qt("user"),project:qt("project")}).strict(),Os=Object.freeze({user:Object.freeze([]),project:Object.freeze([])}),wr=k.enum(["skills","skill","skill-file","commands","command-file"]),Zt=k.object({path:hr,origin:k.enum(["user","project"]),recursive:k.boolean(),ancestors:k.boolean(),namePrefix:Pe,shape:wr,fallbackName:k.string().min(1).optional(),skipIfManifest:Ae.optional()}).strict(),Wt=Zt.superRefine((e,t)=>{e.skipIfManifest!==void 0&&e.shape!=="skills"&&t.addIssue({code:"custom",message:"Only a skills root carries a manifest marker"}),e.ancestors&&e.origin!=="project"&&t.addIssue({code:"custom",message:"Only project roots may walk ancestors"}),e.fallbackName!==void 0&&e.shape!=="skill-file"&&t.addIssue({code:"custom",message:"Only a skill-file root carries a fallback name"})}),Vt=Zt.partial({recursive:!0,ancestors:!0,namePrefix:!0,shape:!0});function zt(e,t){return{path:e.path,origin:e.origin,recursive:e.recursive??!1,ancestors:e.ancestors??!1,namePrefix:e.namePrefix??"",shape:e.shape??(t==="skills"?"skills":"commands"),...e.fallbackName===void 0?{}:{fallbackName:e.fallbackName},...t==="skills"&&e.skipIfManifest!==void 0?{skipIfManifest:e.skipIfManifest}:{}}}c(zt,"normalizeProviderResolvedNativeRoot");var yr=new Set(["skills","skill","skill-file"]),Sr=new Set(["commands","command-file"]),ee=256,Qt=k.object({skills:k.array(Wt.refine(e=>yr.has(e.shape),"A skills root needs a skill shape")).max(ee),commands:k.array(Wt.refine(e=>Sr.has(e.shape),"A commands root needs a command shape")).max(ee)}).strict(),Ls=Object.freeze({skills:Object.freeze([]),commands:Object.freeze([])}),Ds=k.object({skills:Ut,commands:Ut,resolved:Qt}).strict(),kr=Symbol.for("@get-bb/plugin-sdk/rpc-refusal"),Ms=class extends Error{static{c(this,"experimental_PluginRpcRefusal")}[kr]=!0;code;issues;constructor(e){super(e.message),this.name="experimental_PluginRpcRefusal",this.code=e.code,this.issues=e.issues}};var vr=V.object({providerId:V.string().min(1),cwd:V.string().min(1).nullable()}).strict(),Er=V.object({skills:V.array(Vt).optional(),commands:V.array(Vt).optional()}).strict().transform(e=>({skills:(e.skills??[]).slice(0,ee).map(t=>zt(t,"skills")),commands:(e.commands??[]).slice(0,ee).map(t=>zt(t,"commands"))})).pipe(Qt);var Gs={resolveNativeRoots:{input:vr,output:Er}};var qs=Rr.join(".claude-plugin","plugin.json");var Pr=P.enum(["managed","project","local","user"]),Us=P.object({enabledPlugins:P.record(P.string(),P.boolean()).optional()}).passthrough(),Ar=P.object({gitCommitSha:P.string().nullable().optional(),installPath:P.string().min(1),scope:Pr}).passthrough(),Ws=P.object({plugins:P.record(P.string(),P.array(Ar))}).passthrough(),Jt=P.union([P.string(),P.array(P.string())]),Vs=P.object({name:P.string().min(1).optional(),defaultEnabled:P.boolean().optional(),skills:Jt.optional(),commands:Jt.optional()}).passthrough();var Kt={interactive:0,status:1,background:2};function xr(e){let t=Math.min(6,Math.max(4,e-2));return[t,t-1,t-2]}c(xr,"localProcessCapacities");var Xt={local:xr(Ir()),network:[4,3,2]},jr=2,Ee=15e3,Cr=new Set(["fetch","pull","push","clone","ls-remote"]),$r=new Set(["-C","-c","--git-dir","--work-tree","--namespace","--config-env"]);function Tr(e){let t=0;for(;t<e.length&&e[t].startsWith("-");)t+=$r.has(e[t])?2:1;let s=e[t];if(s===void 0)return!1;if(Cr.has(s))return!0;let u=e.slice(t+1).find(d=>!d.startsWith("-"));return(s==="submodule"||s==="remote")&&u==="update"}c(Tr,"isNetworkGitCommand");var _r=class{static{c(this,"VcsProcessScheduler")}priority=new Bt;admitted=new Bt;active={local:0,network:0};githubActive=0;queue=[];timer;acquire(e,t,s){let u=e==="gh"||Tr(t)?"network":"local",d=s.slots??1;return!Number.isInteger(d)||d<1||d>Xt[u][Kt.background]?Promise.reject(new Error("Invalid VCS process slot count")):s.signal?.aborted?Promise.reject(this.abortError(s.signal)):new Promise((g,b)=>{let S={command:e,pool:u,priority:s.priority??this.priority.getStore()??"status",slots:d,queuedAt:performance.now(),signal:s.signal,grant:g,onAbort:c(()=>{let E=this.queue.indexOf(S);E!==-1&&(this.queue.splice(E,1),b(this.abortError(s.signal)),this.drain())},"onAbort")};this.queue.push(S),s.signal?.addEventListener("abort",S.onAbort,{once:!0}),this.drain()})}abortError(e){return Object.assign(new Error("The operation was aborted",{cause:e?.reason}),{name:"AbortError",code:"ABORT_ERR"})}rank(e){return Math.max(0,Kt[e.priority]-Math.floor((performance.now()-e.queuedAt)/Ee))}drain(){clearTimeout(this.timer),this.queue.sort((t,s)=>this.rank(t)-this.rank(s)||t.queuedAt-s.queuedAt);let e=new Set;for(let t=0;t<this.queue.length;){let s=this.queue[t];if(e.has(s.pool)||s.command==="gh"&&this.githubActive+s.slots>jr){t+=1;continue}if(this.active[s.pool]+s.slots>Xt[s.pool][this.rank(s)]){e.add(s.pool),t+=1;continue}this.queue.splice(t,1),s.signal?.removeEventListener("abort",s.onAbort),this.active[s.pool]+=s.slots,s.command==="gh"&&(this.githubActive+=s.slots);let u=!1;s.grant(()=>{u||(u=!0,this.active[s.pool]-=s.slots,s.command==="gh"&&(this.githubActive-=s.slots),this.drain())})}if(this.queue.length>0){let t=Math.min(...this.queue.map(s=>Ee-(performance.now()-s.queuedAt)%Ee));this.timer=setTimeout(()=>this.drain(),t)}}},Or=globalThis,Re=Or.__bbVcsProcessScheduler??=new _r;async function en(e,t,s,u={}){if(Re.admitted.getStore())return u.signal?.throwIfAborted(),s();let d=await Re.acquire(e,t,u);try{return u.signal?.throwIfAborted(),await Re.admitted.run(!0,s)}finally{d()}}c(en,"runVcsProcess");var Xs=Dr(Lr);import{execFile as Hr}from"node:child_process";import{defineRpcContract as qr,PluginCliError as Oe,cliCommand as xe,defineCli as Ur}from"@get-bb/plugin-sdk";import{z as r}from"zod";import{z as v}from"zod";var H=6e4,te=60*6e4,Ne=100,Mr=6e4;function tn(e){let t=e.replace(/\r\n/g,`
|
|
8
|
+
`),s=/^HTTP\/[\d.]+ (\d{3})/.exec(t);if(s===null)return null;let u=t.indexOf(`
|
|
9
|
+
|
|
10
|
+
`),d=u===-1?t:t.slice(0,u),g=new Map;for(let b of d.split(`
|
|
11
|
+
`).slice(1)){let S=b.indexOf(":");S>0&&g.set(b.slice(0,S).trim().toLowerCase(),b.slice(S+1).trim())}return{status:Number(s[1]),headers:g,body:u===-1?"":t.slice(u+2)}}c(tn,"parseGhHttp");function nn(e,t){return`repos/${e}/issues?state=all&sort=updated&direction=asc&since=${encodeURIComponent(t)}&per_page=${Ne}`}c(nn,"changesPath");var Gr=v.object({number:v.number().int().positive(),title:v.string(),state:v.enum(["open","closed"]),user:v.object({login:v.string(),type:v.string()}).nullable(),labels:v.array(v.object({name:v.string()})),assignees:v.array(v.object({login:v.string()})).nullable(),html_url:v.string(),body:v.string().nullable(),updated_at:v.string(),pull_request:v.object({merged_at:v.string().nullable()}).optional()});function rn(e,t){return v.array(Gr).parse(JSON.parse(t)).map(s=>({repo:e,number:s.number,kind:s.pull_request===void 0?"issue":"pr",title:s.title,state:s.state==="open"?"OPEN":s.pull_request?.merged_at?"MERGED":"CLOSED",author:s.user===null?"app/":s.user.type==="User"?s.user.login:`app/${s.user.login.replace(/\[bot\]$/,"")}`,labels:s.labels.map(u=>u.name),assignees:(s.assignees??[]).map(u=>u.login),url:s.html_url,body:s.body??"",updatedAt:s.updated_at}))}c(rn,"parseChangedItems");function Fr(e){try{let t=JSON.parse(e),s=v.object({message:v.string().optional(),errors:v.array(v.object({type:v.string().optional(),message:v.string().optional()})).optional()}).safeParse(t);return s.success?[s.data.message??"",...(s.data.errors??[]).flatMap(u=>[u.type??"",u.message??""])]:[]}catch{return[]}}c(Fr,"errorTexts");function Ie(e){return e.status===429?!0:e.status!==403&&e.status!==200?!1:Fr(e.body).some(t=>t==="RATE_LIMITED"||/rate limit/i.test(t))}c(Ie,"isRateLimitFailure");function sn(e,t,s){let u=Number(e.headers.get("retry-after"));if(u>0)return u*1e3;if(e.headers.get("x-ratelimit-remaining")==="0"){let d=Number(e.headers.get("x-ratelimit-reset"));if(d>0)return Math.max(d*1e3-t,0)}return Ie(e)?Math.min(Mr*2**s,te):null}c(sn,"rateLimitWaitMs");function on(e){let t=Number(e.headers.get("x-poll-interval"));return Math.max(H,t>0?t*1e3:0)}c(on,"pollIntervalMs");var Wr=5*6e4,Vr=3e4,mn=100,fn=50,hn=50,gn=30,an="Install the GitHub CLI (https://cli.github.com) and run `gh auth login`, then `moonlet plugin reload github`.",$=r.string().regex(/^[\w.-]+\/[\w.-]+$/),F=r.number().int().positive(),L=r.object({repo:$,number:F}).strict(),je=r.string().refine(e=>e.trim().length>0,"must not be blank"),zr=r.object({repo:$,projectId:r.string().nullable()}).strict(),Jr=r.object({repo:$,number:F,kind:r.enum(["issue","pr"]),title:r.string(),state:r.string(),author:r.string(),labels:r.array(r.string()),assignees:r.array(r.string()),url:r.string(),body:r.string(),updatedAt:r.string()}).strict(),Br=r.object({repos:r.number().int().nonnegative(),items:r.number().int().nonnegative()}).strict(),Ce=r.object({ok:r.literal(!0)}).strict(),Le=r.object({author:r.string(),body:r.string(),createdAt:r.string()}).strict(),Kr=r.object({kind:r.enum(["issue","pr"]),repo:$,number:F,threadId:r.string().min(1),createdAt:r.string()}).strict(),Xr=r.object({repo:$,number:F,title:r.string(),state:r.string(),author:r.string(),body:r.string(),url:r.string(),createdAt:r.string(),updatedAt:r.string(),baseRefName:r.string(),headRefName:r.string(),additions:r.number().nonnegative(),deletions:r.number().nonnegative(),changedFiles:r.number().int().nonnegative(),labels:r.array(r.string()),assignees:r.array(r.string()),reviewDecision:r.string(),mergeStateStatus:r.string(),reviewRequests:r.array(r.string()),checks:r.array(r.object({name:r.string(),status:r.enum(["success","failure","pending","neutral"]),url:r.string()}).strict()),comments:r.array(Le),reviews:r.array(r.object({author:r.string(),state:r.string(),body:r.string(),createdAt:r.string()}).strict()),reviewThreads:r.array(r.object({path:r.string(),line:r.number().int().nonnegative().nullable(),diffHunk:r.string(),comments:r.array(Le)}).strict()),files:r.array(r.object({path:r.string(),status:r.string(),additions:r.number().nonnegative(),deletions:r.number().nonnegative(),patch:r.string().nullable()}).strict())}).strict(),Yr=qr({status:{input:r.null(),output:r.object({ghOk:r.boolean(),ghState:r.enum(["ready","needs_configuration","unavailable"]),ghError:r.string().nullable(),repos:r.array(zr),lastSyncedAt:r.string().nullable()}).strict()},refresh:{input:r.null(),output:Br},listItems:{input:r.object({kind:r.enum(["issue","pr"]).optional(),repo:$.optional(),query:r.string().optional(),state:r.enum(["open","closed"]).optional(),mine:r.boolean().optional()}).strict(),output:r.object({items:r.array(Jr)}).strict()},viewer:{input:r.null(),output:r.object({login:r.string().min(1)}).strict()},assignableUsers:{input:r.object({repo:$}).strict(),output:r.object({users:r.array(r.string().min(1))}).strict()},repositoryLabels:{input:r.object({repo:$}).strict(),output:r.object({labels:r.array(r.string().min(1))}).strict()},setIssueState:{input:L.extend({state:r.enum(["open","closed"])}).strict(),output:Ce},setAssignees:{input:L.extend({assignees:r.array(r.string().min(1))}).strict(),output:r.object({ok:r.literal(!0),assignees:r.array(r.string().min(1))}).strict()},setLabels:{input:L.extend({labels:r.array(r.string())}).strict(),output:r.object({ok:r.literal(!0),labels:r.array(r.string().min(1))}).strict()},getIssue:{input:L,output:r.object({issue:r.object({repo:$,number:F,title:r.string(),state:r.string(),author:r.string(),body:r.string(),labels:r.array(r.string()),assignees:r.array(r.string()),url:r.string(),updatedAt:r.string(),comments:r.array(Le)}).strict()}).strict()},getPull:{input:L,output:r.object({pull:Xr}).strict()},commentPull:{input:L.extend({body:je}).strict(),output:Ce},pullForThread:{input:r.object({threadId:r.string().min(1)}).strict(),output:r.object({pull:r.object({repo:$,number:F,environmentId:r.string().nullable()}).strict().nullable()}).strict()},commentIssue:{input:L.extend({body:je}).strict(),output:Ce},createIssue:{input:r.object({repo:$,title:je,body:r.string().optional()}).strict(),output:r.object({number:F.nullable(),url:r.string()}).strict()},startWork:{input:L,output:r.object({threadId:r.string().min(1)}).strict()},startReview:{input:L,output:r.object({threadId:r.string().min(1)}).strict()},listLinks:{input:r.null(),output:r.object({links:r.record(r.string(),r.array(Kr))}).strict()}});function G(e){return e instanceof Error?e.message:String(e)}c(G,"errorMessage");function cn(e){return Object.assign(new Error(e),{name:"NeedsConfigurationError"})}c(cn,"needsConfiguration");function $e(e){return e instanceof Error&&e.name==="NeedsConfigurationError"}c($e,"isNeedsConfigurationError");function J(e){return Object.assign(new Error(e),{name:"GhUnavailableError"})}c(J,"ghUnavailable");function Te(e){return e instanceof Error&&e.name==="GhUnavailableError"}c(Te,"isGhUnavailableError");function un(e){return Object.assign(new Error(`GitHub's rate limit was reached; Moonlet will try again after ${new Date(e).toISOString()}.`),{name:"GitHubRateLimitedError",until:e})}c(un,"rateLimited");function _e(e){return e instanceof Error&&e.name==="GitHubRateLimitedError"}c(_e,"isRateLimitedError");var Zr=/no oauth token|not logged in/i,De="github.com";function Qr(e){let t=e.trim().match(/github\.com[:/]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/);return t===null?null:`${t[1]}/${t[2]}`}c(Qr,"parseGithubRemote");function bn(e){return typeof e=="string"&&/^[\w.-]+\/[\w.-]+$/.test(e)}c(bn,"isRepoName");function ln(e){let t=[],s=[];for(let u of e.split(/[\s,]+/))u!==""&&(bn(u)?t.includes(u)||t.push(u):s.includes(u)||s.push(u));return{repos:t,ignored:s}}c(ln,"parseExtraRepos");function dn(e){return`ignoring ${e.length} extraRepos ${e.length===1?"entry":"entries"} that ${e.length===1?"is":"are"} not "owner/repo": ${e.join(", ")}`}c(dn,"describeIgnoredExtraRepos");var es=r.record(r.string(),r.union([r.object({outcome:r.literal("available"),pullRequest:r.object({url:r.string()})}),r.object({outcome:r.enum(["absent","unavailable"])})]));function ne(e,t,s=3e4,u="background",d=!1){return en(e==="git"?"git":"gh",t,()=>new Promise((g,b)=>{Hr(e,t,{timeout:s,maxBuffer:16*1024*1024},(S,E,h)=>{S&&!(d&&E.startsWith("HTTP/"))?b(new Error(`${e} ${t.slice(0,3).join(" ")} failed: ${h.trim()||S.message}`)):g({stdout:E,stderr:h})})}),{priority:u})}c(ne,"run");function pn(e){let t=JSON.parse(e);if(!Array.isArray(t))throw new Error("GitHub API pagination returned a non-array response");let s=[];for(let u of t){if(!Array.isArray(u))throw new Error("GitHub API pagination returned a malformed page");for(let d of u){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error("GitHub API pagination returned a malformed row");s.push(d)}}return s}c(pn,"parsePaginatedGhApi");function ts(e){if(e!==void 0){if(!bn(e))throw new Oe(`Invalid repository "${e}"; expected owner/repo.`,{code:"invalid_repository"});return e}}c(ts,"requireRepoName");var re=r.object({number:F,title:r.string(),state:r.enum(["OPEN","CLOSED","MERGED"]),author:r.object({login:r.string(),id:r.string().optional()}).nullable(),labels:r.object({nodes:r.array(r.object({name:r.string()})).max(100)}),assignees:r.object({nodes:r.array(r.object({login:r.string()})).max(100)}),url:r.string(),body:r.string(),updatedAt:r.string()}),ns=r.object({data:r.object({repository:r.object({hasIssuesEnabled:r.boolean(),openIssues:r.object({nodes:r.array(re.extend({state:r.literal("OPEN")})).max(mn)}),closedIssues:r.object({nodes:r.array(re.extend({state:r.literal("CLOSED")})).max(fn)}),openPrs:r.object({nodes:r.array(re.extend({state:r.literal("OPEN")})).max(hn)}),closedPrs:r.object({nodes:r.array(re.extend({state:r.enum(["CLOSED","MERGED"])})).max(gn)})})}),errors:r.array(r.unknown()).max(0).optional()}),se=`
|
|
8
12
|
number title state author { login ... on User { id } }
|
|
9
13
|
labels(first: 100) { nodes { name } }
|
|
10
14
|
assignees(first: 100) { nodes { login } }
|
|
11
15
|
url body updatedAt
|
|
12
|
-
`,
|
|
16
|
+
`,rs=`query RepositoryLists($owner: String!, $name: String!) {
|
|
13
17
|
repository(owner: $owner, name: $name) {
|
|
14
18
|
hasIssuesEnabled
|
|
15
|
-
openIssues: issues(first: ${
|
|
16
|
-
nodes { ${
|
|
19
|
+
openIssues: issues(first: ${mn}, states: [OPEN], orderBy: {field: CREATED_AT, direction: DESC}) {
|
|
20
|
+
nodes { ${se} }
|
|
17
21
|
}
|
|
18
|
-
closedIssues: issues(first: ${
|
|
19
|
-
nodes { ${
|
|
22
|
+
closedIssues: issues(first: ${fn}, states: [CLOSED], orderBy: {field: CREATED_AT, direction: DESC}) {
|
|
23
|
+
nodes { ${se} }
|
|
20
24
|
}
|
|
21
|
-
openPrs: pullRequests(first: ${
|
|
22
|
-
nodes { ${
|
|
25
|
+
openPrs: pullRequests(first: ${hn}, states: [OPEN], orderBy: {field: CREATED_AT, direction: DESC}) {
|
|
26
|
+
nodes { ${se} }
|
|
23
27
|
}
|
|
24
|
-
closedPrs: pullRequests(first: ${
|
|
25
|
-
nodes { ${
|
|
28
|
+
closedPrs: pullRequests(first: ${gn}, states: [CLOSED, MERGED], orderBy: {field: CREATED_AT, direction: DESC}) {
|
|
29
|
+
nodes { ${se} }
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
|
-
}`;async function
|
|
32
|
+
}`;async function ss(e,t){let[s,u]=$.parse(t).split("/"),d=await e(["api","graphql","--hostname",De,"-f",`query=${rs}`,"-f",`owner=${s}`,"-f",`name=${u}`]);if(d.status!==200)throw new Error(`GitHub answered HTTP ${d.status} for ${t}`);let{data:{repository:g}}=ns.parse(JSON.parse(d.body)),b=c((S,E)=>S.map(h=>({repo:t,number:h.number,kind:E,title:h.title,state:h.state,author:h.author?.id?h.author.login:`app/${h.author?.login??""}`,labels:h.labels.nodes.map(A=>A.name),assignees:h.assignees.nodes.map(A=>A.login),url:h.url,body:h.body,updatedAt:h.updatedAt})),"toItems");return[...g.hasIssuesEnabled?[...b(g.openIssues.nodes,"issue"),...b(g.closedIssues.nodes,"issue")]:[],...b(g.openPrs.nodes,"pr"),...b(g.closedPrs.nodes,"pr")]}c(ss,"fetchRepoItems");async function is(e){let t=e.settings.define({extraRepos:{type:"string",label:"Extra repositories",description:'Comma-separated "owner/repo" list to track in addition to repos discovered from Moonlet projects.',experimental_schema:r.string().superRefine((n,i)=>{let{ignored:a}=ln(n);a.length>0&&i.addIssue({code:"custom",message:`Use "owner/repo" for every entry. Invalid: ${a.join(", ")}`})}),default:""},defaultProject:{type:"project",label:"Default Moonlet project",description:"Where agent threads spawn for repos that are not attached to a Moonlet project."}}),s=null,u="unavailable",d="checking gh\u2026";async function g(){if(s!==null)return s;let n=["gh","/opt/homebrew/bin/gh","/usr/local/bin/gh"];for(let i of n)try{return await ne(i,["--version"],5e3),s=i,i}catch{}throw cn(`GitHub CLI not found. ${an}`)}c(g,"resolveGh");let b=0,S=0;function E(){if(Date.now()<b)throw un(b)}c(E,"assertNotLimited");async function h(n,i,a="interactive"){n[0]!=="auth"&&E();let o=await g(),{stdout:p}=await ne(o,n,i,a);return p}c(h,"gh");async function A(n,i="background"){E();let a=await g(),o=n[1]==="graphql"?[...n,"--include"]:[n[0],"--include",...n.slice(1)],p;try{({stdout:p}=await ne(a,o,void 0,i,!0))}catch(y){throw J(G(y))}let m=tn(p);if(m===null)throw J(`gh ${n.slice(0,2).join(" ")} printed no HTTP response`);let l=Date.now(),w=sn(m,l,S);if(w===null)return S=0,m;if(b=Math.max(b,l+w),m.status===403||m.status===429||Ie(m))throw S+=1,un(b);return m}c(A,"ghHttp");async function I(){try{await h(["auth","status","--hostname",De,"--active"],1e4,"background"),u="ready",d=null;return}catch(i){if(d=G(i),$e(i))throw u="needs_configuration",i}let n=!0;try{await h(["auth","token","--hostname",De],5e3,"background")}catch(i){let a=G(i);n=!Zr.test(a)}throw n?(u="unavailable",J(`gh auth status failed; gh has credentials, so this is probably transient and will be retried: ${d}`)):(u="needs_configuration",cn(`GitHub CLI is not authenticated. ${an}`))}c(I,"probeAuth");let N=null;function O(){return N===null&&(N=I().finally(()=>{N=null})),N}c(O,"checkAuth");let T=null,D=[],B=null;async function z(n=!1){if(!n&&T!==null&&Date.now()-T.fetchedAt<6e4)return T.repos;let i=new Map;try{let l=await e.sdk.projects.list();for(let w of l)for(let y of w.sources??[])if(y.type==="local_path")try{let{stdout:_}=await ne("git",["-C",y.path,"remote","get-url","origin"],5e3),R=Qr(_);R!==null&&!i.has(R)&&i.set(R,{repo:R,projectId:w.id})}catch{}}catch(l){e.log.warn(`project discovery failed: ${G(l)}`)}let{extraRepos:a}=await t.get(),o=ln(a);for(let l of o.repos)i.has(l)||i.set(l,{repo:l,projectId:null});let p=o.ignored.join(",");p!==B&&(B=p,o.ignored.length>0&&e.log.warn(dn(o.ignored))),D=o.ignored;let m=[...i.values()];return T={repos:m,fetchedAt:Date.now()},m}c(z,"discoverRepos");let x=e.storage.database();e.storage.migrate(x,[`CREATE TABLE IF NOT EXISTS items (
|
|
29
33
|
repo TEXT NOT NULL,
|
|
30
34
|
number INTEGER NOT NULL,
|
|
31
35
|
kind TEXT NOT NULL,
|
|
@@ -37,15 +41,21 @@ var sn=Object.create;var ne=Object.defineProperty;var on=Object.getOwnPropertyDe
|
|
|
37
41
|
body TEXT NOT NULL,
|
|
38
42
|
updated_at TEXT NOT NULL,
|
|
39
43
|
PRIMARY KEY (repo, kind, number)
|
|
40
|
-
)`,"ALTER TABLE items ADD COLUMN assignees TEXT NOT NULL DEFAULT '[]'"]);function
|
|
41
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`);
|
|
44
|
+
)`,"ALTER TABLE items ADD COLUMN assignees TEXT NOT NULL DEFAULT '[]'"]);function Me(n){try{let i=JSON.parse(String(n));if(Array.isArray(i))return i.map(String)}catch{}return[]}c(Me,"parseStringArray");function Ge(n){return{repo:String(n.repo),number:Number(n.number),kind:n.kind==="pr"?"pr":"issue",title:String(n.title),state:String(n.state),author:String(n.author),labels:Me(n.labels),assignees:Me(n.assignees),url:String(n.url),body:String(n.body),updatedAt:String(n.updated_at)}}c(Ge,"rowToItem");function ie(n){let i=[],a=[];n.kind!==void 0&&(i.push("kind = ?"),a.push(n.kind)),n.repo!==void 0&&(i.push("repo = ?"),a.push(n.repo)),n.state==="open"?i.push("state = 'OPEN'"):n.state==="closed"&&i.push("state != 'OPEN'"),n.assignee!==void 0&&(i.push("assignees LIKE ?"),a.push(`%${JSON.stringify(n.assignee)}%`));let o=n.query?.trim()??"";if(o.length>0){i.push("(title LIKE ? OR CAST(number AS TEXT) LIKE ? OR repo LIKE ?)");let l=`%${o.replace(/^#/,"")}%`;a.push(l,l,l)}let p=i.length>0?`WHERE ${i.join(" AND ")}`:"";return x.prepare(`SELECT * FROM items ${p} ORDER BY updated_at DESC`).all(...a).map(Ge)}c(ie,"listCachedItems");function oe(n,i,a){let o=x.prepare("SELECT * FROM items WHERE repo = ? AND kind = ? AND number = ?").get(i,n,a);return o===void 0?null:Ge(o)}c(oe,"getCachedItem");function wn(n,i){let a=x.prepare(`INSERT INTO items (repo, number, kind, title, state, author, labels, assignees, url, body, updated_at)
|
|
45
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`);x.transaction(()=>{x.prepare("DELETE FROM items WHERE repo = ?").run(n);for(let o of i)a.run(o.repo,o.number,o.kind,o.title,o.state,o.author,JSON.stringify(o.labels),JSON.stringify(o.assignees),o.url,o.body,o.updatedAt)})()}c(wn,"replaceRepoRows");function yn(n){let i=x.prepare(`INSERT INTO items (repo, number, kind, title, state, author, labels, assignees, url, body, updated_at)
|
|
46
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
47
|
+
ON CONFLICT (repo, kind, number) DO UPDATE SET
|
|
48
|
+
title = excluded.title, state = excluded.state, author = excluded.author,
|
|
49
|
+
labels = excluded.labels, assignees = excluded.assignees, url = excluded.url,
|
|
50
|
+
body = excluded.body, updated_at = excluded.updated_at
|
|
51
|
+
WHERE items.updated_at IS NOT excluded.updated_at`),a=!1;return x.transaction(()=>{for(let o of n){let{changes:p}=i.run(o.repo,o.number,o.kind,o.title,o.state,o.author,JSON.stringify(o.labels),JSON.stringify(o.assignees),o.url,o.body,o.updatedAt);p>0&&(a=!0)}})(),a}c(yn,"upsertItems");function ae(n,i,a){a.state!==void 0&&x.prepare("UPDATE items SET state = ? WHERE repo = ? AND kind = 'issue' AND number = ?").run(a.state,n,i),a.assignees!==void 0&&x.prepare("UPDATE items SET assignees = ? WHERE repo = ? AND kind = 'issue' AND number = ?").run(JSON.stringify(a.assignees),n,i),a.labels!==void 0&&x.prepare("UPDATE items SET labels = ? WHERE repo = ? AND kind = 'issue' AND number = ?").run(JSON.stringify(a.labels),n,i),e.realtime.publish("data-changed",{})}c(ae,"patchCachedItem");let q=new Map,K=new Map,Fe=Number.NEGATIVE_INFINITY,He=Promise.resolve();function ce(n){let i=He.then(n,n);return He=i.catch(()=>{}),i}c(ce,"serialized");function qe(n){let i=(K.get(n)?.failures??0)+1;K.set(n,{failures:i,nextAt:Date.now()+Math.min(H*2**(i-1),te)})}c(qe,"noteFullFetchFailure");async function ue(n,i){let a=new Date().toISOString(),o=await ss(m=>A(m,i),n);wn(n,o);let p=o.reduce((m,l)=>l.updatedAt>m?l.updatedAt:m,"");return q.set(n,{since:p||a,etag:null}),K.delete(n),o.length}c(ue,"fullFetchRepo");async function Sn(n,i){let{since:a,etag:o}=i,p=!1,m=H;for(;;){let l=await A(["api",...o===null?[]:["-H",`If-None-Match: ${o}`],nn(n,a)]);if(m=Math.max(m,on(l)),l.status===304)break;if(l.status!==200)throw l.status<500&&q.delete(n),new Error(`GitHub answered HTTP ${l.status} while checking ${n} for changes`);let w=rn(n,l.body);yn(w)&&(p=!0);let y=w.at(-1)?.updatedAt??a;if(y===a){o=l.headers.get("etag")??null,q.set(n,{since:a,etag:o});break}if(a=y,o=null,q.set(n,{since:a,etag:o}),w.length<Ne)break}return{changed:p,waitMs:m}}c(Sn,"checkRepoChanges");async function kn(n){E(),await O();let i=await z(n),a=JSON.stringify(x.prepare("SELECT repo, kind, number, updated_at FROM items ORDER BY repo, kind, number").all()),o=0,p=0,m="";for(let{repo:w}of i)try{o+=await ue(w,"background")}catch(y){if(_e(y))throw y;p+=1,m=G(y),q.delete(w),qe(w),e.log.warn(`sync failed for ${w}: ${m}`)}if(i.length>0&&p===i.length)throw J(`sync failed for all ${i.length} repo(s); last error: ${m}`);Fe=Date.now();let l=JSON.stringify(x.prepare("SELECT repo, kind, number, updated_at FROM items ORDER BY repo, kind, number").all());return await e.storage.kv.set("sync-cursor",{lastSyncedAt:new Date().toISOString()}),a!==l&&e.realtime.publish("data-changed",{items:o}),e.log.info(`synced ${o} item(s) across ${i.length} repo(s)`),{repos:i.length,items:o}}c(kn,"runFullSync");function le(n=!1){return ce(()=>kn(n))}c(le,"syncAll");async function vn(){let n=await z(),i=H,a=!1,o=0,p=0,m="";for(let{repo:l}of n){let w=q.get(l);if(!(w===void 0&&Date.now()<(K.get(l)?.nextAt??0))){o+=1;try{if(w===void 0)await ue(l,"background"),a=!0;else{let y=await Sn(l,w);a||=y.changed,i=Math.max(i,y.waitMs)}}catch(y){if(_e(y)||$e(y))throw y;m=G(y),Te(y)&&(p+=1),w===void 0&&qe(l),e.log.warn(`change check failed for ${l}: ${m}`)}}}if(o>0&&p===o)throw J(`change checks failed for all ${o} repo(s); last error: ${m}`);return o>p&&await e.storage.kv.set("sync-cursor",{lastSyncedAt:new Date().toISOString()}),a&&e.realtime.publish("data-changed",{}),i}c(vn,"runChangeChecks");async function En(){return Date.now()-Fe>=te?(await le(),H):await ce(vn)}c(En,"syncTick"),e.background.service("sync",{async start(n){let i=0;for(;!n.aborted;){let a=H;try{a=await En(),i=0}catch(o){if(_e(o))e.log.warn(o.message);else{if(!Te(o))throw o;i+=1,a=Math.min(Vr*2**(i-1),Wr),e.log.warn(`sync failed (retry in ${Math.round(a/1e3)}s): ${G(o)}`)}}if(a=Math.max(a,b-Date.now()),n.aborted)break;await new Promise(o=>{let p=c(()=>{clearTimeout(m),o()},"onAbort"),m=setTimeout(()=>{n.removeEventListener("abort",p),o()},a);n.addEventListener("abort",p,{once:!0})})}}});try{await O()}catch(n){if($e(n))e.status.needsConfiguration(n.message);else if(Te(n))e.log.warn(n.message);else throw n}function Rn(n,i,a){return`link:${n}:${i}#${a}`}c(Rn,"linkKey");async function Pn(n){let i=Rn(n.kind,n.repo,n.number),a=await e.storage.kv.get(i)??[];await e.storage.kv.set(i,[...a,n]),e.realtime.publish("links-changed",{key:i})}c(Pn,"addLink");async function Ue(){let n=await e.storage.kv.list("link:"),i={};for(let a of n){let o=await e.storage.kv.get(a);o!==void 0&&o.length>0&&(i[a.slice(5)]=o)}return i}c(Ue,"listAllLinks");async function An(n){let a=(await z()).find(p=>p.repo===n);if(a?.projectId!=null)return a.projectId;let{defaultProject:o}=await t.get();if(o)return o;throw new Error(`No Moonlet project is attached to ${n}. Create a project whose checkout has that origin remote, or set the defaultProject plugin setting.`)}c(An,"resolveProjectId");async function We(n,i,a){let o=oe(n,i,a),p=o?.title??`${n==="pr"?"PR":"issue"} #${a}`,m=await An(i),l=`${i}#${a}`,w=n==="issue"?[`Work on GitHub issue ${l}: ${p}`,"","Read the full issue and its comments first:",` gh issue view ${a} -R ${i} --comments`,"",o!==null&&o.body.length>0?`Issue description:
|
|
42
52
|
|
|
43
53
|
${o.body}`:"(no cached description \u2014 read it with the command above)","",`Implement a fix or the requested change in this checkout. If you open a pull request, include "Fixes #${a}" in its body.`].join(`
|
|
44
|
-
`):[`Review GitHub pull request ${
|
|
45
|
-
`),
|
|
46
|
-
`)}}catch(
|
|
47
|
-
`)}}}c(
|
|
48
|
-
`)}})}})}c(
|
|
49
|
-
`}:{};return
|
|
50
|
-
`),...a}})}}),issues
|
|
54
|
+
`):[`Review GitHub pull request ${l}: ${p}`,"","Read the PR and its diff:",` gh pr view ${a} -R ${i} --comments`,` gh pr diff ${a} -R ${i}`,"","Review the change for correctness, missing tests, and design issues. Summarize your findings with file/line references. Do not push changes or post to GitHub unless asked."].join(`
|
|
55
|
+
`),y=await e.sdk.threads.spawn({projectId:m,environment:{type:"project-default"},title:`${l}: ${p}`.slice(0,120),prompt:w});return await Pn({kind:n,repo:i,number:a,threadId:y.id,createdAt:new Date().toISOString()}),e.log.info(`spawned thread ${y.id} for ${n} ${l}`),{threadId:y.id}}c(We,"spawnOnItem");let X=null;async function Ve(){if(X!==null&&Date.now()-X.fetchedAt<60*6e4)return X.login;let n=await h(["api","user"],15e3),i=String(JSON.parse(n)?.login??"");if(i.length===0)throw new Error("could not resolve the gh viewer login");return X={login:i,fetchedAt:Date.now()},i}c(Ve,"getViewer");let ze=new Map,Je=new Map;async function Nn(n){let i=ze.get(n);if(i!==void 0&&Date.now()-i.fetchedAt<10*6e4)return i.users;let a=await h(["api",`repos/${n}/assignees?per_page=100`],15e3),p=JSON.parse(a).map(m=>String(m?.login??"")).filter(m=>m.length>0).sort((m,l)=>m.localeCompare(l));return ze.set(n,{users:p,fetchedAt:Date.now()}),p}c(Nn,"getAssignableUsers");async function In(n){let i=Je.get(n);if(i!==void 0&&Date.now()-i.fetchedAt<10*6e4)return i.labels;let a=await h(["api",`repos/${n}/labels?per_page=100`],15e3),p=JSON.parse(a).map(m=>String(m?.name??"").trim()).filter(m=>m.length>0).sort((m,l)=>m.localeCompare(l));return Je.set(n,{labels:p,fetchedAt:Date.now()}),p}c(In,"getRepoLabels"),e.rpc.register(Yr,{async status(){if(u!=="ready")try{await O()}catch{}let n=await e.storage.kv.get("sync-cursor"),i=await z();return{ghOk:u==="ready",ghState:u,ghError:d,repos:i,lastSyncedAt:n?.lastSyncedAt??null}},async refresh(){return await le(!0)},async listItems(n){return{items:ie({kind:n.kind,repo:n.repo,query:n.query,state:n.state,assignee:n.mine===!0?await Ve():void 0})}},async viewer(){return{login:await Ve()}},async assignableUsers(n){return{users:await Nn(n.repo)}},async repositoryLabels(n){return{labels:await In(n.repo)}},async setIssueState({repo:n,number:i,state:a}){return await h(["issue",a==="closed"?"close":"reopen",String(i),"-R",n]),ae(n,i,{state:a==="closed"?"CLOSED":"OPEN"}),{ok:!0}},async setAssignees({repo:n,number:i,assignees:a}){let o=[...new Set(a)],p=oe("issue",n,i)?.assignees??[],m=o.filter(y=>!p.includes(y)),l=p.filter(y=>!o.includes(y));if(m.length===0&&l.length===0)return{ok:!0,assignees:o};let w=["issue","edit",String(i),"-R",n];return m.length>0&&w.push("--add-assignee",m.join(",")),l.length>0&&w.push("--remove-assignee",l.join(",")),await h(w),ae(n,i,{assignees:o}),{ok:!0,assignees:o}},async setLabels({repo:n,number:i,labels:a}){let o=[...new Set(a.map(R=>R.trim()).filter(Boolean))],p=await h(["issue","view",String(i),"-R",n,"--json","labels"],15e3),l=(JSON.parse(p).labels??[]).map(R=>String(R?.name??"").trim()).filter(R=>R.length>0),w=o.filter(R=>!l.includes(R)),y=l.filter(R=>!o.includes(R));if(w.length===0&&y.length===0)return{ok:!0,labels:o};let _=["issue","edit",String(i),"-R",n];for(let R of w)_.push("--add-label",R);for(let R of y)_.push("--remove-label",R);return await h(_),ae(n,i,{labels:o}),{ok:!0,labels:o}},async getIssue({repo:n,number:i}){let a=await h(["issue","view",String(i),"-R",n,"--json","number,title,body,state,author,createdAt,updatedAt,labels,assignees,url,comments"]),o=JSON.parse(a);return{issue:{repo:n,number:i,title:String(o.title??""),state:String(o.state??""),author:String(o.author?.login??""),body:typeof o.body=="string"?o.body:"",labels:(o.labels??[]).map(p=>String(p?.name??"")),assignees:(o.assignees??[]).map(p=>String(p?.login??"")),url:String(o.url??""),updatedAt:String(o.updatedAt??""),comments:(o.comments??[]).map(p=>({author:String(p.author?.login??""),body:typeof p.body=="string"?p.body:"",createdAt:String(p.createdAt??"")}))}}},async getPull({repo:n,number:i}){let a="number,title,body,state,isDraft,author,createdAt,updatedAt,labels,assignees,url,baseRefName,headRefName,additions,deletions,changedFiles,reviewDecision,mergeStateStatus,statusCheckRollup,comments,reviews,reviewRequests",[o,p,m]=await Promise.all([h(["pr","view",String(i),"-R",n,"--json",a],3e4),h(["api","--paginate","--slurp",`repos/${n}/pulls/${i}/comments?per_page=100`],3e4),h(["api","--paginate","--slurp",`repos/${n}/pulls/${i}/files?per_page=100`],3e4)]),l=JSON.parse(o),w=(l.statusCheckRollup??[]).map(f=>{let j=String(f.conclusion??f.state??"").toUpperCase(),Y=f.conclusion===""||["IN_PROGRESS","QUEUED","PENDING","EXPECTED","WAITING"].includes(String(f.status??f.state??"").toUpperCase()),Z=j==="SUCCESS"?"success":j==="FAILURE"||j==="ERROR"||j==="TIMED_OUT"?"failure":Y?"pending":"neutral";return{name:String(f.name??f.context??"check"),status:Z,url:String(f.detailsUrl??f.targetUrl??"")}}),y=pn(p),_=new Map;for(let f of y){let j=Number(f.id??NaN),Y=Number(f.in_reply_to_id??NaN),Z={author:String(f.user?.login??""),body:typeof f.body=="string"?f.body:"",createdAt:String(f.created_at??"")},pe=Number.isFinite(Y)?_.get(Y):void 0;if(pe!==void 0){pe.comments.push(Z),Number.isFinite(j)&&_.set(j,pe);continue}let Ze=Number(f.line??f.original_line??NaN),Cn={path:String(f.path??""),line:Number.isFinite(Ze)?Ze:null,diffHunk:typeof f.diff_hunk=="string"?f.diff_hunk:"",comments:[Z]};Number.isFinite(j)&&_.set(j,Cn)}let R=[...new Set(_.values())],Ye=pn(m).map(f=>{let j=typeof f.patch=="string"?f.patch:null;return{path:String(f.filename??""),status:String(f.status??"modified"),additions:Number(f.additions??0),deletions:Number(f.deletions??0),patch:j!==null&&j.length<=2e4?j:null}});return{pull:{repo:n,number:i,title:String(l.title??""),state:l.isDraft===!0&&String(l.state??"")==="OPEN"?"DRAFT":String(l.state??""),author:String(l.author?.login??""),body:typeof l.body=="string"?l.body:"",url:String(l.url??""),createdAt:String(l.createdAt??""),updatedAt:String(l.updatedAt??""),baseRefName:String(l.baseRefName??""),headRefName:String(l.headRefName??""),additions:Number(l.additions??0),deletions:Number(l.deletions??0),changedFiles:Number(l.changedFiles??Ye.length),labels:(l.labels??[]).map(f=>String(f?.name??"")),assignees:(l.assignees??[]).map(f=>String(f?.login??"")),reviewDecision:String(l.reviewDecision??""),mergeStateStatus:String(l.mergeStateStatus??""),reviewRequests:(l.reviewRequests??[]).map(f=>String(f.login??f.name??f.slug??"")).filter(f=>f.length>0),checks:w,comments:(l.comments??[]).map(f=>({author:String(f.author?.login??""),body:typeof f.body=="string"?f.body:"",createdAt:String(f.createdAt??"")})),reviews:(l.reviews??[]).map(f=>({author:String(f.author?.login??""),state:String(f.state??""),body:typeof f.body=="string"?f.body:"",createdAt:String(f.submittedAt??"")})),reviewThreads:R,files:Ye}}},async commentPull({repo:n,number:i,body:a}){return await h(["pr","comment",String(i),"-R",n,"--body",a]),{ok:!0}},async pullForThread({threadId:n}){let i=null;try{let o=await e.sdk.threads.get({threadId:n});if(o?.environmentId){i=o.environmentId;let m=(await e.sdk.plugins.callRpc({pluginId:"bb--github-pr-status",method:"pullRequests",input:{keys:[o.environmentId]},outputSchema:es}))[o.environmentId],l=m?.outcome==="available"?m.pullRequest.url:null,w=typeof l=="string"?l.match(/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)/):null;if(w!==null)return{pull:{repo:w[1],number:Number(w[2]),environmentId:i}}}}catch{}let a=await Ue();for(let[o,p]of Object.entries(a)){let m=o.match(/^pr:([\w.-]+\/[\w.-]+)#(\d+)$/);if(m!==null&&p.some(l=>l.threadId===n))return{pull:{repo:m[1],number:Number(m[2]),environmentId:i}}}return{pull:null}},async commentIssue({repo:n,number:i,body:a}){return await h(["issue","comment",String(i),"-R",n,"--body",a]),{ok:!0}},async createIssue(n){let i=n.body??"",a=await h(["issue","create","-R",n.repo,"--title",n.title,"--body",i]),o=a.trim().match(/\/issues\/(\d+)\s*$/),p=o!==null?Number(o[1]):null;try{await ce(()=>ue(n.repo,"interactive")),e.realtime.publish("data-changed",{})}catch{}return{number:p,url:a.trim()}},async startWork({repo:n,number:i}){return await We("issue",n,i)},async startReview({repo:n,number:i}){return await We("pr",n,i)},async listLinks(){return{links:await Ue()}}});function Be(n,i){return ie({kind:n,query:i,state:"open"}).slice(0,8).map(a=>({id:`${a.repo}#${a.number}`,title:`#${a.number} ${a.title}`,subtitle:a.repo}))}c(Be,"mentionItems");function xn(n){let i=n.match(/^([\w.-]+\/[\w.-]+)#(\d+)$/);if(i===null)throw new Error(`malformed mention id "${n}"`);return{repo:i[1],number:Number(i[2])}}c(xn,"parseMentionId");async function Ke(n,i){let{repo:a,number:o}=xn(i),p=n==="pr"?"pull request":"issue";try{let m=await h(n==="pr"?["pr","view",String(o),"-R",a,"--json","number,title,body,state,author,url"]:["issue","view",String(o),"-R",a,"--json","number,title,body,state,author,url"],15e3),l=JSON.parse(m);return{context:[`# GitHub ${p} ${a}#${o}: ${String(l.title??"")}`,"",`State: ${String(l.state??"")} \xB7 Author: ${String(l.author?.login??"")}`,`URL: ${String(l.url??"")}`,"",typeof l.body=="string"&&l.body.length>0?l.body:"(no description)","",`For full comments/diff run: gh ${n==="pr"?"pr":"issue"} view ${o} -R ${a} --comments`].join(`
|
|
56
|
+
`)}}catch(m){let l=oe(n,a,o);if(l===null)throw m instanceof Error?m:new Error(String(m));return{context:[`# GitHub ${p} ${a}#${o}: ${l.title}`,"",`State: ${l.state} \xB7 Author: ${l.author}`,`URL: ${l.url}`,"",l.body.length>0?l.body:"(no description)"].join(`
|
|
57
|
+
`)}}}c(Ke,"mentionContext"),e.ui.registerMentionProvider({id:"issue",label:"GitHub issues",triggers:["@","#"],search({query:n}){return Be("issue",n)},resolve(n){return Ke("issue",n)}}),e.ui.registerMentionProvider({id:"pr",label:"GitHub pull requests",triggers:["@","#"],search({query:n}){return Be("pr",n)},resolve(n){return Ke("pr",n)}});async function de(n){try{return await n()}catch(i){throw i instanceof Oe?i:new Oe(G(i))}}c(de,"guarded");function jn(n){return{repo:n.repo,number:n.number,kind:n.kind,state:n.state,title:n.title,author:n.author,labels:n.labels,assignees:n.assignees,url:n.url,updatedAt:n.updatedAt}}c(jn,"cachedItemSummary");function Xe(n){return xe({summary:n==="pr"?"List cached open pull requests":"List cached open issues",description:"Reads the local cache only; run `moonlet github sync` to refresh it from GitHub.",positionals:[{name:"repo",description:"Limit the listing to one owner/repo; omit for every tracked repository"}],options:{json:{type:"boolean",description:"Emit the cached rows as JSON instead of a text table"}},run(i){return de(async()=>{let a=ts(i.positionals.repo),o=ie({kind:n,...a===void 0?{}:{repo:a},state:"open"});return i.options.json?{exitCode:0,stdout:JSON.stringify({ok:!0,items:o.map(jn)})}:o.length===0?{exitCode:0,stdout:"Nothing cached. Run `moonlet github sync` first."}:{exitCode:0,stdout:o.map(p=>`${p.repo}#${p.number} [${p.state}] ${p.title}`).join(`
|
|
58
|
+
`)}})}})}c(Xe,"listCachedItemsCommand"),e.cli.register(Ur({name:"github",summary:"Browse tracked GitHub repos, issues, and PRs",description:"Tracked repositories come from attached projects' GitHub remotes plus the extraRepos setting.",commands:{repos:xe({summary:"List tracked repositories",options:{json:{type:"boolean",description:"Emit the repositories as JSON, including extraRepos entries that were ignored"}},run(n){return de(async()=>{let i=await z(!0),a=D.length>0?{stderr:`${dn(D)}
|
|
59
|
+
`}:{};return n.options.json?{exitCode:0,stdout:JSON.stringify({ok:!0,repos:i,ignoredExtraRepos:D}),...a}:i.length===0?{exitCode:0,stdout:"No tracked repos. Attach a project with a GitHub remote or set extraRepos.",...a}:{exitCode:0,stdout:i.map(o=>`${o.repo}${o.projectId!==null?` (${o.projectId})`:""}`).join(`
|
|
60
|
+
`),...a}})}}),issues:Xe("issue"),prs:Xe("pr"),sync:xe({summary:"Refresh the cache from GitHub now",options:{json:{type:"boolean",description:"Emit the refreshed repo and item counts as JSON"}},run(n){return de(async()=>{let{repos:i,items:a}=await le(!0);return{exitCode:0,stdout:n.options.json?JSON.stringify({ok:!0,repos:i,items:a}):`Synced ${a} item(s) across ${i} repo(s).`}})}})}}))}c(is,"plugin");export{is as default,Yr as githubRpcContract,ln as parseExtraRepos,pn as parsePaginatedGhApi};
|
|
51
61
|
//# sourceMappingURL=server.js.map
|
|
@@ -953,7 +953,7 @@
|
|
|
953
953
|
},
|
|
954
954
|
"category": "code-and-reviews",
|
|
955
955
|
"screenshots": [],
|
|
956
|
-
"overview": "See the open issues and pull requests of your repositories inside Moonlet. Hand one to an agent with one click.\n\n## What you get\n\n- A GitHub panel with Issues and Pull requests tabs across every tracked repository. It has a repository filter and a New issue form.\n- Issue details: body, comments, a comment box, and editing of status, assignee, and labels.\n- Send agent on an issue, or Review with agent on a pull request. Moonlet starts a thread in the repository's project and links it from the item.\n- Mentions. Type `@` or `#` in any composer to attach an issue or pull request. Its title, body, and state go to the agent at send time.\n\n## How it works\n\nThe plugin tracks every Moonlet project whose checkout has a GitHub `origin` remote. Add more repositories in the Extra repositories setting as a comma-separated `owner/repo` list. Choose a Default project for repositories that are not attached to a project. A background service
|
|
956
|
+
"overview": "See the open issues and pull requests of your repositories inside Moonlet. Hand one to an agent with one click.\n\n## What you get\n\n- A GitHub panel with Issues and Pull requests tabs across every tracked repository. It has a repository filter and a New issue form.\n- Issue details: body, comments, a comment box, and editing of status, assignee, and labels.\n- Send agent on an issue, or Review with agent on a pull request. Moonlet starts a thread in the repository's project and links it from the item.\n- Mentions. Type `@` or `#` in any composer to attach an issue or pull request. Its title, body, and state go to the agent at send time.\n\n## How it works\n\nThe plugin tracks every Moonlet project whose checkout has a GitHub `origin` remote. Add more repositories in the Extra repositories setting as a comma-separated `owner/repo` list. Choose a Default project for repositories that are not attached to a project. A background service fetches everything at startup and once an hour, and in between asks GitHub every minute what changed. Unchanged answers cost nothing against GitHub's rate limit, so changes reach the panel within about a minute. When GitHub asks it to wait, it waits. Press Refresh in the panel to update now.\n\n## For agents\n\nThe `moonlet github` command lists cached data. Use `moonlet github repos`, `moonlet github issues [owner/repo]`, `moonlet github prs [owner/repo]`, or `moonlet github sync`. Every command accepts `--json`, and `moonlet github --help` or `moonlet github <command> --help` prints the arguments and options and exits 0.\n\n## Requirements\n\nThe GitHub CLI must be installed and signed in with `gh auth login`. See https://cli.github.com for installation. The plugin uses your `gh` session and stores no tokens. Until `gh auth status` passes, the plugin reports that it needs configuration.\n"
|
|
957
957
|
},
|
|
958
958
|
{
|
|
959
959
|
"id": "bb--documents",
|
package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "197f4c364783e1d19cf62321f60d3337eeb7e605",
|
|
3
3
|
"file": "orbit-deploy",
|
|
4
4
|
"platform": "linux-x64",
|
|
5
5
|
"provenance": {
|
|
6
|
-
"artifactId":
|
|
7
|
-
"artifactName": "linux-bundle-
|
|
6
|
+
"artifactId": 15419459309,
|
|
7
|
+
"artifactName": "linux-bundle-197f4c364783e1d19cf62321f60d3337eeb7e605",
|
|
8
8
|
"repository": "matt0x6F/personalassistant",
|
|
9
|
-
"runId":
|
|
9
|
+
"runId": 46501415890,
|
|
10
10
|
"workflow": ".github/workflows/moonlet-linux-bundle.yml"
|
|
11
11
|
},
|
|
12
12
|
"schema": 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
197f4c364783e1d19cf62321f60d3337eeb7e605
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"repository":"matt0x6F/personalassistant","revision":"
|
|
1
|
+
{"repository":"matt0x6F/personalassistant","revision":"197f4c364783e1d19cf62321f60d3337eeb7e605"}
|