@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.
- package/dist/app.js +1 -1
- package/dist/{chunk-EAYCECQK.js → chunk-5X3XM6CE.js} +1841 -1528
- package/dist/chunk-5X3XM6CE.js.map +1 -0
- package/dist/http/sse.d.ts +4 -3
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/integrations/github-skill-source.d.ts +1 -5
- package/dist/mcp/remember.d.ts +1 -1
- package/dist/mcp/scheduled-task-view.d.ts +3 -3
- package/dist/mcp/server.d.ts +4 -4
- package/dist/routes/skill-content.d.ts +4 -0
- package/dist/routes/skill-install-authority.d.ts +6 -0
- package/dist/transcription/providers/xai-subscription.d.ts +1 -0
- package/dist/transcription/service.d.ts +2 -1
- package/package.json +19 -19
- package/src/app.ts +18 -0
- package/src/http/sse.ts +9 -25
- package/src/index.ts +3 -1
- package/src/integrations/github-skill-source.ts +2 -142
- package/src/mcp/company-brain-governed-writes.ts +15 -21
- package/src/mcp/remember.ts +14 -15
- package/src/mcp/server.ts +7 -4
- package/src/routes/automations.ts +35 -0
- package/src/routes/packs.ts +61 -8
- package/src/routes/plugins.ts +48 -5
- package/src/routes/preference-registry.ts +12 -93
- package/src/routes/sessions.ts +52 -20
- package/src/routes/skill-content.ts +226 -0
- package/src/routes/skill-install-authority.ts +64 -0
- package/src/routes/skills.ts +38 -3
- package/src/routes/transcription-recordings.ts +30 -1
- package/src/routes/transcriptions.ts +4 -0
- package/src/transcription/providers/codex-subscription.ts +2 -0
- package/src/transcription/providers/openai.ts +1 -0
- package/src/transcription/providers/xai-subscription.ts +49 -3
- package/src/transcription/service.ts +43 -6
- package/src/xai-subscription-auth.ts +9 -2
- package/dist/chunk-EAYCECQK.js.map +0 -1
package/dist/http/sse.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
40
|
-
*
|
|
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-
|
|
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
|
-
|
|
2715
|
+
onSignalAccepted?.();
|
|
2716
|
+
return await markSessionWorkflowWakeDelivered(db, {
|
|
2715
2717
|
accountId,
|
|
2716
2718
|
workspaceId,
|
|
2717
2719
|
sessionId,
|