@opengeni/api-router 3.0.1-canary.0 → 3.0.1-canary.2

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/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  createOpenGeniSlackBotInteractionClient,
8
8
  startSlackInteractionPump,
9
9
  startTemporalScheduleCleanupPump
10
- } from "./chunk-XZGTKYOA.js";
10
+ } from "./chunk-PRCUIL5L.js";
11
11
 
12
12
  // src/index.ts
13
13
  import { scheduledTaskKnowledgeSource } from "@opengeni/contracts";
@@ -1286,6 +1286,7 @@ import {
1286
1286
  PostgresEditableArtifactStore,
1287
1287
  listEditableArtifactIdsForSession,
1288
1288
  touchEditableArtifactSessionLink,
1289
+ recordNativeDocumentInspection,
1289
1290
  dbSql,
1290
1291
  withRlsContext
1291
1292
  } from "@opengeni/db";
@@ -2297,6 +2298,11 @@ async function createStandaloneEditableArtifactApplication(input) {
2297
2298
  touch: async ({ scope, sessionId, artifactId }) => await touchEditableArtifactSessionLink(input.db, scope, sessionId, artifactId)
2298
2299
  }),
2299
2300
  inspector: kernel,
2301
+ recordInspection: async (inspection) => {
2302
+ if (inspection.actor.kind !== "agent")
2303
+ throw new Error("Inspection proof requires an agent attempt");
2304
+ return recordNativeDocumentInspection(input.db, { ...inspection, actor: inspection.actor });
2305
+ },
2300
2306
  officeImports,
2301
2307
  workspaceFiles: new EditableArtifactWorkspaceFileAdapter({
2302
2308
  db: input.db,