@celljs/ta-usage 0.0.0-stage → 4.18.0

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/README.en.md ADDED
@@ -0,0 +1,6 @@
1
+ # Cell - Ta Usage
2
+
3
+ A pi package that comes with Ta (on by default; turned off in Settings → Extensions of the web client): Usage.
4
+
5
+ - **The Usage page**: under Discover and in Quick open (loaded when opened). The tokens (input, output, read from the cache) and the cost of the last 7, 30 or 90 days, a bar a day; each model with its tokens, cost and calls; and the conversations that used the most, each opening as it is clicked.
6
+ - Read from the conversations of Ta on this computer (`~/.ta/agent/sessions`) by the server side of the package, kept by the time each file changed, never written. The cost is the price the model's provider gives; a model without one counts its tokens only.
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
- # Temporary Holding Version
1
+ # Cell - Ta Usage
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展 关闭):用量。
4
+
5
+ - **"用量"页**:在"发现"和快捷打开里(按需启动:点开才加载)。最近 7 天、30 天或 90 天的 tokens(输入、输出、缓存命中)和花费,每天一根柱子;按模型列出各自的 tokens、花费和调用次数;用得最多的对话列在最后,点一下就打开。
6
+ - 数据来自这台电脑上 Ta 的对话记录(`~/.ta/agent/sessions`),由包的服务端读取,按文件的修改时间缓存,只读不写。花费是模型服务给出的价格,没有价格的模型只计 tokens。