priiisk 0.1.19 → 0.1.21
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/dist/{chunk-WRNKCW6X.js → chunk-6KCQ6O4T.js} +26 -36
- package/dist/{chunk-26WAMIP2.js → chunk-DPNPQG2D.js} +5526 -1382
- package/dist/{chunk-UGJ3G52D.js → chunk-GYYNOMA5.js} +21 -21
- package/dist/{chunk-GFEPED7X.js → chunk-IPF3C3B2.js} +23 -23
- package/dist/{chunk-VEYMTNDB.js → chunk-K7LA4DNU.js} +979 -333
- package/dist/{chunk-S4KO3BZU.js → chunk-PCOWK5BR.js} +7 -7
- package/dist/{chunk-X4X2HTNU.js → chunk-PIHJTCPQ.js} +90 -90
- package/dist/{chunk-37ROQVP3.js → chunk-QY7U7U2K.js} +3409 -7728
- package/dist/{chunk-5IO2ETKC.js → chunk-TUCFONJW.js} +1 -1
- package/dist/{chunk-5TXANNSW.js → chunk-U2FODXMR.js} +54 -22
- package/dist/priiisk-host.js +1139 -430
- package/dist/priiisk.js +2 -2
- package/package.json +13 -13
- /package/dist/{chunk-37ROQVP3.js.LEGAL.txt → chunk-DPNPQG2D.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-GFEPED7X.js.LEGAL.txt → chunk-IPF3C3B2.js.LEGAL.txt} +0 -0
|
@@ -2,11 +2,10 @@ import { createRequire as __priiiskCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __priiiskCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliAlreadyReported,
|
|
5
|
-
|
|
6
|
-
directToolBin,
|
|
5
|
+
TypeId,
|
|
7
6
|
error,
|
|
8
7
|
log
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QY7U7U2K.js";
|
|
10
9
|
import {
|
|
11
10
|
_void,
|
|
12
11
|
cached,
|
|
@@ -15,7 +14,8 @@ import {
|
|
|
15
14
|
dieMessage,
|
|
16
15
|
dual,
|
|
17
16
|
equals,
|
|
18
|
-
|
|
17
|
+
equipmentDescriptionLines,
|
|
18
|
+
flatMap3 as flatMap,
|
|
19
19
|
fromIterable,
|
|
20
20
|
gen,
|
|
21
21
|
getSomes,
|
|
@@ -24,25 +24,25 @@ import {
|
|
|
24
24
|
isNonEmptyReadonlyArray,
|
|
25
25
|
isSome,
|
|
26
26
|
join,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
map2 as map,
|
|
28
|
+
map3 as map2,
|
|
29
29
|
match,
|
|
30
30
|
matchRight,
|
|
31
31
|
none,
|
|
32
32
|
of,
|
|
33
|
-
|
|
33
|
+
of2,
|
|
34
34
|
pipe,
|
|
35
35
|
pipeArguments,
|
|
36
36
|
reduceRight,
|
|
37
37
|
runSync,
|
|
38
38
|
some,
|
|
39
39
|
string,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
succeed3 as succeed,
|
|
41
|
+
suspend,
|
|
42
42
|
symbol,
|
|
43
43
|
symbol2,
|
|
44
|
-
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
sync
|
|
45
|
+
} from "./chunk-DPNPQG2D.js";
|
|
46
46
|
|
|
47
47
|
// node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.4/node_modules/@effect/typeclass/dist/esm/internal/Iterable.js
|
|
48
48
|
function reduce(b, f) {
|
|
@@ -1592,36 +1592,26 @@ var toAnsiText2 = toAnsiText;
|
|
|
1592
1592
|
var printValue = (json, human) => (effect) => effect.pipe(
|
|
1593
1593
|
flatMap((value) => log(json ? JSON.stringify(value) : human(value)))
|
|
1594
1594
|
);
|
|
1595
|
-
var
|
|
1596
|
-
var
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
}
|
|
1601
|
-
)
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
` tools: ${names(
|
|
1606
|
-
[
|
|
1607
|
-
.../* @__PURE__ */ new Set([
|
|
1608
|
-
...equipment.builtinTools,
|
|
1609
|
-
...equipment.customToolNames.filter((name) => directToolBin(name) === void 0)
|
|
1610
|
-
])
|
|
1611
|
-
].sort()
|
|
1612
|
-
)}`,
|
|
1613
|
-
` direct: ${names(
|
|
1614
|
-
equipment.customToolNames.map((name) => directToolBin(name)).filter((bin) => bin !== void 0).sort()
|
|
1615
|
-
)}`,
|
|
1616
|
-
` mcp: ${mcpGrants(equipment.mcp)}`,
|
|
1617
|
-
` skills: ${names([...equipment.skillNames])}`
|
|
1618
|
-
];
|
|
1595
|
+
var equipmentLines = (equipment, revision) => equipmentDescriptionLines(equipment, revision).map((line5) => ` ${line5}`);
|
|
1596
|
+
var usageLines = (usage) => {
|
|
1597
|
+
const context = usage.context === void 0 || usage.context.tokens === null ? "unknown" : `${String(usage.context.tokens)}/${String(usage.context.contextWindow)}${usage.context.percent === null ? "" : ` (${usage.context.percent.toFixed(1)}%)`}`;
|
|
1598
|
+
const cache = usage.latestCacheHitRate === void 0 ? "not reported" : `${usage.latestCacheHitRate.toFixed(1)}%`;
|
|
1599
|
+
return [
|
|
1600
|
+
` context: ${context}, cache ${cache}`,
|
|
1601
|
+
` tokens: ${String(usage.tokens.total)} total, ${String(usage.tokens.input)} in, ${String(usage.tokens.output)} out, ${String(usage.tokens.cacheRead)} cache read`,
|
|
1602
|
+
` cost: $${usage.cost.toFixed(4)}, ${String(usage.totalMessages)} messages, ${String(usage.toolCalls)} tool calls`
|
|
1603
|
+
];
|
|
1604
|
+
};
|
|
1619
1605
|
var WORKER_ERROR_LIMIT = 160;
|
|
1620
1606
|
var formatWorker = (worker) => {
|
|
1621
1607
|
const alias = worker.alias === void 0 ? "" : ` (${worker.alias})`;
|
|
1622
1608
|
const failure = worker.error === void 0 ? "" : ` \u2014 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0445\u043E\u0434: ${worker.error.code}: ${worker.error.message.slice(0, WORKER_ERROR_LIMIT)}`;
|
|
1623
1609
|
const headline = `${worker.workerId}${alias}: ${worker.state}, session ${worker.sessionState}${failure}`;
|
|
1624
|
-
return
|
|
1610
|
+
return [
|
|
1611
|
+
headline,
|
|
1612
|
+
...worker.equipment === void 0 ? [] : equipmentLines(worker.equipment, worker.equipmentVersion),
|
|
1613
|
+
...worker.usage === void 0 ? [] : usageLines(worker.usage)
|
|
1614
|
+
].join("\n");
|
|
1625
1615
|
};
|
|
1626
1616
|
var printWorkers = (json) => (effect) => effect.pipe(
|
|
1627
1617
|
flatMap(
|