@zq-silk/yui 0.6.10 → 0.6.11
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.
|
@@ -2,6 +2,7 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { hasRecentTurnId, rememberRecentTurnId, validatePendingTurnCompletion, validateRecentTurnIds } from "./turnCompletion.js";
|
|
3
3
|
import { effectiveLaunchSnapshotsCompatible, effectiveLaunchSnapshotsCompatibleForTaskMain, validateEffectiveLaunchSnapshot } from "./effectiveLaunch.js";
|
|
4
4
|
import { validateProviderRuntimeBinding } from "../runtime/providerRuntimeIdentity.js";
|
|
5
|
+
import { builtinDriverIdForAdapter } from "../runtime/builtinAgentDrivers.js";
|
|
5
6
|
export function createRoleSessionSet(owner, activeAgentId, now) {
|
|
6
7
|
const base = {
|
|
7
8
|
owner: normalizeOwner(owner),
|
|
@@ -573,7 +574,7 @@ export function validateRoleSessionSet(set) {
|
|
|
573
574
|
if (session === undefined) {
|
|
574
575
|
throw new Error("Provider Runtime Binding has no active Role Agent session.");
|
|
575
576
|
}
|
|
576
|
-
if (providerBinding.providerNamespace !== session.adapterId) {
|
|
577
|
+
if (providerBinding.providerNamespace !== builtinDriverIdForAdapter(session.adapterId)) {
|
|
577
578
|
throw new Error("Provider Runtime Binding namespace does not match the Agent adapter.");
|
|
578
579
|
}
|
|
579
580
|
}
|