@codemation/host 0.2.5 → 0.3.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/CHANGELOG.md +30 -0
- package/dist/{AppConfigFactory-CqKWXqOm.js → AppConfigFactory-BPp02HMv.js} +82 -5
- package/dist/{AppConfigFactory-CqKWXqOm.js.map → AppConfigFactory-BPp02HMv.js.map} +1 -1
- package/dist/{AppConfigFactory-CK28UPK0.d.ts → AppConfigFactory-Dq7ttwQ_.d.ts} +6001 -144
- package/dist/{AppContainerFactory-CcSGFNLW.js → AppContainerFactory-D9je1sSV.js} +2604 -155
- package/dist/AppContainerFactory-D9je1sSV.js.map +1 -0
- package/dist/{CodemationAppContext-KqDoeHqN.d.ts → CodemationAppContext-P7P-xZhQ.d.ts} +2 -2
- package/dist/{CodemationAuthoring.types-BP6Inucu.d.ts → CodemationAuthoring.types-OMYu7vKP.d.ts} +3 -3
- package/dist/{CodemationConfigNormalizer-DIAE0VHw.d.ts → CodemationConfigNormalizer-BCtBrJDe.d.ts} +2 -2
- package/dist/{CodemationConsumerConfigLoader-nj9kTmfJ.d.ts → CodemationConsumerConfigLoader-evvw4b_a.d.ts} +2 -2
- package/dist/CodemationPluginListMerger-PSTtEQjC.d.ts +674 -0
- package/dist/{CredentialServices-BFQD_VN1.d.ts → CredentialServices-0Hk8RFY1.d.ts} +3 -3
- package/dist/{CredentialServices-BPKUF8Xs.js → CredentialServices-BNBMFOPt.js} +6 -1
- package/dist/CredentialServices-BNBMFOPt.js.map +1 -0
- package/dist/{PublicFrontendBootstrapFactory-DTA1iDo0.d.ts → PublicFrontendBootstrapFactory-D0_ds7nS.d.ts} +2 -2
- package/dist/authoring.d.ts +3 -3
- package/dist/consumer.d.ts +4 -4
- package/dist/credentials.d.ts +3 -3
- package/dist/credentials.js +1 -1
- package/dist/devServerSidecar.d.ts +1 -1
- package/dist/{index-Dd6BrWyH.d.ts → index-CeS2saCe.d.ts} +105 -2
- package/dist/index.d.ts +12 -11
- package/dist/index.js +5 -5
- package/dist/nextServer.d.ts +8 -58
- package/dist/nextServer.js +6 -100
- package/dist/{persistenceServer-DKbFDxoS.js → persistenceServer-CA0_q0D7.js} +2 -2
- package/dist/{persistenceServer-DKbFDxoS.js.map → persistenceServer-CA0_q0D7.js.map} +1 -1
- package/dist/{persistenceServer-Y-u7lV7f.d.ts → persistenceServer-CJeu1STC.d.ts} +2 -2
- package/dist/persistenceServer.d.ts +5 -5
- package/dist/persistenceServer.js +2 -2
- package/dist/{server-CFpgKuVE.js → server-C_ZIEOTY.js} +4 -4
- package/dist/{server-CFpgKuVE.js.map → server-C_ZIEOTY.js.map} +1 -1
- package/dist/{server-axppTMgo.d.ts → server-Clvg5x1w.d.ts} +11 -5
- package/dist/server.d.ts +8 -8
- package/dist/server.js +5 -5
- package/package.json +6 -5
- package/prisma/migrations/20260414120000_telemetry_foundation/migration.sql +112 -0
- package/prisma/migrations/20260414153000_telemetry_retention_metrics_refactor/migration.sql +239 -0
- package/prisma/migrations.sqlite/20260414120000_telemetry_foundation/migration.sql +103 -0
- package/prisma/migrations.sqlite/20260414153000_telemetry_retention_metrics_refactor/migration.sql +540 -0
- package/prisma/schema.postgresql.prisma +100 -1
- package/prisma/schema.sqlite.prisma +100 -1
- package/scripts/generate-prisma-clients.mjs +89 -1
- package/src/application/contracts/TelemetryDashboardContracts.ts +113 -0
- package/src/application/contracts/TelemetryRunTraceContracts.ts +13 -0
- package/src/application/cost/FrameworkCostCatalogEntries.ts +126 -0
- package/src/application/queries/GetTelemetryDashboardDimensionsQuery.ts +11 -0
- package/src/application/queries/GetTelemetryDashboardDimensionsQueryHandler.ts +20 -0
- package/src/application/queries/GetTelemetryDashboardRunsQuery.ts +11 -0
- package/src/application/queries/GetTelemetryDashboardRunsQueryHandler.ts +20 -0
- package/src/application/queries/GetTelemetryDashboardSummaryQuery.ts +11 -0
- package/src/application/queries/GetTelemetryDashboardSummaryQueryHandler.ts +29 -0
- package/src/application/queries/GetTelemetryDashboardTimeseriesQuery.ts +11 -0
- package/src/application/queries/GetTelemetryDashboardTimeseriesQueryHandler.ts +36 -0
- package/src/application/queries/GetTelemetryRunTraceQuery.ts +8 -0
- package/src/application/queries/GetTelemetryRunTraceQueryHandler.ts +20 -0
- package/src/application/queries/WorkflowQueryHandlers.ts +5 -0
- package/src/application/runs/WorkflowRunRetentionPruneScheduler.ts +71 -26
- package/src/application/telemetry/CompositeTelemetryExporter.ts +13 -0
- package/src/application/telemetry/LazyExecutionTelemetryFactory.ts +21 -0
- package/src/application/telemetry/NoOpTelemetryExporter.ts +7 -0
- package/src/application/telemetry/OtelExecutionTelemetry.types.ts +41 -0
- package/src/application/telemetry/OtelExecutionTelemetryFactory.ts +56 -0
- package/src/application/telemetry/OtelIdentityFactory.ts +41 -0
- package/src/application/telemetry/RunEventBusTelemetryReporter.ts +188 -0
- package/src/application/telemetry/StoredExecutionTelemetry.ts +56 -0
- package/src/application/telemetry/StoredNodeExecutionTelemetry.ts +35 -0
- package/src/application/telemetry/StoredTelemetrySpanScope.ts +188 -0
- package/src/application/telemetry/TelemetryEnricherChain.ts +85 -0
- package/src/application/telemetry/TelemetryPrivacyPolicy.ts +19 -0
- package/src/application/telemetry/TelemetryQueryService.ts +815 -0
- package/src/application/telemetry/TelemetryRetentionTimestampFactory.ts +40 -0
- package/src/applicationTokens.ts +18 -0
- package/src/bootstrap/AppContainerFactory.ts +124 -1
- package/src/bootstrap/AppContainerLifecycle.ts +8 -0
- package/src/bootstrap/runtime/FrontendRuntime.ts +8 -0
- package/src/bootstrap/runtime/WorkerRuntime.ts +8 -0
- package/src/domain/runs/WorkflowRunRepository.ts +3 -1
- package/src/domain/telemetry/TelemetryContracts.ts +197 -0
- package/src/infrastructure/persistence/InMemoryRunTraceContextRepository.ts +56 -0
- package/src/infrastructure/persistence/InMemoryTelemetryArtifactStore.ts +56 -0
- package/src/infrastructure/persistence/InMemoryTelemetryMetricPointStore.ts +97 -0
- package/src/infrastructure/persistence/InMemoryTelemetrySpanStore.ts +113 -0
- package/src/infrastructure/persistence/InMemoryWorkflowRunRepository.ts +4 -2
- package/src/infrastructure/persistence/PrismaRunTraceContextRepository.ts +92 -0
- package/src/infrastructure/persistence/PrismaTelemetryArtifactStore.ts +125 -0
- package/src/infrastructure/persistence/PrismaTelemetryMetricPointStore.ts +134 -0
- package/src/infrastructure/persistence/PrismaTelemetrySpanStore.ts +166 -0
- package/src/infrastructure/persistence/PrismaWorkflowRunRepository.ts +20 -7
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/edge.js +85 -4
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index-browser.js +81 -0
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.d.ts +6488 -102
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.js +85 -4
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/schema.prisma +100 -0
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/edge.js +85 -4
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index-browser.js +81 -0
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.d.ts +6476 -98
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.js +85 -4
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/schema.prisma +100 -0
- package/src/presentation/http/ApiPaths.ts +22 -0
- package/src/presentation/http/hono/registrars/TelemetryHonoApiRouteRegistrar.ts +19 -0
- package/src/presentation/http/routeHandlers/TelemetryDashboardRequestError.ts +1 -0
- package/src/presentation/http/routeHandlers/TelemetryHttpRouteHandler.ts +181 -0
- package/dist/AppContainerFactory-CcSGFNLW.js.map +0 -1
- package/dist/CodemationPluginListMerger-QvUa2SIt.d.ts +0 -357
- package/dist/CredentialServices-BPKUF8Xs.js.map +0 -1
- package/dist/nextServer.js.map +0 -1
|
@@ -228,6 +228,83 @@ exports.Prisma.TriggerSetupStateScalarFieldEnum = {
|
|
|
228
228
|
stateJson: 'stateJson'
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
+
exports.Prisma.RunTraceContextScalarFieldEnum = {
|
|
232
|
+
runId: 'runId',
|
|
233
|
+
workflowId: 'workflowId',
|
|
234
|
+
traceId: 'traceId',
|
|
235
|
+
rootSpanId: 'rootSpanId',
|
|
236
|
+
serviceName: 'serviceName',
|
|
237
|
+
createdAt: 'createdAt',
|
|
238
|
+
expiresAt: 'expiresAt'
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
exports.Prisma.TelemetrySpanScalarFieldEnum = {
|
|
242
|
+
telemetrySpanId: 'telemetrySpanId',
|
|
243
|
+
traceId: 'traceId',
|
|
244
|
+
spanId: 'spanId',
|
|
245
|
+
parentSpanId: 'parentSpanId',
|
|
246
|
+
runId: 'runId',
|
|
247
|
+
workflowId: 'workflowId',
|
|
248
|
+
nodeId: 'nodeId',
|
|
249
|
+
activationId: 'activationId',
|
|
250
|
+
connectionInvocationId: 'connectionInvocationId',
|
|
251
|
+
name: 'name',
|
|
252
|
+
kind: 'kind',
|
|
253
|
+
status: 'status',
|
|
254
|
+
statusMessage: 'statusMessage',
|
|
255
|
+
startTime: 'startTime',
|
|
256
|
+
endTime: 'endTime',
|
|
257
|
+
workflowFolder: 'workflowFolder',
|
|
258
|
+
nodeType: 'nodeType',
|
|
259
|
+
nodeRole: 'nodeRole',
|
|
260
|
+
modelName: 'modelName',
|
|
261
|
+
attributesJson: 'attributesJson',
|
|
262
|
+
eventsJson: 'eventsJson',
|
|
263
|
+
retentionExpiresAt: 'retentionExpiresAt',
|
|
264
|
+
updatedAt: 'updatedAt'
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
exports.Prisma.TelemetryArtifactScalarFieldEnum = {
|
|
268
|
+
artifactId: 'artifactId',
|
|
269
|
+
traceId: 'traceId',
|
|
270
|
+
spanId: 'spanId',
|
|
271
|
+
runId: 'runId',
|
|
272
|
+
workflowId: 'workflowId',
|
|
273
|
+
nodeId: 'nodeId',
|
|
274
|
+
activationId: 'activationId',
|
|
275
|
+
kind: 'kind',
|
|
276
|
+
contentType: 'contentType',
|
|
277
|
+
previewText: 'previewText',
|
|
278
|
+
previewJson: 'previewJson',
|
|
279
|
+
payloadText: 'payloadText',
|
|
280
|
+
payloadJson: 'payloadJson',
|
|
281
|
+
bytes: 'bytes',
|
|
282
|
+
truncated: 'truncated',
|
|
283
|
+
createdAt: 'createdAt',
|
|
284
|
+
expiresAt: 'expiresAt',
|
|
285
|
+
retentionExpiresAt: 'retentionExpiresAt'
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
exports.Prisma.TelemetryMetricPointScalarFieldEnum = {
|
|
289
|
+
metricPointId: 'metricPointId',
|
|
290
|
+
traceId: 'traceId',
|
|
291
|
+
spanId: 'spanId',
|
|
292
|
+
runId: 'runId',
|
|
293
|
+
workflowId: 'workflowId',
|
|
294
|
+
nodeId: 'nodeId',
|
|
295
|
+
activationId: 'activationId',
|
|
296
|
+
metricName: 'metricName',
|
|
297
|
+
value: 'value',
|
|
298
|
+
unit: 'unit',
|
|
299
|
+
observedAt: 'observedAt',
|
|
300
|
+
workflowFolder: 'workflowFolder',
|
|
301
|
+
nodeType: 'nodeType',
|
|
302
|
+
nodeRole: 'nodeRole',
|
|
303
|
+
modelName: 'modelName',
|
|
304
|
+
dimensionsJson: 'dimensionsJson',
|
|
305
|
+
retentionExpiresAt: 'retentionExpiresAt'
|
|
306
|
+
};
|
|
307
|
+
|
|
231
308
|
exports.Prisma.CredentialInstanceScalarFieldEnum = {
|
|
232
309
|
instanceId: 'instanceId',
|
|
233
310
|
typeId: 'typeId',
|
|
@@ -374,6 +451,10 @@ exports.Prisma.ModelName = {
|
|
|
374
451
|
WorkflowDebuggerOverlay: 'WorkflowDebuggerOverlay',
|
|
375
452
|
WorkflowActivation: 'WorkflowActivation',
|
|
376
453
|
TriggerSetupState: 'TriggerSetupState',
|
|
454
|
+
RunTraceContext: 'RunTraceContext',
|
|
455
|
+
TelemetrySpan: 'TelemetrySpan',
|
|
456
|
+
TelemetryArtifact: 'TelemetryArtifact',
|
|
457
|
+
TelemetryMetricPoint: 'TelemetryMetricPoint',
|
|
377
458
|
CredentialInstance: 'CredentialInstance',
|
|
378
459
|
CredentialSecretMaterial: 'CredentialSecretMaterial',
|
|
379
460
|
CredentialOAuth2Material: 'CredentialOAuth2Material',
|