kodingo-cli

中文文档
1.4.1发布于 2026/11/04MITCommonJS

Kodingo CLI

原始使用文档
文档目录11 节
  1. Purpose
  2. What This Repo Owns
  3. What This Repo Does NOT Do
  4. Design Constraints
  5. Dependencies
  6. Security Model
  7. Status
  8. Local DB Setup
  9. 1) Run Postgres locally
  10. 2) Configure environment
  11. 3) Build and run the CLI

kodingo-cli

Purpose

This repository contains the Kodingo command-line interface.

The CLI acts as a local adapter between a developer’s environment and the Kodingo core engine.

It is responsible for observing, normalizing, and forwarding signals — not interpreting them.


What This Repo Owns

  • CLI commands and UX
  • Local project initialization
  • Project scoping and isolation
  • Authentication and authorization flow
  • Event emission to kodingo-core
  • Local configuration and credentials

What This Repo Does NOT Do

  • No decision inference
  • No memory interpretation
  • No confidence calculation
  • No domain logic

Design Constraints

  • The CLI must be safe to run locally
  • It must never leak data across projects
  • It must respect paid vs unpaid project boundaries
  • All intelligence lives elsewhere

Dependencies

  • Depends on kodingo-core
  • Depends on kodingo-schema

Security Model

  • Projects are explicitly initialized
  • Access is opt-in per project
  • Local identity is scoped per project directory

Status

Interface design phase.


Local DB Setup

1) Run Postgres locally

Use Docker:

docker run --name kodingo-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=kodingo -p 5432:5432 -d postgres:16

Ensure psql is available in your PATH (it ships with Postgres client tools).

2) Configure environment

Create a .env file (or export in shell):

export DATABASE_URL=postgres://postgres:postgres@localhost:5432/kodingo

3) Build and run the CLI

npm ci
npm run build
node src/cli.js capture --type decision --title "Chosen DB" --content "We chose Postgres for persistence." --tags "architecture,db"
node src/cli.js query-memory "Postgres" --limit 5

版本与发布记录

kodingo-cli 共发布 62 个版本,首次发布于 2026/03/12;过去 12 个月发布了 62 个版本。

版本发布日期距今
1.4.1latest2026/11/041 天前
1.4.02026/11/013 天前
1.3.52026/10/011 个月前
1.3.42026/10/011 个月前
1.3.32026/09/211 个月前
1.3.22026/09/211 个月前

关于 kodingo-cli 的常见问题

kodingo-cli 是什么?

Kodingo CLI

如何安装 kodingo-cli?

在项目目录运行 npm install kodingo-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 kodingo,可以用 npx kodingo 直接运行。

kodingo-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/kodingo-cli 是否存在。

kodingo-cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

kodingo-cli 可以商用吗?

kodingo-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

kodingo-cli 还在维护吗?

最新版本 1.4.1 发布于 2026/11/04(1 天前);至今共发布 62 个版本,其中过去 12 个月发布了 62 个;首次发布于 2026/03/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。