Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@statewalker/workspace-vcs.core

Latest version: v0.10.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mkotelnikov
0 Stars
0 Forks
6 Versions
760 Downloads
TypeScript Repo language

Scan summary

@statewalker/workspace-vcs.core was last scanned on 29 Nov 2026 at version 0.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.10.0.
  • Downloads: 760 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.0 LATEST 29 Nov 2026 No rules fired
0.9.0 16 Nov 2026 No rules fired
0.7.0 13 Nov 2026 No rules fired
0.8.0 13 Nov 2026 Not shown
0.6.1 6 Oct 2026 Not shown

No rules fired in 0.10.0

Findings

Findings for v0.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.10.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@statewalker/workspace-vcs.core

What it is

Git version control as an opt-in nature of a workspace project (a Project from @statewalker/workspace.core). Each versioned project gets its own real .git directory inside the project folder, written with @statewalker/vcs-store-files, so command-line git can read it. Commits are manual: nothing is committed until commit() is called. The VcsNature project adapter covers init, add, commit, log, status, HTTP(S) remotes, push and fetch. Terms and the full list of known limits are in CONTEXT.md.

Why it exists

The @statewalker/vcs-* packages implement git over a FilesApi, and @statewalker/vcs-workspace keeps the file side and the history side apart. A workbench project needs the two joined: a repository that lives in the project folder, sees only that project's files, keeps the workbench's own .project/ state out of history, stores remote credentials somewhere other than .git/config, and refuses operations that would silently damage a repository created by native git. This package is that join. It uses the vcs packages as they are and does not modify them.

How to use

pnpm add @statewalker/workspace-vcs.core

No peer dependencies. One entry point, @statewalker/workspace-vcs.core, ESM with .d.ts. It works over any FilesApi backend (memory, Node, browser); remote operations use the fetch function you pass to registerVcs. The package ships dist/, src/ and CONTEXT.md.

import { MemFilesApi } from "@statewalker/webrun-files-mem";
import { initWorkspace, Workspace } from "@statewalker/workspace.core";
import { registerVcs, vcsNatureOf } from "@statewalker/workspace-vcs.core";

// initWorkspace also installs the Secrets adapter used for remote credentials.
const workspace = initWorkspace({
  workspace: new Workspace(),
  filesApi: new MemFilesApi({ initialFiles: { "notes/README.md": "# Notes" } }),
});
registerVcs(workspace, { fetch: globalThis.fetch.bind(globalThis) });

const project = await workspace.getProject("notes");
if (!project) throw new Error("no project");
const vcs = vcsNatureOf(project);

await vcs.init({ author: { name: "Ada", email: "ada@example.com" } });
await vcs.add();
const { changed, id } = await vcs.commit({ message: "First commit" });

Examples

History and status:

const commits = await vcs.log({ max: 10 }); // [{ id, message, author, timestamp, parents }]
const status = await vcs.status(); // Status from @statewalker/vcs-commands

A remote with credentials, then push and fetch:

await vcs.remotes.addHttp("origin", "https://git.example.com/notes.git", {
  credentials: { username: "ada", password: "..." }, // stored in Secrets, not in .git/config
});
const pushed = await vcs.push(); // { url, ok, updates }
const fetched = await vcs.fetch("origin"); // { url, updated, objectsImported }
const remotes = await vcs.remotes.list(); // [{ name, url }]

push() and fetch() without a name use defaultRemote from the project configuration, then "origin". push(remote, { ref, force }) pushes another ref or allows a non-fast-forward update.

Reading the project configuration:

import { vcsConfigOf } from "@statewalker/workspace-vcs.core";

const config = await vcsConfigOf(project).load();
config.author; // { name, email } | undefined

Using the repository directly:

import { createGitRepository, hashContentSha256, repoFilesOf } from "@statewalker/workspace-vcs.core";

const git = await vcs.git(); // Git from @statewalker/vcs-commands
const repository = createGitRepository(git, repoFilesOf(project), hashContentSha256);
const head = await repository.head();

Internals

Where things live
<workspace>/
  notes/                       a Project
    .git/                      the repository (native layout, branch "main")
      config                   remotes: remote.<name>.url
      info/exclude             contains .project
    .project/nature.vcs.json   { version: 1, defaultRemote?, author? }
    README.md
workspace Secrets adapter      vcs.remote.<project path>.<remote> -> { username, password }

The repository sees the project through repoFilesOf(project): the workspace FilesApi re-rooted at the project folder, with any path containing a .. segment hidden. Two projects in one workspace therefore have independent repositories.

