@substrat-run/kernel 0.141.0 → 0.143.0
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/async-invocation-log.d.ts +1 -1
- package/dist/async-invocation-log.d.ts.map +1 -1
- package/dist/async-invocation-log.js +1 -1
- package/dist/async-invocation-log.js.map +1 -1
- package/dist/attachment-extractor.d.ts +0 -9
- package/dist/attachment-extractor.d.ts.map +1 -1
- package/dist/attachment-extractor.js +2 -2
- package/dist/attachment-extractor.js.map +1 -1
- package/dist/attachment-text.d.ts +0 -5
- package/dist/attachment-text.d.ts.map +1 -1
- package/dist/attachment-text.js +0 -4
- package/dist/attachment-text.js.map +1 -1
- package/dist/attribution.d.ts +0 -7
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js +0 -7
- package/dist/attribution.js.map +1 -1
- package/dist/audit-outcome.d.ts +60 -2
- package/dist/audit-outcome.d.ts.map +1 -1
- package/dist/audit-outcome.js +63 -3
- package/dist/audit-outcome.js.map +1 -1
- package/dist/capability.d.ts +123 -14
- package/dist/capability.d.ts.map +1 -1
- package/dist/capability.js +266 -16
- package/dist/capability.js.map +1 -1
- package/dist/connector-calls.d.ts +3 -77
- package/dist/connector-calls.d.ts.map +1 -1
- package/dist/connector-calls.js +4 -63
- package/dist/connector-calls.js.map +1 -1
- package/dist/denial-query.d.ts +0 -14
- package/dist/denial-query.d.ts.map +1 -1
- package/dist/denial-query.js +1 -1
- package/dist/denial-query.js.map +1 -1
- package/dist/derived-handlers.d.ts +17 -0
- package/dist/derived-handlers.d.ts.map +1 -0
- package/dist/derived-handlers.js +106 -0
- package/dist/derived-handlers.js.map +1 -0
- package/dist/entity-grant-shape.d.ts +79 -7
- package/dist/entity-grant-shape.d.ts.map +1 -1
- package/dist/entity-grant-shape.js +177 -74
- package/dist/entity-grant-shape.js.map +1 -1
- package/dist/entity-grant.d.ts +0 -5
- package/dist/entity-grant.d.ts.map +1 -1
- package/dist/entity-grant.js +0 -4
- package/dist/entity-grant.js.map +1 -1
- package/dist/entity-state.d.ts +0 -17
- package/dist/entity-state.d.ts.map +1 -1
- package/dist/entity-state.js +2 -2
- package/dist/entity-state.js.map +1 -1
- package/dist/entity-trash.d.ts +2 -2
- package/dist/entity-trash.d.ts.map +1 -1
- package/dist/entity-trash.js +6 -6
- package/dist/entity-trash.js.map +1 -1
- package/dist/grant-scoped-read.d.ts +0 -2
- package/dist/grant-scoped-read.d.ts.map +1 -1
- package/dist/grant-scoped-read.js +2 -2
- package/dist/grant-scoped-read.js.map +1 -1
- package/dist/index.d.ts +58 -139
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -107
- package/dist/index.js.map +1 -1
- package/dist/invocation-line.d.ts +211 -0
- package/dist/invocation-line.d.ts.map +1 -0
- package/dist/invocation-line.js +33 -0
- package/dist/invocation-line.js.map +1 -0
- package/dist/job-run.d.ts +0 -39
- package/dist/job-run.d.ts.map +1 -1
- package/dist/job-run.js +6 -6
- package/dist/job-run.js.map +1 -1
- package/dist/list-index.d.ts +0 -45
- package/dist/list-index.d.ts.map +1 -1
- package/dist/list-index.js +2 -39
- package/dist/list-index.js.map +1 -1
- package/dist/membership-executor.d.ts +2 -1
- package/dist/membership-executor.d.ts.map +1 -1
- package/dist/membership-executor.js +1 -1
- package/dist/membership-executor.js.map +1 -1
- package/dist/meters.d.ts +21 -1
- package/dist/meters.d.ts.map +1 -1
- package/dist/meters.js +0 -0
- package/dist/meters.js.map +1 -1
- package/dist/migration-digest.d.ts +0 -12
- package/dist/migration-digest.d.ts.map +1 -1
- package/dist/migration-digest.js +1 -1
- package/dist/migration-digest.js.map +1 -1
- package/dist/module-log.d.ts +5 -4
- package/dist/module-log.d.ts.map +1 -1
- package/dist/module-log.js +5 -4
- package/dist/module-log.js.map +1 -1
- package/dist/module-operations.d.ts +146 -0
- package/dist/module-operations.d.ts.map +1 -0
- package/dist/module-operations.js +174 -0
- package/dist/module-operations.js.map +1 -0
- package/dist/peer.d.ts +0 -2
- package/dist/peer.d.ts.map +1 -1
- package/dist/peer.js +0 -4
- package/dist/peer.js.map +1 -1
- package/dist/permission-checker.d.ts +23 -0
- package/dist/permission-checker.d.ts.map +1 -1
- package/dist/permission-checker.js.map +1 -1
- package/dist/permission-eval.d.ts.map +1 -1
- package/dist/permission-eval.js +77 -21
- package/dist/permission-eval.js.map +1 -1
- package/dist/platform-request-query.d.ts +6 -6
- package/dist/platform-request-query.d.ts.map +1 -1
- package/dist/platform-request-query.js +23 -7
- package/dist/platform-request-query.js.map +1 -1
- package/dist/platform-sweep.d.ts +107 -3
- package/dist/platform-sweep.d.ts.map +1 -1
- package/dist/platform-sweep.js +131 -2
- package/dist/platform-sweep.js.map +1 -1
- package/dist/refusal-query.d.ts +0 -11
- package/dist/refusal-query.d.ts.map +1 -1
- package/dist/refusal-query.js +1 -1
- package/dist/refusal-query.js.map +1 -1
- package/dist/refusals.d.ts +1 -3
- package/dist/refusals.d.ts.map +1 -1
- package/dist/refusals.js +0 -2
- package/dist/refusals.js.map +1 -1
- package/dist/row-decode.d.ts +16 -1
- package/dist/row-decode.d.ts.map +1 -1
- package/dist/row-decode.js +18 -6
- package/dist/row-decode.js.map +1 -1
- package/dist/scope-copy-ledger.d.ts +49 -2
- package/dist/scope-copy-ledger.d.ts.map +1 -1
- package/dist/scope-copy-ledger.js +44 -1
- package/dist/scope-copy-ledger.js.map +1 -1
- package/dist/scope-host.d.ts +100 -110
- package/dist/scope-host.d.ts.map +1 -1
- package/dist/scope-host.js +0 -17
- package/dist/scope-host.js.map +1 -1
- package/dist/scope-lifecycle.d.ts +0 -21
- package/dist/scope-lifecycle.d.ts.map +1 -1
- package/dist/scope-lifecycle.js +1 -1
- package/dist/scope-lifecycle.js.map +1 -1
- package/dist/scope-role-admin.d.ts +0 -6
- package/dist/scope-role-admin.d.ts.map +1 -1
- package/dist/scope-role-admin.js +1 -1
- package/dist/scope-role-admin.js.map +1 -1
- package/dist/search-index.d.ts +0 -23
- package/dist/search-index.d.ts.map +1 -1
- package/dist/search-index.js +2 -24
- package/dist/search-index.js.map +1 -1
- package/dist/spine-restore.d.ts +0 -22
- package/dist/spine-restore.d.ts.map +1 -1
- package/dist/spine-restore.js +2 -2
- package/dist/spine-restore.js.map +1 -1
- package/dist/sql-limits.d.ts +4 -0
- package/dist/sql-limits.d.ts.map +1 -1
- package/dist/sql-limits.js +4 -0
- package/dist/sql-limits.js.map +1 -1
- package/dist/storage-gauge.d.ts +125 -0
- package/dist/storage-gauge.d.ts.map +1 -0
- package/dist/storage-gauge.js +234 -0
- package/dist/storage-gauge.js.map +1 -0
- package/dist/subject-redaction.d.ts +0 -38
- package/dist/subject-redaction.d.ts.map +1 -1
- package/dist/subject-redaction.js +4 -4
- package/dist/subject-redaction.js.map +1 -1
- package/dist/system-switch-record.d.ts +0 -4
- package/dist/system-switch-record.d.ts.map +1 -1
- package/dist/system-switch-record.js +2 -2
- package/dist/system-switch-record.js.map +1 -1
- package/dist/system-switch.d.ts +0 -23
- package/dist/system-switch.d.ts.map +1 -1
- package/dist/system-switch.js +1 -1
- package/dist/system-switch.js.map +1 -1
- package/dist/table-ownership.d.ts +0 -32
- package/dist/table-ownership.d.ts.map +1 -1
- package/dist/table-ownership.js +5 -5
- package/dist/table-ownership.js.map +1 -1
- package/dist/testing.d.ts +17 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +15 -0
- package/dist/testing.js.map +1 -0
- package/dist/vertical-events.d.ts +1 -7
- package/dist/vertical-events.d.ts.map +1 -1
- package/dist/vertical-events.js +2 -10
- package/dist/vertical-events.js.map +1 -1
- package/package.json +14 -2
- package/dist/invocation-log.d.ts +0 -447
- package/dist/invocation-log.d.ts.map +0 -1
- package/dist/invocation-log.js +0 -410
- package/dist/invocation-log.js.map +0 -1
- package/dist/platform-call.d.ts +0 -45
- package/dist/platform-call.d.ts.map +0 -1
- package/dist/platform-call.js +0 -63
- package/dist/platform-call.js.map +0 -1
- package/dist/provider-error.d.ts +0 -38
- package/dist/provider-error.d.ts.map +0 -1
- package/dist/provider-error.js +0 -65
- package/dist/provider-error.js.map +0 -1
- package/dist/routed-node.d.ts +0 -87
- package/dist/routed-node.d.ts.map +0 -1
- package/dist/routed-node.js +0 -67
- package/dist/routed-node.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,141 +1,87 @@
|
|
|
1
|
-
export { GRANT_CHILDREN_INDEX_DDL
|
|
2
|
-
export {
|
|
3
|
-
/** @deprecated Import from `@substrat-run/adapter-cloudflare` (#1978); this kernel export goes in a later release. */
|
|
4
|
-
CONNECTOR_CALL_DATA_POINT_LAYOUT, CONNECTOR_CALL_ERROR_TYPES,
|
|
5
|
-
/** @deprecated Import from `@substrat-run/adapter-cloudflare` (#1978); this kernel export goes in a later release. */
|
|
6
|
-
analyticsEngineConnectorCallRecorder,
|
|
7
|
-
/** @deprecated Import from `@substrat-run/adapter-cloudflare` (#1978); this kernel export goes in a later release. */
|
|
8
|
-
connectorCallDataPoint, connectorCallErrorType, connectorCallRecord, noopConnectorCallRecorder, recordConnectorCall, settleConnectionUse, } from './connector-calls.js';
|
|
1
|
+
export { GRANT_CHILDREN_INDEX_DDL } from './grant-scoped-read.js';
|
|
2
|
+
export { connectorCallRecord, noopConnectorCallRecorder, recordConnectorCall, settleConnectionUse, } from './connector-calls.js';
|
|
9
3
|
export { requestEmail, settlePlatformRequestIn } from './email-intent.js';
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
14
|
-
isUpgradeRequest, isVouchedWithin, vouchedWithin, checkedWithin, isCheckedWithin, LIVE_CLOSE, LIVE_SOCKETS_PER_PRINCIPAL, } from './scope-host.js';
|
|
15
|
-
export {
|
|
16
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
17
|
-
LIVE_MODE_HEADER,
|
|
18
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
19
|
-
PLATFORM_SECRET_HEADER,
|
|
20
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
21
|
-
PLATFORM_REQUEST_HEADER,
|
|
22
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
23
|
-
EXPORTED_EVENTS_HEADER,
|
|
24
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
25
|
-
CONNECTOR_ATTACHMENT_RECORD_HEADER, } from '@substrat-run/contracts/wire-headers';
|
|
4
|
+
export { COPY_CLAIM_SQL, COPY_RESTORE_FENCE_LAPSED, copyRestoreFence, copyRestoreFenceLapsed, BACKFILL_MOVE_ID, COPY_BACKFILL_SCOPE_SQL, COPY_BACKFILL_SQL, COPY_BACKFILL_SUPERSEDE_SQL, copyBackfillParams, copyBackfillRefusal, COPY_EXPIRED_SQL, COPY_MOVE_CONFIRM_SQL, COPY_MOVE_LIVE_PREDICATE, SCOPE_SCRIPT_COPY_COLUMNS, copyMoveConfirmParams, copyMoveLiveParams, scopeScriptCopyOf, } from './scope-copy-ledger.js';
|
|
5
|
+
export { SCOPE_COPY_LEASE_MS, assertRedrainWindow, attachmentBlobKey, attachmentSha256, consumersFor, entitlementDenial, requiredEntitlementFor, backoffAt, globalFetch, executorOutcomeOf, parseValidationRecords, resolveRetryPolicy, OPS_FAILURE_RETENTION_DAYS, SWEEP_RUN_RETENTION_DAYS, SWEEP_RUNS_INTENT_INDEX, sweepRunsIntentHasKind, ISSUE_RETENTION_DAYS, telemetryRetentionStatements, assertRowLimit, assertRowOffset, EMITTED_REPORT_CAP, isUpgradeRequest, isVouchedWithin, vouchedWithin, checkedWithin, isCheckedWithin, } from './scope-host.js';
|
|
6
|
+
export { assertBoundOperations, operationsFor, undeclaredOperations, } from './module-operations.js';
|
|
26
7
|
export { isSecretBoxConfigured, SecretBoxUnconfiguredError, unconfiguredSecretBox, webCryptoSecretBox, } from './secret-box.js';
|
|
27
8
|
export { visibleContinuation, CONTINUATION_POSITION_CAP } from './visible-continuation.js';
|
|
28
9
|
export { ConnectionSealingKeyUnavailableError, generateSealingKeyPair, noSealingKeyMessage, openSealed, sealTo, SealedKeyUnavailableError, } from './sealed-box.js';
|
|
29
10
|
export { createSubjectKeys } from './subject-keys.js';
|
|
30
11
|
export { resolveScopeRecord } from './scope-record.js';
|
|
31
12
|
export { assertAllowed, denyAllChecker, PermissionDenied, UNSAFE_allowAllChecker, } from './permission-checker.js';
|
|
32
|
-
export { actorOf, asPrincipal,
|
|
33
|
-
export { ancestorsWithin, createTupleEvaluator, grantedEntitiesForContext,
|
|
34
|
-
export {
|
|
13
|
+
export { actorOf, asPrincipal, unknownRoleError } from './permission-checker.js';
|
|
14
|
+
export { ancestorsWithin, createTupleEvaluator, grantedEntitiesForContext, memberAddedAudit, orgChangeBound, reachesWithin, tenantCoverage, } from './permission-eval.js';
|
|
15
|
+
export { CAPABILITY_DDL, CAPABILITY_EXCHANGE_OPERATION, CAPABILITY_SESSION_PRUNE_BATCH, WITHHELD_SECRET, assertNoSecret, capabilityAttachmentWriteRefused, capabilityByIdQuery, capabilityTokenHash, checkBecomeInput, createCapabilityVerbs, exchangeCapability, guardSecrets, mintBecomeCapability, mintCapabilitySecret, readCapabilityPage, plausibleSessionToken, plausibleCapabilitySecret, redactSecrets, redactSecretText, resolveCapabilitySession, revokeCapabilityAsPlatform, CAPABILITY_BECOME_MINT_OPERATION, becomeMintCheck, readBecomeLinkStates, assertBecomeLinkStateIds, mintBecomeCapabilityAsPrincipal, revokeBecomeCapabilityAsPrincipal, } from './capability.js';
|
|
35
16
|
export { createEntityEdgeVerbs } from './entity-edges.js';
|
|
36
|
-
export { addStatePlans, createEntityStateVerbs, entityStateMigrations,
|
|
37
|
-
export { PURGE_BATCH, assertNoCallerPurge, heldPurgePass, isUnreachableParent,
|
|
38
|
-
export { afterMigration, afterRuntimeDdl,
|
|
39
|
-
export {
|
|
17
|
+
export { addStatePlans, createEntityStateVerbs, entityStateMigrations, ENTITY_STATE_MOVES_DDL, statefulTablesOf, } from './entity-state.js';
|
|
18
|
+
export { PURGE_BATCH, assertNoCallerPurge, heldPurgePass, isUnreachableParent, purgeDueOf, purgeHeldBy, purgeOnlyKeysOf, purgeReportOf, purgeStillDue, refuseTrashedTarget, registerTrashTargets, runPurgePass, withheldKeysFor, } from './entity-trash.js';
|
|
19
|
+
export { afterMigration, afterRuntimeDdl, derivesAnything, repairDerivedObjects, StateColumnLost, } from './derived-objects.js';
|
|
20
|
+
export { createTrashedReads, searchStateWhere, uncheckedView } from './entity-state-reads.js';
|
|
40
21
|
export { createAtomic } from './sub-transaction.js';
|
|
41
|
-
export { DEFAULT_SEARCH_LIMIT, MAX_SEARCH_LIMIT,
|
|
42
|
-
export { ATTACHMENT_SEARCH_OWNER_MAX, ATTACHMENT_SEARCH_OWNERS_SQL, ATTACHMENT_SEARCH_SQL, ATTACHMENT_SEARCH_TOO_MANY_OWNERS, ATTACHMENT_TEXT_BACKFILL_BATCH, ATTACHMENT_TEXT_BACKFILL_JOB, ATTACHMENT_TEXT_DDL, ATTACHMENT_TEXT_JOB, ATTACHMENT_TEXT_MODULE, assertJobRegistrable, attachmentRecordOfRow, attachmentTextBackfillJob, attachmentTextJob, enqueueAttachmentText, kernelJobFor,
|
|
43
|
-
export { DEFAULT_ATTACHMENT_TEXT_BOUNDS, EXTRACTION_STRIDE, assertAttachmentExtractors,
|
|
44
|
-
export { CursorMismatch, FilterNotDeclared,
|
|
22
|
+
export { DEFAULT_SEARCH_LIMIT, MAX_SEARCH_LIMIT, NotSearchable, SearchTermTooShort, isSearchIndexTable, searchIndexMigrations, searchIndexPlans, searchLimit, searchMatchExpression, searchQuery, } from './search-index.js';
|
|
23
|
+
export { ATTACHMENT_SEARCH_OWNER_MAX, ATTACHMENT_SEARCH_OWNERS_SQL, ATTACHMENT_SEARCH_SQL, ATTACHMENT_SEARCH_TOO_MANY_OWNERS, ATTACHMENT_TEXT_BACKFILL_BATCH, ATTACHMENT_TEXT_BACKFILL_JOB, ATTACHMENT_TEXT_DDL, ATTACHMENT_TEXT_JOB, ATTACHMENT_TEXT_MODULE, assertJobRegistrable, attachmentRecordOfRow, attachmentTextBackfillJob, attachmentTextJob, enqueueAttachmentText, kernelJobFor, queueAttachmentTextBackfill, readAttachmentText, reconcileAttachmentText, recordAttachmentText, searchAttachments, startAttachmentTextBackfill, } from './attachment-text.js';
|
|
24
|
+
export { DEFAULT_ATTACHMENT_TEXT_BOUNDS, EXTRACTION_STRIDE, assertAttachmentExtractors, chooseAttachmentExtractor, resolveAttachmentTextBounds, runAttachmentExtractor, } from './attachment-extractor.js';
|
|
25
|
+
export { CursorMismatch, FilterNotDeclared, NotListable, SortNotDeclared, cursorOf, listIndexMigrations, listIndexPlans, listQuery, } from './list-index.js';
|
|
45
26
|
export { moduleMigrations } from './module-migrations.js';
|
|
46
|
-
export { MIGRATION_DIGEST_FENCE_DDL,
|
|
27
|
+
export { MIGRATION_DIGEST_FENCE_DDL, MIGRATION_DIGEST_MARK_LEGACY, assertJournalDumpCoherent, assertMigrationSql, migrationDigest, migrationDivergence, migrationFailedError, migrationSteps, planMigrations, } from './migration-digest.js';
|
|
47
28
|
export { frozenClock, manualClock } from './clock.js';
|
|
48
|
-
export { createUlid, ulid,
|
|
29
|
+
export { createUlid, ulid, ulidTime } from './ulid.js';
|
|
49
30
|
export { assertReadOnlyQuery } from './read-only-sql.js';
|
|
50
|
-
export {
|
|
51
|
-
export { DO_SQL_LIMITS, tooManyResultColumns, tooManyTableColumns,
|
|
31
|
+
export { guardSpine } from './spine-guard.js';
|
|
32
|
+
export { DO_SQL_LIMITS, tooManyResultColumns, tooManyTableColumns, guardSqlLimits, } from './sql-limits.js';
|
|
52
33
|
export { assertPermissionKey } from './check-key.js';
|
|
53
34
|
export { assertModuleEnqueueableKind } from './platform-kinds.js';
|
|
54
|
-
export {
|
|
55
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
56
|
-
readRoutedNode,
|
|
57
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
58
|
-
RouterAssertionError, } from './routed-node.js';
|
|
59
|
-
export {
|
|
60
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
61
|
-
assertPlatformCall,
|
|
62
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
63
|
-
PlatformCallError,
|
|
64
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
65
|
-
kickFlags, } from './platform-call.js';
|
|
66
35
|
export { signConnectState, verifyConnectState, ConnectStateError, CONNECT_STATE_PURPOSE, } from './connect-state.js';
|
|
67
36
|
export { CONNECT_LINKS_DDL, consumeConnectLinkRow, insertConnectLink, listConnectLinks, readConnectLink, restoreConnectLinkRow, revokeConnectLinkRow, } from './connect-links.js';
|
|
68
|
-
export { PLATFORM_REQUEST_COLUMNS, platformRequestHistoryQuery, platformRequestOf,
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
37
|
+
export { PLATFORM_REQUEST_COLUMNS, platformRequestHistoryQuery, platformRequestOf, } from './platform-request-query.js';
|
|
38
|
+
export { CANCELLED_JOB_NOTE, DELIVERY_ERROR_REDACTION_SQL, intentPayloadCarriesSubject, PLATFORM_REQUEST_REDACTION_SQL, platformRequestRedactionParams, platformRequestRedactionQuery, REDACTED_DELIVERY_NOTE, REDACTED_INTENT_MARKER, REDACTED_JOB_NOTE, redactSubjectJobRuns, REDACTED_FAILURE_NOTE, redactSubjectScopeText, ISSUE_EXEMPLAR_OWNER_BACKFILL_SQL, issueExemplarOwner, redactSubjectDirectoryText, platformIntentFailureMessage, } from './subject-redaction.js';
|
|
39
|
+
export { eraseSubjectFromModules, isModuleErasureCounts, moduleErasurePlan, moduleRowsErased, SECURE_DELETE_MIN_SQLITE, } from './module-erasure.js';
|
|
40
|
+
export { TABLE_OWNERS_DDL, assertMigrationLeavesLedgerAlone, recordOwnershipSteps, runMigrationStatements, } from './table-ownership.js';
|
|
72
41
|
export { blankSqlComments, executableSqlStatements, splitSqlStatements } from './sql-statements.js';
|
|
73
42
|
export { FINDINGS_DDL, FINDING_RETENTION_DAYS, createFindingRule, findingOfOpsFailure, findingOfSweepRun, pruneFindings, listFindingRules, listFindings, observeFinding, revokeFindingRule, setFindingStatus, } from './findings.js';
|
|
74
43
|
export { effectiveRoleGrantQuery, seatScopeTuple } from './scope-tuple-seat.js';
|
|
75
|
-
export {
|
|
76
|
-
export { grantEntityShapeIn, shapeTopUpBatch, topUpEntityGrantShapes } from './entity-grant-shape.js';
|
|
77
|
-
export { applyScopeRoleChange, changeScopeRole,
|
|
44
|
+
export { delegatedRevokeSql, writeExplicitTupleIn } from './entity-grant.js';
|
|
45
|
+
export { SHAPE_MARKER_INDEX_DDL, grantEntityShapeIn, shapeTopUpBatch, topUpEntityGrantShapes } from './entity-grant-shape.js';
|
|
46
|
+
export { applyScopeRoleChange, changeScopeRole, revokeScopeRoles, scopeRoleHolders } from './scope-role-admin.js';
|
|
78
47
|
export { repointScopeGrants } from './scope-repoint.js';
|
|
79
|
-
export { COPY_ORIGIN_DDL, capabilitiesForLoad, clearCopyMarker, emittedHere, isCopyLoad, IS_COPY_SQL,
|
|
80
|
-
export { isLifecycleWrite,
|
|
48
|
+
export { COPY_ORIGIN_DDL, capabilitiesForLoad, clearCopyMarker, emittedHere, isCopyLoad, IS_COPY_SQL, markCopyOrigin, settleCopiedWork } from './scope-copy.js';
|
|
49
|
+
export { isLifecycleWrite, lifecycleReceipt, lifecycleRefusal, readLifecycle, settleLifecycleAfterLoad, writeLifecycle } from './scope-lifecycle.js';
|
|
81
50
|
export { CARRIED_AWAY_KEY, COPY_MARK_CLEARED_KEY, KEPT_COPY_REFUSAL, KEPT_DIVERGENT_KEY, LOAD_STAMP_KEY, STORE_LOCAL_META_KEYS, WRITE_REVISION_KEY, carriedAwayDump, dumpMetaValue, isCopyMarkInsert, isWriteStatement, metaValueIn } from './carried-copy.js';
|
|
82
|
-
export { LEGACY_SCOPE_ROWS_BACKFILL,
|
|
83
|
-
export {
|
|
84
|
-
export { PEER_SWITCHES_DDL, SWITCH_KINDS, SWITCH_OWED_DDL, SYSTEM_SWITCHES_DDL,
|
|
51
|
+
export { LEGACY_SCOPE_ROWS_BACKFILL, assertSpineTablesBuilt, dumpRowsInsert, isSpineTable, loadDirectoryDump, spineColumnAdditions } from './spine-restore.js';
|
|
52
|
+
export { SYSTEM_SWITCH_OFF_QUERY, SWITCH_FENCES_DDL, moveSwitch, recordedOffFromWire, switchRecordedOff, switchSystemSchedules, subjectGrantState, systemGrantsStatus, systemScheduleState, systemSwitchedOff, systemSwitchedOffMessage, tenantSystemSwitchedOffMessage, } from './system-switch.js';
|
|
53
|
+
export { PEER_SWITCHES_DDL, SWITCH_KINDS, SWITCH_OWED_DDL, SYSTEM_SWITCHES_DDL, clearSwitchOwed, scopeOwesSwitch, markSwitchOwed, switchesOwedOf, forgetSwitchesOf, inUnitMovesToAudit, listSystemSwitchRecords, reassertActionOf, recordWriteSuperseded, reassertEntry, reassertOffRow, reassertOnRow, recordSwitchedOff, recordSwitchedOn, restoreSwitchRecord, scopesSwitchedOffFor, staleCarryRevertRow, staleCarryReverts, switchActionOf, switchAuditSubject, switchNotFoundMessage, switchFencesOf, switchRecordStatesOf, switchRecordsOf, switchSubjectOf, switchSupersededMessage, switchedOffOf, switchesBackfillSqlOf, switchesDdlOf, switchesTableExists, switchesTableOf, tenantHeldOf, tenantHoldsGrant, withRecorded, } from './system-switch-record.js';
|
|
85
54
|
export { ADMIN_LOG_INDEX_DDL, ADMIN_LOG_INDEXES_SQL } from './admin-log-ddl.js';
|
|
86
|
-
export { AUDITED_CHANGE_ACTIONS,
|
|
55
|
+
export { AUDITED_CHANGE_ACTIONS, SETTLE_INTENT_SQL, SETTLE_OUTCOME_SQL, settleOutcomeParamsOf, operationKeyOf, auditedOperationsSql, effectiveOutcomes, isSupersededOutcome, readAuditedOperations, unknownOutcomeOf, UNRECORDED_OUTCOME_LOG, recordAuditOutcome, auditedCapabilityRevoke, auditWarningOf, } from './audit-outcome.js';
|
|
87
56
|
export { VERSION_MIGRATIONS_DDL, splitManifestMigrations, splitVersionMigrationsBatch, versionMigrationsOf, versionsAwaitSplit, writeVersionMigrations, } from './version-migrations.js';
|
|
88
|
-
export {
|
|
57
|
+
export { admitPeer, collectPeers, peerGrantsStatus, peerSeats, peerSubjectRef, resolveVerticalInstanceFrom, switchPeer, } from './peer.js';
|
|
89
58
|
export { PEER_BINDINGS_DDL, resolvePeerInstanceFrom } from './peer.js';
|
|
90
|
-
export {
|
|
59
|
+
export { DENIAL_WINDOW_QUERY, denialListQuery, denialSummaryQuery, denialTotalsQuery, mapDenialRow, mapDenialSummaryBuckets, } from './denial-query.js';
|
|
91
60
|
export { entityVersionQuery, entityVersionOf, assertIfMatch, OUTBOX_ENTITY_INDEX, } from './entity-version.js';
|
|
92
61
|
export { IMPERSONATION_COLUMNS, IMPERSONATION_DDL, ImpersonationRefused, assertImpersonationWrites, assertSessionUsable, impersonationByIdQuery, impersonationListQuery, impersonationRowValues, impersonationStampOf, mapImpersonationRow, newImpersonationSession, } from './impersonation.js';
|
|
93
62
|
export { readLifecycleFlow } from './lifecycle-flow.js';
|
|
94
|
-
export {
|
|
95
|
-
export {
|
|
96
|
-
export {
|
|
63
|
+
export { operationSeriesQuery, readOperationSeries } from './operation-series.js';
|
|
64
|
+
export { REFUSALS_INDEX, REFUSALS_REBUILD, REFUSALS_TABLE_DDL, markGuardRefusal, refusalInsert, refusalOf, refusalsAdmitGuards, } from './refusals.js';
|
|
65
|
+
export { mapRefusalRow, refusalListQuery } from './refusal-query.js';
|
|
97
66
|
export { readTimeline, readHistory, readScopeTimeline, readScopeHistory, facetEvents, walkEventCause, walkEventEffects, readInvocation, readDeadLetters, readExecutorDelivery } from './timeline.js';
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
export {
|
|
101
|
-
export {
|
|
102
|
-
export {
|
|
103
|
-
export {
|
|
104
|
-
/** @deprecated Import from `@substrat-run/control-plane-api` (#1978); this kernel export goes in a later release. */
|
|
105
|
-
isTerminalDispatchFailure,
|
|
106
|
-
/** @deprecated Import from `@substrat-run/control-plane-api` (#1978); this kernel export goes in a later release. */
|
|
107
|
-
isTerminalProviderError,
|
|
108
|
-
/** @deprecated Import from `@substrat-run/control-plane-api` (#1978); this kernel export goes in a later release. */
|
|
109
|
-
providerErrorStatus,
|
|
110
|
-
/** @deprecated Import from `@substrat-run/control-plane-api` (#1978); this kernel export goes in a later release. */
|
|
111
|
-
RETRYABLE_CLIENT_STATUSES, } from './provider-error.js';
|
|
112
|
-
export { runPlatformSweep, startPlatformSweeper, SCHEDULE_STATE_DDL, SCHEDULE_STATE_REBUILD, SCHEDULE_STATE_KIND_OF_OP, scheduleStateHasKind, } from './platform-sweep.js';
|
|
67
|
+
export { domainEventOf, readUndrainedOutbox, undrainedEventsOf, } from './outbox-event.js';
|
|
68
|
+
export { IDEMPOTENCY_DDL, assertIdempotencyKey, idempotencyLookupQuery, idempotencyPruneStatement, idempotencyRecordStatement, idempotencyOptedOutMessage, replayFor, } from './idempotency.js';
|
|
69
|
+
export { JOB_RUN_DDL, JOB_RUN_PATCH_SQL, JOB_RUN_CLAIM_SQL, JOB_RUN_RENEW_SQL, JOB_RUN_BEGIN_SQL, JOB_RUN_MISS_SQL, JOB_RUN_MISS_SETTLE_SQL, admissionMissOutcome, JOB_STEP_RECORD_SQL, JOB_LEASE_MS, JOB_LEASE_MIN_MS, JOB_ADMISSION_MISS_MAX, JOB_LEASE_TOO_SHORT_NOTE, admissionBackoffMs, JOB_LEASE_EXPIRED_NOTE, assertLeaseMs, jobRunListLimit, SYSTEM_DOOR_WAIT, JOB_DEFER_MS, JOB_RUN_DUE_AT, jobRunOf, runDueJobRuns, runJobPass, startJobRun, } from './job-run.js';
|
|
70
|
+
export { runPlatformSweep, startPlatformSweeper, SCHEDULE_STATE_DDL, SCHEDULE_STATE_REBUILD, scheduleStateHasKind, } from './platform-sweep.js';
|
|
71
|
+
export { StorageReadUnsupported } from './platform-sweep.js';
|
|
113
72
|
// #1653: which scopes are the real install, and which version runs on them — shared so
|
|
114
73
|
// every receipt writer and the sweep answer both questions the same way.
|
|
115
|
-
export { isPrimaryScope, isPrimaryScopeRow, INERT_SCOPE_REASON, runningVersionOf, PROVISION_RECONCILE_BATCH,
|
|
116
|
-
export {
|
|
74
|
+
export { isPrimaryScope, isPrimaryScopeRow, INERT_SCOPE_REASON, runningVersionOf, PROVISION_RECONCILE_BATCH, CROSS_VERTICAL_CONSUMERS_PER_PASS, runCrossVerticalFrom, registryImportCandidates, crossVerticalHealth, exportBreaksOf, exportBreakRefusal, isExportBreakRefusal, bindExportBreaksOf, bindExportBreakRefusal, BIND_EXPORT_BREAK_REFUSAL, isBindExportBreakRefusal, } from './platform-sweep.js';
|
|
75
|
+
export { migrationProgress, } from './migration-progress.js';
|
|
117
76
|
export { foldMeterReading } from './meters.js';
|
|
118
77
|
export { MODEL_USAGE_RETENTION_DAYS, foldModelUsage, } from './model-usage.js';
|
|
119
|
-
export {
|
|
120
|
-
export {
|
|
121
|
-
export {
|
|
122
|
-
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
128
|
-
invocationStampOf,
|
|
129
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
130
|
-
withInvocationLog,
|
|
131
|
-
/** @deprecated Import from `@substrat-run/vertical-host` (#1978); this kernel export goes in a later release. */
|
|
132
|
-
fieldCoverageArmed, } from './invocation-log.js';
|
|
133
|
-
export {
|
|
134
|
-
/** @deprecated Import from `@substrat-run/contracts` (#1978); this kernel export goes in a later release. */
|
|
135
|
-
invocationLevelOf, } from '@substrat-run/contracts/invocation-record';
|
|
136
|
-
export { VERTICAL_EVENTS_DDL, EXPORT_HOPS_SQL, emptyImportResult, IMPORT_CURSORS_SQL, IMPORT_CURSOR_OF_SQL, IMPORT_CURSOR_ADVANCE_SQL, IMPORT_RECORD_SQL, OUTBOX_MARK_SQL, emittedSinceQuery, emittedReportOf, moveImportCursor, importCursorSourceOf, exportedSinceQuery, exportReadQuery, exportReadPlan, exportsOf, planExportBatch, withheldNote, CrossVerticalRegistry, } from './vertical-events.js';
|
|
137
|
-
export { attributedHost, attributedView } from './attribution.js';
|
|
138
|
-
export { isDeliveryRefusal, refuseDelivery, refusalJournalText, REFUSAL_JOURNAL_PREFIX, } from './delivery-refusal.js';
|
|
139
|
-
export { MEMBER_ADD_REQUESTED, MEMBER_REMOVE_REQUESTED, MEMBERSHIP_EXECUTOR_ID, MEMBERSHIP_REMOVAL_SKEW_MS, membershipEntity, membershipRemoveExecutorId, memberRemoveRequestedPayload, registerMembershipExecutor, } from './membership-executor.js';
|
|
78
|
+
export { SCOPE_STORAGE_DDL, forgetScopeStorage, listScopeStorageAttemptRows, listScopeStorageRows, pruneScopeStorageRows, recordScopeStorageRows, } from './storage-gauge.js';
|
|
79
|
+
export { moduleLog, consoleLogSink, } from './module-log.js';
|
|
80
|
+
export { asyncInvocationId, asyncLinePass, consoleInvocationLineSink, ASYNC_LINES_PER_PASS, } from './async-invocation-log.js';
|
|
81
|
+
export { invocationLine } from './invocation-line.js';
|
|
82
|
+
export { VERTICAL_EVENTS_DDL, EXPORT_HOPS_SQL, emptyImportResult, IMPORT_CURSORS_SQL, IMPORT_CURSOR_OF_SQL, IMPORT_CURSOR_ADVANCE_SQL, IMPORT_RECORD_SQL, OUTBOX_MARK_SQL, emittedSinceQuery, emittedReportOf, moveImportCursor, importCursorSourceOf, exportedSinceQuery, exportReadQuery, exportReadPlan, planExportBatch, withheldNote, CrossVerticalRegistry, } from './vertical-events.js';
|
|
83
|
+
export { attributedView } from './attribution.js';
|
|
84
|
+
export { isDeliveryRefusal, refuseDelivery, refusalJournalText, } from './delivery-refusal.js';
|
|
85
|
+
export { MEMBER_ADD_REQUESTED, MEMBER_REMOVE_REQUESTED, MEMBERSHIP_EXECUTOR_ID, MEMBERSHIP_REMOVAL_SKEW_MS, membershipEntity, membershipRemoveExecutorId, registerMembershipExecutor, } from './membership-executor.js';
|
|
140
86
|
export { membershipFencesBackfillSql, MEMBERSHIP_FENCES_DDL, MEMBERSHIP_FENCES_TABLE, MEMBERSHIP_FENCE_SINCE_SQL, RAISE_MEMBERSHIP_FENCE_SQL, membershipFencesTableExists, } from './membership-fence.js';
|
|
141
87
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgFA,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAYhH,OAAO;AACL,sHAAsH;AACtH,gCAAgC,EAChC,0BAA0B;AAC1B,sHAAsH;AACtH,oCAAoC;AACpC,sHAAsH;AACtH,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAQzE,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EAExB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,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B,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO;AACL,iHAAiH;AACjH,aAAa;AACb,iHAAiH;AACjH,qBAAqB;AACrB,iHAAiH;AACjH,iBAAiB;AACjB,iHAAiH;AACjH,iBAAiB;AACjB,iHAAiH;AACjH,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAiB7B,OAAO;AACL,6GAA6G;AAC7G,iBAAiB,GAGlB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,SAAS,EACT,eAAe,EACf,YAAY,EACZ,qBAAqB,GAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,cAAc,EAA+C,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,GAG3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgFA,OAAO,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,CAAC;AAStD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,eAAe,EACf,YAAY,EACZ,qBAAqB,GAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAA+C,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,GAG3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The invocation line's grammar: the shape of the one structured log line written per
|
|
3
|
+
* invocation, and the one function that builds it (#1901).
|
|
4
|
+
*
|
|
5
|
+
* Two writers build through it, in two packages. The request line is written by
|
|
6
|
+
* `invocationLog` / `withInvocationLog` in `@substrat-run/vertical-host`, the host-side
|
|
7
|
+
* middleware that moved there from the kernel (#1978). The async line — a consumer
|
|
8
|
+
* delivery or a schedule run — is written by the scope host itself
|
|
9
|
+
* (`async-invocation-log.ts`), which is why the grammar stays here: both adapters run that
|
|
10
|
+
* writer, and a field added to one line is a field added to both, in one order.
|
|
11
|
+
*
|
|
12
|
+
* Imports nothing at run time. The platform's entry (#1893) bundles this file in front of
|
|
13
|
+
* every deployed vertical through the `./invocation-line` subpath, and a runtime import of
|
|
14
|
+
* the contracts root would put every schema in the vocabulary — and zod — into that bundle.
|
|
15
|
+
*/
|
|
16
|
+
import type { InvocationLevel } from '@substrat-run/contracts/invocation-record';
|
|
17
|
+
import type { EmittedReport } from './scope-host.js';
|
|
18
|
+
/**
|
|
19
|
+
* The field walk's answer for one response (#1331). Names only, and only names the
|
|
20
|
+
* operation DECLARES: a key the response carries that the declaration does not name is
|
|
21
|
+
* never written down, since a key can be data (a map keyed by email is still a map). No
|
|
22
|
+
* value is ever read into it.
|
|
23
|
+
*/
|
|
24
|
+
export interface OutputFieldsReport {
|
|
25
|
+
/** Declared fields the response carried with a value other than `null`, in declaration order. */
|
|
26
|
+
present: string[];
|
|
27
|
+
/** Declared fields the response carried as `null` — on the wire, carrying nothing. */
|
|
28
|
+
empty: string[];
|
|
29
|
+
/** Declared fields the response did not carry (missing, or `undefined`). */
|
|
30
|
+
absent: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The shape of the emitted line. Deliberately a published contract rather than an
|
|
34
|
+
* incidental object: the read proxy filters on these key names, and Workers Logs indexes
|
|
35
|
+
* a `JSON.stringify`ed `console.log` as queryable TOP-LEVEL fields (`tenantId`, not
|
|
36
|
+
* `$metadata.tenantId` nor `source.tenantId` — verified against the live telemetry API).
|
|
37
|
+
* Renaming a key here silently empties a view, because a filter on a key that does not
|
|
38
|
+
* exist returns `success: true` with zero events. Add fields; never rename one.
|
|
39
|
+
*/
|
|
40
|
+
export interface InvocationLogLine {
|
|
41
|
+
/** Discriminator — what lets a reader tell this line from a vertical's own output. */
|
|
42
|
+
substrat: 'invocation';
|
|
43
|
+
/**
|
|
44
|
+
* #1901: what kind of work the line is about. ABSENT on a request's line — the line every
|
|
45
|
+
* reader already knew — and present only on the scope host's lines for async work: a
|
|
46
|
+
* consumer delivery (`consumer`) or a schedule run (`schedule`). A reader treats a missing
|
|
47
|
+
* `kind` as `request`, which keeps every line written before this field existed meaning
|
|
48
|
+
* what it meant.
|
|
49
|
+
*/
|
|
50
|
+
kind?: AsyncInvocationKind;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
scopeId: string | null;
|
|
53
|
+
vertical: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The K-26 surface that answered. Taken from the verified node, so an assertion that
|
|
56
|
+
* named none reads as `readRoutedNode`'s documented default (`app`) rather than as a
|
|
57
|
+
* null only this writer would produce — one representation across the platform.
|
|
58
|
+
*/
|
|
59
|
+
surface: string | null;
|
|
60
|
+
/** The request's method. `null` on an async line (#1901), which no request carried. */
|
|
61
|
+
method: string | null;
|
|
62
|
+
/** Path ONLY: the request writer drops the query string. `null` on an async line (#1901). */
|
|
63
|
+
path: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* #1237: the id every event this invocation emitted is stamped with.
|
|
66
|
+
*
|
|
67
|
+
* The join nothing could make before. `$metadata.requestId` correlates the LINES of
|
|
68
|
+
* one invocation, and it is stamped by the log platform at ingestion — no code here
|
|
69
|
+
* can read it, and the spine could not have been given it. So the platform mints its
|
|
70
|
+
* own, writes it here, and carries it to the scope on `InvokeOptions`.
|
|
71
|
+
*
|
|
72
|
+
* Which makes this line the other half of a trace: the events say what happened and
|
|
73
|
+
* in what order, and this says how long the whole call took and how it ended.
|
|
74
|
+
*/
|
|
75
|
+
invocationId: string;
|
|
76
|
+
/**
|
|
77
|
+
* The response status as the caller received it — including the status `onError`
|
|
78
|
+
* mapped a thrown error to.
|
|
79
|
+
*
|
|
80
|
+
* Hono composes `onError` INSIDE the handler chain, not around it, so a handler that
|
|
81
|
+
* throws does not reject the request middleware's `await next()`: the envelope has already
|
|
82
|
+
* turned it into a response by the time control comes back, and `c.res` holds the
|
|
83
|
+
* mapped status. That is worth stating because the opposite is the natural guess, and
|
|
84
|
+
* guessing it would have put `null` on every error line — the exact rows a tenant
|
|
85
|
+
* opens this view to find.
|
|
86
|
+
*
|
|
87
|
+
* `null` therefore survives only for a genuine escape: an error that got past the
|
|
88
|
+
* envelope itself, which `threw` marks.
|
|
89
|
+
*
|
|
90
|
+
* Always `null` on an async line (#1901): no caller received a status. Its `outcome` and
|
|
91
|
+
* `level` say how it ended instead.
|
|
92
|
+
*/
|
|
93
|
+
status: number | null;
|
|
94
|
+
/** The error escaped even `onError` — rare, and the most interesting line on the page. */
|
|
95
|
+
threw: boolean;
|
|
96
|
+
durationMs: number;
|
|
97
|
+
/** Contracts' `invocationLevelOf`. Always present: it is derived from the two fields above. */
|
|
98
|
+
level: InvocationLevel;
|
|
99
|
+
/** The operation that ran. `null` for a route that is not a mounted operation. */
|
|
100
|
+
operation: string | null;
|
|
101
|
+
/** The kernel `errorCode` of a failed call, when it has one. */
|
|
102
|
+
problemCode: string | null;
|
|
103
|
+
/** Who the call ran as: `principal`, `connection`, `system`, `capability` or `vertical`. */
|
|
104
|
+
principalKind: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* How many events the operation itself emitted. `null` when not recorded, which is
|
|
107
|
+
* different from `0`: a read emits nothing, and that is a fact about it.
|
|
108
|
+
*/
|
|
109
|
+
eventCount: number | null;
|
|
110
|
+
/** The distinct types among those events, in emission order (capped, see `entities`). */
|
|
111
|
+
eventTypes: string[];
|
|
112
|
+
/**
|
|
113
|
+
* The distinct entities those events were about, as `<entityType>:<entityId>`. Taken from
|
|
114
|
+
* at most `EMITTED_REPORT_CAP` events, so a bulk operation's line names the first few and
|
|
115
|
+
* `eventCount` says how many there were.
|
|
116
|
+
*/
|
|
117
|
+
entities: string[];
|
|
118
|
+
/**
|
|
119
|
+
* The registry id of the version that served the call — the platform's
|
|
120
|
+
* `SUBSTRAT_VERSION_ID` binding, the same identity the spine stamps on events. `null`
|
|
121
|
+
* locally and on a script pushed before the binding existed.
|
|
122
|
+
*/
|
|
123
|
+
versionId: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* #1331: which declared output fields the response carried. The one field on this line
|
|
126
|
+
* that is OMITTED rather than `null` when unrecorded: the walk behind it is off by
|
|
127
|
+
* default, and an unarmed line must stay byte-for-byte what it was before the field
|
|
128
|
+
* existed. A reader treats absence exactly as it treats `null` elsewhere.
|
|
129
|
+
*/
|
|
130
|
+
outputFields?: OutputFieldsReport;
|
|
131
|
+
/**
|
|
132
|
+
* #1923: the router's dispatch id for the request whose response {@link outputFields}
|
|
133
|
+
* describes — its provenance. Present exactly when `outputFields` is: a reader joins it to
|
|
134
|
+
* the router's own line for the request, and counts the report only for the tenant and app
|
|
135
|
+
* that line names.
|
|
136
|
+
*/
|
|
137
|
+
fieldCoverageId?: string;
|
|
138
|
+
/** How the unit ended — see {@link AsyncOutcome}. */
|
|
139
|
+
outcome?: AsyncOutcome;
|
|
140
|
+
/** A consumer's event type. */
|
|
141
|
+
eventType?: string | null;
|
|
142
|
+
/** A consumer's event id — the join to the spine's outbox and delivery journal. */
|
|
143
|
+
eventId?: string | null;
|
|
144
|
+
/** Which attempt at this delivery the line is about, counting from 1. */
|
|
145
|
+
attempt?: number | null;
|
|
146
|
+
/** A schedule run's due time (ISO 8601), or `null` for a schedule's first run. */
|
|
147
|
+
dueAt?: string | null;
|
|
148
|
+
/** How late the run started against `dueAt`, in milliseconds; `null` on a first run. */
|
|
149
|
+
latenessMs?: number | null;
|
|
150
|
+
/** A `suppressed` line's count of the lines the pass's cap withheld. */
|
|
151
|
+
suppressed?: number;
|
|
152
|
+
/** The same count per `<kind>:<outcome>`, so a storm of one outcome is named, not averaged. */
|
|
153
|
+
suppressedBy?: Record<string, number>;
|
|
154
|
+
}
|
|
155
|
+
/** #1901: the kinds of async work a scope host writes a line for. A request has no `kind`. */
|
|
156
|
+
export type AsyncInvocationKind = 'consumer' | 'schedule';
|
|
157
|
+
/**
|
|
158
|
+
* #1901: how a unit of async work ended.
|
|
159
|
+
*
|
|
160
|
+
* - `delivered` — a consumer's handler ran and its delivery is journaled done.
|
|
161
|
+
* - `retrying` — the handler threw and the delivery is due again later.
|
|
162
|
+
* - `dead-lettered` — the delivery is journaled failed for good: the handler threw on its
|
|
163
|
+
* last attempt, or the event never reached it (undecodable, a schema version the consumer
|
|
164
|
+
* does not take, withheld by the producer).
|
|
165
|
+
* - `inert` — a copy of a scope (#2005): the delivery is journaled terminal and NO handler
|
|
166
|
+
* ran. Never `delivered`, because nothing was.
|
|
167
|
+
* - `routed` — the delivery was handed to the platform's drain to run with authority this
|
|
168
|
+
* host lacks (a connector on a control-plane-less host).
|
|
169
|
+
* - `ok` / `failed` — a schedule run.
|
|
170
|
+
* - `suppressed` — the pass's line cap was reached; the line counts what it withheld.
|
|
171
|
+
*/
|
|
172
|
+
export type AsyncOutcome = 'delivered' | 'retrying' | 'dead-lettered' | 'inert' | 'routed' | 'ok' | 'failed' | 'suppressed';
|
|
173
|
+
/**
|
|
174
|
+
* The fields of an invocation line, before defaults. The ONE place the line's grammar lives
|
|
175
|
+
* (#1901): the request writer (`vertical-host`'s `invocationLog`) and the scope host's async
|
|
176
|
+
* writer both build through {@link invocationLine}, so a field added to one is a field added
|
|
177
|
+
* to both, in one order.
|
|
178
|
+
*/
|
|
179
|
+
export interface InvocationLineFields {
|
|
180
|
+
kind?: AsyncInvocationKind;
|
|
181
|
+
tenantId: string;
|
|
182
|
+
scopeId: string | null;
|
|
183
|
+
vertical?: string | null;
|
|
184
|
+
surface?: string | null;
|
|
185
|
+
method?: string | null;
|
|
186
|
+
path?: string | null;
|
|
187
|
+
invocationId: string;
|
|
188
|
+
status?: number | null;
|
|
189
|
+
threw: boolean;
|
|
190
|
+
durationMs: number;
|
|
191
|
+
level: InvocationLevel;
|
|
192
|
+
operation?: string | null;
|
|
193
|
+
problemCode?: string | null;
|
|
194
|
+
principalKind?: string | null;
|
|
195
|
+
emitted?: EmittedReport;
|
|
196
|
+
/**
|
|
197
|
+
* #1901: write `entities` from `emitted` (the default). An async line passes `false`: an
|
|
198
|
+
* entity id is data a vertical chose — an email, a customer number — and the async line
|
|
199
|
+
* carries ids the platform minted, declared names and codes only. Its `entities` is then
|
|
200
|
+
* always `[]`, which a reader takes as "not recorded" beside a non-null `eventCount`.
|
|
201
|
+
*/
|
|
202
|
+
withEntities?: boolean;
|
|
203
|
+
versionId?: string | null;
|
|
204
|
+
outputFields?: OutputFieldsReport;
|
|
205
|
+
/** #1923: written only beside `outputFields`. */
|
|
206
|
+
fieldCoverageId?: string;
|
|
207
|
+
async?: Pick<InvocationLogLine, 'outcome' | 'eventType' | 'eventId' | 'attempt' | 'dueAt' | 'latenessMs' | 'suppressed' | 'suppressedBy'>;
|
|
208
|
+
}
|
|
209
|
+
/** Build a line. Unfilled fields are `null` (or empty), as the line's contract says. */
|
|
210
|
+
export declare function invocationLine(f: InvocationLineFields): InvocationLogLine;
|
|
211
|
+
//# sourceMappingURL=invocation-line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invocation-line.d.ts","sourceRoot":"","sources":["../src/invocation-line.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,iGAAiG;IACjG,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sFAAsF;IACtF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,sFAAsF;IACtF,QAAQ,EAAE,YAAY,CAAC;IACvB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,uFAAuF;IACvF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,6FAA6F;IAC7F,IAAI,EAAE,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AG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,YAAY,GAAG,cAAc,CACzG,CAAC;CACH;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,CAAC,EAAE,oBAAoB,GAAG,iBAAiB,CA0BzE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Build a line. Unfilled fields are `null` (or empty), as the line's contract says. */
|
|
2
|
+
export function invocationLine(f) {
|
|
3
|
+
const emitted = f.emitted;
|
|
4
|
+
return {
|
|
5
|
+
substrat: 'invocation',
|
|
6
|
+
...(f.kind ? { kind: f.kind } : {}),
|
|
7
|
+
tenantId: f.tenantId,
|
|
8
|
+
scopeId: f.scopeId,
|
|
9
|
+
vertical: f.vertical ?? null,
|
|
10
|
+
surface: f.surface ?? null,
|
|
11
|
+
method: f.method ?? null,
|
|
12
|
+
path: f.path ?? null,
|
|
13
|
+
status: f.status ?? null,
|
|
14
|
+
threw: f.threw,
|
|
15
|
+
durationMs: f.durationMs,
|
|
16
|
+
invocationId: f.invocationId,
|
|
17
|
+
level: f.level,
|
|
18
|
+
operation: f.operation ?? null,
|
|
19
|
+
problemCode: f.problemCode ?? null,
|
|
20
|
+
principalKind: f.principalKind ?? null,
|
|
21
|
+
eventCount: emitted ? emitted.total : null,
|
|
22
|
+
eventTypes: emitted ? distinct(emitted.events.map((e) => e.type)) : [],
|
|
23
|
+
entities: emitted && f.withEntities !== false ? distinct(emitted.events.map((e) => e.entity)) : [],
|
|
24
|
+
versionId: f.versionId ?? null,
|
|
25
|
+
...(f.outputFields ? { outputFields: f.outputFields, ...(f.fieldCoverageId ? { fieldCoverageId: f.fieldCoverageId } : {}) } : {}),
|
|
26
|
+
...(f.async ?? {}),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/** Distinct values, first occurrence wins — the order a reader expects to see them in. */
|
|
30
|
+
function distinct(values) {
|
|
31
|
+
return [...new Set(values)];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=invocation-line.js.map
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AAE;QACtE,QAAQ,EAAE,OAAO,IAAI,CAAC,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;QAClG,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,IAAI;QAC9B,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;KACnB,CAAC;AACJ,CAAC;AAED,0FAA0F;AAC1F,SAAS,QAAQ,CAAC,MAAyB;IACzC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9B,CAAC"}
|
package/dist/job-run.d.ts
CHANGED
|
@@ -329,10 +329,6 @@ export interface JobRunFilter {
|
|
|
329
329
|
/** Default `JOB_RUN_LIST_LIMIT`. */
|
|
330
330
|
limit?: number;
|
|
331
331
|
}
|
|
332
|
-
/** Rows one `jobRuns` read returns by default. */
|
|
333
|
-
export declare const JOB_RUN_LIST_LIMIT = 50;
|
|
334
|
-
/** The most rows one `jobRuns` read will ever return, whatever the caller asks for. */
|
|
335
|
-
export declare const JOB_RUN_LIST_MAX = 500;
|
|
336
332
|
/**
|
|
337
333
|
* The row budget for one operator read, normalised before it reaches SQL.
|
|
338
334
|
*
|
|
@@ -380,18 +376,6 @@ export declare const JOB_LEASE_TOO_SHORT_NOTE = "lease too short for this enviro
|
|
|
380
376
|
export declare const JOB_LEASE_EXPIRED_NOTE = "interrupted: the pass holding this run stopped reporting, and its lease expired";
|
|
381
377
|
/** #2034: a job's `leaseMs`, refused at registration unless it is an integer of at least `JOB_LEASE_MIN_MS`. */
|
|
382
378
|
export declare function assertLeaseMs(leaseMs: number | undefined): void;
|
|
383
|
-
/** Runs one `runDueJobs` call picks up by default. */
|
|
384
|
-
export declare const JOB_DRIVE_LIMIT = 50;
|
|
385
|
-
/**
|
|
386
|
-
* Rows one `runDueJobs` call will READ while looking for runnable ones.
|
|
387
|
-
*
|
|
388
|
-
* The drive skips runs whose job this host does not register, so "read `limit` rows"
|
|
389
|
-
* and "find `limit` runs to drive" are different numbers, and a scope can hold an
|
|
390
|
-
* arbitrary number of the unrunnable kind. This caps the difference: past it the call
|
|
391
|
-
* drives what it found and returns, rather than scanning a scope's whole history on a
|
|
392
|
-
* maintenance tick.
|
|
393
|
-
*/
|
|
394
|
-
export declare const JOB_DRIVE_SCAN_MAX = 500;
|
|
395
379
|
/** What a handler says at the end of a pass. */
|
|
396
380
|
export interface JobPassResult {
|
|
397
381
|
/**
|
|
@@ -666,8 +650,6 @@ export interface JobRunStore {
|
|
|
666
650
|
*/
|
|
667
651
|
recordStep(runId: string, name: string, result: string | null, attempts: number, lastError: string | null, at: string, owner: string, leaseMs: number): Promise<boolean>;
|
|
668
652
|
}
|
|
669
|
-
/** `conflict` reason: two `step()` calls under one name in one pass. */
|
|
670
|
-
export declare const JOB_STEP_REUSED = "job_step_reused";
|
|
671
653
|
/**
|
|
672
654
|
* #1834: the reason a host's system door gives a refusal that means "not now", never "no": the
|
|
673
655
|
* module is held off on this scope until its switch is applied again, or the scope kept restarting
|
|
@@ -689,27 +671,6 @@ export declare const JOB_RUN_DUE_AT = "COALESCE(next_attempt_at, started_at)";
|
|
|
689
671
|
* it would take the turn of a run behind it that could make progress.
|
|
690
672
|
*/
|
|
691
673
|
export declare const JOB_DEFER_MS = 60000;
|
|
692
|
-
/**
|
|
693
|
-
* Refuse anything that cannot survive a queue message, naming the path.
|
|
694
|
-
*
|
|
695
|
-
* What may be handed to a run, and handed forward by one, is **ids and
|
|
696
|
-
* configuration**: JSON's own values, nothing else. Bytes, class instances and
|
|
697
|
-
* functions are refused — and so, less obviously, are `undefined` in a nested
|
|
698
|
-
* position, a non-finite number and a cycle, because JSON turns each of those into
|
|
699
|
-
* something else without saying so. A payload silently reshaped on its way to
|
|
700
|
-
* storage is the failure this rule exists to prevent: the run resumes against a
|
|
701
|
-
* value that is not the one it was started with, and nothing anywhere reports it.
|
|
702
|
-
*
|
|
703
|
-
* `validation_failed` with the offending path in `errors`, exactly as an operation's
|
|
704
|
-
* own input failure arrives, so a transport renders it with no special case.
|
|
705
|
-
*
|
|
706
|
-
* Held against the payload at `start` and against the cursor at every commit —
|
|
707
|
-
* the two values that cross the boundary and land on the record. NOT held against a
|
|
708
|
-
* step's result, deliberately: that value is the handler's own, round-tripped to
|
|
709
|
-
* itself on resume, and the common shape of a step done for its effect is to return
|
|
710
|
-
* nothing at all — which this would refuse.
|
|
711
|
-
*/
|
|
712
|
-
export declare function assertQueueSafe(value: unknown, root: string): void;
|
|
713
674
|
/**
|
|
714
675
|
* A row, decoded into the record an operator reads — TOLERANTLY, and saying so.
|
|
715
676
|
*
|