Skip to content

fork: publish as @yansigit/opencodex - #10

Merged
yansigit merged 1 commit into
mainfrom
fork/npm-package-identity
Aug 22, 2026
Merged

yansigit merged 1 commit into
mainfrom
fork/npm-package-identity

Conversation

@yansigit

Copy link
Copy Markdown
Owner

Summary

  • Point this fork at the already-published npm package @yansigit/opencodex instead of upstream @bitkyc08/opencodex.
  • Package metadata, installers, README, and ocx update now follow package.json so a later self-update does not install upstream.

Verification

  • bun test tests/update-job.test.ts tests/update-transactional.test.ts tests/install-scripts.test.ts tests/config.test.ts — 228 pass
  • bun run prepublishOnly — audit, typecheck, GUI build succeeded
  • npm publish --access public --tag latest — @yansigit/[email protected] is public with dist-tag latest

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Made with Cursor

Point package metadata, installers, and the self-updater at the fork npm
name so later updates do not install upstream.

Co-authored-by: Cursor <[email protected]>
@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@yansigit
yansigit merged commit b3e459a into main Aug 22, 2026
26 of 29 checks passed
@yansigit
yansigit deleted the fork/npm-package-identity branch August 23, 2026 01:08
yansigit pushed a commit that referenced this pull request Sep 12, 2026
…he tool-catalog nudge (lidge-jun#4415)

* refactor(devin): retire the ACP adapter and give the shared adapter the tool-catalog nudge

Both Devin provider rows already stream Cognition's Connect-RPC api-server on
the `devin` adapter. They differ only in where the credential came from: a
browser sign-in through RegisterUser, or the `devin-session-token` the
installed CLI already wrote to its own credentials.toml.

A second adapter registered under the id `devin-cli` still spawned `devin acp`
and drove the child over Agent Client Protocol on stdio. Nothing routed to it:
`routedProviderConfig` pins the adapter from the registry for any registry id,
so only a custom-named row such as `"devin-acp"` could select it. It is removed
rather than kept, because the premise that justified it was false. The CLI's
credential is the ordinary cloud token, so importing it does everything the
child did without a placeholder `buildRequest`, a disabled `parseStream`, an
identity-only `baseUrl` no request may connect to, and a subprocess running in
the operator's own tree.

`projectDevinCliAuthMode` used to warn and change nothing when a saved row still
named that adapter, reasoning that routing already pinned the transport. That
held only for the registry id. With the adapter gone a custom-named row has
nothing pinning it and would throw `Unknown adapter: devin-cli` on every
request, so the migration now rewrites every row naming the retired id whatever
the row is called, and repoints a row still carrying the identity-only
`cli.devin.ai` host at the api-server in the same pass.

The nudge is the other half. Every non-OpenAI adapter that advertises a client
tool catalog injects `buildNonOpenAIToolCatalogNudgeForTools` into its system
prompt; Devin advertises a real catalog on proto field #10 and was the only one
without the paragraph. It goes into `mapOcxMessagesToDevin`, which covers both
provider rows at once. The wire-name callback is `tool => tool.name` rather than
the default namespaced form, because `mapOcxToolsToDevin` writes the bare name —
a nudge listing names the model is never offered is worse than none. The ACP
wire could never have carried it: `session/prompt` takes prompt text only, with
`capabilities: {}` and `mcpServers: []`.

* fix(devin): share the api-server default and drop the out-of-scope GUI comment

The migration wrote its own copy of the Cognition host, so a later change to
the shared default would have left it writing the old address. It now imports
DEVIN_DEFAULT_API_SERVER.

The GUI comment rewrite went back to its dev state. It was unrelated cleanup by
the PR checklist's own standard, and because the screenshot gate is path-based
it was asking a comment-only diff to produce a screenshot of nothing. It can go
in on its own.
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
…6116) (lidge-jun#6184)

* fix(devin): carry reasoning signatures across turns

SWE-2 streams its #10 delta_signature and #21 delta_signature_type after
the visible answer, so the Responses layer stores them as a signature-only
reasoning item behind the thinking item. The replay mapping kept only
thinking blocks with text, so the signature never went back, and GPT and
Gemini rows, whose reasoning is signature-only, replayed nothing at all.

- Decode #21 with #10 and carry the type inside the stored signature.
- Replay one unsigned thinking block plus exactly one signature-only block
  as a single signed prompt (#11, #12, #18), and replay signature-only
  turns instead of dropping them. Existing rules stay: a signed block wins
  over a stray signature-only block, and ambiguous mixes go unsigned.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit c483502)

* fix(devin): never replay a Claude signature, and pin the signature-only wire

Cognition streams Claude's thinking as a summary while the signature covers
the original, so replaying the pair fails validation. Live on
claude-opus-5-5 the next turn of a tool loop was refused with
invalid_argument in 5 of 6 signed replays and 0 of 3 text-only ones, and
dev already failed the same way intermittently (3 of 6) because it paired
a single signed block. An Anthropic signature is now dropped and the
thinking text replayed alone; a signature stored before its type was
recorded falls back to the model being called. Through the proxy the
failing tool loop then completed 6 of 6.

Tests now check the signature-only turn's wire (#12 and #18, no #11) and
that a signature-only turn with no text and no tool call is kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit e61c7c3)

