@canonmsg/backend-contracts 8.1.0 → 8.1.1
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/cjs/turnProtocol.js +7 -0
- package/dist/turnProtocol.js +7 -0
- package/package.json +1 -1
package/dist/cjs/turnProtocol.js
CHANGED
|
@@ -118,6 +118,13 @@ function shouldPromoteConversationMessage(input) {
|
|
|
118
118
|
if (isHiddenRuntimeCardMetadata(input.metadata)) {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
121
|
+
// Ordinary agent speech can update previews and notify people without
|
|
122
|
+
// opting into automatic agent-to-agent turns. Keep malformed explicit
|
|
123
|
+
// semantics on the existing conservative fallback.
|
|
124
|
+
if (input.metadata == null
|
|
125
|
+
|| (isRecord(input.metadata) && input.metadata.turnSemantics === undefined)) {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
121
128
|
return resolveTurnMessageSemantics(input) !== 'progress';
|
|
122
129
|
}
|
|
123
130
|
function shouldTriggerAgentTurn(input) {
|
package/dist/turnProtocol.js
CHANGED
|
@@ -107,6 +107,13 @@ export function shouldPromoteConversationMessage(input) {
|
|
|
107
107
|
if (isHiddenRuntimeCardMetadata(input.metadata)) {
|
|
108
108
|
return false;
|
|
109
109
|
}
|
|
110
|
+
// Ordinary agent speech can update previews and notify people without
|
|
111
|
+
// opting into automatic agent-to-agent turns. Keep malformed explicit
|
|
112
|
+
// semantics on the existing conservative fallback.
|
|
113
|
+
if (input.metadata == null
|
|
114
|
+
|| (isRecord(input.metadata) && input.metadata.turnSemantics === undefined)) {
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
110
117
|
return resolveTurnMessageSemantics(input) !== 'progress';
|
|
111
118
|
}
|
|
112
119
|
export function shouldTriggerAgentTurn(input) {
|