Skip to main content

ChatNPM

ChatNPM: ChatArch npm registry and package maintenance helper

快速开始

pip install -e ".[dev]"
chatnpm hello ChatArch
chatnpm --tree
chatnpm package inspect npm --format json
chatnpm trusted audit . --format json
python -m pytest -q
python -m build

npm 发布元数据只读检查

chatnpm package inspect <package> 会读取公开 npm registry packument,输出安全摘要:

  • package / version / scope
  • public maintainers count and names from registry metadata
  • repository and safe publishConfig summary
  • dist integrity/signature/attestation presence
  • provenance evidence when dist.attestations is present
  • local GitHub Actions evidence for npm OIDC / npm publish --provenance through chatnpm trusted audit

npm 的公开 registry 不提供类似 PyPI 项目设置页的 Trusted Publisher 表格,因此 ChatNPM 会明确报告:

Trusted Publishing settings: not exposed by public npm registry

这不是失败,也不是推断没有 Trusted Publishing;它只表示公开读回只能验证 registry provenance/attestation evidence,不能读取 npm 账号/包设置里的 trusted-publishing 配置。

CLI 规范

这个包当前运行时依赖 chatstyle>=0.1.0,<0.2.0;未使用 ChatEnv 时不引入 chatenv 运行时依赖。新的命令应优先使用:

  • CommandSchema / CommandField 描述输入。
  • add_interactive_option() 提供统一 -i/-I
  • resolve_command_inputs() 统一缺参补问、默认值、TTY 与校验。

目录结构

  • src/:包源码
  • tests/code-tests/:代码测试和历史测试迁移
  • tests/cli-tests/:真实 CLI 测试,doc-first
  • tests/mock-cli-tests/:mock/fake CLI 测试,doc-first
  • docs/:长期维护文档,由 mkdocs 构建

开发说明

扩展脚手架前,先阅读 DEVELOP.mdAGENTS.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatnpm-0.1.2.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatnpm-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file chatnpm-0.1.2.tar.gz.

File metadata

  • Download URL: chatnpm-0.1.2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatnpm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6f60726ead82c8f511d2eee4cf526035425ae28d2b15422c9e7c8fdd13d7a8af
MD5 0ceb5b04c0dbf389f1ee617f555f8e08
BLAKE2b-256 a739dc9d4e50fc7a9447c1a8a99e91cddd585b3462761496e5880a75f9395d3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnpm-0.1.2.tar.gz:

Publisher: publish.yml on ChatArch/ChatNPM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatnpm-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chatnpm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatnpm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0de05e17da7e02852bc217c9a99572689c5d763b8bed1690d17dc1ec77be449
MD5 12edf48f957d1fdf4dff338d84b91da6
BLAKE2b-256 9fb6808808e92e7957f2322171c099b000a40c788844c8d4ae393dd5268e2925

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatnpm-0.1.2-py3-none-any.whl:

Publisher: publish.yml on ChatArch/ChatNPM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page