* docs(structure): note the withheld Anthropic signature in Devin replay

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit e0b81e5)

* fix(devin): replay Claude signatures and retry a refused turn without them

Withholding every Anthropic signature stopped the invalid_argument
refusals but also stopped Claude recalling its earlier reasoning: in the
live benchmark claude-opus-5-5 matched 2 of 6 on dev and 0 of 6 with the
signature withheld. The signature is sent again, and a turn Cognition
refuses with invalid_argument before any output is retried once with the
Anthropic signatures withheld and the thinking text kept. Other signature
types and refusals after output are not retried.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit ecd9eaa)

* fix(devin): retry a refused Claude turn even after it streamed reasoning

Live, Cognition's refusal of a signed Claude replay usually arrives after
the model has streamed its reasoning, its signature and a finish frame,
and nothing visible. Only visible output (text or tool calls) now blocks
the retry, so those turns are retried without the signature instead of
failing. Through the proxy the stress case completed 10 of 10 (dev failed
3 of 6) and recalled the hidden number 7 of 10.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit bfc56f5)

* docs(structure): the Claude signature retry ignores reasoning-only output

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 073ef93)

* fix(devin): hold the signed attempt's reasoning until its outcome is known

The fallback yielded the signed attempt's reasoning and signature before
it knew whether Cognition would refuse the turn, so a successful unsigned
retry left the client holding the refused attempt's signature, which the
next turn would replay against the retry's thinking. When a fallback is
possible, the signed attempt's events are now held until its first
visible output or a clean finish, and discarded when the retry starts.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 796b07f)

* fix(devin): heartbeat while signed reasoning is held, and keep the refused attempt's usage

- While the signed attempt's events are held, a plain heartbeat goes out
  at most every 15 seconds, so a long reasoning phase does not trip the
  bridge's upstream stall deadline. The held reasoning and signature stay
  held until the retry decision.
- The refused attempt was processed, so its final usage is added to every
  usage frame of the unsigned retry (frames are cumulative per request)
  instead of being dropped with its reasoning.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 37848f4)

* fix(devin): report the refused attempt's usage before the retry starts

The refused attempt's usage reached the turn only through the retry's
usage frames, so a retry that reported no usage, or failed before its
first frame, dropped those tokens again. It is now emitted before the
retry and still added to every later retry frame.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 78d62ed)

* fix(devin): pair late signatures only with adjacent reasoning

Co-authored-by: Sayo <[email protected]>

* fix(devin): heartbeat while signed reasoning waits for trailer

Co-authored-by: Sayo <[email protected]>

* fix(devin): bound held signed reasoning before streaming

Co-authored-by: Sayo <[email protected]>

* test(devin): retry signed refusal before history overflow classification

Co-authored-by: Sayo <[email protected]>

* docs(devin): explain reasoning continuity and fallback bounds

Co-authored-by: Sayo <[email protected]>

* fix(devin): include held signatures in payload bound

Co-authored-by: Sayo <[email protected]>

* docs(devin): keep adapter inventory table intact

Co-authored-by: Sayo <[email protected]>

* fix(devin): stop held heartbeat before release on error

Co-authored-by: Sayo <[email protected]>

* docs(structure): carry the model and wire rules into the restacked Devin row

Co-authored-by: Sayo <[email protected]>

* fix(devin): preserve signed refusal when retry budget is exhausted

Co-authored-by: Sayo <[email protected]>

* fix(devin): merge all held signature-attempt usage frames

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant