@axiom-lattice/protocols 7.2.0 → 7.3.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/index.mjs CHANGED
@@ -138,10 +138,39 @@ function assertGenericProjectConfig(config) {
138
138
  }
139
139
  }
140
140
 
141
+ // src/McpServerConfigStoreProtocol.ts
142
+ function isPersonalMcpServerConfigStore(store) {
143
+ const candidate = store;
144
+ return typeof candidate.getAllConfigsForAssistant === "function" && typeof candidate.getAllPersonalConfigsWithoutTenant === "function" && typeof candidate.getConfigByIdForAssistant === "function" && typeof candidate.getConfigByKeyForAssistant === "function" && typeof candidate.createConfigForAssistant === "function" && typeof candidate.updateConfigForAssistant === "function" && typeof candidate.deleteConfigForAssistant === "function" && typeof candidate.deleteConfigsForAssistant === "function" && typeof candidate.hasConfigForAssistant === "function";
145
+ }
146
+
147
+ // src/PlatformOpsProtocol.ts
148
+ var PLATFORM_TENANT_ID = "__platform__";
149
+ var PLATFORM_OPS_AGENT_ID = "platform-ops";
150
+ var PLATFORM_TENANT_PROTECTED_ERROR = "PLATFORM_TENANT_PROTECTED";
151
+ function isPlatformTenantId(tenantId) {
152
+ return tenantId === PLATFORM_TENANT_ID;
153
+ }
154
+ var PlatformTenantProtectedError = class extends Error {
155
+ constructor(message = "The hidden platform tenant is protected") {
156
+ super(message);
157
+ this.code = PLATFORM_TENANT_PROTECTED_ERROR;
158
+ this.name = "PlatformTenantProtectedError";
159
+ }
160
+ };
161
+ function assertNotPlatformTenant(tenantId) {
162
+ if (isPlatformTenantId(tenantId)) {
163
+ throw new PlatformTenantProtectedError();
164
+ }
165
+ }
166
+ var PLATFORM_OPS_WORKSPACE_ID = "platform-ops";
167
+ var PLATFORM_OPS_PROJECT_ID = "platform-ops";
168
+
141
169
  // src/ModelProviderProtocol.ts
142
170
  var DEFAULT_MODEL_KEY = "default";
143
171
  var EMBEDDING_DEFAULT_KEY = "default:embedding";
144
172
  var ASR_DEFAULT_KEY = "default:asr";
173
+ var PLATFORM_MODEL_TENANT_ID = PLATFORM_TENANT_ID;
145
174
  function toModelKey(providerId, modelId) {
146
175
  return `${providerId}/${modelId}`;
147
176
  }
@@ -1282,12 +1311,19 @@ export {
1282
1311
  OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX,
1283
1312
  OidcIdentityClaimConflictError,
1284
1313
  OidcProviderConfigConflictError,
1314
+ PLATFORM_MODEL_TENANT_ID,
1315
+ PLATFORM_OPS_AGENT_ID,
1316
+ PLATFORM_OPS_PROJECT_ID,
1317
+ PLATFORM_OPS_WORKSPACE_ID,
1285
1318
  PLATFORM_SETTINGS_DEFAULTS,
1319
+ PLATFORM_TENANT_ID,
1320
+ PLATFORM_TENANT_PROTECTED_ERROR,
1286
1321
  PROJECT_ROOM_TASK_DELEGATED_LABEL,
1287
1322
  PROJECT_ROOM_TASK_DELEGATED_SEPARATOR,
1288
1323
  PROJECT_ROOM_USER_CHANNEL_PROJECT,
1289
1324
  PROJECT_TASK_LIFECYCLE_ACTIONS,
1290
1325
  PlatformSettingsVersionConflictError,
1326
+ PlatformTenantProtectedError,
1291
1327
  ProjectRoomBrokerCapacityError,
1292
1328
  ProjectRoomCursorError,
1293
1329
  ProjectTaskStoreUnsupportedError,
@@ -1303,6 +1339,7 @@ export {
1303
1339
  a2aEventCursorSchema,
1304
1340
  affinityEchoHeaders,
1305
1341
  assertGenericProjectConfig,
1342
+ assertNotPlatformTenant,
1306
1343
  assertStoreIdentity,
1307
1344
  assertStoreNamespacePrefix,
1308
1345
  assertValidCreateChannelReplyJobInput,
@@ -1319,6 +1356,8 @@ export {
1319
1356
  isDeepAgentConfig,
1320
1357
  isExecutionResultEventKey,
1321
1358
  isMcpUiRef,
1359
+ isPersonalMcpServerConfigStore,
1360
+ isPlatformTenantId,
1322
1361
  isProjectRoomEventId,
1323
1362
  isWorkflowAgentConfig,
1324
1363
  isWorkspacePublicRoomProjectId,