@opengeni/api-router 2.13.0-canary.1 → 2.13.0-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/app.js +1 -1
- package/dist/{chunk-V4IDX7VJ.js → chunk-K2NU4KRK.js} +3138 -3635
- package/dist/{chunk-V4IDX7VJ.js.map → chunk-K2NU4KRK.js.map} +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/integrations/github-lens-connect.d.ts +1 -1
- package/dist/integrations/slack-interactions.d.ts +1 -1
- package/dist/mcp/documents.d.ts +5 -13
- package/dist/mcp/files.d.ts +2 -2
- package/dist/mcp/first-party-tool-permissions.d.ts +36 -0
- package/dist/mcp/knowledge-entries.d.ts +5 -0
- package/dist/mcp/server.d.ts +4 -4
- package/dist/routes/host-mcp-resolvers.d.ts +3 -0
- package/dist/routes/knowledge.d.ts +3 -0
- package/dist/sandbox-file-artifacts.d.ts +6 -2
- package/dist/workspace-state-projection.d.ts +3 -5
- package/package.json +19 -19
- package/src/access-grant-rls.ts +13 -1
- package/src/app.ts +4 -11
- package/src/index.ts +4 -3
- package/src/integrations/atlassian.ts +31 -28
- package/src/integrations/google-drive.ts +33 -30
- package/src/integrations/marketplace-plugin.ts +1 -1
- package/src/integrations/provider-oauth.ts +11 -2
- package/src/mcp/documents.ts +57 -428
- package/src/mcp/files.ts +76 -58
- package/src/mcp/first-party-tool-permissions.ts +9 -0
- package/src/mcp/knowledge-entries.ts +276 -0
- package/src/mcp/server.ts +7 -361
- package/src/routes/company-brain.ts +58 -107
- package/src/routes/documents.ts +78 -294
- package/src/routes/files.ts +68 -3
- package/src/routes/host-mcp-resolvers.ts +41 -0
- package/src/routes/knowledge.ts +386 -0
- package/src/routes/organization-memberships.ts +33 -0
- package/src/routes/scheduled-tasks.ts +9 -1
- package/src/routes/sessions.ts +20 -3
- package/src/routes/skill-content.ts +8 -2
- package/src/routes/video-generation.ts +7 -5
- package/src/routes/workspace-learning.ts +12 -82
- package/src/routes/workspace-state.ts +34 -25
- package/src/routes/workspaces.ts +20 -10
- package/src/sandbox-file-artifacts.ts +54 -2
- package/src/scheduled-task-deletion.ts +3 -2
- package/src/workspace-state-projection.ts +18 -148
- package/src/workspace-tool-gateway.ts +3 -15
- package/dist/mcp/company-brain-governed-writes.d.ts +0 -26
- package/dist/mcp/remember.d.ts +0 -28
- package/src/mcp/company-brain-governed-writes.ts +0 -271
- package/src/mcp/remember.ts +0 -191
package/dist/index.js
CHANGED
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
createOpenGeniSlackBotInteractionClient,
|
|
8
8
|
startSlackInteractionPump,
|
|
9
9
|
startTemporalScheduleCleanupPump
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K2NU4KRK.js";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
|
+
import { scheduledTaskKnowledgeSource } from "@opengeni/contracts";
|
|
13
14
|
import {
|
|
14
15
|
dbSearchPath,
|
|
15
16
|
getSettings,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
logStartupDependencyRetry
|
|
33
34
|
} from "@opengeni/observability";
|
|
34
35
|
import { createObjectStorage } from "@opengeni/storage";
|
|
35
|
-
import {
|
|
36
|
+
import { createNativeRemoteMcpCredentialsPort } from "@opengeni/core/remote-mcp-credentials";
|
|
36
37
|
import { isArtifactRuntimeConfigured } from "@opengeni/artifact-tool/runtime/development";
|
|
37
38
|
import {
|
|
38
39
|
resolveCatalogSettings,
|
|
@@ -2966,7 +2967,7 @@ async function startApi(options = {}) {
|
|
|
2966
2967
|
}
|
|
2967
2968
|
const { app, routeDeps } = createAppComposition({
|
|
2968
2969
|
settings,
|
|
2969
|
-
connectionCredentials:
|
|
2970
|
+
connectionCredentials: createNativeRemoteMcpCredentialsPort(settings, dbClient.db),
|
|
2970
2971
|
db: dbClient.db,
|
|
2971
2972
|
bus,
|
|
2972
2973
|
workflowClient: workflowClient.client,
|
|
@@ -3202,7 +3203,7 @@ function temporalScheduleOptions(task, taskQueue) {
|
|
|
3202
3203
|
}
|
|
3203
3204
|
function scheduledTaskEffectivelyPaused(task) {
|
|
3204
3205
|
if (task.status === "paused") return true;
|
|
3205
|
-
if (task
|
|
3206
|
+
if (!scheduledTaskKnowledgeSource(task)) return false;
|
|
3206
3207
|
const control = task.metadata.knowledgeSourceSync;
|
|
3207
3208
|
if (!control || typeof control !== "object") return false;
|
|
3208
3209
|
const record = control;
|