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

@steedos-labs/content-compliance

v0.8.8

Published

内容审核系统

Readme

@steedos-labs/content-compliance(内容审核系统)

PepsiCo 内容审核 / 物料审批系统的核心 Steedos 包:审批引擎、物料、AI 审核、OneDrive 同步、PLS 知识库扫描、抽检、通知与定时任务。

构建说明:修改 src/** 后必须 yarn buildpackage.service.js 加载的是编译产物 lib/)。


管理员手动接口(浏览器直接访问)

以下接口用于对 PLS 知识库(pepsico_km_pls_file 的历史数据做一次性维护。

执行前提:

  • 以**空间管理员(space admin)**身份登录系统(非管理员访问会返回 {"error":"没有权限"})。
  • 直接在已登录的浏览器中打开下面的地址即可(均为 GET,无需参数)。
  • 接口可重复执行:已处理/无需变更的记录会自动跳过,重复访问是安全的。
  • 将地址中的 <域名> 替换为实际环境域名,例如 UAT:https://ccsuat.pepsico.com.cn

1. 回填 PLS 记录标题(从「PLS原始文件查看」提取文件名到「标题」)

把每条 pepsico_km_pls_file 记录的 PLS原始文件查看pls_file)字段所对应文件的文件名,提取(去掉 .pdf 后缀)写入该记录的 标题name)字段。用于补齐 pepsico_km_pls_file_title_update 触发器上线前、标题缺失或不一致的历史数据。

GET https://<域名>/api/pepsico-content/pls-file/backfill-title

浏览器返回示例:

{ "历史记录总数": 123, "更新标题数量": 100, "跳过数量": 23 }
  • 历史记录总数:扫描的记录总数。
  • 更新标题数量:本次实际写入新标题的记录数。
  • 跳过数量:无文件、取不到文件名,或标题已一致而跳过的记录数。

2. 重置「AI规则已提取」为 false

把所有 pepsico_km_pls_file 记录的 AI规则已提取ai_extract)字段全部置为 false(已经是 false 的记录会跳过,最终所有记录均为 false)。

GET https://<域名>/api/pepsico-content/pls-file/reset-ai-extract

浏览器返回示例:

{ "记录总数": 42, "重置数量": 42 }
  • 记录总数:本次需要处理(原值不为 false)的记录数。
  • 重置数量:实际置为 false 的记录数。

实现见 src/methods/pls.tsbackfillPLSFileTitlesresetPLSFileAIExtract),路由注册见 src/index.ts


其它接口与定时任务

其余手动接口、定时任务、外部 AI 服务对接、PLS 规则提取等说明见仓库根目录 README.md 的「手动执行 / PLS规则提取接口」章节,以及各 AI-*.md 设计文档(入口 AI-DOCUMENTATION-INDEX.md)。