@tansr/cli 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +14 -0
- package/README.md +42 -0
- package/package.json +14 -0
- package/tansr.mjs +915 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Tansr Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tansr (tansr.com). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This repository contains proprietary software. Except for the packages that
|
|
6
|
+
carry their own LICENSE file granting different terms (currently
|
|
7
|
+
packages/protocol, packages/sdk and packages/api-client, which are licensed
|
|
8
|
+
under the MIT License), no part of this software may be used, copied, modified,
|
|
9
|
+
merged, published, distributed, sublicensed, or sold without a prior written
|
|
10
|
+
commercial agreement with the copyright holder.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Tansr
|
|
2
|
+
|
|
3
|
+
面向商业组织的自动化智能生产力编排系统 —— 智能体 CLI 底座(一期)。
|
|
4
|
+
|
|
5
|
+
- 双协议模型网关(Anthropic Messages / OpenAI Chat Completions),国内五厂商官方 Anthropic 端点直连
|
|
6
|
+
- 同一内核四种运行形态:TUI / headless(`-p --json`)/ `serve`(REST+SSE)/ `acp`(stdio JSON-RPC)
|
|
7
|
+
- 权限引擎 + 审计事件流(不可关闭)、扩展体系(commands/hooks/skills/MCP/插件)、i18n(zh-CN/en/ja/ko)
|
|
8
|
+
|
|
9
|
+
## 快速开始
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm install
|
|
13
|
+
pnpm dev # tsx 免编译直跑(开发)
|
|
14
|
+
pnpm test # node:test(tsx loader)
|
|
15
|
+
pnpm build # esbuild → dist/tansr.mjs(生产单文件)
|
|
16
|
+
node dist/tansr.mjs --version
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
要求 Node ≥ 22.13、pnpm 11。工程约定见 [AGENTS.md](./AGENTS.md)。
|
|
20
|
+
|
|
21
|
+
## 仓库布局
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
packages/protocol L0 契约:IR 消息模型/事件协议/Journal/配置 schema(MIT)
|
|
25
|
+
packages/i18n L0.5 国际化运行时(zh-CN/en/ja/ko)
|
|
26
|
+
packages/providers L1 双协议网关(+OpenAI Responses 适配)
|
|
27
|
+
packages/kernel L2 智能体内核(查询环/工具/权限/扩展/MCP/插件)
|
|
28
|
+
packages/{tui,server,cli,sdk} L3/L4 表面与装配(TUI/serve/acp/SDK 四形态齐备)
|
|
29
|
+
bench/ 验收基准(SWE-lite/pty/启动/看板)
|
|
30
|
+
build/ esbuild 构建管线(ESM + SEA 双档)
|
|
31
|
+
scripts/ 测试运行器 / i18n 覆盖率 / release 三件
|
|
32
|
+
spikes/ 独立验证项目(不进 workspace)
|
|
33
|
+
doc/ 设计事实源(00 总览导读为入口)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 文档
|
|
37
|
+
|
|
38
|
+
从 [doc/00-总览导读.md](./doc/00-总览导读.md) 进入;开发任务卡与进度勾选表在 [doc/09](./doc/09-多任务并行开发计划与执行清单.md)。
|
|
39
|
+
|
|
40
|
+
## 许可证
|
|
41
|
+
|
|
42
|
+
核心闭源(见 [LICENSE](./LICENSE));`packages/protocol` 与 `packages/sdk` 为 MIT。
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tansr/cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Tansr - agent CLI platform for organizations",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"tansr": "tansr.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.13"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {}
|
|
14
|
+
}
|