惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog

博客园 - 荣锋亮

just-git 纯js 的git 实现 阿里开源的UnifiedModel agno agentos interfaces 简单说明 agno agentos ag-ui 协议 agno agentos 暴露a2a 协议 agno gateway模式 agno 多agent 框架集成能力 agno agentos 简单说明 agno workflow 模式简单说明 agno team agent 简单说明 agno remote agent 简单说明 agno agent 使用 agno agent 平台 sshpiper 简单试用 sshpiper ssh 的反向代理服务 context-propagation spring reactor 的上下文传递包 nginx 发布1.31.2 了 reductstore 的一些部署模式 reductstore 数据写入模式 reductstore bridge 方便reductstore数据bridge 扩展 reductstore zenoh 集成 zenoh 1.9.x 一些新特性 ladybugdb嵌入式图数据库 BlockHound 检测 reactor阻塞调用的agent reductstore 高性能面向机器人以及IOT场景的存储以及流数据基石 zerofs 一些新功能 java nats request-many 支持的一些模式 java nats RequestMany context7 面向llm 以及ai代码编辑器的依赖包更新平台 NATS Agents Protocol nats 团队提出的agent 通信协议
command-stream 试用
荣锋亮 · 2026-04-20 · via 博客园 - 荣锋亮

command-stream 有一个比较有意思的功能是可以自己注册命令(虚拟命令),可以灵活的扩展

参考示例

  • 通过register注册命令
import {$,register} from "command-stream"

register('dalong', async function ({args,stdin}) {
    return {stdout: `Hello ${stdin.trim()}!`,code: 0};
});

register('login', async function ({args,stdin}) {
    return {stdout:"\r\ndemo",code: 0};
});

const result = await $`echo "World" `.pipe($`dalong`).pipe($`login`);

console.log(result.stdout);

说明

command-stream 的虚拟命令在包中使用时比较多的,不少内置的命令就是通过此功能支撑的,同时还提供了一个工具类VirtualUtils可以快速处理输入输出

参考资料

ttps://github.com/link-foundation/command-stream

https://github.com/link-foundation/command-stream/blob/main/js/src/commands/%24.cat.mjs