@halcyonlabs/app 0.47.0-halcyon.487 → 0.47.0-halcyon.488
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 +33 -33
- package/package.json +2 -2
- 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/server/dist/start-server.js +26 -4
package/dist/index.d.ts
CHANGED
|
@@ -488,8 +488,8 @@ type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
|
488
488
|
|
|
489
489
|
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
490
490
|
error: "error";
|
|
491
|
-
provisioning: "provisioning";
|
|
492
491
|
ready: "ready";
|
|
492
|
+
provisioning: "provisioning";
|
|
493
493
|
creating: "creating";
|
|
494
494
|
destroyed: "destroyed";
|
|
495
495
|
}>;
|
|
@@ -508,8 +508,8 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
508
508
|
mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
509
509
|
status: z$1.ZodEnum<{
|
|
510
510
|
error: "error";
|
|
511
|
-
provisioning: "provisioning";
|
|
512
511
|
ready: "ready";
|
|
512
|
+
provisioning: "provisioning";
|
|
513
513
|
creating: "creating";
|
|
514
514
|
destroyed: "destroyed";
|
|
515
515
|
}>;
|
|
@@ -524,8 +524,8 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
524
524
|
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
525
525
|
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
526
526
|
status: z$1.ZodEnum<{
|
|
527
|
-
running: "running";
|
|
528
527
|
failed: "failed";
|
|
528
|
+
running: "running";
|
|
529
529
|
removed: "removed";
|
|
530
530
|
}>;
|
|
531
531
|
attempt: z$1.ZodNumber;
|
|
@@ -620,8 +620,8 @@ declare const hostSchema: z$1.ZodObject<{
|
|
|
620
620
|
pendingLog: z$1.ZodString;
|
|
621
621
|
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
622
622
|
status: z$1.ZodEnum<{
|
|
623
|
-
running: "running";
|
|
624
623
|
failed: "failed";
|
|
624
|
+
running: "running";
|
|
625
625
|
removed: "removed";
|
|
626
626
|
}>;
|
|
627
627
|
attempt: z$1.ZodNumber;
|
|
@@ -732,8 +732,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
732
732
|
providerThreadId: z$1.ZodString;
|
|
733
733
|
objective: z$1.ZodString;
|
|
734
734
|
status: z$1.ZodEnum<{
|
|
735
|
-
paused: "paused";
|
|
736
735
|
active: "active";
|
|
736
|
+
paused: "paused";
|
|
737
737
|
budgetLimited: "budgetLimited";
|
|
738
738
|
complete: "complete";
|
|
739
739
|
}>;
|
|
@@ -1304,9 +1304,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1304
1304
|
step: z$1.ZodString;
|
|
1305
1305
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1306
1306
|
pending: "pending";
|
|
1307
|
+
active: "active";
|
|
1307
1308
|
completed: "completed";
|
|
1308
1309
|
failed: "failed";
|
|
1309
|
-
active: "active";
|
|
1310
1310
|
}>>;
|
|
1311
1311
|
}, z$1.core.$strip>>;
|
|
1312
1312
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1385,10 +1385,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1385
1385
|
}>;
|
|
1386
1386
|
taskStatus: z$1.ZodEnum<{
|
|
1387
1387
|
pending: "pending";
|
|
1388
|
-
running: "running";
|
|
1389
|
-
paused: "paused";
|
|
1390
1388
|
completed: "completed";
|
|
1391
1389
|
failed: "failed";
|
|
1390
|
+
paused: "paused";
|
|
1391
|
+
running: "running";
|
|
1392
1392
|
killed: "killed";
|
|
1393
1393
|
stopped: "stopped";
|
|
1394
1394
|
}>;
|
|
@@ -1405,8 +1405,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1405
1405
|
index: z$1.ZodNumber;
|
|
1406
1406
|
label: z$1.ZodString;
|
|
1407
1407
|
state: z$1.ZodEnum<{
|
|
1408
|
-
running: "running";
|
|
1409
1408
|
failed: "failed";
|
|
1409
|
+
running: "running";
|
|
1410
1410
|
queued: "queued";
|
|
1411
1411
|
done: "done";
|
|
1412
1412
|
skipped: "skipped";
|
|
@@ -2076,9 +2076,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2076
2076
|
step: z$1.ZodString;
|
|
2077
2077
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2078
2078
|
pending: "pending";
|
|
2079
|
+
active: "active";
|
|
2079
2080
|
completed: "completed";
|
|
2080
2081
|
failed: "failed";
|
|
2081
|
-
active: "active";
|
|
2082
2082
|
}>>;
|
|
2083
2083
|
}, z$1.core.$strip>>;
|
|
2084
2084
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2157,10 +2157,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2157
2157
|
}>;
|
|
2158
2158
|
taskStatus: z$1.ZodEnum<{
|
|
2159
2159
|
pending: "pending";
|
|
2160
|
-
running: "running";
|
|
2161
|
-
paused: "paused";
|
|
2162
2160
|
completed: "completed";
|
|
2163
2161
|
failed: "failed";
|
|
2162
|
+
paused: "paused";
|
|
2163
|
+
running: "running";
|
|
2164
2164
|
killed: "killed";
|
|
2165
2165
|
stopped: "stopped";
|
|
2166
2166
|
}>;
|
|
@@ -2177,8 +2177,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2177
2177
|
index: z$1.ZodNumber;
|
|
2178
2178
|
label: z$1.ZodString;
|
|
2179
2179
|
state: z$1.ZodEnum<{
|
|
2180
|
-
running: "running";
|
|
2181
2180
|
failed: "failed";
|
|
2181
|
+
running: "running";
|
|
2182
2182
|
queued: "queued";
|
|
2183
2183
|
done: "done";
|
|
2184
2184
|
skipped: "skipped";
|
|
@@ -2389,10 +2389,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2389
2389
|
}>;
|
|
2390
2390
|
taskStatus: z$1.ZodEnum<{
|
|
2391
2391
|
pending: "pending";
|
|
2392
|
-
running: "running";
|
|
2393
|
-
paused: "paused";
|
|
2394
2392
|
completed: "completed";
|
|
2395
2393
|
failed: "failed";
|
|
2394
|
+
paused: "paused";
|
|
2395
|
+
running: "running";
|
|
2396
2396
|
killed: "killed";
|
|
2397
2397
|
stopped: "stopped";
|
|
2398
2398
|
}>;
|
|
@@ -2409,8 +2409,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2409
2409
|
index: z$1.ZodNumber;
|
|
2410
2410
|
label: z$1.ZodString;
|
|
2411
2411
|
state: z$1.ZodEnum<{
|
|
2412
|
-
running: "running";
|
|
2413
2412
|
failed: "failed";
|
|
2413
|
+
running: "running";
|
|
2414
2414
|
queued: "queued";
|
|
2415
2415
|
done: "done";
|
|
2416
2416
|
skipped: "skipped";
|
|
@@ -2488,10 +2488,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2488
2488
|
}>;
|
|
2489
2489
|
taskStatus: z$1.ZodEnum<{
|
|
2490
2490
|
pending: "pending";
|
|
2491
|
-
running: "running";
|
|
2492
|
-
paused: "paused";
|
|
2493
2491
|
completed: "completed";
|
|
2494
2492
|
failed: "failed";
|
|
2493
|
+
paused: "paused";
|
|
2494
|
+
running: "running";
|
|
2495
2495
|
killed: "killed";
|
|
2496
2496
|
stopped: "stopped";
|
|
2497
2497
|
}>;
|
|
@@ -2508,8 +2508,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2508
2508
|
index: z$1.ZodNumber;
|
|
2509
2509
|
label: z$1.ZodString;
|
|
2510
2510
|
state: z$1.ZodEnum<{
|
|
2511
|
-
running: "running";
|
|
2512
2511
|
failed: "failed";
|
|
2512
|
+
running: "running";
|
|
2513
2513
|
queued: "queued";
|
|
2514
2514
|
done: "done";
|
|
2515
2515
|
skipped: "skipped";
|
|
@@ -2704,9 +2704,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2704
2704
|
step: z$1.ZodString;
|
|
2705
2705
|
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2706
2706
|
pending: "pending";
|
|
2707
|
+
active: "active";
|
|
2707
2708
|
completed: "completed";
|
|
2708
2709
|
failed: "failed";
|
|
2709
|
-
active: "active";
|
|
2710
2710
|
}>>;
|
|
2711
2711
|
}, z$1.core.$strip>>;
|
|
2712
2712
|
explanation: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -2715,8 +2715,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2715
2715
|
threadId: z$1.ZodString;
|
|
2716
2716
|
providerThreadId: z$1.ZodString;
|
|
2717
2717
|
state: z$1.ZodEnum<{
|
|
2718
|
-
running: "running";
|
|
2719
2718
|
idle: "idle";
|
|
2719
|
+
running: "running";
|
|
2720
2720
|
}>;
|
|
2721
2721
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2722
2722
|
type: z$1.ZodLiteral<"turn/diff/updated">;
|
|
@@ -3578,9 +3578,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3578
3578
|
threadId: z$1.ZodString;
|
|
3579
3579
|
provisioningId: z$1.ZodString;
|
|
3580
3580
|
status: z$1.ZodEnum<{
|
|
3581
|
+
active: "active";
|
|
3581
3582
|
completed: "completed";
|
|
3582
3583
|
failed: "failed";
|
|
3583
|
-
active: "active";
|
|
3584
3584
|
cancelled: "cancelled";
|
|
3585
3585
|
}>;
|
|
3586
3586
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -4329,8 +4329,8 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
|
|
|
4329
4329
|
type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
|
|
4330
4330
|
|
|
4331
4331
|
declare const threadParentNotificationsSchema: z$1.ZodEnum<{
|
|
4332
|
-
auto: "auto";
|
|
4333
4332
|
off: "off";
|
|
4333
|
+
auto: "auto";
|
|
4334
4334
|
stuck: "stuck";
|
|
4335
4335
|
}>;
|
|
4336
4336
|
type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
|
|
@@ -6131,8 +6131,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6131
6131
|
skillFilePath: z$1.ZodString;
|
|
6132
6132
|
}, z$1.core.$strict>], "kind">>;
|
|
6133
6133
|
instructionMode: z$1.ZodEnum<{
|
|
6134
|
-
append: "append";
|
|
6135
6134
|
replace: "replace";
|
|
6135
|
+
append: "append";
|
|
6136
6136
|
}>;
|
|
6137
6137
|
type: z$1.ZodLiteral<"thread.rewind.prepare">;
|
|
6138
6138
|
leaseId: z$1.ZodString;
|
|
@@ -6280,8 +6280,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6280
6280
|
skillFilePath: z$1.ZodString;
|
|
6281
6281
|
}, z$1.core.$strict>], "kind">>;
|
|
6282
6282
|
instructionMode: z$1.ZodEnum<{
|
|
6283
|
-
append: "append";
|
|
6284
6283
|
replace: "replace";
|
|
6284
|
+
append: "append";
|
|
6285
6285
|
}>;
|
|
6286
6286
|
type: z$1.ZodLiteral<"thread.start">;
|
|
6287
6287
|
requestId: z$1.ZodString;
|
|
@@ -6744,8 +6744,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6744
6744
|
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6745
6745
|
}, z$1.core.$strict>;
|
|
6746
6746
|
instructionMode: z$1.ZodEnum<{
|
|
6747
|
-
append: "append";
|
|
6748
6747
|
replace: "replace";
|
|
6748
|
+
append: "append";
|
|
6749
6749
|
}>;
|
|
6750
6750
|
projectId: z$1.ZodString;
|
|
6751
6751
|
providerId: z$1.ZodString;
|
|
@@ -6960,8 +6960,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6960
6960
|
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
6961
6961
|
}, z$1.core.$strict>;
|
|
6962
6962
|
instructionMode: z$1.ZodEnum<{
|
|
6963
|
-
append: "append";
|
|
6964
6963
|
replace: "replace";
|
|
6964
|
+
append: "append";
|
|
6965
6965
|
}>;
|
|
6966
6966
|
projectId: z$1.ZodString;
|
|
6967
6967
|
providerId: z$1.ZodString;
|
|
@@ -7867,9 +7867,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7867
7867
|
base64: "base64";
|
|
7868
7868
|
utf8: "utf8";
|
|
7869
7869
|
}>;
|
|
7870
|
-
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7871
|
-
sizeBytes: z$1.ZodNumber;
|
|
7872
7870
|
sha256: z$1.ZodString;
|
|
7871
|
+
sizeBytes: z$1.ZodNumber;
|
|
7872
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7873
7873
|
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7874
7874
|
notModified: z$1.ZodLiteral<true>;
|
|
7875
7875
|
}, z$1.core.$strip>]>, "onlineRpc", true>;
|
|
@@ -8134,10 +8134,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8134
8134
|
health: z$1.ZodObject<{
|
|
8135
8135
|
status: z$1.ZodEnum<{
|
|
8136
8136
|
unknown: "unknown";
|
|
8137
|
+
ready: "ready";
|
|
8137
8138
|
not_installed: "not_installed";
|
|
8138
8139
|
unauthenticated: "unauthenticated";
|
|
8139
8140
|
expired: "expired";
|
|
8140
|
-
ready: "ready";
|
|
8141
8141
|
unsupported_version: "unsupported_version";
|
|
8142
8142
|
}>;
|
|
8143
8143
|
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8185,9 +8185,9 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8185
8185
|
executablePath: z$1.ZodNullable<z$1.ZodString>;
|
|
8186
8186
|
installed: z$1.ZodBoolean;
|
|
8187
8187
|
installSource: z$1.ZodEnum<{
|
|
8188
|
-
external: "external";
|
|
8189
8188
|
notInstalled: "notInstalled";
|
|
8190
8189
|
npmGlobal: "npmGlobal";
|
|
8190
|
+
external: "external";
|
|
8191
8191
|
}>;
|
|
8192
8192
|
currentVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8193
8193
|
latestVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8633,8 +8633,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8633
8633
|
message: z$1.ZodNullable<z$1.ZodString>;
|
|
8634
8634
|
state: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8635
8635
|
pending: "pending";
|
|
8636
|
-
ready: "ready";
|
|
8637
8636
|
activating: "activating";
|
|
8637
|
+
ready: "ready";
|
|
8638
8638
|
}>>;
|
|
8639
8639
|
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8640
8640
|
"server_move.prepare": HostDaemonCommandDescriptor<"server_move.prepare", z$1.ZodObject<{
|
|
@@ -8736,9 +8736,9 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
|
|
|
8736
8736
|
executablePath: z$1.ZodNullable<z$1.ZodString>;
|
|
8737
8737
|
installed: z$1.ZodBoolean;
|
|
8738
8738
|
installSource: z$1.ZodEnum<{
|
|
8739
|
-
external: "external";
|
|
8740
8739
|
notInstalled: "notInstalled";
|
|
8741
8740
|
npmGlobal: "npmGlobal";
|
|
8741
|
+
external: "external";
|
|
8742
8742
|
}>;
|
|
8743
8743
|
currentVersion: z$1.ZodNullable<z$1.ZodString>;
|
|
8744
8744
|
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.488",
|
|
4
4
|
"description": "bb app launcher for npx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bb",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"node": "^22.19.0 || ^24.0.0 || ^26.0.0"
|
|
106
106
|
},
|
|
107
107
|
"moonletRelease": {
|
|
108
|
-
"summary": "fix
|
|
108
|
+
"summary": "fix: validate plugin caller attribution before preserving update holds (#512)"
|
|
109
109
|
},
|
|
110
110
|
"license": "SEE LICENSE IN LICENSE"
|
|
111
111
|
}
|
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": "1affabb3d71b47d1cd559d7afa500f9ecd8055ad",
|
|
3
3
|
"file": "orbit-deploy",
|
|
4
4
|
"platform": "linux-x64",
|
|
5
5
|
"provenance": {
|
|
6
|
-
"artifactId":
|
|
7
|
-
"artifactName": "linux-bundle-
|
|
6
|
+
"artifactId": 14789271736,
|
|
7
|
+
"artifactName": "linux-bundle-1affabb3d71b47d1cd559d7afa500f9ecd8055ad",
|
|
8
8
|
"repository": "matt0x6F/personalassistant",
|
|
9
|
-
"runId":
|
|
9
|
+
"runId": 45107946335,
|
|
10
10
|
"workflow": ".github/workflows/moonlet-linux-bundle.yml"
|
|
11
11
|
},
|
|
12
12
|
"schema": 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1affabb3d71b47d1cd559d7afa500f9ecd8055ad
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"repository":"matt0x6F/personalassistant","revision":"
|
|
1
|
+
{"repository":"matt0x6F/personalassistant","revision":"1affabb3d71b47d1cd559d7afa500f9ecd8055ad"}
|
|
@@ -182950,6 +182950,16 @@ function initDb(databasePath, options2 = {}) {
|
|
|
182950
182950
|
return db;
|
|
182951
182951
|
}
|
|
182952
182952
|
|
|
182953
|
+
// ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/request/constants.js
|
|
182954
|
+
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
182955
|
+
|
|
182956
|
+
// ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/helper/route/index.js
|
|
182957
|
+
init_url();
|
|
182958
|
+
var matchedRoutes = (c) => (
|
|
182959
|
+
// @ts-expect-error c.req[GET_MATCH_RESULT] is not typed
|
|
182960
|
+
c.req[GET_MATCH_RESULT][0].map(([[, route]]) => route)
|
|
182961
|
+
);
|
|
182962
|
+
|
|
182953
182963
|
// src/services/plugins/plugin-rpc-caller.ts
|
|
182954
182964
|
import { createHash as createHash9, randomBytes as randomBytes5 } from "node:crypto";
|
|
182955
182965
|
|
|
@@ -187447,6 +187457,13 @@ function createPluginRpcCallerRegistry() {
|
|
|
187447
187457
|
}
|
|
187448
187458
|
};
|
|
187449
187459
|
}
|
|
187460
|
+
function isPluginBackgroundRequest(method, route, resolution) {
|
|
187461
|
+
if (!resolution.ok || resolution.caller.kind !== "plugin") return false;
|
|
187462
|
+
if (method === "GET") {
|
|
187463
|
+
return route === "/api/v1/hosts" || route === "/api/v1/projects" || route === "/api/v1/projects/:id" || route === "/api/v1/environments" || route === "/api/v1/environments/:id" || route === "/api/v1/terminals/:terminalId" || route === "/api/v1/threads/:id" || route === "/api/v1/queued-messages" || route === "/api/v1/threads/:id/queued-messages";
|
|
187464
|
+
}
|
|
187465
|
+
return method === "POST" && route === "/api/v1/plugins/:id/rpc/:method";
|
|
187466
|
+
}
|
|
187450
187467
|
function createPluginRpcCallerSdk(args) {
|
|
187451
187468
|
const timeoutFetch = createRequestTimeoutFetch({
|
|
187452
187469
|
timeoutMs: DEFAULT_BB_REQUEST_TIMEOUT_MS
|
|
@@ -194584,9 +194601,6 @@ var compose = (middleware, onError, onNotFound) => {
|
|
|
194584
194601
|
// ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/request.js
|
|
194585
194602
|
init_http_exception();
|
|
194586
194603
|
|
|
194587
|
-
// ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/request/constants.js
|
|
194588
|
-
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
|
194589
|
-
|
|
194590
194604
|
// ../../node_modules/.pnpm/hono@4.11.9/node_modules/hono/dist/utils/body.js
|
|
194591
194605
|
var parseBody = async (request2, options2 = /* @__PURE__ */ Object.create(null)) => {
|
|
194592
194606
|
const { all = false, dot = false } = options2;
|
|
@@ -233598,7 +233612,15 @@ function createApp(deps, options2) {
|
|
|
233598
233612
|
app.use("/api/v1/*", async (context, next) => {
|
|
233599
233613
|
const apiAction = resolveRequestAppSurface(context) === "api";
|
|
233600
233614
|
const passiveAppRequest = !apiAction && (/^\/api\/v1\/threads\/[^/]+\/(read|tabs)$/.test(context.req.path) || /^\/api\/v1\/plugins\/[^/]+\/(rpc|http)(\/|$)/.test(context.req.path) || /^\/api\/v1\/plugins\/[^/]+\/token$/.test(context.req.path));
|
|
233601
|
-
if ((apiAction && ["GET", "HEAD"].includes(context.req.method) || ["POST", "PUT", "PATCH", "DELETE"].includes(context.req.method)) && getGateAuthKind(context) !== "machine" &&
|
|
233615
|
+
if ((apiAction && ["GET", "HEAD"].includes(context.req.method) || ["POST", "PUT", "PATCH", "DELETE"].includes(context.req.method)) && getGateAuthKind(context) !== "machine" && !isPluginBackgroundRequest(
|
|
233616
|
+
context.req.method,
|
|
233617
|
+
matchedRoutes(context).find(
|
|
233618
|
+
(route) => route.method === context.req.method && !route.path.includes("*")
|
|
233619
|
+
)?.path,
|
|
233620
|
+
pluginService.resolveRpcCaller(
|
|
233621
|
+
context.req.header(PLUGIN_RPC_CALLER_HEADER)
|
|
233622
|
+
)
|
|
233623
|
+
) && !passiveAppRequest) {
|
|
233602
233624
|
let pluginOrAgent = false;
|
|
233603
233625
|
if (context.req.path.startsWith("/api/v1/threads") && context.req.header("content-type")?.includes("application/json")) {
|
|
233604
233626
|
const body = await context.req.json().catch(() => null);
|