@axiom-lattice/protocols 4.5.0 → 4.6.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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +53 -0
- package/dist/index.d.mts +662 -1
- package/dist/index.d.ts +662 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ModelLatticeProtocol.ts +10 -0
- package/src/ModelProviderProtocol.ts +821 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(index_exports, {
|
|
|
64
64
|
normalizeTaskMetadataScalar: () => normalizeTaskMetadataScalar,
|
|
65
65
|
parseAgentWebAppGenUIBlock: () => parseAgentWebAppGenUIBlock,
|
|
66
66
|
parseMcpUiRef: () => parseMcpUiRef,
|
|
67
|
+
parseModelKey: () => parseModelKey,
|
|
67
68
|
parseProjectRoomEventId: () => parseProjectRoomEventId,
|
|
68
69
|
parseQueuedExecutionMode: () => parseQueuedExecutionMode,
|
|
69
70
|
parseTaskBeliefState: () => parseTaskBeliefState,
|
|
@@ -78,6 +79,7 @@ __export(index_exports, {
|
|
|
78
79
|
snapshotProjectRoomMembershipRealtime: () => snapshotProjectRoomMembershipRealtime,
|
|
79
80
|
snapshotProjectRoomMessageRealtime: () => snapshotProjectRoomMessageRealtime,
|
|
80
81
|
taskBeliefStatesEqual: () => taskBeliefStatesEqual,
|
|
82
|
+
toModelKey: () => toModelKey,
|
|
81
83
|
toProjectRoomPublicBotMembership: () => toProjectRoomPublicBotMembership,
|
|
82
84
|
toProjectRoomPublicMembership: () => toProjectRoomPublicMembership,
|
|
83
85
|
toProjectRoomPublicMessage: () => toProjectRoomPublicMessage
|
|
@@ -232,6 +234,21 @@ function assertGenericProjectConfig(config) {
|
|
|
232
234
|
}
|
|
233
235
|
}
|
|
234
236
|
|
|
237
|
+
// src/ModelProviderProtocol.ts
|
|
238
|
+
function toModelKey(providerId, modelId) {
|
|
239
|
+
return `${providerId}/${modelId}`;
|
|
240
|
+
}
|
|
241
|
+
function parseModelKey(modelKey) {
|
|
242
|
+
const separator = modelKey.indexOf("/");
|
|
243
|
+
if (separator <= 0 || separator === modelKey.length - 1) {
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
providerId: modelKey.slice(0, separator),
|
|
248
|
+
modelId: modelKey.slice(separator + 1)
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
235
252
|
// src/BindingProtocol.ts
|
|
236
253
|
var DuplicateChannelBindingSubjectError = class extends Error {
|
|
237
254
|
constructor() {
|
|
@@ -1073,6 +1090,7 @@ function parseMcpUiRef(value) {
|
|
|
1073
1090
|
normalizeTaskMetadataScalar,
|
|
1074
1091
|
parseAgentWebAppGenUIBlock,
|
|
1075
1092
|
parseMcpUiRef,
|
|
1093
|
+
parseModelKey,
|
|
1076
1094
|
parseProjectRoomEventId,
|
|
1077
1095
|
parseQueuedExecutionMode,
|
|
1078
1096
|
parseTaskBeliefState,
|
|
@@ -1087,6 +1105,7 @@ function parseMcpUiRef(value) {
|
|
|
1087
1105
|
snapshotProjectRoomMembershipRealtime,
|
|
1088
1106
|
snapshotProjectRoomMessageRealtime,
|
|
1089
1107
|
taskBeliefStatesEqual,
|
|
1108
|
+
toModelKey,
|
|
1090
1109
|
toProjectRoomPublicBotMembership,
|
|
1091
1110
|
toProjectRoomPublicMembership,
|
|
1092
1111
|
toProjectRoomPublicMessage
|