@workweave/router 0.1.0 → 0.1.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/LICENSE +90 -0
- package/cc-statusline.sh +4 -6
- package/install.sh +7 -8
- package/package.json +5 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Copyright 2025 Workweave, Inc.
|
|
2
|
+
|
|
3
|
+
Elastic License 2.0
|
|
4
|
+
|
|
5
|
+
URL: https://www.elastic.co/licensing/elastic-license
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
14
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
15
|
+
available, and prepare derivative works of the software, in each case subject to
|
|
16
|
+
the limitations and conditions below.
|
|
17
|
+
|
|
18
|
+
## Limitations
|
|
19
|
+
|
|
20
|
+
You may not provide the software to third parties as a hosted or managed
|
|
21
|
+
service, where the service provides users with access to any substantial set of
|
|
22
|
+
the features or functionality of the software.
|
|
23
|
+
|
|
24
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
25
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
26
|
+
software that is protected by the license key.
|
|
27
|
+
|
|
28
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
29
|
+
of the licensor in the software. Any use of the licensor's trademarks is subject
|
|
30
|
+
to applicable law.
|
|
31
|
+
|
|
32
|
+
## Patents
|
|
33
|
+
|
|
34
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
35
|
+
license, or becomes able to license, to make, have made, use, practice,
|
|
36
|
+
sell, offer for sale, import or transfer any part of the software. This license
|
|
37
|
+
does not cover any patent claims that you cause to be infringed by modifications
|
|
38
|
+
or additions to the software. If you or your company make any written claim that
|
|
39
|
+
the software infringes or contributes to infringement of any patent, your patent
|
|
40
|
+
license for the software granted under these terms ends immediately.
|
|
41
|
+
|
|
42
|
+
## Notices
|
|
43
|
+
|
|
44
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
45
|
+
also gets a copy of these terms.
|
|
46
|
+
|
|
47
|
+
If you modify the software, you must include in any modified copies of the
|
|
48
|
+
software prominent notices stating that you have modified the software.
|
|
49
|
+
|
|
50
|
+
## No Other Rights
|
|
51
|
+
|
|
52
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
53
|
+
these terms.
|
|
54
|
+
|
|
55
|
+
## Termination
|
|
56
|
+
|
|
57
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
58
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
59
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
60
|
+
later than 30 days after you receive that notice, your licenses will
|
|
61
|
+
automatically be reinstated unless the licensor notifies you otherwise. If you
|
|
62
|
+
violate these terms after reinstatement, any additional violation will
|
|
63
|
+
automatically and permanently terminate your licenses.
|
|
64
|
+
|
|
65
|
+
## No Liability
|
|
66
|
+
|
|
67
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
68
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
69
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
70
|
+
legal claim.*
|
|
71
|
+
|
|
72
|
+
## Definitions
|
|
73
|
+
|
|
74
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
75
|
+
software the licensor makes available under these terms, including any portion
|
|
76
|
+
of it.
|
|
77
|
+
|
|
78
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
79
|
+
|
|
80
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
81
|
+
organization that you work for, plus all organizations that have more than 25%
|
|
82
|
+
ownership in the relationship with you.
|
|
83
|
+
|
|
84
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
85
|
+
these terms.
|
|
86
|
+
|
|
87
|
+
**use** includes anything you do with the software requiring one of your
|
|
88
|
+
licenses.
|
|
89
|
+
|
|
90
|
+
**trademark** includes logos, service marks, and other designations.
|
package/cc-statusline.sh
CHANGED
|
@@ -130,6 +130,7 @@ normalize_model() {
|
|
|
130
130
|
prices='{
|
|
131
131
|
"input": {
|
|
132
132
|
"claude-haiku-4-5": 0.0008,
|
|
133
|
+
"claude-opus-4-6": 0.015,
|
|
133
134
|
"claude-opus-4-7": 0.015,
|
|
134
135
|
"claude-sonnet-4-5": 0.003,
|
|
135
136
|
"deepseek/deepseek-v4-flash": 0.00014,
|
|
@@ -160,17 +161,16 @@ prices='{
|
|
|
160
161
|
"gpt-5.5-mini": 0.0005,
|
|
161
162
|
"gpt-5.5-nano": 0.00015,
|
|
162
163
|
"gpt-5.5-pro": 0.03,
|
|
163
|
-
"mistralai/mistral-small-2603": 0.00015,
|
|
164
164
|
"moonshotai/kimi-k2.5": 0.00044,
|
|
165
165
|
"qwen/qwen3-235b-a22b-2507": 0.000071,
|
|
166
166
|
"qwen/qwen3-30b-a3b-instruct-2507": 0.00008,
|
|
167
167
|
"qwen/qwen3-coder": 0.00022,
|
|
168
168
|
"qwen/qwen3-coder-next": 0.00007,
|
|
169
|
-
"qwen/qwen3-next-80b-a3b-instruct": 0.00009
|
|
170
|
-
"qwen/qwen3.5-flash-02-23": 0.000065
|
|
169
|
+
"qwen/qwen3-next-80b-a3b-instruct": 0.00009
|
|
171
170
|
},
|
|
172
171
|
"output": {
|
|
173
172
|
"claude-haiku-4-5": 0.004,
|
|
173
|
+
"claude-opus-4-6": 0.075,
|
|
174
174
|
"claude-opus-4-7": 0.075,
|
|
175
175
|
"claude-sonnet-4-5": 0.015,
|
|
176
176
|
"deepseek/deepseek-v4-flash": 0.00028,
|
|
@@ -201,14 +201,12 @@ prices='{
|
|
|
201
201
|
"gpt-5.5-mini": 0.0025,
|
|
202
202
|
"gpt-5.5-nano": 0.0006,
|
|
203
203
|
"gpt-5.5-pro": 0.12,
|
|
204
|
-
"mistralai/mistral-small-2603": 0.0006,
|
|
205
204
|
"moonshotai/kimi-k2.5": 0.002,
|
|
206
205
|
"qwen/qwen3-235b-a22b-2507": 0.000463,
|
|
207
206
|
"qwen/qwen3-30b-a3b-instruct-2507": 0.00033,
|
|
208
207
|
"qwen/qwen3-coder": 0.0018,
|
|
209
208
|
"qwen/qwen3-coder-next": 0.0003,
|
|
210
|
-
"qwen/qwen3-next-80b-a3b-instruct": 0.0011
|
|
211
|
-
"qwen/qwen3.5-flash-02-23": 0.00026
|
|
209
|
+
"qwen/qwen3-next-80b-a3b-instruct": 0.0011
|
|
212
210
|
}
|
|
213
211
|
}'
|
|
214
212
|
# END_GENERATED_PRICES
|
package/install.sh
CHANGED
|
@@ -444,7 +444,8 @@ if [ -n "${WEAVE_ROUTER_KEY:-}" ]; then
|
|
|
444
444
|
# _spin_cleanup (installed globally above) already restores stty echo on
|
|
445
445
|
# any exit path, so we don't need a separate trap here — that would
|
|
446
446
|
# overwrite the spinner cleanup and leak the cursor / child PID on Ctrl-C.
|
|
447
|
-
printf "%
|
|
447
|
+
printf "%sGet your Weave Router API key at %s%s\n" "$C_BRAND" "$base_url" "$C_RESET"
|
|
448
|
+
printf "%sPaste your key here (rk_...):%s " "$C_DIM" "$C_RESET"
|
|
448
449
|
stty -echo </dev/tty 2>/dev/null || true
|
|
449
450
|
read -r api_key </dev/tty
|
|
450
451
|
stty echo </dev/tty 2>/dev/null || true
|
|
@@ -587,6 +588,7 @@ normalize_model() {
|
|
|
587
588
|
prices='{
|
|
588
589
|
"input": {
|
|
589
590
|
"claude-haiku-4-5": 0.0008,
|
|
591
|
+
"claude-opus-4-6": 0.015,
|
|
590
592
|
"claude-opus-4-7": 0.015,
|
|
591
593
|
"claude-sonnet-4-5": 0.003,
|
|
592
594
|
"deepseek/deepseek-v4-flash": 0.00014,
|
|
@@ -617,17 +619,16 @@ prices='{
|
|
|
617
619
|
"gpt-5.5-mini": 0.0005,
|
|
618
620
|
"gpt-5.5-nano": 0.00015,
|
|
619
621
|
"gpt-5.5-pro": 0.03,
|
|
620
|
-
"mistralai/mistral-small-2603": 0.00015,
|
|
621
622
|
"moonshotai/kimi-k2.5": 0.00044,
|
|
622
623
|
"qwen/qwen3-235b-a22b-2507": 0.000071,
|
|
623
624
|
"qwen/qwen3-30b-a3b-instruct-2507": 0.00008,
|
|
624
625
|
"qwen/qwen3-coder": 0.00022,
|
|
625
626
|
"qwen/qwen3-coder-next": 0.00007,
|
|
626
|
-
"qwen/qwen3-next-80b-a3b-instruct": 0.00009
|
|
627
|
-
"qwen/qwen3.5-flash-02-23": 0.000065
|
|
627
|
+
"qwen/qwen3-next-80b-a3b-instruct": 0.00009
|
|
628
628
|
},
|
|
629
629
|
"output": {
|
|
630
630
|
"claude-haiku-4-5": 0.004,
|
|
631
|
+
"claude-opus-4-6": 0.075,
|
|
631
632
|
"claude-opus-4-7": 0.075,
|
|
632
633
|
"claude-sonnet-4-5": 0.015,
|
|
633
634
|
"deepseek/deepseek-v4-flash": 0.00028,
|
|
@@ -658,14 +659,12 @@ prices='{
|
|
|
658
659
|
"gpt-5.5-mini": 0.0025,
|
|
659
660
|
"gpt-5.5-nano": 0.0006,
|
|
660
661
|
"gpt-5.5-pro": 0.12,
|
|
661
|
-
"mistralai/mistral-small-2603": 0.0006,
|
|
662
662
|
"moonshotai/kimi-k2.5": 0.002,
|
|
663
663
|
"qwen/qwen3-235b-a22b-2507": 0.000463,
|
|
664
664
|
"qwen/qwen3-30b-a3b-instruct-2507": 0.00033,
|
|
665
665
|
"qwen/qwen3-coder": 0.0018,
|
|
666
666
|
"qwen/qwen3-coder-next": 0.0003,
|
|
667
|
-
"qwen/qwen3-next-80b-a3b-instruct": 0.0011
|
|
668
|
-
"qwen/qwen3.5-flash-02-23": 0.00026
|
|
667
|
+
"qwen/qwen3-next-80b-a3b-instruct": 0.0011
|
|
669
668
|
}
|
|
670
669
|
}'
|
|
671
670
|
# END_GENERATED_PRICES
|
|
@@ -925,7 +924,7 @@ if [ -n "$api_key" ]; then
|
|
|
925
924
|
| curl -fsS --max-time 5 --header @- "$base_url/validate"
|
|
926
925
|
}
|
|
927
926
|
if ! spin "Validating API key" validate_key; then
|
|
928
|
-
warn "Router rejected the API key (check it matches the dashboard at $base_url
|
|
927
|
+
warn "Router rejected the API key (check it matches the dashboard at $base_url)."
|
|
929
928
|
fi
|
|
930
929
|
fi
|
|
931
930
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workweave/router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "One-command installer that points Claude Code at the Weave Router.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"weave-router": "bin.js"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"install.sh",
|
|
11
11
|
"uninstall.sh",
|
|
12
12
|
"cc-statusline.sh",
|
|
13
|
-
"README.md"
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
17
|
"prepack": "node ./scripts/copy-installer.js"
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
"url": "git+https://github.com/workweave/router.git",
|
|
24
25
|
"directory": "install/npm"
|
|
25
26
|
},
|
|
26
|
-
"homepage": "https://
|
|
27
|
-
"license": "
|
|
27
|
+
"homepage": "https://workweave.ai",
|
|
28
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
28
29
|
"keywords": [
|
|
29
30
|
"weave",
|
|
30
31
|
"router",
|