@axiom-lattice/gateway 4.2.5 → 4.3.1
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/embed/agent-chat-loader.js +1 -1
- package/dist/embed/{embed-page-AgentDetailSideApp-YPN3NDEA.js → embed-page-AgentDetailSideApp-ONXG4B3D.js} +1 -1
- package/dist/embed/{embed-page-AgentGovernanceWorkbench-FAZQNPAM.js → embed-page-AgentGovernanceWorkbench-LCIQ5UF3.js} +1 -1
- package/dist/embed/{embed-page-MessageGraph-CEOPX4GM.js → embed-page-MessageGraph-P7DBTZCL.js} +1 -1
- package/dist/embed/{embed-page-ReactChart-NZAYQOQH.js → embed-page-ReactChart-XS7D26VP.js} +1 -1
- package/dist/embed/{embed-page-SkillFlow-TPESM4DI.js → embed-page-SkillFlow-HPH37PZH.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-3EAPMISU.js → embed-page-TasksSideApp-MQTUCJO4.js} +1 -1
- package/dist/embed/{embed-page-TeamWorkspace-HB7ER45L.js → embed-page-TeamWorkspace-7T2HRXLG.js} +1 -1
- package/dist/embed/{embed-page-TopologyRuntimeView-O7JPR22B.js → embed-page-TopologyRuntimeView-PU2D7VZ7.js} +1 -1
- package/dist/embed/{embed-page-WorkflowAutomationView-OUXOBHXC.js → embed-page-WorkflowAutomationView-ST76M33F.js} +1 -1
- package/dist/embed/{embed-page-chunk-ZTRCHYWV.js → embed-page-chunk-4ZSGPIBZ.js} +1 -1
- package/dist/embed/{embed-page-chunk-4SKSUBXL.js → embed-page-chunk-BRETUPSG.js} +110 -109
- package/dist/embed/{embed-page-chunk-U6JBLAYD.js → embed-page-chunk-LE6OFJ7R.js} +1 -1
- package/dist/embed/{embed-page-chunk-KFUAWYJ7.js → embed-page-chunk-T25T2YE6.js} +1 -1
- package/dist/embed/{embed-page-chunk-ILNGM4RN.js → embed-page-chunk-U6SL5TG6.js} +89 -38
- package/dist/embed/embed-page-chunk-VRV57DFE.js +466 -0
- package/dist/embed/embed-page-chunk-YPV4BAWI.js +245 -0
- package/dist/embed/{embed-page-chunk-6C2UZV63.js → embed-page-chunk-Z4S4OYA4.js} +1 -1
- package/dist/embed/{embed-page-chunk-TQPMRDLI.js → embed-page-chunk-ZKJ7Z7P3.js} +1 -1
- package/dist/embed/{embed-page-chunk-RTVQJYET.js → embed-page-chunk-ZXFZANZM.js} +1 -1
- package/dist/embed/embed-page.js +3 -3
- package/dist/index.js +140 -146
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/embed/embed-page-chunk-5XKUKLZQ.js +0 -467
- package/dist/embed/embed-page-chunk-GCDGRO6A.js +0 -245
package/dist/index.mjs
CHANGED
|
@@ -5306,7 +5306,7 @@ var NoopRoomBindingLifecycle = class {
|
|
|
5306
5306
|
// src/services/collaboration/WorkspacePublicRoomService.ts
|
|
5307
5307
|
import { createHash } from "crypto";
|
|
5308
5308
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
5309
|
-
|
|
5309
|
+
import { WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX } from "@axiom-lattice/protocols";
|
|
5310
5310
|
var PUBLIC_ROOM_PROJECT_NAME = "General";
|
|
5311
5311
|
var PUBLIC_ROOM_PROJECT_DESCRIPTION = "Public room for everyone in the workspace";
|
|
5312
5312
|
function workspacePublicRoomProjectId(tenantId, workspaceId) {
|
|
@@ -5484,7 +5484,7 @@ function createProjectCollaborationInitializer(deps) {
|
|
|
5484
5484
|
} catch {
|
|
5485
5485
|
throw new ProjectCollaborationInitializationError("room");
|
|
5486
5486
|
}
|
|
5487
|
-
if (project.kind === "business" && deps.ensureCoordinator) {
|
|
5487
|
+
if ((project.kind === "business" || project.kind === "public") && deps.ensureCoordinator) {
|
|
5488
5488
|
try {
|
|
5489
5489
|
await deps.ensureCoordinator({
|
|
5490
5490
|
tenantId,
|
|
@@ -5652,12 +5652,6 @@ var WorkspaceController = class {
|
|
|
5652
5652
|
message: CAPABILITY_BUNDLE_CONFIG_MESSAGE
|
|
5653
5653
|
});
|
|
5654
5654
|
}
|
|
5655
|
-
if (data.kind === "public") {
|
|
5656
|
-
return reply.status(409).send({
|
|
5657
|
-
success: false,
|
|
5658
|
-
error: "The public room project is managed automatically"
|
|
5659
|
-
});
|
|
5660
|
-
}
|
|
5661
5655
|
if (user?.id && this.projectCollaboration) {
|
|
5662
5656
|
try {
|
|
5663
5657
|
const authorized = await this.projectCollaboration.authorizeCreator({ tenantId, userId: user.id });
|
|
@@ -5735,16 +5729,10 @@ var WorkspaceController = class {
|
|
|
5735
5729
|
}
|
|
5736
5730
|
if (updates.kind !== void 0) {
|
|
5737
5731
|
const existingProject = await this.projectStore.getProjectById(tenantId, projectId);
|
|
5738
|
-
if (existingProject &&
|
|
5739
|
-
return reply.status(409).send({
|
|
5740
|
-
success: false,
|
|
5741
|
-
error: "kind public is reserved for the workspace public room"
|
|
5742
|
-
});
|
|
5743
|
-
}
|
|
5744
|
-
if (existingProject?.kind === "public") {
|
|
5732
|
+
if (existingProject && existingProject.id === workspacePublicRoomProjectId(tenantId, existingProject.workspaceId)) {
|
|
5745
5733
|
return reply.status(409).send({
|
|
5746
5734
|
success: false,
|
|
5747
|
-
error: "The public room
|
|
5735
|
+
error: "The workspace public room classification cannot be changed"
|
|
5748
5736
|
});
|
|
5749
5737
|
}
|
|
5750
5738
|
}
|
|
@@ -5778,10 +5766,10 @@ var WorkspaceController = class {
|
|
|
5778
5766
|
});
|
|
5779
5767
|
}
|
|
5780
5768
|
}
|
|
5781
|
-
if (project.
|
|
5769
|
+
if (project.id === workspacePublicRoomProjectId(tenantId, project.workspaceId ?? workspaceId)) {
|
|
5782
5770
|
return reply.status(409).send({
|
|
5783
5771
|
success: false,
|
|
5784
|
-
error: "The public room
|
|
5772
|
+
error: "The workspace public room cannot be deleted"
|
|
5785
5773
|
});
|
|
5786
5774
|
}
|
|
5787
5775
|
const deleted = await this.projectStore.deleteProject(tenantId, projectId);
|
|
@@ -7675,7 +7663,7 @@ function connectionRoutes(fastify2) {
|
|
|
7675
7663
|
try {
|
|
7676
7664
|
const body = testOrDiscoverBody.parse(request.body);
|
|
7677
7665
|
const targetConfig = await resolveConfig(type, body, getTenant(request));
|
|
7678
|
-
const result = await plugin.connection.test(targetConfig);
|
|
7666
|
+
const result = await plugin.connection.test(targetConfig, { tenantId: getTenant(request) });
|
|
7679
7667
|
return reply.send(result);
|
|
7680
7668
|
} catch (err) {
|
|
7681
7669
|
if (err?.status === 404) {
|
|
@@ -7703,7 +7691,7 @@ function connectionRoutes(fastify2) {
|
|
|
7703
7691
|
try {
|
|
7704
7692
|
const body = testOrDiscoverBody.parse(request.body);
|
|
7705
7693
|
const targetConfig = await resolveConfig(type, body, getTenant(request));
|
|
7706
|
-
const resources = await plugin.connection.discover(targetConfig);
|
|
7694
|
+
const resources = await plugin.connection.discover(targetConfig, { tenantId: getTenant(request) });
|
|
7707
7695
|
return reply.send({ resources });
|
|
7708
7696
|
} catch (err) {
|
|
7709
7697
|
if (err?.status === 404) {
|
|
@@ -11963,10 +11951,15 @@ var agentWebAppFeaturesSchema = z4.object({
|
|
|
11963
11951
|
genUI: z4.boolean(),
|
|
11964
11952
|
files: z4.boolean().optional()
|
|
11965
11953
|
}).strict();
|
|
11954
|
+
var agentWebAppQuickPromptSchema = z4.object({
|
|
11955
|
+
label: z4.string().min(1).max(40),
|
|
11956
|
+
text: z4.string().min(1).max(500)
|
|
11957
|
+
}).strict();
|
|
11966
11958
|
var agentWebAppAppearanceSchema = z4.object({
|
|
11967
11959
|
title: z4.string().max(120).optional(),
|
|
11968
11960
|
welcomeMessage: z4.string().max(1e3).optional(),
|
|
11969
|
-
primaryColor: z4.string().regex(/^#[0-9A-Fa-f]{6}$/).optional()
|
|
11961
|
+
primaryColor: z4.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
11962
|
+
quickPrompts: z4.array(agentWebAppQuickPromptSchema).max(6).optional()
|
|
11970
11963
|
}).strict();
|
|
11971
11964
|
var agentWebAppIssuerSchema = z4.object({
|
|
11972
11965
|
iss: z4.string().min(1).max(255),
|
|
@@ -13719,7 +13712,7 @@ var ProjectRoomService = class {
|
|
|
13719
13712
|
*/
|
|
13720
13713
|
async ensureMainRoomWithCoordinator(input) {
|
|
13721
13714
|
const { project, room } = await this.authorizedRoom(input);
|
|
13722
|
-
if (project.kind === "business" && this.deps.ensureCoordinator) {
|
|
13715
|
+
if ((project.kind === "business" || project.kind === "public") && this.deps.ensureCoordinator) {
|
|
13723
13716
|
try {
|
|
13724
13717
|
await this.deps.ensureCoordinator({
|
|
13725
13718
|
tenantId: input.tenantId,
|
|
@@ -14861,13 +14854,13 @@ function registerCoSpaceRoutes(app2, deps) {
|
|
|
14861
14854
|
);
|
|
14862
14855
|
const accessibleProjects = [];
|
|
14863
14856
|
for (const project of allProjects) {
|
|
14864
|
-
if (project.
|
|
14857
|
+
if (project.id.startsWith(WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX)) continue;
|
|
14865
14858
|
const membership = await deps.membershipStore.findByUser(
|
|
14866
14859
|
actor3.tenantId,
|
|
14867
14860
|
project.id,
|
|
14868
14861
|
actor3.userId
|
|
14869
14862
|
);
|
|
14870
|
-
if (membership && membership.status === "active") {
|
|
14863
|
+
if (project.kind === "public" || membership && membership.status === "active") {
|
|
14871
14864
|
accessibleProjects.push(project);
|
|
14872
14865
|
}
|
|
14873
14866
|
}
|
|
@@ -14910,6 +14903,7 @@ function registerCoSpaceRoutes(app2, deps) {
|
|
|
14910
14903
|
).length,
|
|
14911
14904
|
participantNames,
|
|
14912
14905
|
...displayName === void 0 ? {} : { displayName },
|
|
14906
|
+
...project.kind === "public" ? { isPublic: true } : {},
|
|
14913
14907
|
unreadCount: await computeUnread(
|
|
14914
14908
|
deps,
|
|
14915
14909
|
actor3.tenantId,
|