Repository navigation
[ARI-2159] CLI → Move to @team-plain/graphql and release 1.0.0 - #34
Merged
revett merged 2 commits intoOct 7, 2026
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Closed
revett
deleted the
ari-2159-cli-move-off-the-deprecated-sdk-and-release-100
branch
October 7, 2026 13:53
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.
Resolves ARI-2159
Problem
@team-plain/typescript-sdk, which is deprecated--helpsay the API key needsindexedDocument:create, but the API checksknowledgeSource:create, so keys set up by following them can't create knowledge sourcesChanges
@team-plain/graphql, the same clientteam-plain/sdkpublishes, and move to the latestcommanderengines--helpand the README, and point the success message at the current knowledge sources docsnode:testtests that run the real CLI against a mock API, on Node.js 22.12.0, 22 and 24 in CIsrcin the npm package; it previously included workflows and config@team-plain/cli@1, and add a major changeset for 1.0.0Why
@lateston Node 22commanderbumps from Dependabot are checked before they merge@team-plain/climust be set up before the Version Packages PR from this merges, or the publish failsNote
Medium Risk
Major breaking release (Node minimum, ESM, SDK API) affects all CLI installs and CI; behavior changes are covered by new integration tests but customers on Node 18/20 or old permission names must migrate.
Overview
Major 1.0 release that replaces the deprecated
@team-plain/typescript-sdkwith@team-plain/graphql, bumpscommanderto v15, and converts the CLI to ESM withengines.node≥ 22.12.0.Indexing commands now call
PlainClient.mutation.createKnowledgeSourcevia a shared helper, with failures emitted as a single stderr line (message + error code, no request ID or stack). Docs and--helpnow requireknowledgeSource:createinstead of the incorrectindexedDocument:create, and success messages link to the current knowledge-sources docs.CI runs
node --teston Node 22.12.0, 22, and 24 after packing the CLI; the npm tarball is limited tosrc. README adds a pinned@team-plain/cli@1CI example.Reviewed by Cursor Bugbot for commit fb3faf6. Bugbot is set up for automated code reviews on this repo. Configure here.