@halcyonlabs/app 0.47.0-halcyon.493 → 0.47.0-halcyon.495
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 +10 -10
- 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 +16 -2
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
|
-
flat: "flat";
|
|
87
86
|
collapse: "collapse";
|
|
87
|
+
flat: "flat";
|
|
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
|
-
flat: "flat";
|
|
109
108
|
collapse: "collapse";
|
|
109
|
+
flat: "flat";
|
|
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
|
-
flat: "flat";
|
|
147
146
|
collapse: "collapse";
|
|
147
|
+
flat: "flat";
|
|
148
148
|
}>>;
|
|
149
149
|
streamerMode: z$1.ZodBoolean;
|
|
150
150
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -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
|
-
flat: "flat";
|
|
4244
4243
|
collapse: "collapse";
|
|
4244
|
+
flat: "flat";
|
|
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>;
|
|
@@ -7862,14 +7862,14 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7862
7862
|
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7863
7863
|
sha256: z$1.ZodString;
|
|
7864
7864
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7865
|
-
path: z$1.ZodString;
|
|
7866
7865
|
contentEncoding: z$1.ZodEnum<{
|
|
7867
7866
|
base64: "base64";
|
|
7868
7867
|
utf8: "utf8";
|
|
7869
7868
|
}>;
|
|
7870
|
-
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7871
|
-
sizeBytes: z$1.ZodNumber;
|
|
7872
7869
|
sha256: z$1.ZodString;
|
|
7870
|
+
sizeBytes: z$1.ZodNumber;
|
|
7871
|
+
path: z$1.ZodString;
|
|
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>;
|
|
@@ -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<{
|
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.495",
|
|
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(server): settle automatic ticks before disposal (#519)"
|
|
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": "a196692ff1ab24fb9f114637a0be3920884a6bdb",
|
|
3
3
|
"file": "orbit-deploy",
|
|
4
4
|
"platform": "linux-x64",
|
|
5
5
|
"provenance": {
|
|
6
|
-
"artifactId":
|
|
7
|
-
"artifactName": "linux-bundle-
|
|
6
|
+
"artifactId": 14831979417,
|
|
7
|
+
"artifactName": "linux-bundle-a196692ff1ab24fb9f114637a0be3920884a6bdb",
|
|
8
8
|
"repository": "matt0x6F/personalassistant",
|
|
9
|
-
"runId":
|
|
9
|
+
"runId": 45200360549,
|
|
10
10
|
"workflow": ".github/workflows/moonlet-linux-bundle.yml"
|
|
11
11
|
},
|
|
12
12
|
"schema": 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a196692ff1ab24fb9f114637a0be3920884a6bdb
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"repository":"matt0x6F/personalassistant","revision":"
|
|
1
|
+
{"repository":"matt0x6F/personalassistant","revision":"a196692ff1ab24fb9f114637a0be3920884a6bdb"}
|
|
@@ -201065,9 +201065,11 @@ function createAppUpdateService(args) {
|
|
|
201065
201065
|
}
|
|
201066
201066
|
return args.launcher;
|
|
201067
201067
|
};
|
|
201068
|
+
let disposed = false;
|
|
201068
201069
|
let tickInflight = null;
|
|
201069
201070
|
const tick = async () => {
|
|
201070
201071
|
await recoveredAttempt;
|
|
201072
|
+
if (disposed) return "off";
|
|
201071
201073
|
if (args.countRunningThreads() > 0) lastBusyMonotonicMs = monotonicNowMs();
|
|
201072
201074
|
if (admission.ownerEpoch !== observedOwnerEpoch) {
|
|
201073
201075
|
observedOwnerEpoch = admission.ownerEpoch;
|
|
@@ -201106,6 +201108,7 @@ function createAppUpdateService(args) {
|
|
|
201106
201108
|
const status = await getStatus({
|
|
201107
201109
|
forceRefresh: activeHold === null
|
|
201108
201110
|
});
|
|
201111
|
+
if (disposed) return "off";
|
|
201109
201112
|
if (admission.ownerEpoch !== observedOwnerEpoch) {
|
|
201110
201113
|
observedOwnerEpoch = admission.ownerEpoch;
|
|
201111
201114
|
lastBusyMonotonicMs = monotonicNowMs();
|
|
@@ -201144,6 +201147,7 @@ function createAppUpdateService(args) {
|
|
|
201144
201147
|
to: { version: available.version, commit: available.commit }
|
|
201145
201148
|
};
|
|
201146
201149
|
await persistAttempt(activeHold.attempt);
|
|
201150
|
+
if (disposed) return "off";
|
|
201147
201151
|
}
|
|
201148
201152
|
}
|
|
201149
201153
|
if (failedAutomaticKey === key) return "failed-before";
|
|
@@ -201177,6 +201181,7 @@ function createAppUpdateService(args) {
|
|
|
201177
201181
|
result: null
|
|
201178
201182
|
};
|
|
201179
201183
|
await persistAttempt(attempt);
|
|
201184
|
+
if (disposed) return "off";
|
|
201180
201185
|
if (admission.ownerEpoch !== ownerEpoch || !(args.automaticUpdates?.() ?? false)) {
|
|
201181
201186
|
availableSinceMonotonicMs = monotonicNowMs();
|
|
201182
201187
|
lastBusyMonotonicMs = monotonicNowMs();
|
|
@@ -201191,7 +201196,7 @@ function createAppUpdateService(args) {
|
|
|
201191
201196
|
}
|
|
201192
201197
|
const hold = activeHold;
|
|
201193
201198
|
if (hold === null || !hold.lease.active()) return "busy";
|
|
201194
|
-
const active = () => hold.lease.active() && activeHold === hold && (args.automaticUpdates?.() ?? false);
|
|
201199
|
+
const active = () => !disposed && hold.lease.active() && activeHold === hold && (args.automaticUpdates?.() ?? false);
|
|
201195
201200
|
if (args.countRunningThreads() > 0) {
|
|
201196
201201
|
try {
|
|
201197
201202
|
await args.work?.checkpoint(hold.attempt, active);
|
|
@@ -201208,6 +201213,7 @@ function createAppUpdateService(args) {
|
|
|
201208
201213
|
reason: "Continuations were persisted before interruption"
|
|
201209
201214
|
};
|
|
201210
201215
|
await persistAttempt(hold.attempt);
|
|
201216
|
+
if (disposed) return "off";
|
|
201211
201217
|
}
|
|
201212
201218
|
await args.work?.interrupt(hold.attempt, active);
|
|
201213
201219
|
if (active() && args.countRunningThreads() > 0 && monotonicNowMs() >= hold.stoppingDeadlineMonotonicMs) {
|
|
@@ -201289,6 +201295,7 @@ function createAppUpdateService(args) {
|
|
|
201289
201295
|
return "applied";
|
|
201290
201296
|
};
|
|
201291
201297
|
const automaticTick = () => {
|
|
201298
|
+
if (disposed) return Promise.resolve("off");
|
|
201292
201299
|
if (tickInflight !== null) return tickInflight;
|
|
201293
201300
|
const running2 = tick();
|
|
201294
201301
|
tickInflight = running2;
|
|
@@ -201392,6 +201399,7 @@ function createAppUpdateService(args) {
|
|
|
201392
201399
|
return getStatus({ forceRefresh: false });
|
|
201393
201400
|
},
|
|
201394
201401
|
dispose() {
|
|
201402
|
+
disposed = true;
|
|
201395
201403
|
activeHold?.lease.release("disposed");
|
|
201396
201404
|
automaticRequest?.lease.release("disposed");
|
|
201397
201405
|
stopHoldTimer();
|
|
@@ -201399,6 +201407,12 @@ function createAppUpdateService(args) {
|
|
|
201399
201407
|
unsubscribeStatus();
|
|
201400
201408
|
unsubscribeDisconnect();
|
|
201401
201409
|
args.launcher?.dispose();
|
|
201410
|
+
return recoveredAttempt.then(() => tickInflight?.catch(() => void 0)).then(() => {
|
|
201411
|
+
activeHold?.lease.release("disposed");
|
|
201412
|
+
automaticRequest?.lease.release("disposed");
|
|
201413
|
+
stopHoldTimer();
|
|
201414
|
+
return receiptWrites;
|
|
201415
|
+
});
|
|
201402
201416
|
},
|
|
201403
201417
|
getStatus
|
|
201404
201418
|
};
|
|
@@ -240819,7 +240833,7 @@ async function runServer(serverConfig) {
|
|
|
240819
240833
|
}
|
|
240820
240834
|
shutdownPromise = (async () => {
|
|
240821
240835
|
serverMove.dispose();
|
|
240822
|
-
appUpdate.dispose();
|
|
240836
|
+
await appUpdate.dispose();
|
|
240823
240837
|
providerModelCatalogPrewarm?.stop();
|
|
240824
240838
|
eventLoopStallMonitor.stop();
|
|
240825
240839
|
await performanceDiagnostics.stop();
|