@mossbear/protocol 0.1.0-alpha.48 → 0.1.0-alpha.50
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/bundleSlug.d.ts +24 -0
- package/dist/bundleSlug.d.ts.map +1 -1
- package/dist/bundleSlug.js +33 -0
- package/dist/bundleSlug.js.map +1 -1
- package/dist/bundleSlug.test.js +32 -1
- package/dist/bundleSlug.test.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +260 -54
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +226 -22
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.test.js +29 -11
- package/dist/schemas.test.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/whatSyncs.d.ts +74 -0
- package/dist/whatSyncs.d.ts.map +1 -0
- package/dist/whatSyncs.js +216 -0
- package/dist/whatSyncs.js.map +1 -0
- package/dist/whatSyncs.test.d.ts +2 -0
- package/dist/whatSyncs.test.d.ts.map +1 -0
- package/dist/whatSyncs.test.js +104 -0
- package/dist/whatSyncs.test.js.map +1 -0
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -35,6 +35,27 @@ export declare const GuidingTierSchema: v.PicklistSchema<["pattern_match", "cach
|
|
|
35
35
|
* of work from wiring the hooks.
|
|
36
36
|
*/
|
|
37
37
|
export declare const PlatformKindSchema: v.PicklistSchema<["claude_code", "codex", "opencode", "cursor", "copilot", "other"], undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Which agent harness produced a run — the CLI's harness registry, on the wire.
|
|
40
|
+
*
|
|
41
|
+
* **Deliberately not {@link PlatformKindSchema}, and not a widening of it.**
|
|
42
|
+
* That picklist answers a different question — which transcript format a
|
|
43
|
+
* *suggestion* was extracted from — over a set that includes harnesses
|
|
44
|
+
* `mossbear init` cannot wire (`cursor`, `copilot`) and excludes one it can
|
|
45
|
+
* (`antigravity`). Two questions, two sets; collapsing them would need both a
|
|
46
|
+
* new member and an overloaded meaning.
|
|
47
|
+
*
|
|
48
|
+
* Declared here rather than in the CLI so there is exactly one list: the CLI's
|
|
49
|
+
* `HarnessId` is `v.InferOutput` of this, imported as a type, so a manifest for
|
|
50
|
+
* a harness this schema does not name fails typecheck instead of failing at the
|
|
51
|
+
* sync boundary. The import is type-only on purpose — `mossbear-hook` runs once
|
|
52
|
+
* per agent tool call, and nothing here may enter its runtime import graph.
|
|
53
|
+
*
|
|
54
|
+
* Rides `metadata.harness` on each action (see {@link ActionMetadataSchema});
|
|
55
|
+
* the server reduces a session's actions to one value and writes `runs.harness`.
|
|
56
|
+
*/
|
|
57
|
+
export declare const HarnessIdSchema: v.PicklistSchema<["claude_code", "codex", "antigravity", "opencode"], undefined>;
|
|
58
|
+
export type HarnessId = v.InferOutput<typeof HarnessIdSchema>;
|
|
38
59
|
export declare const GuideFileFormatSchema: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
|
|
39
60
|
/** Max serialized size (UTF-8 bytes) of an imported guide file's raw content. */
|
|
40
61
|
export declare const MAX_RAW_GUIDE_CONTENT_BYTES: number;
|
|
@@ -1269,7 +1290,7 @@ export declare const ContextItemVersionResponseSchema: v.ObjectSchema<{
|
|
|
1269
1290
|
export declare const DEFAULT_VERSIONS_LIMIT = 50;
|
|
1270
1291
|
export declare const MAX_VERSIONS_LIMIT = 200;
|
|
1271
1292
|
export declare const ProposalCitationSchema: v.ObjectSchema<{
|
|
1272
|
-
readonly
|
|
1293
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
1273
1294
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1274
1295
|
readonly summary: v.StringSchema<undefined>;
|
|
1275
1296
|
}, undefined>;
|
|
@@ -1413,9 +1434,9 @@ export declare const TokenUsageSchema: v.ObjectSchema<{
|
|
|
1413
1434
|
readonly cacheReadTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1414
1435
|
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1415
1436
|
}, undefined>;
|
|
1416
|
-
export declare const
|
|
1417
|
-
readonly
|
|
1418
|
-
readonly
|
|
1437
|
+
export declare const DashboardSessionUsageSchema: v.ObjectSchema<{
|
|
1438
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1439
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1419
1440
|
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
1420
1441
|
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1421
1442
|
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1432,8 +1453,8 @@ export declare const SkillUsageEntrySchema: v.ObjectSchema<{
|
|
|
1432
1453
|
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1433
1454
|
}, undefined>;
|
|
1434
1455
|
export declare const DashboardSkillUsageSchema: v.ObjectSchema<{
|
|
1435
|
-
readonly
|
|
1436
|
-
readonly
|
|
1456
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1457
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1437
1458
|
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
1438
1459
|
readonly skillName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1439
1460
|
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -1443,7 +1464,7 @@ export declare const DashboardSkillUsageSchema: v.ObjectSchema<{
|
|
|
1443
1464
|
}, undefined>;
|
|
1444
1465
|
export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
1445
1466
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>, undefined>;
|
|
1446
|
-
readonly
|
|
1467
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1447
1468
|
/**
|
|
1448
1469
|
* Optional on the wire, but **required to be graded**: runs are the only
|
|
1449
1470
|
* grading unit, and an action with no session joins no run.
|
|
@@ -1451,12 +1472,12 @@ export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
|
1451
1472
|
* tightening it would 400 a whole batch — a poison pill for any queue file
|
|
1452
1473
|
* carrying one — and no shipped CLI omits it: the hook always writes a
|
|
1453
1474
|
* session id, falling back to the literal `'unknown'`
|
|
1454
|
-
* (`packages/cli/src/hook-logger.ts:
|
|
1475
|
+
* (`packages/cli/src/hook-logger.ts:364`), which groups into a run like any
|
|
1455
1476
|
* other. A direct API caller that omits it gets its actions stored and
|
|
1456
1477
|
* ungraded, and the server logs `sync.actions_without_session` so the case is
|
|
1457
1478
|
* visible rather than silent.
|
|
1458
1479
|
*/
|
|
1459
|
-
readonly
|
|
1480
|
+
readonly agentSessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1460
1481
|
readonly actionType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>]>;
|
|
1461
1482
|
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
|
|
1462
1483
|
readonly filePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
@@ -1473,6 +1494,8 @@ export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
|
1473
1494
|
[x: string]: unknown;
|
|
1474
1495
|
}, "metadata.repoId must be repo_ followed by 32 hex chars">, v.CheckAction<{
|
|
1475
1496
|
[x: string]: unknown;
|
|
1497
|
+
}, "metadata.harness must be a known harness id">, v.CheckAction<{
|
|
1498
|
+
[x: string]: unknown;
|
|
1476
1499
|
}, "metadata.outcome must be { status: \"ok\" | \"error\", errorClass?: string, exitCode?: number } with no other keys">]>, undefined>, undefined>;
|
|
1477
1500
|
/**
|
|
1478
1501
|
* Transcript evidence for this action. See {@link ActionNarrationSchema}.
|
|
@@ -1513,7 +1536,7 @@ export declare const DashboardGuideSuggestionSchema: v.ObjectSchema<{
|
|
|
1513
1536
|
readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1514
1537
|
readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
|
|
1515
1538
|
readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1516
|
-
readonly
|
|
1539
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
1517
1540
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1518
1541
|
readonly summary: v.StringSchema<undefined>;
|
|
1519
1542
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
@@ -1649,7 +1672,7 @@ export declare const CommitAnchorSchema: v.ObjectSchema<{
|
|
|
1649
1672
|
* rejected on the same line-initial fence. A separate declaration with the same
|
|
1650
1673
|
* body would be two homes for one rule and would drift the first time either
|
|
1651
1674
|
* moved. What differs is *which* prose and how much of it — the client's
|
|
1652
|
-
* concern, decided in `
|
|
1675
|
+
* concern, decided in `extractSessionSelfReport`, not the wire's.
|
|
1653
1676
|
*
|
|
1654
1677
|
* `minLength(1)` because absence has exactly one representation here: a run
|
|
1655
1678
|
* with nothing to report omits the field. An empty string would be a second
|
|
@@ -1672,17 +1695,17 @@ export declare const CommitAnchorSchema: v.ObjectSchema<{
|
|
|
1672
1695
|
* that attaches the report to the wrong batch cannot misattribute it, because
|
|
1673
1696
|
* the writer matches on this field instead of trusting placement.
|
|
1674
1697
|
*/
|
|
1675
|
-
export declare const
|
|
1698
|
+
export declare const SessionSelfReportSchema: v.ObjectSchema<{
|
|
1676
1699
|
/** The session whose closing message this is. Must be one the request closes. */
|
|
1677
|
-
readonly
|
|
1700
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1678
1701
|
/** The report itself — same content class and cap as narration. */
|
|
1679
1702
|
readonly text: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>, v.CheckAction<string, "narration must not contain a code block — code is stripped structurally on the client before upload">]>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1680
1703
|
}, undefined>;
|
|
1681
|
-
export type
|
|
1704
|
+
export type SessionSelfReport = v.InferOutput<typeof SessionSelfReportSchema>;
|
|
1682
1705
|
export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
1683
1706
|
readonly actions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1684
1707
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>, undefined>;
|
|
1685
|
-
readonly
|
|
1708
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1686
1709
|
/**
|
|
1687
1710
|
* Optional on the wire, but **required to be graded**: runs are the only
|
|
1688
1711
|
* grading unit, and an action with no session joins no run.
|
|
@@ -1690,12 +1713,12 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1690
1713
|
* tightening it would 400 a whole batch — a poison pill for any queue file
|
|
1691
1714
|
* carrying one — and no shipped CLI omits it: the hook always writes a
|
|
1692
1715
|
* session id, falling back to the literal `'unknown'`
|
|
1693
|
-
* (`packages/cli/src/hook-logger.ts:
|
|
1716
|
+
* (`packages/cli/src/hook-logger.ts:364`), which groups into a run like any
|
|
1694
1717
|
* other. A direct API caller that omits it gets its actions stored and
|
|
1695
1718
|
* ungraded, and the server logs `sync.actions_without_session` so the case is
|
|
1696
1719
|
* visible rather than silent.
|
|
1697
1720
|
*/
|
|
1698
|
-
readonly
|
|
1721
|
+
readonly agentSessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1699
1722
|
readonly actionType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>]>;
|
|
1700
1723
|
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
|
|
1701
1724
|
readonly filePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
@@ -1712,6 +1735,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1712
1735
|
[x: string]: unknown;
|
|
1713
1736
|
}, "metadata.repoId must be repo_ followed by 32 hex chars">, v.CheckAction<{
|
|
1714
1737
|
[x: string]: unknown;
|
|
1738
|
+
}, "metadata.harness must be a known harness id">, v.CheckAction<{
|
|
1739
|
+
[x: string]: unknown;
|
|
1715
1740
|
}, "metadata.outcome must be { status: \"ok\" | \"error\", errorClass?: string, exitCode?: number } with no other keys">]>, undefined>, undefined>;
|
|
1716
1741
|
/**
|
|
1717
1742
|
* Transcript evidence for this action. See {@link ActionNarrationSchema}.
|
|
@@ -1747,8 +1772,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1747
1772
|
}, undefined>, undefined>;
|
|
1748
1773
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
1749
1774
|
id?: string | undefined;
|
|
1750
|
-
runId?: string | undefined;
|
|
1751
1775
|
sessionId?: string | undefined;
|
|
1776
|
+
agentSessionId?: string | undefined;
|
|
1752
1777
|
actionType: string;
|
|
1753
1778
|
summary: string;
|
|
1754
1779
|
filePaths?: string[] | undefined;
|
|
@@ -1771,7 +1796,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1771
1796
|
readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1772
1797
|
readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
|
|
1773
1798
|
readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1774
|
-
readonly
|
|
1799
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
1775
1800
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1776
1801
|
readonly summary: v.StringSchema<undefined>;
|
|
1777
1802
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
@@ -1782,7 +1807,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1782
1807
|
reasoning?: string | undefined;
|
|
1783
1808
|
triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
|
|
1784
1809
|
sourceActionIds?: (string | {
|
|
1785
|
-
|
|
1810
|
+
agentSessionId: string;
|
|
1786
1811
|
timestamp?: string | undefined;
|
|
1787
1812
|
summary: string;
|
|
1788
1813
|
})[] | undefined;
|
|
@@ -1804,8 +1829,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1804
1829
|
status?: "dismissed" | "inferred" | "confirmed" | undefined;
|
|
1805
1830
|
}[], 100, undefined>]>, undefined>;
|
|
1806
1831
|
readonly runUsage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1807
|
-
readonly
|
|
1808
|
-
readonly
|
|
1832
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1833
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1809
1834
|
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
1810
1835
|
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1811
1836
|
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1815,8 +1840,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1815
1840
|
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1816
1841
|
}, undefined>, undefined>;
|
|
1817
1842
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
1818
|
-
|
|
1819
|
-
|
|
1843
|
+
sessionId?: string | undefined;
|
|
1844
|
+
agentSessionId: string;
|
|
1820
1845
|
usage: {
|
|
1821
1846
|
model: string;
|
|
1822
1847
|
provider?: string | undefined;
|
|
@@ -1827,8 +1852,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1827
1852
|
}[];
|
|
1828
1853
|
}[], 100, undefined>]>, undefined>;
|
|
1829
1854
|
readonly skillUsage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1830
|
-
readonly
|
|
1831
|
-
readonly
|
|
1855
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1856
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1832
1857
|
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
1833
1858
|
readonly skillName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1834
1859
|
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -1836,8 +1861,8 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1836
1861
|
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
1837
1862
|
}, undefined>, undefined>;
|
|
1838
1863
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
1839
|
-
|
|
1840
|
-
|
|
1864
|
+
sessionId?: string | undefined;
|
|
1865
|
+
agentSessionId: string;
|
|
1841
1866
|
usage: {
|
|
1842
1867
|
skillName: string;
|
|
1843
1868
|
model: string;
|
|
@@ -1945,7 +1970,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1945
1970
|
}, undefined>, undefined>;
|
|
1946
1971
|
/**
|
|
1947
1972
|
* What the agent said it did, as its own closing message — see
|
|
1948
|
-
* {@link
|
|
1973
|
+
* {@link SessionSelfReportSchema}.
|
|
1949
1974
|
*
|
|
1950
1975
|
* Rides the same batches as `commitAnchor` and for the same reason: it
|
|
1951
1976
|
* describes the *session that just ended*, and the ordinary `SessionEnd`
|
|
@@ -1960,7 +1985,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
1960
1985
|
*/
|
|
1961
1986
|
readonly selfReport: v.OptionalSchema<v.ObjectSchema<{
|
|
1962
1987
|
/** The session whose closing message this is. Must be one the request closes. */
|
|
1963
|
-
readonly
|
|
1988
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1964
1989
|
/** The report itself — same content class and cap as narration. */
|
|
1965
1990
|
readonly text: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>, v.CheckAction<string, "narration must not contain a code block — code is stripped structurally on the client before upload">]>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1966
1991
|
}, undefined>, undefined>;
|
|
@@ -1973,7 +1998,7 @@ export declare const ExtractedGuideSuggestionSchema: v.ObjectSchema<{
|
|
|
1973
1998
|
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1974
1999
|
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1975
2000
|
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
1976
|
-
readonly
|
|
2001
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
1977
2002
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1978
2003
|
readonly summary: v.StringSchema<undefined>;
|
|
1979
2004
|
}, undefined>, undefined>;
|
|
@@ -1985,7 +2010,7 @@ export declare const ExtractedSkillSuggestionSchema: v.ObjectSchema<{
|
|
|
1985
2010
|
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1986
2011
|
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1987
2012
|
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
1988
|
-
readonly
|
|
2013
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
1989
2014
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1990
2015
|
readonly summary: v.StringSchema<undefined>;
|
|
1991
2016
|
}, undefined>, undefined>;
|
|
@@ -2000,7 +2025,7 @@ export declare const ExtractedFeedbackBatchSchema: v.ObjectSchema<{
|
|
|
2000
2025
|
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2001
2026
|
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2002
2027
|
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
2003
|
-
readonly
|
|
2028
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
2004
2029
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2005
2030
|
readonly summary: v.StringSchema<undefined>;
|
|
2006
2031
|
}, undefined>, undefined>;
|
|
@@ -2012,7 +2037,7 @@ export declare const ExtractedFeedbackBatchSchema: v.ObjectSchema<{
|
|
|
2012
2037
|
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2013
2038
|
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
2014
2039
|
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
2015
|
-
readonly
|
|
2040
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
2016
2041
|
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2017
2042
|
readonly summary: v.StringSchema<undefined>;
|
|
2018
2043
|
}, undefined>, undefined>;
|
|
@@ -2037,12 +2062,12 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
2037
2062
|
* adjacency cannot do once one assistant message emits several tool calls.
|
|
2038
2063
|
*
|
|
2039
2064
|
* Optional because run logs written before this field existed must stay
|
|
2040
|
-
* readable. Sync derives an id for those from `(
|
|
2065
|
+
* readable. Sync derives an id for those from `(agentSessionId, line index)`; see
|
|
2041
2066
|
* `deriveLegacyActionId`.
|
|
2042
2067
|
*/
|
|
2043
2068
|
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2044
2069
|
readonly timestamp: v.StringSchema<undefined>;
|
|
2045
|
-
readonly
|
|
2070
|
+
readonly agentSessionId: v.StringSchema<undefined>;
|
|
2046
2071
|
readonly toolName: v.StringSchema<undefined>;
|
|
2047
2072
|
readonly filePath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2048
2073
|
readonly command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2051,7 +2076,7 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
2051
2076
|
*
|
|
2052
2077
|
* This is what makes a skill load ride the action stream instead of the
|
|
2053
2078
|
* transcript. `skill_usage` — the other place a loaded skill name is
|
|
2054
|
-
* recorded — is populated by `
|
|
2079
|
+
* recorded — is populated by `extractSessionUsage`, which returns empty unless
|
|
2055
2080
|
* `mossbear sync` is given `--transcripts-dir`, and the hook `mossbear init`
|
|
2056
2081
|
* installs never passes one. So the transcript path has no data in a normal
|
|
2057
2082
|
* session, while an action definitionally syncs.
|
|
@@ -2074,7 +2099,7 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
2074
2099
|
*
|
|
2075
2100
|
* Optional three times over: run logs written before this field existed must
|
|
2076
2101
|
* stay readable, a hook protocol other than Claude Code's may not send it,
|
|
2077
|
-
* and resolution falls back to the `<
|
|
2102
|
+
* and resolution falls back to the `<agentSessionId>.jsonl` filename convention
|
|
2078
2103
|
* when it is absent or stale.
|
|
2079
2104
|
*/
|
|
2080
2105
|
readonly transcriptPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2085,6 +2110,20 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
2085
2110
|
* sessions that ran in repo B (`run-repo-attribution`).
|
|
2086
2111
|
*/
|
|
2087
2112
|
readonly repoId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "repoId must be repo_ followed by 32 hex chars">]>, undefined>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Which harness produced this action, stamped by the logger hook from the
|
|
2115
|
+
* `--harness` flag on its own hook entry (`run-source-linking` slice 1).
|
|
2116
|
+
*
|
|
2117
|
+
* Optional twice over, and the second reading is the one that matters: run
|
|
2118
|
+
* logs written before this field existed must stay readable, **and a hook
|
|
2119
|
+
* entry that names no harness stamps nothing**. A bare `mossbear-hook` entry
|
|
2120
|
+
* resolves to the Claude Code *field map* — which is what it has always
|
|
2121
|
+
* meant, and is correct, because Codex and OpenCode send that same payload —
|
|
2122
|
+
* but it is not evidence of *which* of those harnesses invoked it. Writing
|
|
2123
|
+
* `claude_code` there would label every pre-upgrade Codex run as Claude Code,
|
|
2124
|
+
* silently, for exactly the multi-harness user this field exists for.
|
|
2125
|
+
*/
|
|
2126
|
+
readonly harness: v.OptionalSchema<v.PicklistSchema<["claude_code", "codex", "antigravity", "opencode"], undefined>, undefined>;
|
|
2088
2127
|
/**
|
|
2089
2128
|
* Whether the tool call succeeded, when the hook could tell.
|
|
2090
2129
|
*
|
|
@@ -2435,7 +2474,7 @@ export declare const MAX_GUIDE_HISTORY_REASONING_CHARS = 1200;
|
|
|
2435
2474
|
* `pattern-evidence-guide-revision` removed from the dashboard.
|
|
2436
2475
|
*/
|
|
2437
2476
|
export declare const GuideHistoryFindingSchema: v.ObjectSchema<{
|
|
2438
|
-
readonly
|
|
2477
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2439
2478
|
readonly occurredAt: v.StringSchema<undefined>;
|
|
2440
2479
|
readonly revision: v.NullableSchema<v.ObjectSchema<{
|
|
2441
2480
|
readonly bodyItemId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -2602,7 +2641,7 @@ export declare const GuideHistoryResponseSchema: v.ObjectSchema<{
|
|
|
2602
2641
|
readonly changedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2603
2642
|
}, undefined>, undefined>;
|
|
2604
2643
|
readonly findings: v.ArraySchema<v.ObjectSchema<{
|
|
2605
|
-
readonly
|
|
2644
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2606
2645
|
readonly occurredAt: v.StringSchema<undefined>;
|
|
2607
2646
|
readonly revision: v.NullableSchema<v.ObjectSchema<{
|
|
2608
2647
|
readonly bodyItemId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -2625,6 +2664,140 @@ export declare const GuideHistoryResponseSchema: v.ObjectSchema<{
|
|
|
2625
2664
|
}, undefined>;
|
|
2626
2665
|
}, undefined>;
|
|
2627
2666
|
export type GuideHistoryResponse = v.InferOutput<typeof GuideHistoryResponseSchema>;
|
|
2667
|
+
export declare const SessionGradeRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2668
|
+
readonly session: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 256, undefined>, v.CheckAction<string, "identifier must not contain control characters">]>, undefined>;
|
|
2669
|
+
readonly agent_session: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 256, undefined>, v.CheckAction<string, "identifier must not contain control characters">]>, undefined>;
|
|
2670
|
+
}, undefined>, v.CheckAction<{
|
|
2671
|
+
session?: string | undefined;
|
|
2672
|
+
agent_session?: string | undefined;
|
|
2673
|
+
}, "Pass exactly one of session or agent_session">]>;
|
|
2674
|
+
export type SessionGradeRequest = v.InferOutput<typeof SessionGradeRequestSchema>;
|
|
2675
|
+
/**
|
|
2676
|
+
* Which of four states the run's grade is in — a required field rather than
|
|
2677
|
+
* something a reader infers from a null `grade`.
|
|
2678
|
+
*
|
|
2679
|
+
* The four are four different sentences, and the absence of a grade is never
|
|
2680
|
+
* one of them on its own:
|
|
2681
|
+
*
|
|
2682
|
+
* - `pending` — no grade yet, and the grading sweep can still pick the run
|
|
2683
|
+
* up (it is open, or closed inside the grading window). "Not graded yet"
|
|
2684
|
+
* is honest here and only here.
|
|
2685
|
+
* - `graded` — a grader judged it; `grade` carries what it said.
|
|
2686
|
+
* - `nothing_to_grade` — a grader ran and found nothing to judge: no
|
|
2687
|
+
* gradeable actions, or no guides in the agent's context. The record
|
|
2688
|
+
* cannot tell those two apart, so neither can the sentence.
|
|
2689
|
+
* - `expired` — no grade, and the run closed too long ago for the sweep to
|
|
2690
|
+
* select it. It will never be graded, and telling a reader to wait would
|
|
2691
|
+
* promise work the system does not do.
|
|
2692
|
+
*/
|
|
2693
|
+
export declare const SessionGradeStateSchema: v.PicklistSchema<["pending", "graded", "nothing_to_grade", "expired"], undefined>;
|
|
2694
|
+
export type SessionGradeState = v.InferOutput<typeof SessionGradeStateSchema>;
|
|
2695
|
+
/**
|
|
2696
|
+
* The run-level verdict vocabulary — `aligned | misaligned | not_applicable`.
|
|
2697
|
+
* `not_applicable` is a guide that was in the agent's context and that the
|
|
2698
|
+
* session never engaged. It is not `unguided`, which is an action-level word,
|
|
2699
|
+
* and neither is ever restated in terms of the other.
|
|
2700
|
+
*/
|
|
2701
|
+
export declare const SessionGuideVerdictValueSchema: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
2702
|
+
export type SessionGuideVerdictValue = v.InferOutput<typeof SessionGuideVerdictValueSchema>;
|
|
2703
|
+
/** One guide's verdict for the run, with the grader's reasoning wrapped. */
|
|
2704
|
+
export declare const SessionGradeGuideSchema: v.ObjectSchema<{
|
|
2705
|
+
readonly guideId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2706
|
+
readonly title: v.StringSchema<undefined>;
|
|
2707
|
+
readonly verdict: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
2708
|
+
/**
|
|
2709
|
+
* The grader's reasoning, **already wrapped in the response's untrusted
|
|
2710
|
+
* markers** — model-authored text derived from a transcript, delimited at the
|
|
2711
|
+
* source so a consumer cannot skip the markers. Empty between the markers
|
|
2712
|
+
* when the row recorded none.
|
|
2713
|
+
*/
|
|
2714
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
2715
|
+
}, undefined>;
|
|
2716
|
+
export type SessionGradeGuide = v.InferOutput<typeof SessionGradeGuideSchema>;
|
|
2717
|
+
export declare const SessionGradeSchema: v.ObjectSchema<{
|
|
2718
|
+
/** The grader's one-paragraph judgment of the run, wrapped like `reasoning`; null when the record carries none. */
|
|
2719
|
+
readonly summary: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2720
|
+
/** ISO timestamp, machine format — display formatting is the reader's job. */
|
|
2721
|
+
readonly gradedAt: v.StringSchema<undefined>;
|
|
2722
|
+
/** The model that produced the judgment, or null when the record does not say. */
|
|
2723
|
+
readonly model: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2724
|
+
/**
|
|
2725
|
+
* True when the run grew after this grade was written — a later sync
|
|
2726
|
+
* attached more actions — so the judgment describes a smaller run than the
|
|
2727
|
+
* one on record. A superseded grade is real and is still reported; it is
|
|
2728
|
+
* labelled rather than hidden.
|
|
2729
|
+
*/
|
|
2730
|
+
readonly superseded: v.BooleanSchema<undefined>;
|
|
2731
|
+
readonly guides: v.ArraySchema<v.ObjectSchema<{
|
|
2732
|
+
readonly guideId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2733
|
+
readonly title: v.StringSchema<undefined>;
|
|
2734
|
+
readonly verdict: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The grader's reasoning, **already wrapped in the response's untrusted
|
|
2737
|
+
* markers** — model-authored text derived from a transcript, delimited at the
|
|
2738
|
+
* source so a consumer cannot skip the markers. Empty between the markers
|
|
2739
|
+
* when the row recorded none.
|
|
2740
|
+
*/
|
|
2741
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
2742
|
+
}, undefined>, undefined>;
|
|
2743
|
+
}, undefined>;
|
|
2744
|
+
export type SessionGrade = v.InferOutput<typeof SessionGradeSchema>;
|
|
2745
|
+
export declare const GradedSessionSchema: v.ObjectSchema<{
|
|
2746
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2747
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2748
|
+
readonly startedAt: v.StringSchema<undefined>;
|
|
2749
|
+
readonly endedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2750
|
+
readonly status: v.PicklistSchema<["open", "closed"], undefined>;
|
|
2751
|
+
}, undefined>;
|
|
2752
|
+
export declare const SessionGradeResponseSchema: v.ObjectSchema<{
|
|
2753
|
+
readonly run: v.ObjectSchema<{
|
|
2754
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2755
|
+
readonly agentSessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2756
|
+
readonly startedAt: v.StringSchema<undefined>;
|
|
2757
|
+
readonly endedAt: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2758
|
+
readonly status: v.PicklistSchema<["open", "closed"], undefined>;
|
|
2759
|
+
}, undefined>;
|
|
2760
|
+
readonly state: v.PicklistSchema<["pending", "graded", "nothing_to_grade", "expired"], undefined>;
|
|
2761
|
+
/** Present exactly when `state` is `graded`. */
|
|
2762
|
+
readonly grade: v.NullableSchema<v.ObjectSchema<{
|
|
2763
|
+
/** The grader's one-paragraph judgment of the run, wrapped like `reasoning`; null when the record carries none. */
|
|
2764
|
+
readonly summary: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2765
|
+
/** ISO timestamp, machine format — display formatting is the reader's job. */
|
|
2766
|
+
readonly gradedAt: v.StringSchema<undefined>;
|
|
2767
|
+
/** The model that produced the judgment, or null when the record does not say. */
|
|
2768
|
+
readonly model: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2769
|
+
/**
|
|
2770
|
+
* True when the run grew after this grade was written — a later sync
|
|
2771
|
+
* attached more actions — so the judgment describes a smaller run than the
|
|
2772
|
+
* one on record. A superseded grade is real and is still reported; it is
|
|
2773
|
+
* labelled rather than hidden.
|
|
2774
|
+
*/
|
|
2775
|
+
readonly superseded: v.BooleanSchema<undefined>;
|
|
2776
|
+
readonly guides: v.ArraySchema<v.ObjectSchema<{
|
|
2777
|
+
readonly guideId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2778
|
+
readonly title: v.StringSchema<undefined>;
|
|
2779
|
+
readonly verdict: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
2780
|
+
/**
|
|
2781
|
+
* The grader's reasoning, **already wrapped in the response's untrusted
|
|
2782
|
+
* markers** — model-authored text derived from a transcript, delimited at the
|
|
2783
|
+
* source so a consumer cannot skip the markers. Empty between the markers
|
|
2784
|
+
* when the row recorded none.
|
|
2785
|
+
*/
|
|
2786
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
2787
|
+
}, undefined>, undefined>;
|
|
2788
|
+
}, undefined>, undefined>;
|
|
2789
|
+
/**
|
|
2790
|
+
* The markers every `summary` and `reasoning` in this response is wrapped in.
|
|
2791
|
+
* Present exactly when `grade` is — there is nothing to delimit otherwise.
|
|
2792
|
+
*/
|
|
2793
|
+
readonly untrusted: v.NullableSchema<v.ObjectSchema<{
|
|
2794
|
+
readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2795
|
+
readonly startMarker: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2796
|
+
readonly endMarker: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2797
|
+
readonly note: v.StringSchema<undefined>;
|
|
2798
|
+
}, undefined>, undefined>;
|
|
2799
|
+
}, undefined>;
|
|
2800
|
+
export type SessionGradeResponse = v.InferOutput<typeof SessionGradeResponseSchema>;
|
|
2628
2801
|
export declare function parseAgentConfig(data: unknown): {
|
|
2629
2802
|
id: string;
|
|
2630
2803
|
name: string;
|
|
@@ -3001,8 +3174,8 @@ export declare function parseInboxArchiveResponse(data: unknown): {
|
|
|
3001
3174
|
export declare function parseDashboardSyncRequest(data: unknown): {
|
|
3002
3175
|
actions?: {
|
|
3003
3176
|
id?: string | undefined;
|
|
3004
|
-
runId?: string | undefined;
|
|
3005
3177
|
sessionId?: string | undefined;
|
|
3178
|
+
agentSessionId?: string | undefined;
|
|
3006
3179
|
actionType: string;
|
|
3007
3180
|
summary: string;
|
|
3008
3181
|
filePaths?: string[] | undefined;
|
|
@@ -3025,7 +3198,7 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
3025
3198
|
reasoning?: string | undefined;
|
|
3026
3199
|
triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
|
|
3027
3200
|
sourceActionIds?: (string | {
|
|
3028
|
-
|
|
3201
|
+
agentSessionId: string;
|
|
3029
3202
|
timestamp?: string | undefined;
|
|
3030
3203
|
summary: string;
|
|
3031
3204
|
})[] | undefined;
|
|
@@ -3040,8 +3213,8 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
3040
3213
|
status?: "dismissed" | "inferred" | "confirmed" | undefined;
|
|
3041
3214
|
}[] | undefined;
|
|
3042
3215
|
runUsage?: {
|
|
3043
|
-
|
|
3044
|
-
|
|
3216
|
+
sessionId?: string | undefined;
|
|
3217
|
+
agentSessionId: string;
|
|
3045
3218
|
usage: {
|
|
3046
3219
|
model: string;
|
|
3047
3220
|
provider?: string | undefined;
|
|
@@ -3052,8 +3225,8 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
3052
3225
|
}[];
|
|
3053
3226
|
}[] | undefined;
|
|
3054
3227
|
skillUsage?: {
|
|
3055
|
-
|
|
3056
|
-
|
|
3228
|
+
sessionId?: string | undefined;
|
|
3229
|
+
agentSessionId: string;
|
|
3057
3230
|
usage: {
|
|
3058
3231
|
skillName: string;
|
|
3059
3232
|
model: string;
|
|
@@ -3077,12 +3250,12 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
3077
3250
|
branch: string | null;
|
|
3078
3251
|
} | undefined;
|
|
3079
3252
|
selfReport?: {
|
|
3080
|
-
|
|
3253
|
+
agentSessionId: string;
|
|
3081
3254
|
text: string;
|
|
3082
3255
|
} | undefined;
|
|
3083
3256
|
};
|
|
3084
3257
|
export declare function parseProposalCitation(data: unknown): {
|
|
3085
|
-
|
|
3258
|
+
agentSessionId: string;
|
|
3086
3259
|
timestamp?: string | undefined;
|
|
3087
3260
|
summary: string;
|
|
3088
3261
|
};
|
|
@@ -3094,7 +3267,7 @@ export declare function parseExtractedGuideSuggestion(data: unknown): {
|
|
|
3094
3267
|
confidence: number;
|
|
3095
3268
|
occurrences: number;
|
|
3096
3269
|
citations: {
|
|
3097
|
-
|
|
3270
|
+
agentSessionId: string;
|
|
3098
3271
|
timestamp?: string | undefined;
|
|
3099
3272
|
summary: string;
|
|
3100
3273
|
}[];
|
|
@@ -3106,7 +3279,7 @@ export declare function parseExtractedSkillSuggestion(data: unknown): {
|
|
|
3106
3279
|
confidence: number;
|
|
3107
3280
|
occurrences: number;
|
|
3108
3281
|
citations: {
|
|
3109
|
-
|
|
3282
|
+
agentSessionId: string;
|
|
3110
3283
|
timestamp?: string | undefined;
|
|
3111
3284
|
summary: string;
|
|
3112
3285
|
}[];
|
|
@@ -3121,7 +3294,7 @@ export declare function parseExtractedFeedbackBatch(data: unknown): {
|
|
|
3121
3294
|
confidence: number;
|
|
3122
3295
|
occurrences: number;
|
|
3123
3296
|
citations: {
|
|
3124
|
-
|
|
3297
|
+
agentSessionId: string;
|
|
3125
3298
|
timestamp?: string | undefined;
|
|
3126
3299
|
summary: string;
|
|
3127
3300
|
}[];
|
|
@@ -3133,7 +3306,7 @@ export declare function parseExtractedFeedbackBatch(data: unknown): {
|
|
|
3133
3306
|
confidence: number;
|
|
3134
3307
|
occurrences: number;
|
|
3135
3308
|
citations: {
|
|
3136
|
-
|
|
3309
|
+
agentSessionId: string;
|
|
3137
3310
|
timestamp?: string | undefined;
|
|
3138
3311
|
summary: string;
|
|
3139
3312
|
}[];
|
|
@@ -3143,7 +3316,7 @@ export declare function parseExtractedFeedbackBatch(data: unknown): {
|
|
|
3143
3316
|
export declare function parseActionEntry(data: unknown): {
|
|
3144
3317
|
id?: string | undefined;
|
|
3145
3318
|
timestamp: string;
|
|
3146
|
-
|
|
3319
|
+
agentSessionId: string;
|
|
3147
3320
|
toolName: string;
|
|
3148
3321
|
filePath?: string | undefined;
|
|
3149
3322
|
command?: string | undefined;
|
|
@@ -3153,6 +3326,7 @@ export declare function parseActionEntry(data: unknown): {
|
|
|
3153
3326
|
} | undefined;
|
|
3154
3327
|
transcriptPath?: string | undefined;
|
|
3155
3328
|
repoId?: string | undefined;
|
|
3329
|
+
harness?: "claude_code" | "codex" | "opencode" | "antigravity" | undefined;
|
|
3156
3330
|
outcome?: {
|
|
3157
3331
|
status: "ok" | "error";
|
|
3158
3332
|
errorClass?: string | undefined;
|
|
@@ -3231,7 +3405,7 @@ export declare function parseGuideHistoryResponse(data: unknown): {
|
|
|
3231
3405
|
changedAt: string | null;
|
|
3232
3406
|
} | null;
|
|
3233
3407
|
findings: {
|
|
3234
|
-
|
|
3408
|
+
sessionId: string;
|
|
3235
3409
|
occurredAt: string;
|
|
3236
3410
|
revision: {
|
|
3237
3411
|
bodyItemId: string;
|
|
@@ -3248,5 +3422,37 @@ export declare function parseGuideHistoryResponse(data: unknown): {
|
|
|
3248
3422
|
note: string;
|
|
3249
3423
|
};
|
|
3250
3424
|
};
|
|
3425
|
+
export declare function parseRunGradeRequest(data: unknown): {
|
|
3426
|
+
session?: string | undefined;
|
|
3427
|
+
agent_session?: string | undefined;
|
|
3428
|
+
};
|
|
3429
|
+
export declare function parseSessionGradeResponse(data: unknown): {
|
|
3430
|
+
run: {
|
|
3431
|
+
id: string;
|
|
3432
|
+
agentSessionId: string;
|
|
3433
|
+
startedAt: string;
|
|
3434
|
+
endedAt: string | null;
|
|
3435
|
+
status: "open" | "closed";
|
|
3436
|
+
};
|
|
3437
|
+
state: "pending" | "graded" | "nothing_to_grade" | "expired";
|
|
3438
|
+
grade: {
|
|
3439
|
+
summary: string | null;
|
|
3440
|
+
gradedAt: string;
|
|
3441
|
+
model: string | null;
|
|
3442
|
+
superseded: boolean;
|
|
3443
|
+
guides: {
|
|
3444
|
+
guideId: string;
|
|
3445
|
+
title: string;
|
|
3446
|
+
verdict: "aligned" | "misaligned" | "not_applicable";
|
|
3447
|
+
reasoning: string;
|
|
3448
|
+
}[];
|
|
3449
|
+
} | null;
|
|
3450
|
+
untrusted: {
|
|
3451
|
+
token: string;
|
|
3452
|
+
startMarker: string;
|
|
3453
|
+
endMarker: string;
|
|
3454
|
+
note: string;
|
|
3455
|
+
} | null;
|
|
3456
|
+
};
|
|
3251
3457
|
export {};
|
|
3252
3458
|
//# sourceMappingURL=schemas.d.ts.map
|