npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@volcengine/tls-observer-opencode-install

v0.0.6

Published

One-step installer for the TLS Observer OpenCode plugin.

Readme

TLS Observer OpenCode Installer

一键安装 @volcengine/tls-observer-opencode 到 OpenCode 全局插件目录。

安装

npm exec -y \
  --package=@volcengine/tls-observer-opencode-install -- \
  tls-observer-opencode-install

安装器默认从 registry 下载插件 @latest。使用 beta:

npm exec -y \
  --package=@volcengine/tls-observer-opencode-install -- \
  tls-observer-opencode-install --beta

--plugin-version <version> 可以指定精确版本或 dist-tag,并覆盖 --beta

安装结果

  • 插件入口:~/.config/opencode/plugins/tls-observer-opencode.js
  • 插件运行时:~/.config/opencode/plugins/tls-observer-opencode
  • TLS env:~/.config/opencode/tls-observer-opencode.env
  • 运行数据:~/.config/opencode/plugins/data/tls-observer-opencode

OpenCode 会自动加载 ~/.config/opencode/plugins/ 下的本地插件文件。安装器不会修改 ~/.config/opencode/config.json,也不会写入 OPENCODE_TLS_ENV_FILE;运行时默认读取 ~/.config/opencode/tls-observer-opencode.env

如果旧版本安装器曾在 ~/.config/opencode/config.json 中写入非法的 plugins / env 键,新安装器会在安装时移除这两个键,保留其他配置。

非交互安装

npm exec -y \
  --package=@volcengine/tls-observer-opencode-install -- \
  tls-observer-opencode-install \
  --non-interactive \
  --force \
  --trace-topic-id <trace-topic-id> \
  --api-key <api-key>

TLS Region 默认是 cn-beijing,TLS Producer endpoint 会自动生成为 tls-cn-beijing.volces.com。如需切换 Region,使用 --region <region>;如需单独覆盖 endpoint,使用 --tls-endpoint <host>。旧的 --otel-endpoint 仅保留兼容。

自定义 span attributes 可通过 --span-attributes 'session.name:${AIPAAS_SESSION_ID},tenant.id:${TENANT_ID}' 写入 env。

AK/SK 模式将 --api-key 替换为 --ak--sk,并可提供 --project-name--app-name 自动准备 TLS LogApp。若未传 --trace-topic-id,安装器会从 LogApp 关联资源中发现 trace topic,并写入 OPENCODE_TLS_TRACE_TOPIC_ID

本地开发

emo run build --filter @volcengine/tls-observer-opencode
emo run check --filter @volcengine/tls-observer-opencode-install
emo run build --filter @volcengine/tls-observer-opencode-install

OPENCODE_PLUGIN_SOURCE="$PWD/packages/opencode" \
node packages/opencode-install/bin/tls-observer-opencode-install.mjs --force

安装器会读取源码包的 publishConfig.directory,因此本地开发与正式发布都会使用构建生成的 dist-package