@wrongstack/cli 0.292.0 → 0.292.1
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/hq-server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hq-server.d.ts","sourceRoot":"","sources":["../src/hq-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"hq-server.d.ts","sourceRoot":"","sources":["../src/hq-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAqCH,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAIjD,OAAO,EAaL,2BAA2B,EAC3B,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAO,MAAM,YAAY,cAAc,CAAC;AACxC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,aAAa,QAAS,CAAC;AACpC,eAAO,MAAM,0BAA0B,QAAS,CAAC;AACjD,eAAO,MAAM,6BAA6B,QAAS,CAAC;AACpD,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GACpB,CAAC;AAIF,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAA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authorizeMailboxGateway, g
|
|
|
5038
5038
|
return;
|
|
5039
5039
|
}
|
|
5040
5040
|
const suffix = match[2];
|
|
5041
|
-
const
|
|
5041
|
+
const rawUrl = _req.url ?? "";
|
|
5042
|
+
const queryIndex = rawUrl.indexOf("?");
|
|
5043
|
+
const querySuffix = queryIndex === -1 ? "" : rawUrl.slice(queryIndex);
|
|
5044
|
+
const canonicalPath = suffix ? `/mailbox/${suffix}${querySuffix}` : `/mailbox${querySuffix}`;
|
|
5042
5045
|
const projectDir = resolveProjectDir(projectRoot, gatewayGlobalRoot);
|
|
5043
5046
|
await getMailboxGateway(projectDir).router.handle(_req, res, canonicalPath);
|
|
5044
5047
|
}
|
|
@@ -5673,6 +5676,7 @@ import {
|
|
|
5673
5676
|
createHqPersistence as createHqPersistence2,
|
|
5674
5677
|
createMailboxHttpRouter as createMailboxHttpRouter2,
|
|
5675
5678
|
DEFAULT_HQ_REDACTION_POLICY as DEFAULT_HQ_REDACTION_POLICY2,
|
|
5679
|
+
MAILBOX_HTTP_DEFAULT_MAX_AGE_MS,
|
|
5676
5680
|
ensureHqFirstRunAuthFile,
|
|
5677
5681
|
GlobalMailbox as GlobalMailbox2,
|
|
5678
5682
|
HqAlertEngine as HqAlertEngine2,
|
|
@@ -5916,7 +5920,13 @@ function startHqServerWithAuth(options, host, port, dataDir, firstRunAuth) {
|
|
|
5916
5920
|
mailbox,
|
|
5917
5921
|
eventEmitter,
|
|
5918
5922
|
rateLimiter: mailboxGatewayRateLimiter,
|
|
5919
|
-
authorize: (request) => authorizeMailboxGateway(request, projectDir)
|
|
5923
|
+
authorize: (request) => authorizeMailboxGateway(request, projectDir),
|
|
5924
|
+
// Wire the 1h look-back that the router's docs promise at
|
|
5925
|
+
// mailbox-http-router.ts:25-32 / :47-62. The router itself is
|
|
5926
|
+
// opt-in (L146-152): without this option, every retained
|
|
5927
|
+
// message would be returned. Per-request opt-in to the full
|
|
5928
|
+
// history remains available via `?sinceMs=0`.
|
|
5929
|
+
defaultMaxAgeMs: MAILBOX_HTTP_DEFAULT_MAX_AGE_MS
|
|
5920
5930
|
});
|
|
5921
5931
|
const gateway = { mailbox, router };
|
|
5922
5932
|
mailboxGateways.set(projectDir, gateway);
|
|
@@ -26917,6 +26927,7 @@ import {
|
|
|
26917
26927
|
authorizeMailboxBearerToken,
|
|
26918
26928
|
createMailboxHttpRouter as createMailboxHttpRouter3,
|
|
26919
26929
|
GlobalMailbox as GlobalMailbox3,
|
|
26930
|
+
MAILBOX_HTTP_DEFAULT_MAX_AGE_MS as MAILBOX_HTTP_DEFAULT_MAX_AGE_MS2,
|
|
26920
26931
|
MailboxEventEmitter as MailboxEventEmitter2,
|
|
26921
26932
|
MailboxHttpRateLimiter as MailboxHttpRateLimiter3,
|
|
26922
26933
|
resolveProjectDir as resolveProjectDir2,
|
|
@@ -27003,7 +27014,18 @@ or stop the conflicting process and retry.
|
|
|
27003
27014
|
mailbox,
|
|
27004
27015
|
eventEmitter,
|
|
27005
27016
|
rateLimiter,
|
|
27006
|
-
authorize: (request) => authorizeMailboxBearerToken(request, tentative.token)
|
|
27017
|
+
authorize: (request) => authorizeMailboxBearerToken(request, tentative.token),
|
|
27018
|
+
// Wire the 1h look-back that the router's docs promise at
|
|
27019
|
+
// mailbox-http-router.ts:25-32 / :47-62. The router itself is
|
|
27020
|
+
// opt-in (L146-152): without this option, every retained
|
|
27021
|
+
// message would be returned.
|
|
27022
|
+
//
|
|
27023
|
+
// Per-request override contract (mailbox-http-router.ts:64-80):
|
|
27024
|
+
// - `?sinceMs=0` → no filter (full retained history)
|
|
27025
|
+
// - `?sinceMs > 7d` → silently clamped to
|
|
27026
|
+
// MAILBOX_HTTP_MAX_AGE_CEILING_MS (7d)
|
|
27027
|
+
// - `?sinceMs=-1/NaN/∞` → disable sentinel (same as `undefined`)
|
|
27028
|
+
defaultMaxAgeMs: MAILBOX_HTTP_DEFAULT_MAX_AGE_MS2
|
|
27007
27029
|
});
|
|
27008
27030
|
const server = createServer4((request, response) => {
|
|
27009
27031
|
void router.handle(request, response);
|