@contraagent/ui 0.8.0 → 0.9.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.md +1 -1
- package/custom-elements.json +104 -78
- package/dist/adapters/journal-columns.d.ts +2 -0
- package/dist/adapters/journal-columns.d.ts.map +1 -1
- package/dist/adapters/journal-columns.js +19 -6
- package/dist/adapters/journal-columns.js.map +1 -1
- package/dist/adapters/kpi-tiles.d.ts +8 -3
- package/dist/adapters/kpi-tiles.d.ts.map +1 -1
- package/dist/adapters/kpi-tiles.js +35 -15
- package/dist/adapters/kpi-tiles.js.map +1 -1
- package/dist/adapters/transcript/sections.d.ts +5 -0
- package/dist/adapters/transcript/sections.d.ts.map +1 -1
- package/dist/adapters/transcript/sections.js +7 -1
- package/dist/adapters/transcript/sections.js.map +1 -1
- package/dist/contraagent-ui.js +689 -700
- package/dist/elements/lists/ca-contracts.d.ts +3 -4
- package/dist/elements/lists/ca-contracts.d.ts.map +1 -1
- package/dist/elements/lists/ca-contracts.js +25 -19
- package/dist/elements/lists/ca-contracts.js.map +1 -1
- package/dist/elements/overview/ca-kpis.d.ts +3 -1
- package/dist/elements/overview/ca-kpis.d.ts.map +1 -1
- package/dist/elements/overview/ca-kpis.js +7 -2
- package/dist/elements/overview/ca-kpis.js.map +1 -1
- package/dist/elements/overview/ca-model-usage.d.ts +2 -1
- package/dist/elements/overview/ca-model-usage.d.ts.map +1 -1
- package/dist/elements/overview/ca-model-usage.js +3 -2
- package/dist/elements/overview/ca-model-usage.js.map +1 -1
- package/dist/elements/overview/ca-overview.d.ts +1 -5
- package/dist/elements/overview/ca-overview.d.ts.map +1 -1
- package/dist/elements/overview/ca-overview.js +53 -77
- package/dist/elements/overview/ca-overview.js.map +1 -1
- package/dist/elements/overview/ca-pipeline-graph.d.ts +8 -1
- package/dist/elements/overview/ca-pipeline-graph.d.ts.map +1 -1
- package/dist/elements/overview/ca-pipeline-graph.js +11 -6
- package/dist/elements/overview/ca-pipeline-graph.js.map +1 -1
- package/dist/elements/overview/ca-run-driver.d.ts.map +1 -1
- package/dist/elements/overview/ca-run-driver.js +6 -5
- package/dist/elements/overview/ca-run-driver.js.map +1 -1
- package/dist/elements/overview/ca-workers.js +1 -1
- package/dist/elements/overview/pipeline-graph/strings.js +3 -3
- package/dist/elements/overview/pipeline-graph/strings.js.map +1 -1
- package/dist/elements/shared/ca-definition.d.ts.map +1 -1
- package/dist/elements/shared/ca-definition.js +1 -2
- package/dist/elements/shared/ca-definition.js.map +1 -1
- package/dist/elements/shell/ca-hosts.d.ts.map +1 -1
- package/dist/elements/shell/ca-hosts.js +1 -2
- package/dist/elements/shell/ca-hosts.js.map +1 -1
- package/dist/elements/shell/ca-monitor.d.ts +3 -1
- package/dist/elements/shell/ca-monitor.d.ts.map +1 -1
- package/dist/elements/shell/ca-monitor.js +20 -9
- package/dist/elements/shell/ca-monitor.js.map +1 -1
- package/dist/elements/shell/ca-run-picker.js +1 -1
- package/dist/elements/shell/ca-run-picker.js.map +1 -1
- package/dist/elements/shell/ca-theme-switch.d.ts.map +1 -1
- package/dist/elements/shell/ca-theme-switch.js +6 -1
- package/dist/elements/shell/ca-theme-switch.js.map +1 -1
- package/dist/elements/task/ca-task-view.js +2 -2
- package/dist/elements/task/ca-task-view.js.map +1 -1
- package/dist/elements/task/ca-transcript.d.ts +3 -0
- package/dist/elements/task/ca-transcript.d.ts.map +1 -1
- package/dist/elements/task/ca-transcript.js +9 -2
- package/dist/elements/task/ca-transcript.js.map +1 -1
- package/dist/elements/task/header.d.ts +3 -0
- package/dist/elements/task/header.d.ts.map +1 -1
- package/dist/elements/task/header.js +22 -13
- package/dist/elements/task/header.js.map +1 -1
- package/dist/elements/task/panes/io.d.ts +1 -1
- package/dist/elements/task/panes/io.d.ts.map +1 -1
- package/dist/elements/task/panes/io.js +14 -21
- package/dist/elements/task/panes/io.js.map +1 -1
- package/dist/elements/trends/ca-trends.d.ts.map +1 -1
- package/dist/elements/trends/ca-trends.js +2 -1
- package/dist/elements/trends/ca-trends.js.map +1 -1
- package/dist/locales/ja.d.ts +16 -29
- package/dist/locales/ja.d.ts.map +1 -1
- package/dist/locales/ja.js +16 -29
- package/dist/locales/ja.js.map +1 -1
- package/dist/words/quota.d.ts +2 -0
- package/dist/words/quota.d.ts.map +1 -1
- package/dist/words/quota.js +4 -0
- package/dist/words/quota.js.map +1 -1
- package/dist/words/run-line.d.ts +5 -3
- package/dist/words/run-line.d.ts.map +1 -1
- package/dist/words/run-line.js +6 -4
- package/dist/words/run-line.js.map +1 -1
- package/dist/words/trends.d.ts +2 -2
- package/dist/words/trends.d.ts.map +1 -1
- package/dist/words/trends.js +5 -3
- package/dist/words/trends.js.map +1 -1
- package/package.json +3 -3
- package/src/adapters/journal-columns.ts +20 -6
- package/src/adapters/kpi-tiles.ts +37 -16
- package/src/adapters/transcript/sections.ts +10 -2
- package/src/elements/lists/ca-contracts.ts +25 -19
- package/src/elements/overview/ca-kpis.ts +4 -2
- package/src/elements/overview/ca-model-usage.ts +3 -2
- package/src/elements/overview/ca-overview.ts +49 -79
- package/src/elements/overview/ca-pipeline-graph.ts +11 -6
- package/src/elements/overview/ca-run-driver.ts +5 -6
- package/src/elements/overview/ca-workers.ts +1 -1
- package/src/elements/overview/pipeline-graph/strings.ts +3 -3
- package/src/elements/shared/ca-definition.ts +1 -2
- package/src/elements/shell/ca-hosts.ts +1 -2
- package/src/elements/shell/ca-monitor.ts +19 -8
- package/src/elements/shell/ca-run-picker.ts +1 -1
- package/src/elements/shell/ca-theme-switch.ts +6 -1
- package/src/elements/task/ca-task-view.ts +2 -2
- package/src/elements/task/ca-transcript.ts +7 -2
- package/src/elements/task/header.ts +24 -14
- package/src/elements/task/panes/io.ts +14 -21
- package/src/elements/trends/ca-trends.ts +2 -1
- package/src/locales/ja.ts +16 -29
- package/src/words/quota.ts +6 -0
- package/src/words/run-line.ts +8 -5
- package/src/words/trends.ts +5 -3
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ its screenshot, fed with the same run.
|
|
|
98
98
|
|
|
99
99
|

