Skip to content

Ts profiler plugin - #7

Merged
itvi-1234 merged 3 commits into
runtimeconditions:mainfrom
itvi-1234:ts-profiler-plugin
Nov 14, 2026
Merged

itvi-1234 merged 3 commits into
runtimeconditions:mainfrom
itvi-1234:ts-profiler-plugin

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

No description provided.

internal/process runs a child without a shell. It passes the caller's streams,
working directory, and environment through, returns the child's exit status
(128 plus the signal for a killed child), and on cancellation sends SIGTERM to
the child's process group and kills the group after a grace period.

internal/plugins names the executables each optional language looks for on PATH,
lets an absolute path in an environment variable override them, checks that the
runtime is installed, and reads '<add-on> --version --json' with a time and
size limit to learn the add-on's version and core profile schemas.
rc profile typescript <args> runs the installed TypeScript profiler with the
arguments unchanged, after checking that it reports the core profile schema rc
targets. The add-on's output and exit status pass through, and rc prints
nothing when the add-on fails. A missing add-on, a missing runtime, and an
incompatible version are each reported once with what to install.

rc plugins list shows the built-in Go profiler and each add-on's status, version,
and path as text or YAML. Process-level services are injectable through
Dependencies, so the commands are tested without real executables, and a test
keeps the targeted core schema equal to the one in the component lock.
rc finds an add-on by its executable name on PATH, so it works the same whether
the add-on came from the language's own tooling or from a system package. The
TypeScript profiler is distributed through npm for developers who want it in
their npm scripts. System packages for Homebrew, apt, and yum are planned so
that rc and its add-ons install the same way on a build server.

The command help and the not-installed message name the npm command, which is
what works today. The README keeps one short section on the new commands, and
the plan keeps only the status line and the command list.
@itvi-1234
itvi-1234 merged commit 4245681 into runtimeconditions:main Nov 14, 2026
4 checks passed
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.

2 participants