Repository navigation
refactor: build on cli-core 1.3.0 and its shared storageOf and timeLimit - #165
Merged
Merged
Conversation
- 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>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
b24 session list, socontracts/help.snapchanges.--credential-storageuses cli-core'sstorageOf. The error now says which value it got.timeLimit.session listrows gainstate:saved,missingorunknown.b24 keeps its own
session startandstatus: 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 --jsonrows have a newstatefield. 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