|
|
100
100
|
|
|
101
|
-
`<ca-kpis>` (`kpis`): the run's totals.
|
|
101
|
+
`<ca-kpis>` (`kpis`): the run's totals. A tile that counts tasks or attempts is a link to them, and `no-highest-cost` leaves the kind with the highest cost out of the cost tile, for a page that shows the cost by kind beside it.
|
|
102
102
|
|
|
103
103
|

|
|
104
104
|
|
package/custom-elements.json
CHANGED
|
@@ -6,19 +6,6 @@
|
|
|
6
6
|
"kind": "javascript-module",
|
|
7
7
|
"path": "src/elements/lists/ca-contracts.ts",
|
|
8
8
|
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "function",
|
|
11
|
-
"name": "ctChips",
|
|
12
|
-
"parameters": [
|
|
13
|
-
{
|
|
14
|
-
"name": "outputs",
|
|
15
|
-
"type": {
|
|
16
|
-
"text": "Outputs | null"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"description": "Output contracts per status, worst first; a line of text when none is declared."
|
|
21
|
-
},
|
|
22
9
|
{
|
|
23
10
|
"kind": "function",
|
|
24
11
|
"name": "taskName",
|
|
@@ -39,7 +26,7 @@
|
|
|
39
26
|
},
|
|
40
27
|
{
|
|
41
28
|
"kind": "class",
|
|
42
|
-
"description": "The files each task must write (`OutputContract`) and read (`InputContract`),\nproblems first, each checked field by field against its schema. Links open\
|
|
29
|
+
"description": "The files each task must write (`OutputContract`) and read (`InputContract`),\nproblems first, each with the chip of its status, then the passed ones under\none chip; each checked field by field against its schema. Links open the\ntask (`ca-open-task`).",
|
|
43
30
|
"name": "CaContracts",
|
|
44
31
|
"members": [
|
|
45
32
|
{
|
|
@@ -248,14 +235,6 @@
|
|
|
248
235
|
}
|
|
249
236
|
],
|
|
250
237
|
"exports": [
|
|
251
|
-
{
|
|
252
|
-
"kind": "js",
|
|
253
|
-
"name": "ctChips",
|
|
254
|
-
"declaration": {
|
|
255
|
-
"name": "ctChips",
|
|
256
|
-
"module": "src/elements/lists/ca-contracts.ts"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
238
|
{
|
|
260
239
|
"kind": "js",
|
|
261
240
|
"name": "taskName",
|
|
@@ -1483,7 +1462,7 @@
|
|
|
1483
1462
|
"name": "sub"
|
|
1484
1463
|
},
|
|
1485
1464
|
{
|
|
1486
|
-
"description": "a tile's link",
|
|
1465
|
+
"description": "a tile's link, over the whole tile",
|
|
1487
1466
|
"name": "action"
|
|
1488
1467
|
}
|
|
1489
1468
|
],
|
|
@@ -1505,6 +1484,16 @@
|
|
|
1505
1484
|
"default": "{ nodes: [], groups: [] }",
|
|
1506
1485
|
"description": "The scheduled tasks; without it, tasks are counted from the journal."
|
|
1507
1486
|
},
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "field",
|
|
1489
|
+
"name": "noHighestCost",
|
|
1490
|
+
"type": {
|
|
1491
|
+
"text": "boolean"
|
|
1492
|
+
},
|
|
1493
|
+
"default": "false",
|
|
1494
|
+
"description": "Leaves the kind with the highest cost out of the cost tile, for a page that shows the cost by kind beside it.",
|
|
1495
|
+
"attribute": "no-highest-cost"
|
|
1496
|
+
},
|
|
1508
1497
|
{
|
|
1509
1498
|
"kind": "field",
|
|
1510
1499
|
"name": "onAction",
|
|
@@ -1522,6 +1511,17 @@
|
|
|
1522
1511
|
"name": "ca-open-task"
|
|
1523
1512
|
}
|
|
1524
1513
|
],
|
|
1514
|
+
"attributes": [
|
|
1515
|
+
{
|
|
1516
|
+
"name": "no-highest-cost",
|
|
1517
|
+
"type": {
|
|
1518
|
+
"text": "boolean"
|
|
1519
|
+
},
|
|
1520
|
+
"default": "false",
|
|
1521
|
+
"description": "Leaves the kind with the highest cost out of the cost tile, for a page that shows the cost by kind beside it.",
|
|
1522
|
+
"fieldName": "noHighestCost"
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
1525
|
"superclass": {
|
|
1526
1526
|
"name": "LitElement",
|
|
1527
1527
|
"package": "lit"
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
"declarations": [
|
|
1556
1556
|
{
|
|
1557
1557
|
"kind": "class",
|
|
1558
|
-
"description": "What each model was used for in a run (`Plan.models`): the share of each model in\nthe chosen measure (cost, tokens, time or agent sessions) as one bar, and a table\nof every model with its share and every measure, and its peak context when\na session on it reported one. A model keeps its colour, and\nits place, in the order it was first used, whatever the measure; past six models\nthe later ones share one colour as \"Other models\".",
|
|
1558
|
+
"description": "What each model was used for in a run (`Plan.models`): the share of each model in\nthe chosen measure (cost, tokens, time or agent sessions) as one bar (the table\nnames each segment, so the bar has no names under it), and a table\nof every model with its share and every measure, and its peak context when\na session on it reported one. A model keeps its colour, and\nits place, in the order it was first used, whatever the measure; past six models\nthe later ones share one colour as \"Other models\".",
|
|
1559
1559
|
"name": "CaModelUsage",
|
|
1560
1560
|
"members": [
|
|
1561
1561
|
{
|
|
@@ -1767,26 +1767,7 @@
|
|
|
1767
1767
|
"text": "string"
|
|
1768
1768
|
}
|
|
1769
1769
|
},
|
|
1770
|
-
"
|
|
1771
|
-
{
|
|
1772
|
-
"name": "live",
|
|
1773
|
-
"type": {
|
|
1774
|
-
"text": "boolean"
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1777
|
-
],
|
|
1778
|
-
"description": "While running, how far the run is; once over, how its tasks ended."
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
"kind": "method",
|
|
1782
|
-
"name": "triesLine",
|
|
1783
|
-
"privacy": "private",
|
|
1784
|
-
"return": {
|
|
1785
|
-
"type": {
|
|
1786
|
-
"text": "string"
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
"description": "\"23 attempts | 4 not started\": a task that never started has no attempt."
|
|
1770
|
+
"description": "While running, how far the run is; once over, the run's state and the tiles tell how its tasks ended."
|
|
1790
1771
|
},
|
|
1791
1772
|
{
|
|
1792
1773
|
"kind": "method",
|
|
@@ -1892,15 +1873,7 @@
|
|
|
1892
1873
|
{
|
|
1893
1874
|
"kind": "method",
|
|
1894
1875
|
"name": "problems",
|
|
1895
|
-
"privacy": "private"
|
|
1896
|
-
"parameters": [
|
|
1897
|
-
{
|
|
1898
|
-
"name": "live",
|
|
1899
|
-
"type": {
|
|
1900
|
-
"text": "boolean"
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
]
|
|
1876
|
+
"privacy": "private"
|
|
1904
1877
|
},
|
|
1905
1878
|
{
|
|
1906
1879
|
"kind": "method",
|
|
@@ -1915,26 +1888,6 @@
|
|
|
1915
1888
|
}
|
|
1916
1889
|
],
|
|
1917
1890
|
"description": "A row's second line: one line, the whole of it in its tooltip."
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
"kind": "method",
|
|
1921
|
-
"name": "nextStep",
|
|
1922
|
-
"privacy": "private",
|
|
1923
|
-
"parameters": [
|
|
1924
|
-
{
|
|
1925
|
-
"name": "live",
|
|
1926
|
-
"type": {
|
|
1927
|
-
"text": "boolean"
|
|
1928
|
-
}
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
"name": "problemCount",
|
|
1932
|
-
"type": {
|
|
1933
|
-
"text": "number"
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
],
|
|
1937
|
-
"description": "For a finished run with problems: how many tasks are not done (the tasks resume=True runs again)."
|
|
1938
1891
|
}
|
|
1939
1892
|
],
|
|
1940
1893
|
"events": [
|
|
@@ -2076,7 +2029,7 @@
|
|
|
2076
2029
|
},
|
|
2077
2030
|
{
|
|
2078
2031
|
"kind": "class",
|
|
2079
|
-
"description": "The run as a graph of its flow, one layer at a time (`<cae-layered-graph>` draws\nit). A layer shows the kinds of the tasks its function created (a kind node each,\njoined to the ones it waits for) and the functions it called (a function node each,\nholding their tasks); nodes created in one loop are drawn in a loop box, with its\nlast pass (\"up to 3 passes\") and, when its units ran different numbers of passes,\nhow many ran each (\"1 pass: 4 | 2 passes: 1\"); a nested loop's box is inside it, and\na dotted edge inside each box, from its last layer back to its first, is the return\nto its next pass. A kind node names who runs its tasks (✦ and an accent: an agent\ntask; ⚙: a Python task); a function node and a loop box carry the mark of an inner\nview (their layer, their passes). Inside a node, one mark per unit, at the same place\nin every node, so a unit can be followed across the layer: a task in a kind node, a\nflow call in a function node; in a loop box, the unit's latest pass, with the number\nof passes it ran when more than 1. A mark of several tasks shows the most severe\nstate among them (failed, running, not started, waiting, skipped, done); a flow\ncall's mark counts every task of it and of the flow calls it started, and its own\nerror (raised or closed) as failed. A node's count is its tasks done of its tasks,\nwith the others by state, and a function node names its flow calls that stopped\nwith an error. A problem has a square mark (failed: red; not started: hatched),\nevery other state a round one. Above 200 marks, a node shows a bar of its counts and\nnames its failed marks. A solid edge waits for an output; a dashed edge was created\nafter a result; an edge from outside the layer starts at a named stub.\n\nA click selects a mark, a node or a loop box (`sel`); the card beside it shows its\nfacts and links to where it leads: a mark to its task detail, a kind node to its\ntasks, a function node to its layer, a loop box to its passes. A double click, or\nEnter, follows the first of them. Hovering or focusing a mark highlights its unit\nand the tasks joined to it, as the selected mark does. The graph opens on the first\nlayer with more than one node (a static flow's kinds), or on a single function node\nwhose flow call raised; a layer the run does not have opens that one, with a line\nnaming it, and the view route is set right in place (a function named by its qualified\nname alone opens its layer when the run reaches it by one flow path). A loop's\npasses are a row per unit and a column per node and pass, a nested loop's passes as\na group of columns inside each pass of the outer one, the units sortable by number\nof passes or by status (`<cae-mark-matrix>`). The breadcrumb, shown on every layer\nbelow the top (a loop named by its file and line), and Escape go back up. On a\nnarrow screen the graph runs top to bottom. \"Graph | Table\" changes the view; in a\nloop's passes, \"Graph\" opens the layer the loop is in, with its box selected.\nA height set on the element (or given it by a flex or grid container) is the\ngraph's, less the outline's line above it: the drawing fits in it.",
|
|
2032
|
+
"description": "The run as a graph of its flow, one layer at a time (`<cae-layered-graph>` draws\nit). A layer shows the kinds of the tasks its function created (a kind node each,\njoined to the ones it waits for) and the functions it called (a function node each,\nholding their tasks); nodes created in one loop are drawn in a loop box, with its\nlast pass (\"up to 3 passes\") and, when its units ran different numbers of passes,\nhow many ran each (\"1 pass: 4 | 2 passes: 1\"); a nested loop's box is inside it, and\na dotted edge inside each box, from its last layer back to its first, is the return\nto its next pass. A kind node names who runs its tasks (✦ and an accent: an agent\ntask; ⚙: a Python task); a function node and a loop box carry the mark of an inner\nview (their layer, their passes). Inside a node, one mark per unit, at the same place\nin every node, so a unit can be followed across the layer: a task in a kind node, a\nflow call in a function node; in a loop box, the unit's latest pass, with the number\nof passes it ran when more than 1. A mark of several tasks shows the most severe\nstate among them (failed, running, not started, waiting, skipped, done); a flow\ncall's mark counts every task of it and of the flow calls it started, and its own\nerror (raised or closed) as failed. A node's count is its tasks done of its tasks,\nwith the others by state, and a function node names its flow calls that stopped\nwith an error. A problem has a square mark (failed: red; not started: hatched),\nevery other state a round one. Above 200 marks, a node shows a bar of its counts and\nnames its failed marks. A solid edge waits for an output; a dashed edge was created\nafter a result; an edge from outside the layer starts at a named stub.\n\nA click selects a mark, a node or a loop box (`sel`); the card beside it shows its\nfacts and links to where it leads: a mark to its task detail, a kind node to its\ntasks, a function node to its layer, a loop box to its passes. A double click, or\nEnter, follows the first of them. Hovering or focusing a mark highlights its unit\nand the tasks joined to it, as the selected mark does. The graph opens on the first\nlayer with more than one node (a static flow's kinds), or on a single function node\nwhose flow call raised; a layer the run does not have opens that one, with a line\nnaming it, and the view route is set right in place (a function named by its qualified\nname alone opens its layer when the run reaches it by one flow path). A loop's\npasses are a row per unit and a column per node and pass, a nested loop's passes as\na group of columns inside each pass of the outer one, the units sortable by number\nof passes or by status (`<cae-mark-matrix>`). The breadcrumb, shown on every layer\nbelow the top (a loop named by its file and line), and Escape go back up. On a\nnarrow screen the graph runs top to bottom. \"Graph | Table\" changes the view; in a\nloop's passes, \"Graph\" opens the layer the loop is in, with its box selected. With\n`controls` false, the graph is only shown: no outline, no \"Show all inside\" and\n\"Hide all inside\", no zoom buttons and no \"Graph | Table\".\nA height set on the element (or given it by a flex or grid container) is the\ngraph's, less the outline's line above it: the drawing fits in it.",
|
|
2080
2033
|
"name": "CaPipelineGraph",
|
|
2081
2034
|
"members": [
|
|
2082
2035
|
{
|
|
@@ -2130,6 +2083,17 @@
|
|
|
2130
2083
|
"description": "The run is running: tasks still pending are waiting; once it is over, they did not run.",
|
|
2131
2084
|
"attribute": "live"
|
|
2132
2085
|
},
|
|
2086
|
+
{
|
|
2087
|
+
"kind": "field",
|
|
2088
|
+
"name": "controls",
|
|
2089
|
+
"privacy": "public",
|
|
2090
|
+
"type": {
|
|
2091
|
+
"text": "boolean"
|
|
2092
|
+
},
|
|
2093
|
+
"default": "true",
|
|
2094
|
+
"description": "The outline, \"Show all inside\" and \"Hide all inside\", the zoom buttons and \"Graph | Table\"; false for a graph that is only shown.",
|
|
2095
|
+
"attribute": "controls"
|
|
2096
|
+
},
|
|
2133
2097
|
{
|
|
2134
2098
|
"kind": "field",
|
|
2135
2099
|
"name": "layer",
|
|
@@ -2794,6 +2758,15 @@
|
|
|
2794
2758
|
"description": "The run is running: tasks still pending are waiting; once it is over, they did not run.",
|
|
2795
2759
|
"fieldName": "live"
|
|
2796
2760
|
},
|
|
2761
|
+
{
|
|
2762
|
+
"name": "controls",
|
|
2763
|
+
"type": {
|
|
2764
|
+
"text": "boolean"
|
|
2765
|
+
},
|
|
2766
|
+
"default": "true",
|
|
2767
|
+
"description": "The outline, \"Show all inside\" and \"Hide all inside\", the zoom buttons and \"Graph | Table\"; false for a graph that is only shown.",
|
|
2768
|
+
"fieldName": "controls"
|
|
2769
|
+
},
|
|
2797
2770
|
{
|
|
2798
2771
|
"name": "layer",
|
|
2799
2772
|
"type": {
|
|
@@ -4852,7 +4825,7 @@
|
|
|
4852
4825
|
"kind": "method",
|
|
4853
4826
|
"name": "trendsLabel",
|
|
4854
4827
|
"privacy": "private",
|
|
4855
|
-
"description": "The run button's label on the trends page: its name,
|
|
4828
|
+
"description": "The run button's label on the trends page: its name, what it shows in its tooltip."
|
|
4856
4829
|
},
|
|
4857
4830
|
{
|
|
4858
4831
|
"kind": "method",
|
|
@@ -4897,6 +4870,25 @@
|
|
|
4897
4870
|
}
|
|
4898
4871
|
}
|
|
4899
4872
|
]
|
|
4873
|
+
},
|
|
4874
|
+
{
|
|
4875
|
+
"kind": "method",
|
|
4876
|
+
"name": "shownLine",
|
|
4877
|
+
"privacy": "private",
|
|
4878
|
+
"return": {
|
|
4879
|
+
"type": {
|
|
4880
|
+
"text": "string"
|
|
4881
|
+
}
|
|
4882
|
+
},
|
|
4883
|
+
"parameters": [
|
|
4884
|
+
{
|
|
4885
|
+
"name": "d",
|
|
4886
|
+
"type": {
|
|
4887
|
+
"text": "RunDerived"
|
|
4888
|
+
}
|
|
4889
|
+
}
|
|
4890
|
+
],
|
|
4891
|
+
"description": "While a filter is on, how many of the tab's rows it shows; the tab's badge counts them all."
|
|
4900
4892
|
}
|
|
4901
4893
|
],
|
|
4902
4894
|
"attributes": [
|
|
@@ -6389,6 +6381,15 @@
|
|
|
6389
6381
|
"default": "[]",
|
|
6390
6382
|
"description": "The task's journal rows (finished tries): each round then says how it ended."
|
|
6391
6383
|
},
|
|
6384
|
+
{
|
|
6385
|
+
"kind": "field",
|
|
6386
|
+
"name": "shownWho",
|
|
6387
|
+
"type": {
|
|
6388
|
+
"text": "Who | null"
|
|
6389
|
+
},
|
|
6390
|
+
"default": "null",
|
|
6391
|
+
"description": "Who the page names already (a task's header): each round's head shows only the coding agent, model and role that differ."
|
|
6392
|
+
},
|
|
6392
6393
|
{
|
|
6393
6394
|
"kind": "field",
|
|
6394
6395
|
"name": "mode",
|
|
@@ -6830,6 +6831,24 @@
|
|
|
6830
6831
|
"kind": "javascript-module",
|
|
6831
6832
|
"path": "src/elements/task/header.ts",
|
|
6832
6833
|
"declarations": [
|
|
6834
|
+
{
|
|
6835
|
+
"kind": "function",
|
|
6836
|
+
"name": "taskWho",
|
|
6837
|
+
"return": {
|
|
6838
|
+
"type": {
|
|
6839
|
+
"text": "Who"
|
|
6840
|
+
}
|
|
6841
|
+
},
|
|
6842
|
+
"parameters": [
|
|
6843
|
+
{
|
|
6844
|
+
"name": "c",
|
|
6845
|
+
"type": {
|
|
6846
|
+
"text": "Pick<TaskContext, 'detail' | 'launches'>"
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
6849
|
+
],
|
|
6850
|
+
"description": "Who ran the task, as its header names it: the running session's agent, model and role, else the latest attempt's."
|
|
6851
|
+
},
|
|
6833
6852
|
{
|
|
6834
6853
|
"kind": "function",
|
|
6835
6854
|
"name": "taskHeader",
|
|
@@ -6857,11 +6876,18 @@
|
|
|
6857
6876
|
"text": "(query: string, nth: number) => void"
|
|
6858
6877
|
}
|
|
6859
6878
|
}
|
|
6860
|
-
]
|
|
6861
|
-
"description": "The header of task `key`. `onSearch(query, nth)` is called when the reader\npicks one of its web searches (the nth with that query)."
|
|
6879
|
+
]
|
|
6862
6880
|
}
|
|
6863
6881
|
],
|
|
6864
6882
|
"exports": [
|
|
6883
|
+
{
|
|
6884
|
+
"kind": "js",
|
|
6885
|
+
"name": "taskWho",
|
|
6886
|
+
"declaration": {
|
|
6887
|
+
"name": "taskWho",
|
|
6888
|
+
"module": "src/elements/task/header.ts"
|
|
6889
|
+
}
|
|
6890
|
+
},
|
|
6865
6891
|
{
|
|
6866
6892
|
"kind": "js",
|
|
6867
6893
|
"name": "taskHeader",
|
|
@@ -7339,7 +7365,7 @@
|
|
|
7339
7365
|
}
|
|
7340
7366
|
}
|
|
7341
7367
|
],
|
|
7342
|
-
"description": "What the task wrote: its output files,
|
|
7368
|
+
"description": "What the task wrote: its output files, tokens and cost, and the later tasks."
|
|
7343
7369
|
}
|
|
7344
7370
|
],
|
|
7345
7371
|
"exports": [
|
|
@@ -16,6 +16,8 @@ export interface JournalColumnsContext {
|
|
|
16
16
|
}
|
|
17
17
|
/** A stop as a short column label: a task that never ran is just "not started"; the cause goes to the reason. */
|
|
18
18
|
export declare function shortStop(stop: string | null | undefined): string;
|
|
19
|
+
/** The one identity every attempt that ran authenticated as alone; '' when they differ or none is known. */
|
|
20
|
+
export declare function sharedIdentity(journal: readonly JournalRow[]): string;
|
|
19
21
|
/** The columns of the history. */
|
|
20
22
|
export declare function journalColumns(ctx: JournalColumnsContext): DataColumn<JournalRow>[];
|
|
21
23
|
//# sourceMappingURL=journal-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-columns.d.ts","sourceRoot":"","sources":["../../src/adapters/journal-columns.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4C,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAcnE,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3C,iGAAiG;IACjG,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,mEAAmE;IACnE,IAAI,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,mIAAmI;IACnI,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,iHAAiH;AACjH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAEjE;
|
|
1
|
+
{"version":3,"file":"journal-columns.d.ts","sourceRoot":"","sources":["../../src/adapters/journal-columns.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4C,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAcnE,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3C,iGAAiG;IACjG,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,mEAAmE;IACnE,IAAI,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,mIAAmI;IACnI,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,iHAAiH;AACjH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAEjE;AAKD,4GAA4G;AAC5G,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CAIrE;AAiBD,kCAAkC;AAClC,wBAAgB,cAAc,CAAC,GAAG,EAAE,qBAAqB,GAAG,UAAU,CAAC,UAAU,CAAC,EAAE,CA8JnF"}
|
|
@@ -18,9 +18,17 @@ import { attemptFacts, correctionCount } from './filters.js';
|
|
|
18
18
|
export function shortStop(stop) {
|
|
19
19
|
return stop === 'invalid_input' ? outcomeLabel('not_started') : stopLabel(stop);
|
|
20
20
|
}
|
|
21
|
-
/** The
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/** The identities an attempt authenticated as, in order; both when a model switch changed it. */
|
|
22
|
+
const identities = (e) => [...new Set([...(e.hops ?? []).map((h) => h.credential), e.credential].filter((c) => !!c))];
|
|
23
|
+
/** The one identity every attempt that ran authenticated as alone; '' when they differ or none is known. */
|
|
24
|
+
export function sharedIdentity(journal) {
|
|
25
|
+
const seen = new Set(journal.filter(isLaunched).map((e) => identities(e).join('\n')));
|
|
26
|
+
const [only] = seen;
|
|
27
|
+
return seen.size === 1 && only && !only.includes('\n') ? only : '';
|
|
28
|
+
}
|
|
29
|
+
/** The identity the attempt authenticated as (both when a model switch changed it), unless `shared`: then the column's header names it. */
|
|
30
|
+
function identity(e, shared) {
|
|
31
|
+
const ids = identities(e);
|
|
24
32
|
if (!ids.length)
|
|
25
33
|
return nothing;
|
|
26
34
|
// The subscription usage the attempt's first session started at, when the agent reported one.
|
|
@@ -30,6 +38,8 @@ function identity(e) {
|
|
|
30
38
|
const own = start && ids.length === 1 && (start.credential ?? '') === ids[0];
|
|
31
39
|
const shown = start ? (own ? readingShort(start) : accountReading(start)) : '';
|
|
32
40
|
const tips = [tip, ...ids.map(credentialTip)].filter(Boolean).join('\n');
|
|
41
|
+
if (shared)
|
|
42
|
+
return start ? html `<span class="sub" title=${tips || nothing}><span class="q">${shown}</span></span>` : nothing;
|
|
33
43
|
return html `<span class="sub" title=${tips || nothing}>${ids.map((c) => credentialLabel(c)).join(' → ')}${start ? html ` <span class="q">${shown}</span>` : nothing}</span>`;
|
|
34
44
|
}
|
|
35
45
|
/** The columns of the history. */
|
|
@@ -37,6 +47,8 @@ export function journalColumns(ctx) {
|
|
|
37
47
|
const maxWall = Math.max(1, ...ctx.rows.map((e) => e.wall_s || 0));
|
|
38
48
|
const tries = attemptFacts(ctx.journal);
|
|
39
49
|
const index = new Map(ctx.journal.map((r, i) => [r, i]));
|
|
50
|
+
// Every attempt ran as one identity: the header names it once, the rows do not.
|
|
51
|
+
const shared = sharedIdentity(ctx.journal);
|
|
40
52
|
/** The attempt that later did the task, after this one failed (0: none). */
|
|
41
53
|
const laterTry = (e) => {
|
|
42
54
|
const f = tries.get(e.key);
|
|
@@ -113,10 +125,11 @@ export function journalColumns(ctx) {
|
|
|
113
125
|
},
|
|
114
126
|
{
|
|
115
127
|
id: 'agent',
|
|
116
|
-
header: msg('Agent, model, identity'),
|
|
128
|
+
header: shared ? msg('Agent, model') : msg('Agent, model, identity'),
|
|
129
|
+
...(shared ? { tip: [msg(str `Identity: ${credentialLabel(shared)}`), credentialTip(shared)].filter(Boolean).join('\n') } : {}),
|
|
117
130
|
width: 'minmax(150px,1fr)',
|
|
118
131
|
cell: (e) => html `<span class="jmono jdim two" title=${facts(e.route, modelSwitch(e.hops, null, e.skipped_hops)) || nothing}>${isLaunched(e)
|
|
119
|
-
? html `<span>${[e.agent, e.model].filter(Boolean).join(' / ') || '—'}</span>${identity(e)}`
|
|
132
|
+
? html `<span>${[e.agent, e.model].filter(Boolean).join(' / ') || '—'}</span>${identity(e, shared)}`
|
|
120
133
|
: '—'}</span>`,
|
|
121
134
|
},
|
|
122
135
|
{
|
|
@@ -174,7 +187,7 @@ export function journalColumns(ctx) {
|
|
|
174
187
|
>${safetyStopCount(stops.length)}</span
|
|
175
188
|
>`
|
|
176
189
|
: nothing}${unread
|
|
177
|
-
? html ` <span class="unread nw" title=${msg(str `
|
|
190
|
+
? html ` <span class="unread nw" title=${msg(str `Events this contraagent version could not read (unread_events): ${unread}`)}
|
|
178
191
|
><span aria-hidden="true">⚠</span> ${msg('Unrecognized events')}</span
|
|
179
192
|
>`
|
|
180
193
|
: nothing}${unknown
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal-columns.js","sourceRoot":"","sources":["../../src/adapters/journal-columns.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,kFAAkF;AAClF,6EAA6E;AAC7E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAqC,MAAM,kBAAkB,CAAC;AAE/G,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAClJ,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CAAC;iBACpH,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC;cAChC;oBACJ,CAAC,CAAC,OAAO,GAAG,MAAM;oBAClB,CAAC,CAAC,IAAI,CAAA,kCAAkC,GAAG,CAAC,GAAG,CAAA,mEAAmE,MAAM,EAAE,CAAC;mDAClF,GAAG,CAAC,qBAAqB,CAAC;cAC/D;oBACJ,CAAC,CAAC,OAAO,GAAG,OAAO;oBACnB,CAAC,CAAC,IAAI,CAAA,kCAAkC,OAAO,CAAC,GAAG,sCAAsC,OAAO,CAAC,KAAK,SAAS;oBAC/G,CAAC,CAAC,OAAO,SAAS,CAAC;YACvB,CAAC;SACF;QACD,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -18,9 +18,10 @@ export interface Kpis {
|
|
|
18
18
|
/** Tries after a task's first, and the tasks they belong to. */
|
|
19
19
|
retries: number;
|
|
20
20
|
retriedTasks: number;
|
|
21
|
-
/** The keys of the tasks that were retried / had fix-ups (to open one directly when it is the only one). */
|
|
21
|
+
/** The keys of the tasks that were retried / had fix-ups / switched models (to name or open one directly when it is the only one). */
|
|
22
22
|
retriedKeys: string[];
|
|
23
23
|
fixupKeys: string[];
|
|
24
|
+
switchKeys: string[];
|
|
24
25
|
/** Fix-ups (sessions resumed with check errors), and the tasks that had any. */
|
|
25
26
|
fixups: number;
|
|
26
27
|
fixupTasks: number;
|
|
@@ -41,7 +42,11 @@ export declare function kpiAction(id: string): KpiAction;
|
|
|
41
42
|
* The tiles: tasks (with `d` from the plan; from the journal alone otherwise),
|
|
42
43
|
* attempts, cost and tokens (when reported), failed attempts, not started,
|
|
43
44
|
* agent time, retries, corrections and model switches. Neutral by default:
|
|
44
|
-
* only a problem count above 0 takes its tone (`problemTone`).
|
|
45
|
+
* only a problem count above 0 takes its tone (`problemTone`). A tile's lines
|
|
46
|
+
* add facts the value does not give: a 0 has none. `highestCost: false` leaves
|
|
47
|
+
* the kind with the highest cost out of the cost tile.
|
|
45
48
|
*/
|
|
46
|
-
export declare function kpiTiles(journal: readonly JournalRow[], d: Pick<RunDerived, 'outcomes' | 'counts'
|
|
49
|
+
export declare function kpiTiles(journal: readonly JournalRow[], d: Pick<RunDerived, 'outcomes' | 'counts'>, opts?: {
|
|
50
|
+
highestCost?: boolean;
|
|
51
|
+
}): StatTile[];
|
|
47
52
|
//# sourceMappingURL=kpi-tiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kpi-tiles.d.ts","sourceRoot":"","sources":["../../src/adapters/kpi-tiles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmF,KAAK,UAAU,EAAE,KAAK,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAEvK,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAU5D;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACnB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"kpi-tiles.d.ts","sourceRoot":"","sources":["../../src/adapters/kpi-tiles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmF,KAAK,UAAU,EAAE,KAAK,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAEvK,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAU5D;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACnB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,sIAAsI;IACtI,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,IAAI,CA2BzD;AAED,kIAAkI;AAClI,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,kEAAkE;AAClE,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAE/C;AAiDD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,CAAC,EAAE,IAAI,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,QAAQ,EAAE,CAqErJ"}
|
|
@@ -35,6 +35,7 @@ export function kpis(journal) {
|
|
|
35
35
|
fixupTasks: tasks(fixed),
|
|
36
36
|
switches: switched.reduce((a, e) => a + (e.hops || []).length - 1, 0),
|
|
37
37
|
switchTasks: tasks(switched),
|
|
38
|
+
switchKeys: keys(switched),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
/** A tile's action id (`StatTile.action.id`) as what it opens. */
|
|
@@ -65,21 +66,40 @@ function notStartedCauses(outcomes) {
|
|
|
65
66
|
}
|
|
66
67
|
/** The history filtered by `stop`, named `label`. */
|
|
67
68
|
const history = (stop, label) => ({ id: `history:${stop}`, label });
|
|
68
|
-
/** The
|
|
69
|
-
function
|
|
69
|
+
/** The one task behind a count, by key and name; undefined when there are several. */
|
|
70
|
+
function onlyTask(journal, keys) {
|
|
70
71
|
const only = keys.length === 1 ? keys[0] : undefined;
|
|
71
72
|
if (!only)
|
|
72
|
-
return
|
|
73
|
+
return undefined;
|
|
73
74
|
const row = journal.find((r) => r.key === only);
|
|
74
|
-
return {
|
|
75
|
+
return { key: only, name: row ? kindUnit(row) : only };
|
|
76
|
+
}
|
|
77
|
+
/** The tasks behind a count: the task itself when it is one (named), else the history filtered to them (`label`). */
|
|
78
|
+
function show(journal, keys, stop, label) {
|
|
79
|
+
const one = onlyTask(journal, keys);
|
|
80
|
+
return one ? { id: `task:${one.key}`, label: one.name } : history(stop, label);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The line under a count of events: the one task they belong to by name, else the
|
|
84
|
+
* count of tasks (`many`) when it differs from the count of events; none at 0.
|
|
85
|
+
*/
|
|
86
|
+
function tasksLine(journal, count, keys, many) {
|
|
87
|
+
if (!count)
|
|
88
|
+
return [];
|
|
89
|
+
const one = onlyTask(journal, keys);
|
|
90
|
+
if (one)
|
|
91
|
+
return [[one.name]];
|
|
92
|
+
return keys.length === count ? [] : [[many(keys.length)]];
|
|
75
93
|
}
|
|
76
94
|
/**
|
|
77
95
|
* The tiles: tasks (with `d` from the plan; from the journal alone otherwise),
|
|
78
96
|
* attempts, cost and tokens (when reported), failed attempts, not started,
|
|
79
97
|
* agent time, retries, corrections and model switches. Neutral by default:
|
|
80
|
-
* only a problem count above 0 takes its tone (`problemTone`).
|
|
98
|
+
* only a problem count above 0 takes its tone (`problemTone`). A tile's lines
|
|
99
|
+
* add facts the value does not give: a 0 has none. `highestCost: false` leaves
|
|
100
|
+
* the kind with the highest cost out of the cost tile.
|
|
81
101
|
*/
|
|
82
|
-
export function kpiTiles(journal, d) {
|
|
102
|
+
export function kpiTiles(journal, d, opts = {}) {
|
|
83
103
|
const k = kpis(journal);
|
|
84
104
|
const { outcomes, counts: c } = d;
|
|
85
105
|
// The total is neutral; the parts that are problems carry their own status.
|
|
@@ -100,13 +120,13 @@ export function kpiTiles(journal, d) {
|
|
|
100
120
|
sub: [factList(k.launches === 1 ? msg('1 agent session') : msg(str `${k.launches} agent sessions`), k.python === 1 ? msg('1 Python task attempt') : msg(str `${k.python} Python task attempts`))],
|
|
101
121
|
tip: msg('Attempts that ran, retries included (journal.jsonl)'),
|
|
102
122
|
},
|
|
103
|
-
...spendTiles(journal),
|
|
123
|
+
...spendTiles(journal, opts.highestCost ?? true),
|
|
104
124
|
{
|
|
105
125
|
id: 'bad',
|
|
106
126
|
tone: problemTone(k.bad, 'failed'),
|
|
107
127
|
label: msg('Failed attempts'),
|
|
108
128
|
value: k.bad,
|
|
109
|
-
sub: [
|
|
129
|
+
sub: [],
|
|
110
130
|
...(k.bad ? { action: history('bad', msg('Failed attempts in history')) } : {}),
|
|
111
131
|
},
|
|
112
132
|
{
|
|
@@ -114,7 +134,7 @@ export function kpiTiles(journal, d) {
|
|
|
114
134
|
tone: problemTone(c.not_started, 'attention'),
|
|
115
135
|
label: msg('Not started'),
|
|
116
136
|
value: c.not_started,
|
|
117
|
-
sub:
|
|
137
|
+
sub: c.not_started ? [notStartedCauses(outcomes.values())] : [],
|
|
118
138
|
...(c.not_started ? { action: history('invalid_input', msg('Tasks not started in history')) } : {}),
|
|
119
139
|
},
|
|
120
140
|
{
|
|
@@ -128,7 +148,7 @@ export function kpiTiles(journal, d) {
|
|
|
128
148
|
id: 'retry',
|
|
129
149
|
label: msg('Retries'),
|
|
130
150
|
value: k.retries,
|
|
131
|
-
sub:
|
|
151
|
+
sub: tasksLine(journal, k.retries, k.retriedKeys, (n) => msg(str `${n} tasks retried`)),
|
|
132
152
|
tip: retryTip(),
|
|
133
153
|
...(k.retries ? { action: show(journal, k.retriedKeys, 'retried', msg('Retried tasks in history')) } : {}),
|
|
134
154
|
},
|
|
@@ -136,7 +156,7 @@ export function kpiTiles(journal, d) {
|
|
|
136
156
|
id: 'ct',
|
|
137
157
|
label: msg('Corrections'),
|
|
138
158
|
value: k.fixups,
|
|
139
|
-
sub:
|
|
159
|
+
sub: tasksLine(journal, k.fixups, k.fixupKeys, (n) => msg(str `${n} tasks with corrections`)),
|
|
140
160
|
tip: correctionTip(),
|
|
141
161
|
...(k.fixups ? { action: show(journal, k.fixupKeys, 'fixup', msg('Attempts with corrections in history')) } : {}),
|
|
142
162
|
},
|
|
@@ -144,13 +164,13 @@ export function kpiTiles(journal, d) {
|
|
|
144
164
|
id: 'fo',
|
|
145
165
|
label: msg('Model switches'),
|
|
146
166
|
value: k.switches,
|
|
147
|
-
sub:
|
|
167
|
+
sub: tasksLine(journal, k.switches, k.switchKeys, (n) => msg(str `${n} tasks with model switches`)),
|
|
148
168
|
tip: modelSwitchTip(),
|
|
149
169
|
},
|
|
150
170
|
];
|
|
151
171
|
}
|
|
152
|
-
/** Cost and tokens, when any attempt reported them
|
|
153
|
-
function spendTiles(journal) {
|
|
172
|
+
/** Cost and tokens, when any attempt reported them; the cost tile names the kind with the highest cost when `highest`. */
|
|
173
|
+
function spendTiles(journal, highest) {
|
|
154
174
|
const s = spendOf(journal);
|
|
155
175
|
if (!s)
|
|
156
176
|
return [];
|
|
@@ -160,7 +180,7 @@ function spendTiles(journal) {
|
|
|
160
180
|
id: 'cost',
|
|
161
181
|
label: msg('Cost'),
|
|
162
182
|
value: usd(s.cost),
|
|
163
|
-
sub: top && top.share !== null ? [[msg(str `Highest cost: ${top.kind}`)], factList(usd(top.spend.cost), msg(str `${Math.round(top.share * 100)}% of the total`))] : [[]],
|
|
183
|
+
sub: highest && top && top.share !== null ? [[msg(str `Highest cost: ${top.kind}`)], factList(usd(top.spend.cost), msg(str `${Math.round(top.share * 100)}% of the total`))] : [[]],
|
|
164
184
|
tip: msg('Reported by the coding agent'),
|
|
165
185
|
},
|
|
166
186
|
{
|