@canonmsg/backend-contracts 1.0.0 → 1.1.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/dist/cjs/message.js +3 -0
- package/dist/cjs/turnProtocol.js +3 -1
- package/dist/message.d.ts +2 -0
- package/dist/message.js +3 -0
- package/dist/turnProtocol.js +3 -1
- package/package.json +1 -1
package/dist/cjs/message.js
CHANGED
package/dist/cjs/turnProtocol.js
CHANGED
|
@@ -22,7 +22,9 @@ function isHiddenRuntimeCardMetadata(metadata) {
|
|
|
22
22
|
|| metadata.type === 'question_reply'
|
|
23
23
|
|| metadata.type === 'plan_approval_reply'
|
|
24
24
|
|| metadata.type === 'runtime_input_reply'
|
|
25
|
-
|| metadata.type === 'runtime_input_outcome'
|
|
25
|
+
|| metadata.type === 'runtime_input_outcome'
|
|
26
|
+
|| metadata.type === 'runtime_card_reply'
|
|
27
|
+
|| metadata.type === 'runtime_card_outcome';
|
|
26
28
|
}
|
|
27
29
|
function normalizeTurnMetadata(metadata) {
|
|
28
30
|
if (!isRecord(metadata))
|
package/dist/message.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface SerializedMessage {
|
|
|
36
36
|
createdAt: string;
|
|
37
37
|
metadata?: Record<string, unknown>;
|
|
38
38
|
contactCard?: SerializedContactCard;
|
|
39
|
+
/** Durable canon.card.v1 runtime card content, passed through opaquely. */
|
|
40
|
+
runtimeCard?: Record<string, unknown>;
|
|
39
41
|
}
|
|
40
42
|
export interface SerializeMessageInput {
|
|
41
43
|
id: string;
|
package/dist/message.js
CHANGED
package/dist/turnProtocol.js
CHANGED
|
@@ -11,7 +11,9 @@ function isHiddenRuntimeCardMetadata(metadata) {
|
|
|
11
11
|
|| metadata.type === 'question_reply'
|
|
12
12
|
|| metadata.type === 'plan_approval_reply'
|
|
13
13
|
|| metadata.type === 'runtime_input_reply'
|
|
14
|
-
|| metadata.type === 'runtime_input_outcome'
|
|
14
|
+
|| metadata.type === 'runtime_input_outcome'
|
|
15
|
+
|| metadata.type === 'runtime_card_reply'
|
|
16
|
+
|| metadata.type === 'runtime_card_outcome';
|
|
15
17
|
}
|
|
16
18
|
export function normalizeTurnMetadata(metadata) {
|
|
17
19
|
if (!isRecord(metadata))
|