chore: generate
This commit is contained in:
parent
7e997cfba4
commit
3bd98ea055
2 changed files with 50 additions and 2 deletions
|
|
@ -1866,8 +1866,9 @@ it.live("injects metadata for bare configured reference mentions", () =>
|
||||||
})
|
})
|
||||||
|
|
||||||
const stored = MessageV2.get({ sessionID: session.id, messageID: message.info.id })
|
const stored = MessageV2.get({ sessionID: session.id, messageID: message.info.id })
|
||||||
const synthetic = stored.parts
|
const synthetic = stored.parts.filter(
|
||||||
.filter((part): part is MessageV2.TextPart => part.type === "text" && part.synthetic === true)
|
(part): part is MessageV2.TextPart => part.type === "text" && part.synthetic === true,
|
||||||
|
)
|
||||||
const reference = synthetic.find((part) => part.text.startsWith("Referenced configured reference @docs."))
|
const reference = synthetic.find((part) => part.text.startsWith("Referenced configured reference @docs."))
|
||||||
|
|
||||||
expect(reference?.metadata?.reference).toMatchObject({ name: "docs", kind: "local", path: docs })
|
expect(reference?.metadata?.reference).toMatchObject({ name: "docs", kind: "local", path: docs })
|
||||||
|
|
|
||||||
|
|
@ -11120,6 +11120,12 @@
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/PromptAgentAttachment"
|
"$ref": "#/components/schemas/PromptAgentAttachment"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"references": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/PromptReferenceAttachment"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["text"],
|
"required": ["text"],
|
||||||
|
|
@ -17039,6 +17045,41 @@
|
||||||
"required": ["name"],
|
"required": ["name"],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
"PromptReferenceAttachment": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["local", "git", "invalid"]
|
||||||
|
},
|
||||||
|
"uri": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"branch": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"target": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetUri": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"problem": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"$ref": "#/components/schemas/PromptSource"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["name", "kind"],
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
"EventSessionNextPrompted": {
|
"EventSessionNextPrompted": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -18231,6 +18272,12 @@
|
||||||
"$ref": "#/components/schemas/PromptAgentAttachment"
|
"$ref": "#/components/schemas/PromptAgentAttachment"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"references": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/PromptReferenceAttachment"
|
||||||
|
}
|
||||||
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["user"]
|
"enum": ["user"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue