Skip to content

Commit 3bd98ea

Browse files
chore: generate
1 parent 7e997cf commit 3bd98ea

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

packages/opencode/test/session/prompt.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,8 +1866,9 @@ it.live("injects metadata for bare configured reference mentions", () =>
18661866
})
18671867

18681868
const stored = MessageV2.get({ sessionID: session.id, messageID: message.info.id })
1869-
const synthetic = stored.parts
1870-
.filter((part): part is MessageV2.TextPart => part.type === "text" && part.synthetic === true)
1869+
const synthetic = stored.parts.filter(
1870+
(part): part is MessageV2.TextPart => part.type === "text" && part.synthetic === true,
1871+
)
18711872
const reference = synthetic.find((part) => part.text.startsWith("Referenced configured reference @docs."))
18721873

18731874
expect(reference?.metadata?.reference).toMatchObject({ name: "docs", kind: "local", path: docs })

packages/sdk/openapi.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11120,6 +11120,12 @@
1112011120
"items": {
1112111121
"$ref": "#/components/schemas/PromptAgentAttachment"
1112211122
}
11123+
},
11124+
"references": {
11125+
"type": "array",
11126+
"items": {
11127+
"$ref": "#/components/schemas/PromptReferenceAttachment"
11128+
}
1112311129
}
1112411130
},
1112511131
"required": ["text"],
@@ -17039,6 +17045,41 @@
1703917045
"required": ["name"],
1704017046
"additionalProperties": false
1704117047
},
17048+
"PromptReferenceAttachment": {
17049+
"type": "object",
17050+
"properties": {
17051+
"name": {
17052+
"type": "string"
17053+
},
17054+
"kind": {
17055+
"type": "string",
17056+
"enum": ["local", "git", "invalid"]
17057+
},
17058+
"uri": {
17059+
"type": "string"
17060+
},
17061+
"repository": {
17062+
"type": "string"
17063+
},
17064+
"branch": {
17065+
"type": "string"
17066+
},
17067+
"target": {
17068+
"type": "string"
17069+
},
17070+
"targetUri": {
17071+
"type": "string"
17072+
},
17073+
"problem": {
17074+
"type": "string"
17075+
},
17076+
"source": {
17077+
"$ref": "#/components/schemas/PromptSource"
17078+
}
17079+
},
17080+
"required": ["name", "kind"],
17081+
"additionalProperties": false
17082+
},
1704217083
"EventSessionNextPrompted": {
1704317084
"type": "object",
1704417085
"properties": {
@@ -18231,6 +18272,12 @@
1823118272
"$ref": "#/components/schemas/PromptAgentAttachment"
1823218273
}
1823318274
},
18275+
"references": {
18276+
"type": "array",
18277+
"items": {
18278+
"$ref": "#/components/schemas/PromptReferenceAttachment"
18279+
}
18280+
},
1823418281
"type": {
1823518282
"type": "string",
1823618283
"enum": ["user"]

0 commit comments

Comments
 (0)