logicsrc/packages/cli/package.json
Anthony Ettinger 465d0ae23b fix(rotation): OAuth client ids are identifiers, never rotated (CLI 0.16.2)
c0upons CoinPay sign-in broke with `invalid_client: Invalid client_id`.
c0upons--prod's COINPAY_CLIENT_ID held the same value as COINPAY_API_KEY,
and a rotation writes every vault:key with the value's fingerprint,
whatever the key is called. The 2026-11-22 coinpay-api-key run minted a new
cp_live_ key, wrote it into COINPAY_CLIENT_ID too, and saved the rotator
state as __ROTATE__COINPAY_CLIENT_ID (targets[0] was the client id), so the
plan showed the client id as provider/coinpay/automatic from then on.

- New method `identifier`: every *_CLIENT_ID (COINPAY_CLIENT_ID,
  *_OAUTH_CLIENT_ID, GOOGLE_CLIENT_ID...) gets it from the catalog, never
  automatic, with the reason. A __ROTATE__ entry claiming otherwise is
  ignored and reported in the plan with the command to reset it.
- rotate-keys never writes a rotated value into a client id under another
  name (named in the result instead), records rotator state under the
  plan's own key, and skips a client id outright.
- coinpay-api-key and coinpay-webhook-secret refuse a client id in
  preflight and mint without calling CoinPay.
- rotation-set refuses random/provider/command/ssh-keygen for a client id.
- Tests for each; docs/rotation.md.

Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:10:01 +00:00

45 lines
1.7 KiB
JSON

{
"name": "@logicsrc/cli",
"version": "0.16.2",
"description": "LogicSRC CLI: every LogicSRC standard and tool as one command.",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"logicsrc": "./dist/index.js"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsx src/index.ts",
"test": "vitest run src"
},
"dependencies": {
"@fission-ai/openspec": "^1.15.0",
"@logicsrc/account-core": "file:../account-core",
"@logicsrc/opencontext": "file:../opencontext",
"@logicsrc/opencreds": "file:../opencreds",
"@logicsrc/openerrand": "file:../openerrand",
"@logicsrc/openfleet": "file:../openfleet",
"@logicsrc/openmcp": "^0.4.1",
"@logicsrc/openontology": "file:../openontology",
"@logicsrc/openprd": "file:../openprd",
"@logicsrc/plugin-agentbbs": "file:../../plugins/agentbbs",
"@logicsrc/plugin-coinpay": "file:../../plugins/coinpay",
"@logicsrc/plugin-core": "file:../plugin-core",
"@logicsrc/plugin-credential-sharing": "file:../../plugins/credential-sharing",
"@logicsrc/plugin-email-accounts": "file:../../plugins/email-accounts",
"@logicsrc/plugin-feed-discovery": "file:../../plugins/feed-discovery",
"@logicsrc/plugin-social-accounts": "file:../../plugins/social-accounts",
"@logicsrc/plugin-ugig": "file:../../plugins/ugig",
"@logicsrc/tui": "file:../tui",
"@logicsrc/validators": "file:../validators",
"@profullstack/hqtui": "^0.11.1",
"@profullstack/logicsrc-mcp": "file:../logicsrc-mcp",
"@profullstack/sealed-secrets": "0.1.1",
"commander": "^15.0.0"
},
"devDependencies": {
"tsx": "^4.23.15",
"vitest": "^5.0.5"
}
}