Skip to content

Release 1.1.4514.4: wider secret masking, M and 亿 token counts, lint CI, contributor docs - #1

Open
devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1795293411-improve-and-1.1.4514.4
Open

devin-ai-integration[bot] wants to merge 8 commits into
mainfrom
devin/1795293411-improve-and-1.1.4514.4

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

What changes

Plugin and source go to 1.1.4514.4. The bundled Mac pet and the installers stay at 1.1.4514.2 (they need a Developer ID signature and notarization), and COMPANION_MIN_VERSION is unchanged.

New

  • Secret masking (source/hooks/c3-secrets.ts) knows more shapes: npm, PyPI, Slack app and refresh tokens, Google OAuth, DigitalOcean, xAI, Groq, Telegram bots, Stripe test keys and webhook secrets, HTTP Basic. This applies to sticky notes, window notes and the staged-diff check on commit.
  • A password inside a URL (postgres://user:password@host) is masked and the rest of the address is kept. Placeholders such as ${DB_PASSWORD}, <password> and %s are left alone.
  • Assignment names that end a longer name (DB_PASSWORD, MY_API_KEY, aws_secret_access_key, AccountKey, client-secret, x-api-key) now count. Before, the \b in front of password did not match after _.
  • compactTokenText (source/hooks/numbers.ts) uses M from a million and 亿/億 from a hundred million: 1.2M and 1.2亿 instead of 1,234.5k and 12,345万. 999,950 becomes 1M, not 1000k.
  • CONTRIBUTING.md, SECURITY.md, a PR template, issue forms for bugs and ideas, and links to them from the three READMEs.

CI and checks

  • New lint job (Ubuntu, about a minute, no Claude Code needed): scripts/check.sh --scan-only, scripts/check-version.py (new: every copy of the version agrees with plugin.json, including each copy in the built bundle), build-hooks-graph.py --check, shellcheck at error level, and a parse of every tracked Python and JSON file.
  • Dependabot for the workflow actions, monthly, in one grouped PR.

Fixed

  • scripts/check.sh failed on a clean checkout of main: the release list did not include the line supplement files from 1.1.4514.3 (plugin/assets/lines, source/line-supplements.json, tools/build-line-supplements.py, tools/tests/companion-lines). They are now listed.
  • The staged-diff scan tested only the first name=value on a line, so a placeholder in front could hide a real key behind it. It now tests each one.
  • The installer link on docs/install.html pointed at a file GitHub Pages does not serve (404). It now points at the GitHub Release asset.
  • READMEs said the full suite runs on Claude Code 2.1.308; CI pins 2.1.317.
  • Five raise statements inside except now use from None, and one duplicate import is gone (Ruff B904, F811).

How it was checked

  • Kit, by file, on Linux with Claude Code 2.1.317: m1-bookmark-secrets (12 pass), numbers-c1 (61), quota-round-b1, c3-runtime (32), promises-persistence, m1-c3-security (13), localization. All pass.
  • claude plugin validate . and claude plugin validate plugin pass.
  • scripts/check.sh --scan-only passes on a clean copy of this branch; it fails on main.
  • build-hooks-graph.py --check reports the 241 files match.
  • I did not finish a full kit run locally. CI on this PR is the full run on Linux, macOS and Windows.
  • Nothing was tried in a real Claude Code session or on a Mac.

Things to look at

  • algo-core.mjs was rebuilt without its private entry file. The staged-diff scan runs from this bundle, not from c3-secrets.ts directly, and its entry (tools/c3-algo-core.ts) is not in the public tree. I rebuilt the entry from the existing bundle and bundled it with Bun 1.4.2. The same steps on the old c3-secrets.ts give the committed bundle byte for byte, and a new test checks the bundle and the source agree on the new shapes. Please rebuild it from the real entry before release if you want to be sure.
  • Basic <base64> masking matches the scheme in any case and counts only when the value decodes to an ASCII user:password pair, so paths and plain words after "basic" are left alone. A password with non-ASCII characters is not masked.
  • docs/install.html is edited by hand. If a private generator writes it, the link needs the same change there.
  • Shellcheck runs at error level only, with SC2066 off for the one-file loop in companion-macos.sh. Warnings are not fixed in this PR.

Checklist

  • The change is in source/hooks (not only in plugin/hooks), and the hooks are rebuilt
  • A test in tools/tests covers it
  • CHANGELOG.md has a line if a user would notice (under the new [1.1.4514.4] heading)
  • Nothing new calls a model, goes online or spends tokens by default
  • New words on screen are in all 13 languages (the only new text is the unit letters M, 亿 and 億)
  • No keys, tokens or private files (test strings are built from parts)

Link to Devin session: https://app.devin.ai/sessions/ef9bec68abe94663978296df53236e1a
Open in Devin Desktop: https://app.devin.ai/desktop/session/ef9bec68abe94663978296df53236e1a?variant=devin
Requested by: @ninondev


🟢 Devin fixed all 5 findings · Follow Devin's work

Devin Review

…CI, contributor docs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

ninondev and others added 7 commits November 21, 2026 21:00
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 5 findings. Devin automatically fixed all 5 findings.

Fixed by Devin (5)
  • Password masking corrupts ordinary URLs — http://localhost:8080?email=user@example.com had 8080?email=user masked. ? and # now end the host part in URL_PASSWORD.
  • Version check accepts stale bundles — A stale PLUGIN_VERSION2 in one compiled module passed as long as another module held the new number. check-version.py now reads every built PLUGIN_VERSION copy and fails on any that differs.
  • Unmasked Basic credentials for spaced usernames — Basic <base64 of "John Smith:hunter2"> was left unmasked because the user name part excluded the space. The user name now allows a space, and a test covers it.
  • Lowercase Basic credentials remain visible — authorization: basic <base64> was left unmasked. The scheme now matches in any case, and the value counts only when it decodes to an ASCII user:password pair, which also stops paths after "Basic" being masked.
  • Earlier placeholders suppress credential warnings — password: "xxxx…", client_secret: "<real>" on one staged line passed the scan because only the first assignment was tested. Every assignment on the line is now checked.

View findings in Devin Review · Follow Devin's work

Devin Review

This branch has not been deployed

No deployments
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