Vigilans (#665): GetChatMessage's reply carries the thinking's signature
in delta_signature (10) and its type in delta_signature_type (21), and
ChatMessagePrompt takes the thinking back in thinking (11), signature
(12) and signature_type (18). The plugin read only delta_thinking (9),
so /v1/messages answered thinking blocks with signature "", and the
next request left the assistant's thinking out. Field numbers checked
against devin2api's all-protos.proto (GetChatMessageResponse,
ExaChatPb_ChatMessagePrompt) at e8547b6d.
- events() yields {signature} for field 10 and {signatureType} for 21.
- Messages, whole: the signature goes on the last thinking block. Stream:
a signature_delta in the open thinking block, before its stop, as
Anthropic streams it. Only when the request's model is Claude; another
model's thinking stays unsigned, as before.
- The type is kept by signature (the last 512) since a Messages block has
no field for it; one not kept goes back as "anthropic", what Devin says
for Claude.
- buildMessages, to a Claude model: a signed thinking block goes back
on the assistant prompt after it (its text, or the calls' prompt);
a second one before any prompt gets an empty prompt of its own, and
one after the text with calls following goes on the calls' prompt.
Unsigned thinking, thinking to a model that isn't Claude, and a turn
that only thought send nothing, as before.
- The chat completion and Messages streams read past events they send
nothing for: a pull that enqueues nothing isn't pulled again in Bun,
and the Messages stream hung on one (seen in the new tests before the
loop).
Not changed: chat completions (and OpenCode 2's language model, which
goes through them) have no field for a signature, so they carry the
thinking text only, as before. thinking_redacted (reply 11, prompt 13)
isn't read or sent.
Run at this head on mote:
- bun test packages/devin (HOME a temp dir): 199 pass, 0 fail.
- repo root bun test: 5175 pass, 0 fail (15 skip); bun scripts/check.mjs ok.
- thinking-signature.test.mjs on origin/main 311d628: the six tests of
the signature (read, whole, stream, replay, two thinking blocks, type)
red; the four "as before" tests pass.
Not tried: a real Devin account (none in a sandbox); frames are built
from the proto's field numbers, not captured bytes.
14 lines
595 B
JSON
14 lines
595 B
JSON
{
|
|
"name": "@magpie-community/opencode-devin-auth",
|
|
"version": "0.1.35",
|
|
"description": "Devin subscriptions (the devin CLI's account) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "devin", "windsurf"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/devin" },
|
|
"magpie": { "options": { "cacheKeepaliveInterval": 285, "cacheKeepaliveMaxPings": 6 } }
|
|
}
|