@powerhousedao/reactor-api 6.2.3-dev.85 → 6.2.3-dev.86
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/{base-document-models-DZfYOd9M.mjs → base-document-models-DFRhs9rF.mjs} +234 -3
- package/dist/{base-document-models-DZfYOd9M.mjs.map → base-document-models-DFRhs9rF.mjs.map} +1 -1
- package/dist/{error-info-BaEL50f5.mjs → error-info-Cr6oQACe.mjs} +119 -4
- package/dist/error-info-Cr6oQACe.mjs.map +1 -0
- package/dist/index.d.mts +78 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +272 -19
- package/dist/index.mjs.map +1 -1
- package/dist/{package-subgraph-check-DxZhf2lB.mjs → package-subgraph-check-FpKGnzKA.mjs} +4 -4
- package/dist/{package-subgraph-check-DxZhf2lB.mjs.map → package-subgraph-check-FpKGnzKA.mjs.map} +1 -1
- package/dist/{pglite-node-DGms6Ssa.mjs → pglite-node-CcX2YT-l.mjs} +33 -4
- package/dist/pglite-node-CcX2YT-l.mjs.map +1 -0
- package/dist/src/graphql/subgraph-types.mjs +1 -1
- package/dist/src/pglite/pglite-node.d.mts +43 -2
- package/dist/src/pglite/pglite-node.d.mts.map +1 -1
- package/dist/src/pglite/pglite-node.mjs +5 -5
- package/dist/src/pglite/worker/entry.mjs +51 -4
- package/dist/src/pglite/worker/entry.mjs.map +1 -1
- package/package.json +13 -13
- package/dist/error-info-BaEL50f5.mjs.map +0 -1
- package/dist/pglite-node-DGms6Ssa.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="90ec88f9-620b-5dcf-9e76-c1fd843719d4")}catch(e){}}();
|
|
3
3
|
import { childLogger, documentModelDocumentModelModule } from "document-model";
|
|
4
4
|
import { gql } from "graphql-tag";
|
|
5
5
|
import { GraphQLScalarType, Kind, Lexer, Source, TokenKind, isTypeDefinitionNode, isTypeExtensionNode, parse, print, valueFromASTUntyped, visit } from "graphql";
|
|
@@ -1299,10 +1299,92 @@ const inspectionAdminTypeDefs = gql`
|
|
|
1299
1299
|
processors: Boolean!
|
|
1300
1300
|
"The catch-up priority can be set."
|
|
1301
1301
|
catchUpPriority: Boolean!
|
|
1302
|
+
"Memory telemetry can be switched and heap snapshots written."
|
|
1303
|
+
memoryTelemetry: Boolean!
|
|
1304
|
+
"Keyframe clean-up and reclaim are served."
|
|
1305
|
+
keyframes: Boolean!
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
"Rows and stored bytes a keyframe clean-up saw, can remove and removed."
|
|
1309
|
+
type InspectionKeyframeCleanupTotals {
|
|
1310
|
+
streams: Float!
|
|
1311
|
+
rows: Float!
|
|
1312
|
+
bytes: Float!
|
|
1313
|
+
removableRows: Float!
|
|
1314
|
+
removableBytes: Float!
|
|
1315
|
+
removedRows: Float!
|
|
1316
|
+
removedBytes: Float!
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
type InspectionKeyframeCleanupType {
|
|
1320
|
+
documentType: String!
|
|
1321
|
+
"The rule in force; absent keeps every keyframe."
|
|
1322
|
+
keep: Float
|
|
1323
|
+
interval: Float!
|
|
1324
|
+
streams: Float!
|
|
1325
|
+
rows: Float!
|
|
1326
|
+
bytes: Float!
|
|
1327
|
+
removableRows: Float!
|
|
1328
|
+
removableBytes: Float!
|
|
1329
|
+
removedRows: Float!
|
|
1330
|
+
removedBytes: Float!
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
type InspectionKeyframeCleanupReason {
|
|
1334
|
+
"beyond-keep or deleted-document."
|
|
1335
|
+
reason: String!
|
|
1336
|
+
rows: Float!
|
|
1337
|
+
bytes: Float!
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
type InspectionKeyframeCleanupStream {
|
|
1341
|
+
documentId: String!
|
|
1342
|
+
documentType: String!
|
|
1343
|
+
scope: String!
|
|
1344
|
+
branch: String!
|
|
1345
|
+
reason: String!
|
|
1346
|
+
rows: Float!
|
|
1347
|
+
bytes: Float!
|
|
1348
|
+
removableRows: Float!
|
|
1349
|
+
removableBytes: Float!
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
type InspectionKeyframeCleanupRun {
|
|
1353
|
+
id: String!
|
|
1354
|
+
dryRun: Boolean!
|
|
1355
|
+
"running, done, cancelled or failed."
|
|
1356
|
+
state: String!
|
|
1357
|
+
startedAtUtcMs: Float!
|
|
1358
|
+
finishedAtUtcMs: Float
|
|
1359
|
+
documentsTotal: Float!
|
|
1360
|
+
documentsSeen: Float!
|
|
1361
|
+
"The catch-up priority is at level 0, which stops the run."
|
|
1362
|
+
parked: Boolean!
|
|
1363
|
+
totals: InspectionKeyframeCleanupTotals!
|
|
1364
|
+
types: [InspectionKeyframeCleanupType!]!
|
|
1365
|
+
reasons: [InspectionKeyframeCleanupReason!]!
|
|
1366
|
+
topStreams: [InspectionKeyframeCleanupStream!]!
|
|
1367
|
+
error: String
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
type InspectionKeyframeReclaim {
|
|
1371
|
+
"running, done, busy, failed or unsupported."
|
|
1372
|
+
state: String!
|
|
1373
|
+
startedAtUtcMs: Float!
|
|
1374
|
+
finishedAtUtcMs: Float
|
|
1375
|
+
tableBytesBefore: Float
|
|
1376
|
+
tableBytesAfter: Float
|
|
1377
|
+
durationMs: Float
|
|
1378
|
+
"What happened, or what to do by hand."
|
|
1379
|
+
message: String!
|
|
1302
1380
|
}
|
|
1303
1381
|
|
|
1304
1382
|
type Query {
|
|
1305
1383
|
inspectionAdmin: InspectionAdmin!
|
|
1384
|
+
"The running or latest keyframe clean-up."
|
|
1385
|
+
inspectionKeyframeCleanup: InspectionKeyframeCleanupRun
|
|
1386
|
+
"The running or latest reclaim of the Keyframe table's disk space."
|
|
1387
|
+
inspectionKeyframeReclaim: InspectionKeyframeReclaim
|
|
1306
1388
|
}
|
|
1307
1389
|
|
|
1308
1390
|
type Mutation {
|
|
@@ -1325,6 +1407,35 @@ const inspectionAdminTypeDefs = gql`
|
|
|
1325
1407
|
load controller (level must be absent); mode fixed holds level, 0-7.
|
|
1326
1408
|
"""
|
|
1327
1409
|
inspectionSetCatchUpPriority(mode: String!, level: Int): Boolean!
|
|
1410
|
+
"Starts or stops memory telemetry, or changes its interval or outputs, without a restart."
|
|
1411
|
+
inspectionSetMemoryTelemetry(
|
|
1412
|
+
enabled: Boolean!
|
|
1413
|
+
intervalMs: Int
|
|
1414
|
+
outputs: [String!]
|
|
1415
|
+
): Boolean!
|
|
1416
|
+
"""
|
|
1417
|
+
Writes a V8 heap snapshot of the main thread and returns its path on the
|
|
1418
|
+
host. Blocks the server for seconds to minutes. force skips the check for
|
|
1419
|
+
free memory.
|
|
1420
|
+
"""
|
|
1421
|
+
inspectionWriteHeapSnapshot(force: Boolean): String!
|
|
1422
|
+
"""
|
|
1423
|
+
Starts a keyframe clean-up and answers at once; poll
|
|
1424
|
+
inspectionKeyframeCleanup. A dry run only reports. Otherwise it applies the
|
|
1425
|
+
configured keep and removes the keyframes of deleted documents. Refused
|
|
1426
|
+
while another run or a reclaim is going.
|
|
1427
|
+
"""
|
|
1428
|
+
inspectionStartKeyframeCleanup(
|
|
1429
|
+
dryRun: Boolean!
|
|
1430
|
+
): InspectionKeyframeCleanupRun!
|
|
1431
|
+
"Stops a running keyframe clean-up after its current statement."
|
|
1432
|
+
inspectionCancelKeyframeCleanup: Boolean!
|
|
1433
|
+
"""
|
|
1434
|
+
Rewrites the Keyframe table to give its dead space back to the disk, once
|
|
1435
|
+
the store is quiet; poll inspectionKeyframeReclaim. Where the host has no
|
|
1436
|
+
way to do that, it answers with what to do by hand.
|
|
1437
|
+
"""
|
|
1438
|
+
inspectionReclaimKeyframeSpace: InspectionKeyframeReclaim!
|
|
1328
1439
|
}
|
|
1329
1440
|
`;
|
|
1330
1441
|
//#endregion
|
|
@@ -1452,6 +1563,123 @@ const inspectionTypeDefs = gql`
|
|
|
1452
1563
|
phase: String!
|
|
1453
1564
|
}
|
|
1454
1565
|
|
|
1566
|
+
"""
|
|
1567
|
+
One path's numbers over one horizon. Times are wall-clock milliseconds the
|
|
1568
|
+
processor's queue awaited, not CPU; read time includes waiting for the store.
|
|
1569
|
+
slotWaitMs and pauseMs are throttling and count toward no busy time.
|
|
1570
|
+
"""
|
|
1571
|
+
type InspectionProcessorTimingCounters {
|
|
1572
|
+
batches: Float!
|
|
1573
|
+
opsDelivered: Float!
|
|
1574
|
+
opsScanned: Float!
|
|
1575
|
+
opsMatched: Float!
|
|
1576
|
+
pages: Float!
|
|
1577
|
+
handlerMs: Float!
|
|
1578
|
+
maxBatchMs: Float!
|
|
1579
|
+
readMs: Float!
|
|
1580
|
+
lookupMs: Float!
|
|
1581
|
+
fillMs: Float!
|
|
1582
|
+
slotWaitMs: Float!
|
|
1583
|
+
pauseMs: Float!
|
|
1584
|
+
errors: Float!
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
type InspectionProcessorTimingHorizon {
|
|
1588
|
+
live: InspectionProcessorTimingCounters!
|
|
1589
|
+
replay: InspectionProcessorTimingCounters!
|
|
1590
|
+
ordinalsAdvanced: Float!
|
|
1591
|
+
busyMs: Float!
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
type InspectionProcessorTimingRun {
|
|
1595
|
+
startedAtUtcMs: Float!
|
|
1596
|
+
runFrom: Float!
|
|
1597
|
+
counters: InspectionProcessorTimingCounters!
|
|
1598
|
+
ordinalsAdvanced: Float!
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
type InspectionProcessorTimingLastRun {
|
|
1602
|
+
startedAtUtcMs: Float!
|
|
1603
|
+
durationMs: Float!
|
|
1604
|
+
ordinals: Float!
|
|
1605
|
+
opsDelivered: Float!
|
|
1606
|
+
busyMs: Float!
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
type InspectionProcessorTimingBatch {
|
|
1610
|
+
atUtcMs: Float!
|
|
1611
|
+
path: String!
|
|
1612
|
+
ops: Float!
|
|
1613
|
+
ms: Float!
|
|
1614
|
+
fromOrdinal: Float!
|
|
1615
|
+
toOrdinal: Float!
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
type InspectionProcessorTimingDocumentType {
|
|
1619
|
+
documentType: String!
|
|
1620
|
+
ops: Float!
|
|
1621
|
+
handlerMs: Float!
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
type InspectionProcessorQueueDepth {
|
|
1625
|
+
tasks: Float!
|
|
1626
|
+
ops: Float!
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
"""
|
|
1630
|
+
One processor's timing. The horizons are null while timing is off.
|
|
1631
|
+
"""
|
|
1632
|
+
type InspectionProcessorTiming {
|
|
1633
|
+
processorId: String!
|
|
1634
|
+
name: String!
|
|
1635
|
+
driveLabel: String!
|
|
1636
|
+
factoryId: String!
|
|
1637
|
+
driveId: String!
|
|
1638
|
+
phase: String!
|
|
1639
|
+
lastOrdinal: Float!
|
|
1640
|
+
queueDepth: InspectionProcessorQueueDepth!
|
|
1641
|
+
ordinalsBehind: Float!
|
|
1642
|
+
opsPerSecond: Float!
|
|
1643
|
+
ordinalsPerSecond: Float!
|
|
1644
|
+
etaMs: Float
|
|
1645
|
+
sinceUtcMs: Float
|
|
1646
|
+
total: InspectionProcessorTimingHorizon
|
|
1647
|
+
window: InspectionProcessorTimingHorizon
|
|
1648
|
+
windowMs: Float!
|
|
1649
|
+
currentRun: InspectionProcessorTimingRun
|
|
1650
|
+
lastRun: InspectionProcessorTimingLastRun
|
|
1651
|
+
lastBatch: InspectionProcessorTimingBatch
|
|
1652
|
+
byDocumentType: [InspectionProcessorTimingDocumentType!]!
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
"""
|
|
1656
|
+
level is off, basic or detailed. Without a catch-up status, head is the
|
|
1657
|
+
highest cursor and headKnown is false.
|
|
1658
|
+
"""
|
|
1659
|
+
type InspectionProcessorTimingReport {
|
|
1660
|
+
level: String!
|
|
1661
|
+
windowMs: Float!
|
|
1662
|
+
head: Float!
|
|
1663
|
+
headKnown: Boolean!
|
|
1664
|
+
processors: [InspectionProcessorTiming!]!
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
"""
|
|
1668
|
+
Memory samples correlated with operations processed. samples are newest
|
|
1669
|
+
last; summary holds the rates over the correlation window and is null until
|
|
1670
|
+
two samples exist.
|
|
1671
|
+
"""
|
|
1672
|
+
type InspectionMemoryTelemetry {
|
|
1673
|
+
enabled: Boolean!
|
|
1674
|
+
intervalMs: Float!
|
|
1675
|
+
consoleIntervalMs: Float!
|
|
1676
|
+
outputs: [String!]!
|
|
1677
|
+
file: String
|
|
1678
|
+
startedAt: String
|
|
1679
|
+
summary: JSONObject
|
|
1680
|
+
samples: [JSONObject!]!
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1455
1683
|
"""
|
|
1456
1684
|
What one catch-up priority level sets. giveWay is stop (level 0: no page is
|
|
1457
1685
|
read until the level rises), pause (pauseMs between pages), yield (one
|
|
@@ -1578,6 +1806,9 @@ const inspectionTypeDefs = gql`
|
|
|
1578
1806
|
attachmentInfo: InspectionAttachmentInfo!
|
|
1579
1807
|
queueState: InspectionQueueState!
|
|
1580
1808
|
processors: [InspectionProcessor!]!
|
|
1809
|
+
processorTiming: InspectionProcessorTimingReport!
|
|
1810
|
+
"Refused on a host without memory telemetry."
|
|
1811
|
+
memoryTelemetry(limit: Int, sinceIso: String): InspectionMemoryTelemetry!
|
|
1581
1812
|
catchUpStatus: JSONObject!
|
|
1582
1813
|
catchUpPriority: InspectionCatchUpPriority!
|
|
1583
1814
|
storageHealth: InspectionStorageHealth!
|
|
@@ -1626,5 +1857,5 @@ const baseDocumentModels = [
|
|
|
1626
1857
|
//#endregion
|
|
1627
1858
|
export { getDocumentModelTypeDefs as A, createMergedSchema as C, generateDocumentModelSchema as D, findSubgraphTypeCollisions as E, typeDefinitionNames as F, getDocumentModelSchemaName as I, EMPTY_SCALAR_REGISTRY as L, hasOperationSchemas as M, reservedTypeNames as N, generatedTypesOf as O, reservedTypeNamesTaken as P, sameScalarRegistry as R, buildSubgraphSchemaModule as S, documentModelSubgraphTypes as T, describeOwnershipConflicts as _, inspectionAdminTypeDefs as a, assembleSubgraphTypeDefs as b, HOST_ORIGIN as c, byClaimPriority as d, decideAdmission as f, collectSubgraphClaims as g, supergraphClaimLosers as h, inspectionTypeDefs as i, getGeneratedDocumentModelTypes as j, getDocumentModelSubgraphName as k, RegistrationOrder as l, documentModelSubgraphSources as m, systemTypeDefs as n, CORE_ORIGIN as o, describeOrigin as p, schema_default as r, DOCUMENT_MODEL_ORIGIN as s, baseDocumentModels as t, admitDocumentModels as u, DocumentModelSchemaCache as v, createSchema as w, buildDocumentModelSchema as x, SubgraphTypeCollisionError as y, schema_default$1 as z };
|
|
1628
1859
|
|
|
1629
|
-
//# sourceMappingURL=base-document-models-
|
|
1630
|
-
//# debugId=
|
|
1860
|
+
//# sourceMappingURL=base-document-models-DFRhs9rF.mjs.map
|
|
1861
|
+
//# debugId=90ec88f9-620b-5dcf-9e76-c1fd843719d4
|