instar 1.3.142 → 1.3.144
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/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +8 -4
- package/dist/commands/server.js.map +1 -1
- package/dist/lifeline/ServerSupervisor.d.ts +18 -0
- package/dist/lifeline/ServerSupervisor.d.ts.map +1 -1
- package/dist/lifeline/ServerSupervisor.js +149 -0
- package/dist/lifeline/ServerSupervisor.js.map +1 -1
- package/dist/lifeline/TelegramLifeline.d.ts +8 -0
- package/dist/lifeline/TelegramLifeline.d.ts.map +1 -1
- package/dist/lifeline/TelegramLifeline.js +22 -0
- package/dist/lifeline/TelegramLifeline.js.map +1 -1
- package/dist/lifeline/agentSleepWake.d.ts +6 -0
- package/dist/lifeline/agentSleepWake.d.ts.map +1 -0
- package/dist/lifeline/agentSleepWake.js +33 -0
- package/dist/lifeline/agentSleepWake.js.map +1 -0
- package/dist/monitoring/SleepController.d.ts +8 -0
- package/dist/monitoring/SleepController.d.ts.map +1 -1
- package/dist/monitoring/SleepController.js +25 -0
- package/dist/monitoring/SleepController.js.map +1 -1
- package/dist/server/machineAuth.d.ts +8 -2
- package/dist/server/machineAuth.d.ts.map +1 -1
- package/dist/server/machineAuth.js +28 -2
- package/dist/server/machineAuth.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +3 -3
- package/upgrades/1.3.143.md +44 -0
- package/upgrades/1.3.144.md +53 -0
- package/upgrades/side-effects/agent-hard-sleep-mechanism.md +115 -0
- package/upgrades/side-effects/machineauth-shared-sequence.md +60 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwvDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwvDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAyvPtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -8285,7 +8285,7 @@ export async function startServer(options) {
|
|
|
8285
8285
|
// inbound-message chokepoint (/internal/telegram-forward).
|
|
8286
8286
|
const { AgentActivityState } = await import('../monitoring/AgentActivityState.js');
|
|
8287
8287
|
const agentActivityState = new AgentActivityState();
|
|
8288
|
-
const { SleepController, sleepAuditSink } = await import('../monitoring/SleepController.js');
|
|
8288
|
+
const { SleepController, sleepAuditSink, sleepRequestWriter } = await import('../monitoring/SleepController.js');
|
|
8289
8289
|
const _sleepCfg = config.monitoring?.agentSleep;
|
|
8290
8290
|
const sleepController = new SleepController({
|
|
8291
8291
|
sample: () => {
|
|
@@ -8298,14 +8298,18 @@ export async function startServer(options) {
|
|
|
8298
8298
|
// Lease guard: only relevant when multi-machine coordination is active.
|
|
8299
8299
|
leaseActive: coordinator.enabled,
|
|
8300
8300
|
holdsLease: coordinator.enabled ? coordinator.holdsLease() : false,
|
|
8301
|
-
// In-flight: an inbound message currently being handled. (
|
|
8302
|
-
// in-flight + scheduler-wake
|
|
8303
|
-
//
|
|
8301
|
+
// In-flight: an inbound message currently being handled. (A fuller
|
|
8302
|
+
// relay/forward-queue in-flight signal + the scheduler next-fire wake are
|
|
8303
|
+
// tracked refinements; nextScheduledJobAt stays null until scheduler-wake
|
|
8304
|
+
// lands, so the scheduled-job guard is conservative-off for now.)
|
|
8304
8305
|
inflightWork: (currentInboundByTopic?.size ?? 0) > 0,
|
|
8305
8306
|
nextScheduledJobAt: null,
|
|
8306
8307
|
};
|
|
8307
8308
|
},
|
|
8308
8309
|
audit: sleepAuditSink(config.stateDir),
|
|
8310
|
+
// Live-mode only (enabled && !dryRun): writes state/sleep-requested.json
|
|
8311
|
+
// for the ServerSupervisor to honor. Dark/dry-run never invokes this.
|
|
8312
|
+
requestSleep: sleepRequestWriter(config.stateDir),
|
|
8309
8313
|
}, {
|
|
8310
8314
|
enabled: _sleepCfg?.enabled ?? false,
|
|
8311
8315
|
dryRun: _sleepCfg?.dryRun ?? true,
|