pi-umans-provider 1.0.2 → 1.0.3
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/.github/FUNDING.yml +4 -0
- package/README.md +0 -1
- package/index.ts +4 -4
- package/models.json +0 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,6 @@ _A [pi](https://github.com/earendil-works/pi-coding-agent) provider extension wi
|
|
|
30
30
|
| Coder | Kimi K2.7-Code | 262K | ✅ | ✅ | 33K |
|
|
31
31
|
| Flash | Qwen3.6-35B-A3B | 262K | ✅ | ✅ | 33K |
|
|
32
32
|
| GLM 5.2 | GLM-5.2 | 406K | ❌ | ✅ | 131K |
|
|
33
|
-
| GLM 5.2 NVFP4 (experimental, short test from Jun 29) | GLM-5.2 | 406K | ❌ | ✅ | 131K |
|
|
34
33
|
| Kimi K2.7 Code | Kimi K2.7-Code | 262K | ✅ | ✅ | 33K |
|
|
35
34
|
| Qwen3.6 35B A3B | Qwen3.6-35B-A3B | 262K | ✅ | ✅ | 33K |
|
|
36
35
|
|
package/index.ts
CHANGED
|
@@ -505,7 +505,7 @@ function resetIdleTimer(ctx: any): void {
|
|
|
505
505
|
const signal = usageAbort?.signal;
|
|
506
506
|
idleTimer = setTimeout(async () => {
|
|
507
507
|
idleTimer = null;
|
|
508
|
-
// Skip while streaming — the optimistic value is in effect and
|
|
508
|
+
// Skip while streaming — the optimistic value is in effect and agent_settled
|
|
509
509
|
// will reconcile with a real fetch.
|
|
510
510
|
if (activeStreams > 0) return;
|
|
511
511
|
if (signal?.aborted) return;
|
|
@@ -515,7 +515,7 @@ function resetIdleTimer(ctx: any): void {
|
|
|
515
515
|
}, IDLE_POLL_MS);
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
// After
|
|
518
|
+
// After agent_settled the server still counts our session for a brief lag. Wait
|
|
519
519
|
// it out, then take a clean idle baseline and re-arm the idle poll.
|
|
520
520
|
function scheduleEndFetch(ctx: any): void {
|
|
521
521
|
if (endFetchTimer) clearTimeout(endFetchTimer);
|
|
@@ -659,7 +659,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
659
659
|
// Optimistic +1: the moment our agent starts, we know the real concurrent
|
|
660
660
|
// count is at least (others + 1). No API call — the server has a ~2s
|
|
661
661
|
// registration lag, so fetching now would undercount us anyway. One span
|
|
662
|
-
// per prompt (agent_start →
|
|
662
|
+
// per prompt (agent_start → agent_settled), so no flicker between tool turns.
|
|
663
663
|
pi.on("agent_start", async (_event, ctx) => {
|
|
664
664
|
if (!isUmansModel(ctx)) return;
|
|
665
665
|
if (idleTimer) {
|
|
@@ -672,7 +672,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
672
672
|
|
|
673
673
|
// Turn ended: drop our optimistic +1 and reconcile with the server after a
|
|
674
674
|
// short settle so the server has dropped our session from its count.
|
|
675
|
-
pi.on("
|
|
675
|
+
pi.on("agent_settled", async (_event, ctx) => {
|
|
676
676
|
if (!isUmansModel(ctx)) return;
|
|
677
677
|
activeStreams = Math.max(0, activeStreams - 1);
|
|
678
678
|
updateUsageStatus(ctx);
|
package/models.json
CHANGED
|
@@ -49,22 +49,6 @@
|
|
|
49
49
|
"contextWindow": 405504,
|
|
50
50
|
"maxTokens": 131071
|
|
51
51
|
},
|
|
52
|
-
{
|
|
53
|
-
"id": "umans-glm-5.2-nvfp4",
|
|
54
|
-
"name": "Umans GLM 5.2 NVFP4 (experimental, short test from Jun 29)",
|
|
55
|
-
"reasoning": true,
|
|
56
|
-
"input": [
|
|
57
|
-
"text"
|
|
58
|
-
],
|
|
59
|
-
"cost": {
|
|
60
|
-
"input": 0,
|
|
61
|
-
"output": 0,
|
|
62
|
-
"cacheRead": 0,
|
|
63
|
-
"cacheWrite": 0
|
|
64
|
-
},
|
|
65
|
-
"contextWindow": 405504,
|
|
66
|
-
"maxTokens": 131071
|
|
67
|
-
},
|
|
68
52
|
{
|
|
69
53
|
"id": "umans-kimi-k2.7",
|
|
70
54
|
"name": "Umans Kimi K2.7 Code",
|
package/package.json
CHANGED