Design decisions
  • The repository is assembled explicitly, file-backed. openGitRepo builds objects, refs and HEAD under .git with createGitFilesBackend. The porcelain Git.init() keeps history in memory, so a commit made through it would not survive the process.
  • The branch is always main. The working copy from @statewalker/vcs-working-tree hard-codes refs/heads/main and does not read .git/HEAD; any other initial branch would make a reopened repository resolve the wrong ref.
  • .project is excluded on every open, not only in init(). A .git created by native git never passes through init(), and without the exclude add(".") would commit the workbench's state.
  • Remotes are written to .git/config directly (through GitWorkingCopyConfig), because the porcelain's remoteAdd does not persist anything and remoteList always returns no URLs.
  • exists() checks .git/HEAD, not .git/index, because the staging store can write an index with no repository behind it.
  • add, commit and status re-read .git/index first. The workspace's project cache can hand out a second Project (and a second VcsNature) for the same folder, so the file on disk, not an in-memory index, is shared.
  • Nothing is committed in the background. The nature registers no builders.
What breaks
Situation What you see
A symlink, gitlink or executable in the index during add/commit UnsupportedEntryError: unsupported entry '<path>': the index records mode 120000 (...); nothing is staged
commit with nothing staged { changed: false }, no error
Remote operation before init() addHttp: no repository at '<path>' — call init() first (same for remotes.list, push, fetch)
Unknown remote name UnknownRemoteError: unknown remote 'x': no remote.x.url in .git/config. Add it with remotes.addHttp(name, url) first.
Bad remote name or URL InvalidRemoteNameError / InvalidRemoteUrlError; nothing is written
push before the first commit push: refs/heads/main has no commit yet — commit before pushing
Credentials but no Secrets adapter addHttp: credentials were given for 'origin' but this workspace has no Secrets adapter — ...
Remote operation without registerVcs VcsNature has no dependencies: this workspace was never passed to registerVcs(workspace, deps). ... (the class self-hosts, so the adapter exists without its fetch)

add, commit, log, status and git() do not require init(): on a project without .git they create one, without writing nature.vcs.json.

Other limits, detailed in CONTEXT.md: untracked symlinks and executables are added as regular files; the first remotes.addHttp on a hand-written .git/config drops comments and repeated keys; checkout never deletes files; hasChanges() reads the whole working tree; nested repositories are skipped.

API reference
  • Runtime: registerVcs(workspace, deps), VcsDeps (fetch, secrets?), VcsNature, vcsNatureOf, VcsRemotes, Author, CommitInfo, CommitOptions, CommitOutcome, AddHttpRemoteOptions, PushOptions, FetchFn, repoFilesOf, openGitRepo, OpenGitRepoOptions.
  • Configuration: VcsConfiguration, vcsConfigOf, VcsConfigData, validateVcsConfig, VCS_NATURE_FILE.
  • Remotes: addHttpRemote, listHttpRemotes, httpRemoteUrl, pushToHttpRemote, fetchFromHttpRemote, fetchImplOf, remoteUrlKey, remoteCredentialsKey, CONFIG_PATH, DEFAULT_REMOTE, UnknownRemoteError, InvalidRemoteNameError, InvalidRemoteUrlError, HttpRemote, RemoteCredentials, PushOutcome, RefPushOutcome, FetchOutcome, PushToHttpRemoteOptions, FetchFromHttpRemoteOptions.
  • Adapters for @statewalker/vcs-workspace: createGitRepository, trackedFilesOf, createHttpGitRemote, createDuplexGitRemote, pushTargetsOf, pushRefspecOf, httpRefspecOf, duplexRefspecOf, httpPushOutcome, duplexPushOutcome, RemotePushError, HttpGitRemoteOptions, DuplexGitRemoteOptions, PushTarget, refStoreOf, historyOf, serializationOf, repositoryFacadeOf, configFilesOf, UnsupportedEntryError, assertSupportedEntry, assertSupportedIndex.
  • Hashing: hashContentSha256, HashContent, ByteStream.
Dependencies
  • @statewalker/workspace.core - Project, ProjectAdapter, Secrets, the adapter registry.
  • @statewalker/vcs-core, vcs-commands, vcs-store-files, vcs-working-tree - git objects, porcelain, the file-backed .git and the worktree.
  • @statewalker/vcs-workspace - the Repository contract that createGitRepository implements.
  • @statewalker/vcs-transport, vcs-transport-adapters - git smart-HTTP push and fetch.
  • @statewalker/webrun-files, webrun-files-composite - the FilesApi contract and the re-rooted, filtered project view.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @statewalker/workspace-vcs.core

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229