sprag-cli 3.89.0 → 3.89.2
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.ko.md +5 -0
- package/README.md +5 -0
- package/package.json +1 -1
- package/src/statusline-base.js +1 -1
package/README.ko.md
CHANGED
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
[sprag.io](https://sprag.io) · [벤치마크](https://github.com/rootstudioyaml/sprag/blob/main/docs/BENCHMARK.md)
|
|
19
19
|
|
|
20
|
+
<a href="https://github.com/rootstudioyaml/sprag/blob/main/README.ko.md#팀"><img src="https://raw.githubusercontent.com/rootstudioyaml/sprag/main/docs/plan-pro-ko.gif" width="640" alt="팀원마다 동물 캐릭터로 앉아 있는 가상 사무실, 지출과 절감액, 좌석, 30일 차트가 있는 조직 대시보드, 한 번 승인하면 모든 컴퓨터에 적용되는 팀 규칙을 차례로 보여 줍니다."></a>
|
|
21
|
+
|
|
22
|
+
**Sprag Pro · 팀이 함께 쓰는 Sprag**: 팀 전체의 AI 지출과 절감액을 한 화면에서 봅니다.<br>
|
|
23
|
+
<sub>팀원마다 캐릭터가 앉아 있는 가상 사무실, 좌석 명단, 한 번 승인하면 모두에게 적용되는 팀 규칙을 담았습니다. <a href="https://github.com/rootstudioyaml/sprag/blob/main/README.ko.md#팀">팀 기능 보기</a> · <a href="mailto:support@sprag.io">support@sprag.io</a></sub>
|
|
24
|
+
|
|
20
25
|
<a href="https://sprag.io/assets/video/sprag-compare-ko.mp4"><img src="https://raw.githubusercontent.com/rootstudioyaml/sprag/main/docs/sprag-compare-ko.gif" width="760" alt="두 터미널에 같은 요청 12건을 넣습니다. sprag 를 적용한 쪽은 조회와 테스트 실행을 저렴한 모델에 넘기고 문서를 Markdown 으로 바꿔 넣어, 하루를 $6.68 대신 $1.83 로 마칩니다."></a>
|
|
21
26
|
|
|
22
27
|
같은 요청 12건, 두 터미널: sprag 적용 시 **$6.68 → $1.83 (72.6% 절감)**<br>
|
package/README.md
CHANGED
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
[sprag.io](https://sprag.io) · [Benchmark](https://github.com/rootstudioyaml/sprag/blob/main/docs/BENCHMARK.md)
|
|
19
19
|
|
|
20
|
+
<a href="https://github.com/rootstudioyaml/sprag#teams"><img src="https://raw.githubusercontent.com/rootstudioyaml/sprag/main/docs/plan-pro-en.gif" width="640" alt="A virtual office where every teammate sits as an animal character, then the organization dashboard with spend, savings, seats and a 30-day chart, then team rules approved once and picked up by every machine."></a>
|
|
21
|
+
|
|
22
|
+
**Sprag Pro · for teams**: your whole team's AI spend and savings, on one screen.<br>
|
|
23
|
+
<sub>A virtual office with a character for every teammate, a seat roster, and rules the team approves once. <a href="https://github.com/rootstudioyaml/sprag#teams">See the team features</a> · <a href="mailto:support@sprag.io">support@sprag.io</a></sub>
|
|
24
|
+
|
|
20
25
|
<a href="https://sprag.io/assets/video/sprag-compare-en.mp4"><img src="https://raw.githubusercontent.com/rootstudioyaml/sprag/main/docs/sprag-compare-en.gif" width="760" alt="Two terminals receive the same twelve requests. With Sprag, lookups and test runs go to cheaper models and documents go in as Markdown; the day ends at $1.83 against $6.68 without Sprag."></a>
|
|
21
26
|
|
|
22
27
|
Same 12 requests, two terminals: **$6.68 → $1.83 (−72.6%)** with Sprag.<br>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprag-cli",
|
|
3
|
-
"version": "3.89.
|
|
3
|
+
"version": "3.89.2",
|
|
4
4
|
"description": "Model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models, documents go in as compact Markdown, and a live statusline shows spend and savings.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/statusline-base.js
CHANGED
|
@@ -30,7 +30,7 @@ export function withBaseStatusline(output, { input = '' } = {}) {
|
|
|
30
30
|
try {
|
|
31
31
|
const cmd = loadConfig().statuslineBase?.command;
|
|
32
32
|
if (typeof cmd !== 'string' || !cmd.trim() || OURS.test(cmd)) return output;
|
|
33
|
-
const opts = { input, encoding: 'utf8', timeout: 1500, env: { ...process.env, [NESTED]: '1' } };
|
|
33
|
+
const opts = { input, encoding: 'utf8', timeout: 1500, windowsHide: true, env: { ...process.env, [NESTED]: '1' } };
|
|
34
34
|
const r = process.platform === 'win32'
|
|
35
35
|
? spawnSync(cmd, { ...opts, shell: true })
|
|
36
36
|
: spawnSync('/bin/sh', ['-c', cmd], opts);
|