@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.mjs
CHANGED
|
@@ -146,6 +146,21 @@ function assertGenericProjectConfig(config) {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
// src/ModelProviderProtocol.ts
|
|
150
|
+
function toModelKey(providerId, modelId) {
|
|
151
|
+
return `${providerId}/${modelId}`;
|
|
152
|
+
}
|
|
153
|
+
function parseModelKey(modelKey) {
|
|
154
|
+
const separator = modelKey.indexOf("/");
|
|
155
|
+
if (separator <= 0 || separator === modelKey.length - 1) {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
providerId: modelKey.slice(0, separator),
|
|
160
|
+
modelId: modelKey.slice(separator + 1)
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
149
164
|
// src/BindingProtocol.ts
|
|
150
165
|
var DuplicateChannelBindingSubjectError = class extends Error {
|
|
151
166
|
constructor() {
|
|
@@ -986,6 +1001,7 @@ export {
|
|
|
986
1001
|
normalizeTaskMetadataScalar,
|
|
987
1002
|
parseAgentWebAppGenUIBlock,
|
|
988
1003
|
parseMcpUiRef,
|
|
1004
|
+
parseModelKey,
|
|
989
1005
|
parseProjectRoomEventId,
|
|
990
1006
|
parseQueuedExecutionMode,
|
|
991
1007
|
parseTaskBeliefState,
|
|
@@ -1000,6 +1016,7 @@ export {
|
|
|
1000
1016
|
snapshotProjectRoomMembershipRealtime,
|
|
1001
1017
|
snapshotProjectRoomMessageRealtime,
|
|
1002
1018
|
taskBeliefStatesEqual,
|
|
1019
|
+
toModelKey,
|
|
1003
1020
|
toProjectRoomPublicBotMembership,
|
|
1004
1021
|
toProjectRoomPublicMembership,
|
|
1005
1022
|
toProjectRoomPublicMessage
|