@mossbear/protocol 0.1.0-alpha.90 → 0.1.0-alpha.91
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/aliasPaths.d.ts +19 -2
- package/dist/aliasPaths.d.ts.map +1 -1
- package/dist/aliasPaths.js +17 -8
- package/dist/aliasPaths.js.map +1 -1
- package/dist/aliasPaths.test.js +13 -1
- package/dist/aliasPaths.test.js.map +1 -1
- package/dist/schemas.d.ts +37 -170
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +28 -41
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.test.js +63 -41
- package/dist/schemas.test.js.map +1 -1
- package/package.json +1 -1
package/dist/aliasPaths.d.ts
CHANGED
|
@@ -49,6 +49,22 @@ export type AliasPathIdentity = {
|
|
|
49
49
|
/** Preference as the canonical body; lower is preferred. */
|
|
50
50
|
rank: number;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* The comparison key for a path: separators folded, repeats collapsed,
|
|
54
|
+
* lowercased — the way `detectFormat` normalizes
|
|
55
|
+
* (`packages/projections/src/detect-format.ts:3-5`). `AGENTS.md` and `agents.md`
|
|
56
|
+
* are two strings and one file on macOS and Windows, and an exact-match rule
|
|
57
|
+
* would put the same file in two alias sets.
|
|
58
|
+
*
|
|
59
|
+
* **Exported because a stored path has to be compared the same way.** A guide
|
|
60
|
+
* is stored at the spelling its file had, so `.claude/skills/Review/SKILL.md`
|
|
61
|
+
* and `.agents/skills/review/SKILL.md` are one set under
|
|
62
|
+
* {@link aliasPathIdentity} and two strings to anything that compares the
|
|
63
|
+
* paths themselves. The import route looks a set's other half up on the server
|
|
64
|
+
* and must ask it with this function, or it finds nothing and forks a second
|
|
65
|
+
* guide; this is the one place that decides when two spellings are one path.
|
|
66
|
+
*/
|
|
67
|
+
export declare function aliasPathKey(path: string): string;
|
|
52
68
|
/**
|
|
53
69
|
* The alias set a discovery-root-relative path belongs to, or `null` when the
|
|
54
70
|
* path has no alias — which is most paths, and is not an error.
|
|
@@ -76,8 +92,9 @@ export declare function aliasPathIdentity(path: string): AliasPathIdentity | nul
|
|
|
76
92
|
* *look rows up*, and a stored path is stored as it was written. So the skill
|
|
77
93
|
* name and the `SKILL.md` segment keep the spelling they arrived with, and only
|
|
78
94
|
* the directory prefix comes from the list — which is the half that is fixed.
|
|
79
|
-
*
|
|
80
|
-
*
|
|
95
|
+
* Comparing what comes back is
|
|
96
|
+
* the caller's job, and it does so through {@link aliasPathKey}: the stored twin
|
|
97
|
+
* may be spelled some other way than the string built here.
|
|
81
98
|
*/
|
|
82
99
|
export declare function aliasPathSiblings(path: string): string[];
|
|
83
100
|
//# sourceMappingURL=aliasPaths.d.ts.map
|
package/dist/aliasPaths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliasPaths.d.ts","sourceRoot":"","sources":["../src/aliasPaths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,4EAA4E;AAC5E,eAAO,MAAM,6BAA6B,sBAAsB,CAAA;AAoBhE,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,WAAW,CAAA;AAShD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;
|
|
1
|
+
{"version":3,"file":"aliasPaths.d.ts","sourceRoot":"","sources":["../src/aliasPaths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,4EAA4E;AAC5E,eAAO,MAAM,6BAA6B,sBAAsB,CAAA;AAoBhE,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,WAAW,CAAA;AAShD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAWD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAsBxE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAqBxD"}
|
package/dist/aliasPaths.js
CHANGED
|
@@ -52,13 +52,21 @@ export const SKILL_ALIAS_GROUP_PREFIX = 'skill:';
|
|
|
52
52
|
*/
|
|
53
53
|
const SKILL_DIRS = ['.agents/skills/', '.claude/skills/'];
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* two strings and one file on macOS and Windows, and an exact-match rule
|
|
55
|
+
* The comparison key for a path: separators folded, repeats collapsed,
|
|
56
|
+
* lowercased — the way `detectFormat` normalizes
|
|
57
|
+
* (`packages/projections/src/detect-format.ts:3-5`). `AGENTS.md` and `agents.md`
|
|
58
|
+
* are two strings and one file on macOS and Windows, and an exact-match rule
|
|
59
59
|
* would put the same file in two alias sets.
|
|
60
|
+
*
|
|
61
|
+
* **Exported because a stored path has to be compared the same way.** A guide
|
|
62
|
+
* is stored at the spelling its file had, so `.claude/skills/Review/SKILL.md`
|
|
63
|
+
* and `.agents/skills/review/SKILL.md` are one set under
|
|
64
|
+
* {@link aliasPathIdentity} and two strings to anything that compares the
|
|
65
|
+
* paths themselves. The import route looks a set's other half up on the server
|
|
66
|
+
* and must ask it with this function, or it finds nothing and forks a second
|
|
67
|
+
* guide; this is the one place that decides when two spellings are one path.
|
|
60
68
|
*/
|
|
61
|
-
function
|
|
69
|
+
export function aliasPathKey(path) {
|
|
62
70
|
return collapseSeparators(path).toLowerCase();
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
@@ -80,7 +88,7 @@ function collapseSeparators(path) {
|
|
|
80
88
|
* be able to enforce it, since one path's identity says nothing about another's.
|
|
81
89
|
*/
|
|
82
90
|
export function aliasPathIdentity(path) {
|
|
83
|
-
const normalized =
|
|
91
|
+
const normalized = aliasPathKey(path);
|
|
84
92
|
const rootFileRank = ROOT_INSTRUCTION_ALIAS_FILES.findIndex((candidate) => candidate.toLowerCase() === normalized);
|
|
85
93
|
if (rootFileRank !== -1) {
|
|
86
94
|
return { group: ROOT_INSTRUCTIONS_ALIAS_GROUP, rank: rootFileRank };
|
|
@@ -116,8 +124,9 @@ export function aliasPathIdentity(path) {
|
|
|
116
124
|
* *look rows up*, and a stored path is stored as it was written. So the skill
|
|
117
125
|
* name and the `SKILL.md` segment keep the spelling they arrived with, and only
|
|
118
126
|
* the directory prefix comes from the list — which is the half that is fixed.
|
|
119
|
-
*
|
|
120
|
-
*
|
|
127
|
+
* Comparing what comes back is
|
|
128
|
+
* the caller's job, and it does so through {@link aliasPathKey}: the stored twin
|
|
129
|
+
* may be spelled some other way than the string built here.
|
|
121
130
|
*/
|
|
122
131
|
export function aliasPathSiblings(path) {
|
|
123
132
|
const identity = aliasPathIdentity(path);
|
package/dist/aliasPaths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliasPaths.js","sourceRoot":"","sources":["../src/aliasPaths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAAA;AAEhE;;;;;;;;;;;;;GAaG;AACH,MAAM,4BAA4B,GAA0B,oBAAoB,CAAC,MAAM,CACrF,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,WAAW,CAC/B,CAAA;AAED,iFA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AM,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAA;IACzE,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,EAAE,CAAA;IAChC,4EAA4E;IAC5E,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IACrE,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;IAC1E,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,GAAG,CAAC,CAAC,GAAG,CAC5D,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,EAAE,CAC9C,CAAA;AACH,CAAC"}
|
package/dist/aliasPaths.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { ROOT_INSTRUCTIONS_ALIAS_GROUP, aliasPathIdentity, aliasPathSiblings, } from './aliasPaths.js';
|
|
2
|
+
import { ROOT_INSTRUCTIONS_ALIAS_GROUP, aliasPathIdentity, aliasPathKey, aliasPathSiblings, } from './aliasPaths.js';
|
|
3
3
|
describe('aliasPathIdentity', () => {
|
|
4
4
|
it('puts AGENTS.md and .cursorrules in one set, AGENTS.md preferred', () => {
|
|
5
5
|
const agents = aliasPathIdentity('AGENTS.md');
|
|
@@ -39,6 +39,18 @@ describe('aliasPathIdentity', () => {
|
|
|
39
39
|
expect(aliasPathIdentity('.agents/skills/SKILL.md')).toBeNull();
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
+
describe('aliasPathKey', () => {
|
|
43
|
+
it('reads spellings of one path as one key, and keeps different paths apart', () => {
|
|
44
|
+
expect(aliasPathKey('.claude/skills/Review/SKILL.md')).toBe(aliasPathKey('.claude//skills\\review/skill.md'));
|
|
45
|
+
expect(aliasPathKey('.claude/skills/review/SKILL.md')).not.toBe(aliasPathKey('.agents/skills/review/SKILL.md'));
|
|
46
|
+
});
|
|
47
|
+
it('agrees with aliasPathIdentity about which spellings are one skill', () => {
|
|
48
|
+
const stored = '.agents/skills/Review/SKILL.md';
|
|
49
|
+
const [twin] = aliasPathSiblings('.claude/skills/review/SKILL.md');
|
|
50
|
+
expect(aliasPathIdentity(stored)?.group).toBe(aliasPathIdentity(twin ?? '')?.group);
|
|
51
|
+
expect(aliasPathKey(stored)).toBe(aliasPathKey(twin ?? ''));
|
|
52
|
+
});
|
|
53
|
+
});
|
|
42
54
|
describe('aliasPathSiblings', () => {
|
|
43
55
|
it('names the other root instruction files, and never the path itself', () => {
|
|
44
56
|
expect(aliasPathSiblings('AGENTS.md')).toEqual(['.cursorrules']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliasPaths.test.js","sourceRoot":"","sources":["../src/aliasPaths.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EACL,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AAExB,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,MAAM,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;QAC7C,MAAM,MAAM,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAA;QAEhD,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAA;QACzD,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAA;QACzD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,cAAc,CAAC,CAAC,CAAA;QAChE,MAAM,CAAC,iBAAiB,CAAC,iCAAiC,CAAC,CAAC,CAAC,OAAO,CAAC;YACnE,gCAAgC;SACjC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAC7D,MAAM,CAAC,iBAAiB,CAAC,sCAAsC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAC7E,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAClE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -846,6 +846,7 @@ export declare const SubscribeBundleResponseSchema: v.ObjectSchema<{
|
|
|
846
846
|
export declare const CreateBundleRequestSchema: v.ObjectSchema<{
|
|
847
847
|
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "slug must be lowercase alphanumeric with hyphens, at most 64 characters">]>;
|
|
848
848
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>, v.CheckAction<string, "Remove the invisible characters from this name — copying text from another app often brings them along.">, v.RegexAction<string, "Remove the invisible characters from this name — copying text from another app often brings them along.">]>;
|
|
849
|
+
readonly workspaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
849
850
|
}, undefined>;
|
|
850
851
|
export declare const CreateBundleResponseSchema: v.ObjectSchema<{
|
|
851
852
|
readonly bundle: v.ObjectSchema<{
|
|
@@ -1102,13 +1103,6 @@ export declare const ArtifactCommentSchema: v.ObjectSchema<{
|
|
|
1102
1103
|
}, undefined>, undefined>;
|
|
1103
1104
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
1104
1105
|
readonly body: v.StringSchema<undefined>;
|
|
1105
|
-
/**
|
|
1106
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
1107
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
1108
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
1109
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
1110
|
-
*/
|
|
1111
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1112
1106
|
/**
|
|
1113
1107
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
1114
1108
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -1188,13 +1182,6 @@ export declare const ContextItemCommentSchema: v.ObjectSchema<{
|
|
|
1188
1182
|
}, undefined>, undefined>;
|
|
1189
1183
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
1190
1184
|
readonly body: v.StringSchema<undefined>;
|
|
1191
|
-
/**
|
|
1192
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
1193
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
1194
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
1195
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
1196
|
-
*/
|
|
1197
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1198
1185
|
/**
|
|
1199
1186
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
1200
1187
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -1411,13 +1398,6 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1411
1398
|
}, undefined>, undefined>;
|
|
1412
1399
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
1413
1400
|
readonly body: v.StringSchema<undefined>;
|
|
1414
|
-
/**
|
|
1415
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
1416
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
1417
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
1418
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
1419
|
-
*/
|
|
1420
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1421
1401
|
/**
|
|
1422
1402
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
1423
1403
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -1492,7 +1472,6 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1492
1472
|
} | null;
|
|
1493
1473
|
} | undefined;
|
|
1494
1474
|
body: string;
|
|
1495
|
-
suggestion?: string | undefined;
|
|
1496
1475
|
finding?: {
|
|
1497
1476
|
tier: "observed" | "usage" | "practice";
|
|
1498
1477
|
tierLine: string;
|
|
@@ -1607,7 +1586,6 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1607
1586
|
} | null;
|
|
1608
1587
|
} | undefined;
|
|
1609
1588
|
body: string;
|
|
1610
|
-
suggestion?: string | undefined;
|
|
1611
1589
|
finding?: {
|
|
1612
1590
|
tier: "observed" | "usage" | "practice";
|
|
1613
1591
|
tierLine: string;
|
|
@@ -1661,7 +1639,6 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1661
1639
|
} | null;
|
|
1662
1640
|
} | undefined;
|
|
1663
1641
|
body: string;
|
|
1664
|
-
suggestion?: string | undefined;
|
|
1665
1642
|
finding?: {
|
|
1666
1643
|
tier: "observed" | "usage" | "practice";
|
|
1667
1644
|
tierLine: string;
|
|
@@ -1787,13 +1764,6 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1787
1764
|
}, undefined>, undefined>;
|
|
1788
1765
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
1789
1766
|
readonly body: v.StringSchema<undefined>;
|
|
1790
|
-
/**
|
|
1791
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
1792
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
1793
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
1794
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
1795
|
-
*/
|
|
1796
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1797
1767
|
/**
|
|
1798
1768
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
1799
1769
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -1868,7 +1838,6 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1868
1838
|
} | null;
|
|
1869
1839
|
} | undefined;
|
|
1870
1840
|
body: string;
|
|
1871
|
-
suggestion?: string | undefined;
|
|
1872
1841
|
finding?: {
|
|
1873
1842
|
tier: "observed" | "usage" | "practice";
|
|
1874
1843
|
tierLine: string;
|
|
@@ -1983,7 +1952,6 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1983
1952
|
} | null;
|
|
1984
1953
|
} | undefined;
|
|
1985
1954
|
body: string;
|
|
1986
|
-
suggestion?: string | undefined;
|
|
1987
1955
|
finding?: {
|
|
1988
1956
|
tier: "observed" | "usage" | "practice";
|
|
1989
1957
|
tierLine: string;
|
|
@@ -2037,7 +2005,6 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
2037
2005
|
} | null;
|
|
2038
2006
|
} | undefined;
|
|
2039
2007
|
body: string;
|
|
2040
|
-
suggestion?: string | undefined;
|
|
2041
2008
|
finding?: {
|
|
2042
2009
|
tier: "observed" | "usage" | "practice";
|
|
2043
2010
|
tierLine: string;
|
|
@@ -2179,13 +2146,6 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2179
2146
|
}, undefined>, undefined>;
|
|
2180
2147
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
2181
2148
|
readonly body: v.StringSchema<undefined>;
|
|
2182
|
-
/**
|
|
2183
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
2184
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
2185
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
2186
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
2187
|
-
*/
|
|
2188
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2189
2149
|
/**
|
|
2190
2150
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
2191
2151
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -2260,7 +2220,6 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2260
2220
|
} | null;
|
|
2261
2221
|
} | undefined;
|
|
2262
2222
|
body: string;
|
|
2263
|
-
suggestion?: string | undefined;
|
|
2264
2223
|
finding?: {
|
|
2265
2224
|
tier: "observed" | "usage" | "practice";
|
|
2266
2225
|
tierLine: string;
|
|
@@ -2375,7 +2334,6 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2375
2334
|
} | null;
|
|
2376
2335
|
} | undefined;
|
|
2377
2336
|
body: string;
|
|
2378
|
-
suggestion?: string | undefined;
|
|
2379
2337
|
finding?: {
|
|
2380
2338
|
tier: "observed" | "usage" | "practice";
|
|
2381
2339
|
tierLine: string;
|
|
@@ -2429,7 +2387,6 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2429
2387
|
} | null;
|
|
2430
2388
|
} | undefined;
|
|
2431
2389
|
body: string;
|
|
2432
|
-
suggestion?: string | undefined;
|
|
2433
2390
|
finding?: {
|
|
2434
2391
|
tier: "observed" | "usage" | "practice";
|
|
2435
2392
|
tierLine: string;
|
|
@@ -2644,13 +2601,6 @@ export declare const ItemCommentWithSubjectSchema: v.ObjectSchema<{
|
|
|
2644
2601
|
}, undefined>, undefined>;
|
|
2645
2602
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
2646
2603
|
readonly body: v.StringSchema<undefined>;
|
|
2647
|
-
/**
|
|
2648
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
2649
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
2650
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
2651
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
2652
|
-
*/
|
|
2653
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2654
2604
|
/**
|
|
2655
2605
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
2656
2606
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -2746,13 +2696,6 @@ export declare const ItemCommentsResponseSchema: v.ObjectSchema<{
|
|
|
2746
2696
|
}, undefined>, undefined>;
|
|
2747
2697
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
2748
2698
|
readonly body: v.StringSchema<undefined>;
|
|
2749
|
-
/**
|
|
2750
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
2751
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
2752
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
2753
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
2754
|
-
*/
|
|
2755
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2756
2699
|
/**
|
|
2757
2700
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
2758
2701
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -3344,13 +3287,6 @@ export declare const ArtifactSchema: v.ObjectSchema<{
|
|
|
3344
3287
|
}, undefined>, undefined>;
|
|
3345
3288
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
3346
3289
|
readonly body: v.StringSchema<undefined>;
|
|
3347
|
-
/**
|
|
3348
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
3349
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
3350
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
3351
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
3352
|
-
*/
|
|
3353
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3354
3290
|
/**
|
|
3355
3291
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
3356
3292
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -3425,7 +3361,6 @@ export declare const ArtifactSchema: v.ObjectSchema<{
|
|
|
3425
3361
|
} | null;
|
|
3426
3362
|
} | undefined;
|
|
3427
3363
|
body: string;
|
|
3428
|
-
suggestion?: string | undefined;
|
|
3429
3364
|
finding?: {
|
|
3430
3365
|
tier: "observed" | "usage" | "practice";
|
|
3431
3366
|
tierLine: string;
|
|
@@ -3731,13 +3666,6 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3731
3666
|
}, undefined>, undefined>;
|
|
3732
3667
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
3733
3668
|
readonly body: v.StringSchema<undefined>;
|
|
3734
|
-
/**
|
|
3735
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
3736
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
3737
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
3738
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
3739
|
-
*/
|
|
3740
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3741
3669
|
/**
|
|
3742
3670
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
3743
3671
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -3812,7 +3740,6 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3812
3740
|
} | null;
|
|
3813
3741
|
} | undefined;
|
|
3814
3742
|
body: string;
|
|
3815
|
-
suggestion?: string | undefined;
|
|
3816
3743
|
finding?: {
|
|
3817
3744
|
tier: "observed" | "usage" | "practice";
|
|
3818
3745
|
tierLine: string;
|
|
@@ -3902,13 +3829,6 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3902
3829
|
}, undefined>, undefined>;
|
|
3903
3830
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
3904
3831
|
readonly body: v.StringSchema<undefined>;
|
|
3905
|
-
/**
|
|
3906
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
3907
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
3908
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
3909
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
3910
|
-
*/
|
|
3911
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3912
3832
|
/**
|
|
3913
3833
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
3914
3834
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -3983,7 +3903,6 @@ export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
3983
3903
|
} | null;
|
|
3984
3904
|
} | undefined;
|
|
3985
3905
|
body: string;
|
|
3986
|
-
suggestion?: string | undefined;
|
|
3987
3906
|
finding?: {
|
|
3988
3907
|
tier: "observed" | "usage" | "practice";
|
|
3989
3908
|
tierLine: string;
|
|
@@ -4060,13 +3979,6 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4060
3979
|
}, undefined>, undefined>;
|
|
4061
3980
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
4062
3981
|
readonly body: v.StringSchema<undefined>;
|
|
4063
|
-
/**
|
|
4064
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
4065
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
4066
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
4067
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
4068
|
-
*/
|
|
4069
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4070
3982
|
/**
|
|
4071
3983
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
4072
3984
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -4141,7 +4053,6 @@ export declare const UpdateArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4141
4053
|
} | null;
|
|
4142
4054
|
} | undefined;
|
|
4143
4055
|
body: string;
|
|
4144
|
-
suggestion?: string | undefined;
|
|
4145
4056
|
finding?: {
|
|
4146
4057
|
tier: "observed" | "usage" | "practice";
|
|
4147
4058
|
tierLine: string;
|
|
@@ -4219,13 +4130,6 @@ export declare const RemoveArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4219
4130
|
}, undefined>, undefined>;
|
|
4220
4131
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
4221
4132
|
readonly body: v.StringSchema<undefined>;
|
|
4222
|
-
/**
|
|
4223
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
4224
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
4225
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
4226
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
4227
|
-
*/
|
|
4228
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4229
4133
|
/**
|
|
4230
4134
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
4231
4135
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -4300,7 +4204,6 @@ export declare const RemoveArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4300
4204
|
} | null;
|
|
4301
4205
|
} | undefined;
|
|
4302
4206
|
body: string;
|
|
4303
|
-
suggestion?: string | undefined;
|
|
4304
4207
|
finding?: {
|
|
4305
4208
|
tier: "observed" | "usage" | "practice";
|
|
4306
4209
|
tierLine: string;
|
|
@@ -4509,6 +4412,15 @@ export declare const ActionSkillLoadSchema: v.ObjectSchema<{
|
|
|
4509
4412
|
* enumerates that list.
|
|
4510
4413
|
*/
|
|
4511
4414
|
export declare const SKILL_LOAD_ACTION_TYPE = "skill_load";
|
|
4415
|
+
/**
|
|
4416
|
+
* The `actions.action_type` of a skill's member file a shell command read, in a
|
|
4417
|
+
* harness that reads through the shell. The command is already an action of
|
|
4418
|
+
* its own and is what gets graded; this row only records which file it opened,
|
|
4419
|
+
* so navigation can be told. Like a skill load it is context, not work: kept
|
|
4420
|
+
* out of `KNOWN_ACTION_TYPES` and excluded from grading, so one `cat` is never
|
|
4421
|
+
* two gradeable actions.
|
|
4422
|
+
*/
|
|
4423
|
+
export declare const SKILL_MEMBER_READ_ACTION_TYPE = "skill_member_read";
|
|
4512
4424
|
/**
|
|
4513
4425
|
* A machine-shaped label for *why* a tool call failed — `ENOENT`, `TimeoutError`,
|
|
4514
4426
|
* `permission_denied`.
|
|
@@ -4640,6 +4552,7 @@ export declare const DashboardSkillUsageSchema: v.ObjectSchema<{
|
|
|
4640
4552
|
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
4641
4553
|
}, undefined>, undefined>;
|
|
4642
4554
|
}, undefined>;
|
|
4555
|
+
export declare const MAX_ACTION_FILE_PATH_LENGTH = 1024;
|
|
4643
4556
|
export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
4644
4557
|
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>;
|
|
4645
4558
|
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -5276,6 +5189,13 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
5276
5189
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5277
5190
|
readonly path: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
5278
5191
|
}, undefined>, undefined>, undefined>;
|
|
5192
|
+
/**
|
|
5193
|
+
* Files inside a skill's directory (not its `SKILL.md`) a shell call read, as
|
|
5194
|
+
* paths relative to the working directory, in a harness that reads through
|
|
5195
|
+
* the shell. Each becomes its own `file_read` action beside the call, the
|
|
5196
|
+
* action a read tool would have produced.
|
|
5197
|
+
*/
|
|
5198
|
+
readonly memberReads: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5279
5199
|
/**
|
|
5280
5200
|
* Where this session's transcript lives on *this machine*, as the agent
|
|
5281
5201
|
* itself reported it.
|
|
@@ -5973,13 +5893,6 @@ export declare const ArtifactFeedbackResponseSchema: v.ObjectSchema<{
|
|
|
5973
5893
|
}, undefined>, undefined>;
|
|
5974
5894
|
/** The comment's text, already wrapped in the response's untrusted markers. */
|
|
5975
5895
|
readonly body: v.StringSchema<undefined>;
|
|
5976
|
-
/**
|
|
5977
|
-
* A suggested edit: the replacement for the passage at `passage.lines`,
|
|
5978
|
-
* already wrapped in the response's untrusted markers like `body`. An
|
|
5979
|
-
* insertion is the passage plus its new lines and an empty replacement is a
|
|
5980
|
-
* deletion, so every edit is one replace. Absent on an ordinary comment.
|
|
5981
|
-
*/
|
|
5982
|
-
readonly suggestion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
5983
5896
|
/**
|
|
5984
5897
|
* What a comment Mossbear wrote is: a finding about the item, never an edit.
|
|
5985
5898
|
* Present only on a Mossbear comment. The comment's `body` begins with the
|
|
@@ -6938,8 +6851,10 @@ export declare const SearchArtifactCommentHitSchema: v.ObjectSchema<{
|
|
|
6938
6851
|
/** Whether the item has been edited since the comment was written. */
|
|
6939
6852
|
readonly itemChangedSince: v.BooleanSchema<undefined>;
|
|
6940
6853
|
/**
|
|
6941
|
-
*
|
|
6942
|
-
*
|
|
6854
|
+
* Where the match is. A current server always says `body`; `suggestion` is
|
|
6855
|
+
* what an older one said for a match in a comment's suggested edit, accepted
|
|
6856
|
+
* so a CLI talking to one mid-rollout still parses the report. Nothing reads
|
|
6857
|
+
* the difference.
|
|
6943
6858
|
*/
|
|
6944
6859
|
readonly matchedIn: v.PicklistSchema<["body", "suggestion"], undefined>;
|
|
6945
6860
|
/**
|
|
@@ -6989,8 +6904,10 @@ export declare const SearchCommentHitSchema: v.VariantSchema<"subjectKind", [v.O
|
|
|
6989
6904
|
/** Whether the item has been edited since the comment was written. */
|
|
6990
6905
|
readonly itemChangedSince: v.BooleanSchema<undefined>;
|
|
6991
6906
|
/**
|
|
6992
|
-
*
|
|
6993
|
-
*
|
|
6907
|
+
* Where the match is. A current server always says `body`; `suggestion` is
|
|
6908
|
+
* what an older one said for a match in a comment's suggested edit, accepted
|
|
6909
|
+
* so a CLI talking to one mid-rollout still parses the report. Nothing reads
|
|
6910
|
+
* the difference.
|
|
6994
6911
|
*/
|
|
6995
6912
|
readonly matchedIn: v.PicklistSchema<["body", "suggestion"], undefined>;
|
|
6996
6913
|
/**
|
|
@@ -7205,8 +7122,10 @@ export declare const SearchCommentsReportSchema: v.VariantSchema<"status", [v.Ob
|
|
|
7205
7122
|
/** Whether the item has been edited since the comment was written. */
|
|
7206
7123
|
readonly itemChangedSince: v.BooleanSchema<undefined>;
|
|
7207
7124
|
/**
|
|
7208
|
-
*
|
|
7209
|
-
*
|
|
7125
|
+
* Where the match is. A current server always says `body`; `suggestion` is
|
|
7126
|
+
* what an older one said for a match in a comment's suggested edit, accepted
|
|
7127
|
+
* so a CLI talking to one mid-rollout still parses the report. Nothing reads
|
|
7128
|
+
* the difference.
|
|
7210
7129
|
*/
|
|
7211
7130
|
readonly matchedIn: v.PicklistSchema<["body", "suggestion"], undefined>;
|
|
7212
7131
|
/**
|
|
@@ -7447,8 +7366,10 @@ export declare const SearchResponseSchema: v.ObjectSchema<{
|
|
|
7447
7366
|
/** Whether the item has been edited since the comment was written. */
|
|
7448
7367
|
readonly itemChangedSince: v.BooleanSchema<undefined>;
|
|
7449
7368
|
/**
|
|
7450
|
-
*
|
|
7451
|
-
*
|
|
7369
|
+
* Where the match is. A current server always says `body`; `suggestion` is
|
|
7370
|
+
* what an older one said for a match in a comment's suggested edit, accepted
|
|
7371
|
+
* so a CLI talking to one mid-rollout still parses the report. Nothing reads
|
|
7372
|
+
* the difference.
|
|
7452
7373
|
*/
|
|
7453
7374
|
readonly matchedIn: v.PicklistSchema<["body", "suggestion"], undefined>;
|
|
7454
7375
|
/**
|
|
@@ -7563,26 +7484,6 @@ export declare const SearchResponseSchema: v.ObjectSchema<{
|
|
|
7563
7484
|
}, undefined>;
|
|
7564
7485
|
}, undefined>;
|
|
7565
7486
|
export type SearchResponse = v.InferOutput<typeof SearchResponseSchema>;
|
|
7566
|
-
export declare function parseAgentConfig(data: unknown): {
|
|
7567
|
-
id: string;
|
|
7568
|
-
name: string;
|
|
7569
|
-
description: string;
|
|
7570
|
-
capabilities: string[];
|
|
7571
|
-
meta?: {
|
|
7572
|
-
[x: string]: unknown;
|
|
7573
|
-
} | undefined;
|
|
7574
|
-
};
|
|
7575
|
-
export declare function parseGuideSnapshot(data: unknown): {
|
|
7576
|
-
id: string;
|
|
7577
|
-
title: string;
|
|
7578
|
-
content: string;
|
|
7579
|
-
enabled: boolean;
|
|
7580
|
-
updatedAt: string;
|
|
7581
|
-
origin?: string | null | undefined;
|
|
7582
|
-
contentHash?: string | null | undefined;
|
|
7583
|
-
root?: "project" | "global" | null | undefined;
|
|
7584
|
-
path?: string | null | undefined;
|
|
7585
|
-
};
|
|
7586
7487
|
export declare function parseGuideBundleResponse(data: unknown): {
|
|
7587
7488
|
guides: {
|
|
7588
7489
|
id: string;
|
|
@@ -7624,22 +7525,6 @@ export declare function parseRawGuideFileDeletion(data: unknown): {
|
|
|
7624
7525
|
path: string;
|
|
7625
7526
|
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
7626
7527
|
};
|
|
7627
|
-
export declare function parseRuleDeletionsRequest(data: unknown): {
|
|
7628
|
-
deletions: unknown[];
|
|
7629
|
-
};
|
|
7630
|
-
export declare function parseRulesImportRequest(data: unknown): {
|
|
7631
|
-
rules: unknown[];
|
|
7632
|
-
repoId?: string | undefined;
|
|
7633
|
-
projectId?: string | undefined;
|
|
7634
|
-
workspaceId?: string | undefined;
|
|
7635
|
-
};
|
|
7636
|
-
export declare function parseBundle(data: unknown): {
|
|
7637
|
-
id: string;
|
|
7638
|
-
slug: string;
|
|
7639
|
-
name: string;
|
|
7640
|
-
createdAt: string;
|
|
7641
|
-
home?: string | undefined;
|
|
7642
|
-
};
|
|
7643
7528
|
export declare function parseBundleListResponse(data: unknown): {
|
|
7644
7529
|
bundles: {
|
|
7645
7530
|
id: string;
|
|
@@ -7671,6 +7556,7 @@ export declare function parseRevokeScopedTokenRequest(data: unknown): {
|
|
|
7671
7556
|
export declare function parseCreateBundleRequest(data: unknown): {
|
|
7672
7557
|
slug: string;
|
|
7673
7558
|
name: string;
|
|
7559
|
+
workspaceId?: string | undefined;
|
|
7674
7560
|
};
|
|
7675
7561
|
export declare function parseCreateBundleResponse(data: unknown): {
|
|
7676
7562
|
bundle: {
|
|
@@ -7770,7 +7656,6 @@ export declare function parseContextItemsResponse(data: unknown): {
|
|
|
7770
7656
|
} | null;
|
|
7771
7657
|
} | undefined;
|
|
7772
7658
|
body: string;
|
|
7773
|
-
suggestion?: string | undefined;
|
|
7774
7659
|
finding?: {
|
|
7775
7660
|
tier: "observed" | "usage" | "practice";
|
|
7776
7661
|
tierLine: string;
|
|
@@ -7833,7 +7718,6 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
|
|
|
7833
7718
|
} | null;
|
|
7834
7719
|
} | undefined;
|
|
7835
7720
|
body: string;
|
|
7836
|
-
suggestion?: string | undefined;
|
|
7837
7721
|
finding?: {
|
|
7838
7722
|
tier: "observed" | "usage" | "practice";
|
|
7839
7723
|
tierLine: string;
|
|
@@ -8000,23 +7884,6 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
8000
7884
|
} | undefined;
|
|
8001
7885
|
origin?: "session-start" | undefined;
|
|
8002
7886
|
};
|
|
8003
|
-
export declare function parseProposalCitation(data: unknown): {
|
|
8004
|
-
agentSessionId: string;
|
|
8005
|
-
timestamp?: string | undefined;
|
|
8006
|
-
summary: string;
|
|
8007
|
-
};
|
|
8008
|
-
export declare function parseExtractedSkillSuggestion(data: unknown): {
|
|
8009
|
-
id: string;
|
|
8010
|
-
signal: string;
|
|
8011
|
-
confidence: number;
|
|
8012
|
-
occurrences: number;
|
|
8013
|
-
citations: {
|
|
8014
|
-
agentSessionId: string;
|
|
8015
|
-
timestamp?: string | undefined;
|
|
8016
|
-
summary: string;
|
|
8017
|
-
}[];
|
|
8018
|
-
source: "claude_code" | "codex" | "opencode" | "cursor" | "copilot" | "other";
|
|
8019
|
-
};
|
|
8020
7887
|
export declare function parseExtractedFeedbackBatch(data: unknown): {
|
|
8021
7888
|
skillSuggestions: {
|
|
8022
7889
|
id: string;
|
|
@@ -8046,6 +7913,7 @@ export declare function parseActionEntry(data: unknown): {
|
|
|
8046
7913
|
name: string;
|
|
8047
7914
|
path?: string | undefined;
|
|
8048
7915
|
}[] | undefined;
|
|
7916
|
+
memberReads?: string[] | undefined;
|
|
8049
7917
|
transcriptPath?: string | undefined;
|
|
8050
7918
|
repoId?: string | undefined;
|
|
8051
7919
|
projectId?: string | undefined;
|
|
@@ -8193,7 +8061,6 @@ export declare function parseItemCommentsResponse(data: unknown): {
|
|
|
8193
8061
|
} | null;
|
|
8194
8062
|
} | undefined;
|
|
8195
8063
|
body: string;
|
|
8196
|
-
suggestion?: string | undefined;
|
|
8197
8064
|
finding?: {
|
|
8198
8065
|
tier: "observed" | "usage" | "practice";
|
|
8199
8066
|
tierLine: string;
|
|
@@ -8415,7 +8282,7 @@ export declare function parseSearchResponse(data: unknown): {
|
|
|
8415
8282
|
workspaceId: string;
|
|
8416
8283
|
workspaceName: string;
|
|
8417
8284
|
itemChangedSince: boolean;
|
|
8418
|
-
matchedIn: "
|
|
8285
|
+
matchedIn: "body" | "suggestion";
|
|
8419
8286
|
approved?: boolean | undefined;
|
|
8420
8287
|
commentId: string;
|
|
8421
8288
|
threadId: string;
|