@halcyonlabs/app 0.47.0-halcyon.487 → 0.47.0-halcyon.489
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 +17 -17
- 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 +34 -4
package/dist/index.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
83
83
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
84
84
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
85
85
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
86
|
-
collapse: "collapse";
|
|
87
86
|
flat: "flat";
|
|
87
|
+
collapse: "collapse";
|
|
88
88
|
}>>;
|
|
89
89
|
streamerMode: z$1.ZodBoolean;
|
|
90
90
|
allowFastServiceTier: z$1.ZodBoolean;
|
|
@@ -105,8 +105,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
105
105
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
106
106
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
107
107
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
108
|
-
collapse: "collapse";
|
|
109
108
|
flat: "flat";
|
|
109
|
+
collapse: "collapse";
|
|
110
110
|
}>>;
|
|
111
111
|
streamerMode: z$1.ZodBoolean;
|
|
112
112
|
managedBranchPrefix: z$1.ZodString;
|
|
@@ -143,8 +143,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
143
143
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
144
144
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
145
145
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
146
|
-
collapse: "collapse";
|
|
147
146
|
flat: "flat";
|
|
147
|
+
collapse: "collapse";
|
|
148
148
|
}>>;
|
|
149
149
|
streamerMode: z$1.ZodBoolean;
|
|
150
150
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -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
|
}>;
|
|
@@ -4240,8 +4240,8 @@ declare const providerInfoSchema: z$1.ZodObject<{
|
|
|
4240
4240
|
}, z$1.core.$strip>;
|
|
4241
4241
|
}, z$1.core.$strip>], "kind">>;
|
|
4242
4242
|
completedTurnDisplay: z$1.ZodEnum<{
|
|
4243
|
-
collapse: "collapse";
|
|
4244
4243
|
flat: "flat";
|
|
4244
|
+
collapse: "collapse";
|
|
4245
4245
|
}>;
|
|
4246
4246
|
available: z$1.ZodBoolean;
|
|
4247
4247
|
strings: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -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.489",
|
|
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: cancel update holds when plugin caller lookup fails (#513)"
|
|
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": "b3884ded8dbd213695f6e16c78e13039d2b4cdda",
|
|
3
3
|
"file": "orbit-deploy",
|
|
4
4
|
"platform": "linux-x64",
|
|
5
5
|
"provenance": {
|
|
6
|
-
"artifactId":
|
|
7
|
-
"artifactName": "linux-bundle-
|
|
6
|
+
"artifactId": 14791016666,
|
|
7
|
+
"artifactName": "linux-bundle-b3884ded8dbd213695f6e16c78e13039d2b4cdda",
|
|
8
8
|
"repository": "matt0x6F/personalassistant",
|
|
9
|
-
"runId":
|
|
9
|
+
"runId": 45112292771,
|
|
10
10
|
"workflow": ".github/workflows/moonlet-linux-bundle.yml"
|
|
11
11
|
},
|
|
12
12
|
"schema": 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b3884ded8dbd213695f6e16c78e13039d2b4cdda
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"repository":"matt0x6F/personalassistant","revision":"
|
|
1
|
+
{"repository":"matt0x6F/personalassistant","revision":"b3884ded8dbd213695f6e16c78e13039d2b4cdda"}
|
|
@@ -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,23 @@ 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
|
-
|
|
233615
|
+
const resolvePluginCaller = () => {
|
|
233616
|
+
try {
|
|
233617
|
+
return pluginService.resolveRpcCaller(
|
|
233618
|
+
context.req.header(PLUGIN_RPC_CALLER_HEADER)
|
|
233619
|
+
);
|
|
233620
|
+
} catch (error3) {
|
|
233621
|
+
updateAdmission.ownerActivity();
|
|
233622
|
+
throw error3;
|
|
233623
|
+
}
|
|
233624
|
+
};
|
|
233625
|
+
if ((apiAction && ["GET", "HEAD"].includes(context.req.method) || ["POST", "PUT", "PATCH", "DELETE"].includes(context.req.method)) && getGateAuthKind(context) !== "machine" && !isPluginBackgroundRequest(
|
|
233626
|
+
context.req.method,
|
|
233627
|
+
matchedRoutes(context).find(
|
|
233628
|
+
(route) => route.method === context.req.method && !route.path.includes("*")
|
|
233629
|
+
)?.path,
|
|
233630
|
+
resolvePluginCaller()
|
|
233631
|
+
) && !passiveAppRequest) {
|
|
233602
233632
|
let pluginOrAgent = false;
|
|
233603
233633
|
if (context.req.path.startsWith("/api/v1/threads") && context.req.header("content-type")?.includes("application/json")) {
|
|
233604
233634
|
const body = await context.req.json().catch(() => null);
|