@opengeni/api-router 2.11.0-canary.0 → 2.11.2-canary.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.
Files changed (38) hide show
  1. package/dist/app.js +1 -1
  2. package/dist/{chunk-EAYCECQK.js → chunk-5X3XM6CE.js} +1841 -1528
  3. package/dist/chunk-5X3XM6CE.js.map +1 -0
  4. package/dist/http/sse.d.ts +4 -3
  5. package/dist/index.js +5 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/integrations/github-skill-source.d.ts +1 -5
  8. package/dist/mcp/remember.d.ts +1 -1
  9. package/dist/mcp/scheduled-task-view.d.ts +3 -3
  10. package/dist/mcp/server.d.ts +4 -4
  11. package/dist/routes/skill-content.d.ts +4 -0
  12. package/dist/routes/skill-install-authority.d.ts +6 -0
  13. package/dist/transcription/providers/xai-subscription.d.ts +1 -0
  14. package/dist/transcription/service.d.ts +2 -1
  15. package/package.json +19 -19
  16. package/src/app.ts +18 -0
  17. package/src/http/sse.ts +9 -25
  18. package/src/index.ts +3 -1
  19. package/src/integrations/github-skill-source.ts +2 -142
  20. package/src/mcp/company-brain-governed-writes.ts +15 -21
  21. package/src/mcp/remember.ts +14 -15
  22. package/src/mcp/server.ts +7 -4
  23. package/src/routes/automations.ts +35 -0
  24. package/src/routes/packs.ts +61 -8
  25. package/src/routes/plugins.ts +48 -5
  26. package/src/routes/preference-registry.ts +12 -93
  27. package/src/routes/sessions.ts +52 -20
  28. package/src/routes/skill-content.ts +226 -0
  29. package/src/routes/skill-install-authority.ts +64 -0
  30. package/src/routes/skills.ts +38 -3
  31. package/src/routes/transcription-recordings.ts +30 -1
  32. package/src/routes/transcriptions.ts +4 -0
  33. package/src/transcription/providers/codex-subscription.ts +2 -0
  34. package/src/transcription/providers/openai.ts +1 -0
  35. package/src/transcription/providers/xai-subscription.ts +49 -3
  36. package/src/transcription/service.ts +43 -6
  37. package/src/xai-subscription-auth.ts +9 -2
  38. package/dist/chunk-EAYCECQK.js.map +0 -1
@@ -33,11 +33,12 @@ export type ByteBoundedSseStream = {
33
33
  * checking `desiredSize` can still accumulate an unbounded server-side queue.
34
34
  *
35
35
  * One writer is expected per stream. The Web Streams queue holds at most one
36
- * complete frame, and that frame must fit inside the byte cap. A second write
36
+ * complete frame. One oversized frame is delivered intact rather than lost;
37
+ * the byte budget is a batching target, not a content limit. A second write
37
38
  * waits for consumer pull only for a bounded interval; cancellation or a stalled
38
39
  * reader wakes it and terminates upstream delivery before another durable page is
39
- * read. One frame is deliberate: it makes both queued-frame count and queued
40
- * bytes independently bounded instead of relying on byte accounting alone.
40
+ * read. One frame is deliberate: queued memory is bounded by one event, not
41
+ * by the size of the session, without imposing a lossy per-message limit.
41
42
  */
42
43
  export declare function createByteBoundedSseStream(options?: ByteBoundedSseStreamOptions): ByteBoundedSseStream;
43
44
  export type LatestWinsDelivery<T extends {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  createOpenGeniSlackBotInteractionClient,
8
8
  startSlackInteractionPump,
9
9
  startTemporalScheduleCleanupPump
10
- } from "./chunk-EAYCECQK.js";
10
+ } from "./chunk-5X3XM6CE.js";
11
11
 
12
12
  // src/index.ts
13
13
  import {
@@ -2702,7 +2702,8 @@ async function createTemporalWorkflowClient(settings, db) {
2702
2702
  sessionId,
2703
2703
  workflowId,
2704
2704
  wakeRevision,
2705
- interruptionRequested
2705
+ interruptionRequested,
2706
+ onSignalAccepted
2706
2707
  }) => {
2707
2708
  await temporal.workflow.signalWithStart("sessionWorkflow", {
2708
2709
  taskQueue: settings.temporalTaskQueue,
@@ -2711,7 +2712,8 @@ async function createTemporalWorkflowClient(settings, db) {
2711
2712
  args: [{ accountId, workspaceId, sessionId }],
2712
2713
  signal: interruptionRequested ? "sessionControl" : "queueChanged"
2713
2714
  });
2714
- await markSessionWorkflowWakeDelivered(db, {
2715
+ onSignalAccepted?.();
2716
+ return await markSessionWorkflowWakeDelivered(db, {
2715
2717
  accountId,
2716
2718
  workspaceId,
2717
2719
  sessionId,