Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
LITHE_SVN_INTEGRATION: '1'
run: |
mkdir -p .artifacts
node scripts/verify-sdk.mjs
node scripts/verify-sdk.mjs --download
node scripts/test.mjs
- name: Assemble package
run: node scripts/package.mjs
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
env:
LITHE_SVN_INTEGRATION: '1'
run: |
node scripts/verify-sdk.mjs
node scripts/verify-sdk.mjs --download
if [ -f scripts/test.mjs ]; then
node scripts/test.mjs
else
Expand All @@ -73,15 +73,33 @@ jobs:
cat > "$RUNNER_TEMP/notes.md" <<'NOTES'
macOS Subversion provider for a Lithe preview whose host declares API 3 vcsProviders 1 and serverProcess 1 and offers structured plugin diagnostics (litheLogging 1). Stable Lithe 0.6.7 does not offer litheLogging 1 and cannot start this version; keep using 0.1.0 there.

Changes in 0.1.1:
- Structured diagnostics: the bundled Node SDK records failed provider requests as ERROR on the plugins/io.github.lithe-idea.svn-support/host channel of Lithe's log window, with a stable failure code. Background status and base-content successes are not logged.
- A recovered annotate history failure records one WARN degraded entry and still returns the annotation without commit messages. svn output, history XML, source, repository addresses and credentials never enter the log.
Changes in 0.1.2:
- The bundled Node.js SDK is now the officially released SDK 0.3.0, pinned by tag (sdk-node-v0.3.0) and SHA-256 in sdk.lock.json instead of a local copy. The vendored files are the release's files without local edits. Provider behavior is unchanged.
- It still requires a Lithe preview build offering litheLogging 1; stable Lithe 0.6.7 users stay on 0.1.0.

Requires Subversion 1.8+ and Node.js 20.3+, both user-provided. Not listed in Lithe Store yet; download the ZIP and install it from disk.

