@axiom-lattice/protocols 4.7.1 → 4.9.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 +28 -0
- package/dist/index.d.mts +175 -12
- package/dist/index.d.ts +175 -12
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AgentLatticeProtocol.ts +6 -0
- package/src/ChannelAdapterProtocol.ts +13 -1
- package/src/ChannelInstallationStoreProtocol.ts +15 -1
- package/src/ModelLatticeProtocol.ts +11 -0
- package/src/ModelProviderProtocol.ts +68 -6
- package/src/PluginDeploymentStoreProtocol.ts +56 -0
- package/src/PluginProtocol.ts +6 -3
- package/src/ProjectRoomProtocol.ts +6 -0
- package/src/TrustedRunContextProtocol.ts +17 -1
- package/src/__tests__/TrustedRunContextProtocol.test.ts +39 -0
- package/src/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -891,10 +891,11 @@ function parseTrustedRunContext(value) {
|
|
|
891
891
|
"role",
|
|
892
892
|
"title"
|
|
893
893
|
];
|
|
894
|
-
const projectRoomValues = snapshotExactRecord(projectRoomValue, requiredKeys, ["responsibility", "source"]);
|
|
894
|
+
const projectRoomValues = snapshotExactRecord(projectRoomValue, requiredKeys, ["responsibility", "source", "rosterExempt"]);
|
|
895
895
|
const hasResponsibility = projectRoomValues !== void 0 && Object.prototype.hasOwnProperty.call(projectRoomValues, "responsibility");
|
|
896
896
|
const hasSource = projectRoomValues !== void 0 && Object.prototype.hasOwnProperty.call(projectRoomValues, "source");
|
|
897
|
-
|
|
897
|
+
const hasRosterExempt = projectRoomValues !== void 0 && Object.prototype.hasOwnProperty.call(projectRoomValues, "rosterExempt");
|
|
898
|
+
if (!projectRoomValues || requiredKeys.some((key) => typeof projectRoomValues[key] !== "string" || projectRoomValues[key].length === 0) || hasResponsibility && projectRoomValues.responsibility !== void 0 && (typeof projectRoomValues.responsibility !== "string" || projectRoomValues.responsibility.length === 0) || hasSource && projectRoomValues.source !== void 0 && (typeof projectRoomValues.source !== "string" || projectRoomValues.source.length === 0) || hasRosterExempt && projectRoomValues.rosterExempt !== void 0 && typeof projectRoomValues.rosterExempt !== "boolean" || projectRoomValues.role !== "coordinator" && projectRoomValues.role !== "specialist") {
|
|
898
899
|
throw new Error("Invalid trusted agent run context");
|
|
899
900
|
}
|
|
900
901
|
const parsedProjectRoom = {
|
|
@@ -915,6 +916,9 @@ function parseTrustedRunContext(value) {
|
|
|
915
916
|
if (hasSource && typeof projectRoomValues.source === "string") {
|
|
916
917
|
parsedProjectRoom.source = projectRoomValues.source;
|
|
917
918
|
}
|
|
919
|
+
if (hasRosterExempt && projectRoomValues.rosterExempt === true) {
|
|
920
|
+
parsedProjectRoom.rosterExempt = true;
|
|
921
|
+
}
|
|
918
922
|
return { projectRoom: parsedProjectRoom };
|
|
919
923
|
}
|
|
920
924
|
function parseQueuedExecutionMode(value) {
|