Skip to content

refactor: build on cli-core 1.3.0 and its shared storageOf and timeLimit - #165

Merged
leemour merged 1 commit into
mainfrom
refactor/cli-core-1.3-session
Nov 26, 2026
Merged

leemour merged 1 commit into
mainfrom
refactor/cli-core-1.3-session

Conversation

@leemour

@leemour leemour commented Nov 26, 2026

Copy link
Copy Markdown
Member

Why

An audit found b24 keeps copies of cli-core helpers (storageOf, the request deadline), and b24 was on cli-core 1.0.0 while 1.3.0 is out.

What

  • cli-core 1.3.0. The first help screen gains b24 session list, so contracts/help.snap changes.
  • --credential-storage uses cli-core's storageOf. The error now says which value it got.
  • Request deadlines (transport calls, downloads, the OAuth token request) use cli-core's timeLimit.
  • session list rows gain state: saved, missing or unknown.

b24 keeps its own session start and status: it signs in with a webhook or a local Bitrix24 application, and no shared cli-core session command takes both. Existing sign-ins are untouched.

For callers

  • session list --json rows have a new state field. Nothing is removed.
  • --credential-storage <bad> error text: --credential-storage takes keyring or file; got <bad>.

Testing

typecheck, lint, the full vitest suite (614 tests), contracts:check, contracts:upgrade, generate:check, lint:commands, docs:check, security:no-leak, package:check, all local.

🤖 Generated with Claude Code

- Pin @wirecat/cli-core 1.3.0 (store version 77, which cli-core 1.0
  tools still open). The first help screen gains the `b24 session list`
  line cli-core 1.3.0 adds; contracts/help.snap follows.
- `session start --credential-storage` is parsed by cli-core's
  `storageOf`, as `tokenSessionCommand` does, instead of an inline check.
- The per-request deadline in the transport (calls and downloads) and in
  the OAuth token request is cli-core's `timeLimit`, not a copy of it.
  Only the error name (TimeoutError) is read, so behaviour is unchanged.
- `session list` rows gain `state` (saved, missing, unknown), the field
  cli-core's shared session commands give since 1.1.0.

b24's own `session start` and `status` stay: it signs in with a webhook
or a local Bitrix24 application, and neither `tokenSessionCommand` nor
`oauthSessionCommand` takes both. Old sign-ins keep their keyring
entries, which this change does not touch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-core@​1.0.0 ⏵ 1.3.0971001009670

View full report

@leemour
leemour merged commit fa295e0 into main Nov 26, 2026
16 checks passed
@leemour
leemour deleted the refactor/cli-core-1.3-session branch November 26, 2026 22:17
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