Preview status: automated Core integration and svn scenario checks pass; native installation and full UI acceptance are pending. Windows is not supported. Published ZIP bytes must not be replaced.
NOTES
gh release create "$RELEASE_TAG" dist/*.zip dist/*.sha256 --verify-tag --prerelease --title "Subversion $RELEASE_TAG" --notes-file "$RUNNER_TEMP/notes.md"
- name: Require the release to be a prerelease
env:
GH_TOKEN: ${{ github.token }}
run: |
# Every release of this workflow needs a host offering litheLogging 1,
# so it must stay a prerelease: Lithe Store skips prereleases. A
# release has ended up as a normal one despite --prerelease before,
# so read the flag back, correct it, and fail if it still is not set.
is_prerelease() { gh release view "$RELEASE_TAG" --json isPrerelease --jq .isPrerelease; }
if [ "$(is_prerelease)" != "true" ]; then
echo "::warning::Release $RELEASE_TAG is not marked as a prerelease; correcting it."
gh release edit "$RELEASE_TAG" --prerelease
if [ "$(is_prerelease)" != "true" ]; then
echo "::error::Release $RELEASE_TAG is still not marked as a prerelease."
exit 1
fi
fi
echo "Release $RELEASE_TAG is a prerelease."
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
9 changes: 5 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ Subversion plugin for Lithe
Copyright 2026 Lithe contributors

This project includes the Apache-2.0 licensed Lithe Node plugin SDK and
test support. The SDK comes from Lithe-IDEA/lithe-plugin-docs; historical
test support comes from 1lck/Lithe-IDEA. Exact upstream paths, Git revisions
and SHA-256 hashes are recorded in sdk.lock.json. The SDK's runtime
modules are copied into the plugin at build time; test support is never
test support. The SDK is the released Node.js SDK 0.3.0 from
Lithe-IDEA/lithe-plugin-docs (tag sdk-node-v0.3.0); test support comes from
the Lithe host repository. Exact upstream paths, release archive SHA-256, Git
revisions and per-file SHA-256 hashes are recorded in sdk.lock.json. The SDK's
runtime modules are copied into the plugin at build time; test support is never
shipped in the package.

Apache Subversion and Node.js are user-provided tools and are not
Expand Down
59 changes: 32 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ version control tool window show and commit the changes of Subversion working
copies in an open project: status, diff against the base, history, annotate,
check-in, rollback, update, conflict resolution, and moves through svn.

**0.1.1 is a preview release.** Automated tests run the package against the
**0.1.2 is a preview release.** Automated tests run the package against the
selected latest Lithe Core and a real `svn` client in this repository's CI;
native installation and full UI acceptance are still pending.

The plugin requires a Lithe preview whose host declares the `vcsProviders`
capability (API 3 `vcsProviders: 1` and `serverProcess: 1`) and offers
structured plugin diagnostics (`litheLogging: 1`). Older hosts refuse to
install it; stable Lithe 0.6.7 installs it but cannot start the provider, so
keep 0.1.0 there. Windows is not supported yet.
keep 0.1.0 there. Windows is not supported yet. The plugin uses the released
Node.js SDK 0.3.0, pinned by tag and SHA-256 in `sdk.lock.json`; that SDK reports
structured diagnostics and so needs a Lithe build offering `litheLogging: 1`.

## Install

Install Subversion 1.8 or newer (for example `brew install subversion`) and
Node.js 20.3 or newer first. Node runs the provider; svn is not bundled and is
the client you already use, with its own configuration and credential cache.

Download `svn-support-0.1.1-darwin.zip` from
Download `svn-support-0.1.2-darwin.zip` from
[Releases](https://github.com/Lithe-IDEA/lithe-plugin-svn/releases), or build it
with `node scripts/package.mjs`.
In Lithe, choose Settings → Plugins → Install from Disk, select the ZIP,
review the provider command, the svn client and its network use, and
restart. Enable Subversion, then open a project that is, or contains, a
Subversion working copy. 0.1.1 is not listed in
Subversion working copy. 0.1.2 is not listed in
[Lithe Store](https://github.com/Lithe-IDEA/Lithe-store) yet: the Store cannot
tell stable hosts without `litheLogging: 1` apart, so install it from disk.

Expand Down Expand Up @@ -82,8 +84,8 @@ branches/switch, relocate, and merge tracking.

## Diagnostic logs

Version 0.1.1 requires a host offering `litheLogging: 1`. The vendored official
Node SDK sends typed `lithe/log` notifications to the host's v2 catalog and
Version 0.1.2 requires a host offering `litheLogging: 1`. The vendored official
Node SDK 0.3.0 sends typed `lithe/log` notifications to the host's v2 catalog and
writer, in the current session's `plugins/io.github.lithe-idea.svn-support/host`
channel. Provider process and protocol facts remain in `vcs/svn`. The SDK owns each request's
terminal event: meaningful success is INFO, failed operations are ERROR, and
Expand All @@ -96,17 +98,17 @@ copies history XML, source, command arguments, repository addresses or credentia
into diagnostics. VCS console output remains separate from logs. The SDK does
not print raw exception messages or stack traces for failed requests.

Use Lithe's log window and diagnostic export. The SDK source base revision
and local logging changes are identified by `sdk.lock.json`, with exact
per-file hashes and no claim of a released artifact. No plugin writer,
log directory or idle task is added. Windows still uses v1 logging;
no Windows v2 acceptance is claimed.
Use Lithe's log window and diagnostic export. The vendored SDK files are
byte-identical to the released Node.js SDK 0.3.0 archive, as pinned by
`sdk.lock.json`. No plugin writer, log directory or idle task is added.
Windows still uses v1 logging; no Windows v2 acceptance is claimed.

## Development

```sh
node --test test/svn-output.test.mjs test/xml.test.mjs # parsing, no svn needed
node scripts/verify-sdk.mjs # vendored SDK matches sdk.lock.json
node scripts/verify-sdk.mjs --download # ... and the released SDK archive
node scripts/package.mjs # dist/ ZIP and SHA-256
```

Expand All @@ -117,9 +119,9 @@ upgrade, re-record with `scripts/record-fixtures.sh` and review the diff.
The scenario test runs the assembled package through Lithe Core's public JSON
API, exactly as the host starts it, against a throwaway `file://` repository.
It needs svn, Rust, and the selected host preview checked out at
`.artifacts/lithe-core`; the companion `litheLogging: 1` host change must land
first. See **Core integration source** below for strict source verification,
local unpublished working-tree validation and the full command.
`.artifacts/lithe-core`, and the host must offer `litheLogging: 1`. See
**Core integration source** below for strict source verification, local
unpublished working-tree validation and the full command.

```sh
node scripts/prepare-core.mjs
Expand All @@ -132,25 +134,28 @@ session and Core process even when an assertion fails.

## Updating the SDK

The Node SDK is vendored from
The Node SDK is the released Node.js SDK 0.3.0, vendored from
[Lithe-IDEA/lithe-plugin-docs](https://github.com/Lithe-IDEA/lithe-plugin-docs).
`sdk.lock.json.sdkSource` records its true upstream base revision and the local
structured logging changes; each SDK file has a SHA-256 and explicit source
identity. The original `source` identifies historical test-support files;
`coreSource` independently selects the integration host (see **Core
integration source** below). Update the official SDK production inputs, review
the diff, update every changed hash, and run `node scripts/verify-sdk.mjs`.
`sdk.lock.json.sdk` pins its tag `sdk-node-v0.3.0`, commit, release asset URL and
SHA-256; every vendored file records its path inside the archive and its own
SHA-256, and carries no local changes. `testSupport` identifies the
test-support files taken from the Lithe host repository; `coreSource`
independently selects the integration host (see **Core integration source**
below). To update the SDK, take a newer released Node.js SDK archive, replace
the vendored files with its contents, update the `sdk` release fields and every
file hash, and run `node scripts/verify-sdk.mjs --download`, which also
downloads the release archive and requires the vendored files to match it.
Unpinned or changed vendor files are rejected before testing and packaging.

## Core integration source

CI and release verification explicitly check out `sdk.lock.json.coreSource.ref`
(`preview`) from the verified host repository. **Merge the companion host
structured logging change into preview before this plugin change**; preparation
rejects a host missing the typed operation catalog rather than attempting an
old-protocol fallback. It records the resolved commit and exact source SHA-256;
this moving test ref is not presented as a pinned release artifact. SDK vendor
hashes and the historical test-support source remain independently pinned.
(`preview`) from the verified host repository. The host must offer
`litheLogging: 1`; preparation rejects a host missing the typed operation
catalog rather than attempting an old-protocol fallback. It records the resolved
commit and exact source SHA-256; this moving test ref is not presented as a
pinned release artifact. SDK vendor hashes and the test-support source remain
independently pinned.

Local validation can select a particular real host checkout and revision:

Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.svn-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 2,
"id": "io.github.lithe-idea.svn-support",
"displayName": "Subversion",
"version": "0.1.1",
"version": "0.1.2",
"pluginAPIVersion": 3,
"requires": { "serverProcess": 1, "vcsProviders": 1 },
"vendor": { "id": "io.github.lithe-idea", "displayName": "Lithe Community", "signatureRequirement": "none" },
Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.svn-support/provider/svn-provider.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ async function cleanup(params, context) {
return {};
}

createBackend({ name: 'svn-support', version: '0.1.0' })
createBackend({ name: 'svn-support', version: '0.1.2' })
.suppressSuccessDiagnostics('lithe/vcs/status')
.suppressSuccessDiagnostics('lithe/vcs/baseContent')
.vcs('svn', {
Expand Down
Loading
Loading