@rockhopper-co/mcp-server 2.1.59-staging.eb505a3 → 2.1.60-staging.2f43ad1
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/tools/cell-address.d.ts +39 -0
- package/dist/tools/cell-address.d.ts.map +1 -0
- package/dist/tools/cell-address.js +65 -0
- package/dist/tools/cell-address.js.map +1 -0
- package/dist/tools/get-cell-history.d.ts.map +1 -1
- package/dist/tools/get-cell-history.js +42 -4
- package/dist/tools/get-cell-history.js.map +1 -1
- package/dist/tools/get-reviews.d.ts.map +1 -1
- package/dist/tools/get-reviews.js +32 -3
- package/dist/tools/get-reviews.js.map +1 -1
- package/dist/tools/list-unenrolled-files.d.ts.map +1 -1
- package/dist/tools/list-unenrolled-files.js +55 -0
- package/dist/tools/list-unenrolled-files.js.map +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ParsedCellAddress = {
|
|
2
|
+
ok: true;
|
|
3
|
+
sheet: string | null;
|
|
4
|
+
cell: string;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
reason: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Split a possibly sheet-qualified address into its sheet and cell parts.
|
|
11
|
+
*
|
|
12
|
+
* Handled: the bare form (`BS11`), the unquoted qualified form
|
|
13
|
+
* (`Project Accruals!BS11`), and the quoted form Excel requires for names
|
|
14
|
+
* carrying spaces or apostrophes (`'My Sheet'!A1`, `'Bob''s Sheet'!A1`).
|
|
15
|
+
* The cell is normalized to the canonical form the API stores — `$` anchors
|
|
16
|
+
* dropped, letters upper-cased — so `$bs$11` stops being a literal-match miss
|
|
17
|
+
* for the same reason the qualified form was one.
|
|
18
|
+
*
|
|
19
|
+
* The split is on the LAST `!` deliberately: Excel forbids `: \ / ? * [ ]` in
|
|
20
|
+
* a sheet name but ALLOWS `!`, while a cell reference can never contain one.
|
|
21
|
+
* Splitting on the last `!` is therefore unambiguous where splitting on the
|
|
22
|
+
* first is not.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately NOT handled, because each is a different question than "which
|
|
25
|
+
* cell did the caller mean" and none is a form this tool advertises:
|
|
26
|
+
* - cross-workbook references (`[Book1.xlsx]Sheet1!A1`) — the bracketed
|
|
27
|
+
* workbook stays part of the sheet part, so it is refused loudly by the
|
|
28
|
+
* sheet-mismatch rule rather than silently mis-parsed;
|
|
29
|
+
* - ranges (`A1:B2`), whole rows/columns (`1:1`, `A:A`) and named ranges —
|
|
30
|
+
* this tool answers for ONE cell, so these are refused as malformed;
|
|
31
|
+
* - R1C1 style (`R1C3`) — refused as malformed; the API speaks A1;
|
|
32
|
+
* - the true Excel ceiling (XFD / 1048576). The shape check bounds the
|
|
33
|
+
* column at 3 letters and the row at 7 digits, so `ZZZ9999999` parses and
|
|
34
|
+
* then simply has no history. That is an honest empty, not a false one.
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseCellAddress(input: string): ParsedCellAddress;
|
|
37
|
+
/** Excel resolves sheet references case-insensitively; so do we. */
|
|
38
|
+
export declare function sheetNamesAgree(a: string, b: string): boolean;
|
|
39
|
+
//# sourceMappingURL=cell-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-address.d.ts","sourceRoot":"","sources":["../../src/tools/cell-address.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,iBAAiB,GACzB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CA4BjE;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE7D"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// ENG-4340 — `get_cell_history` advertises "Sheet1!C3" as a valid cellAddress
|
|
2
|
+
// and then handed it to the API verbatim, where `cell` is matched as a literal
|
|
3
|
+
// string. It matched nothing and the miss rendered as "No history found",
|
|
4
|
+
// which is a false negative on a cell that has history. Parse the form the
|
|
5
|
+
// tool advertises instead of narrowing the description.
|
|
6
|
+
/** A cell reference: 1-3 column letters, then a row, each optionally `$`-anchored. */
|
|
7
|
+
const CELL_REF = /^\$?([A-Za-z]{1,3})\$?([1-9][0-9]{0,6})$/;
|
|
8
|
+
/**
|
|
9
|
+
* Split a possibly sheet-qualified address into its sheet and cell parts.
|
|
10
|
+
*
|
|
11
|
+
* Handled: the bare form (`BS11`), the unquoted qualified form
|
|
12
|
+
* (`Project Accruals!BS11`), and the quoted form Excel requires for names
|
|
13
|
+
* carrying spaces or apostrophes (`'My Sheet'!A1`, `'Bob''s Sheet'!A1`).
|
|
14
|
+
* The cell is normalized to the canonical form the API stores — `$` anchors
|
|
15
|
+
* dropped, letters upper-cased — so `$bs$11` stops being a literal-match miss
|
|
16
|
+
* for the same reason the qualified form was one.
|
|
17
|
+
*
|
|
18
|
+
* The split is on the LAST `!` deliberately: Excel forbids `: \ / ? * [ ]` in
|
|
19
|
+
* a sheet name but ALLOWS `!`, while a cell reference can never contain one.
|
|
20
|
+
* Splitting on the last `!` is therefore unambiguous where splitting on the
|
|
21
|
+
* first is not.
|
|
22
|
+
*
|
|
23
|
+
* Deliberately NOT handled, because each is a different question than "which
|
|
24
|
+
* cell did the caller mean" and none is a form this tool advertises:
|
|
25
|
+
* - cross-workbook references (`[Book1.xlsx]Sheet1!A1`) — the bracketed
|
|
26
|
+
* workbook stays part of the sheet part, so it is refused loudly by the
|
|
27
|
+
* sheet-mismatch rule rather than silently mis-parsed;
|
|
28
|
+
* - ranges (`A1:B2`), whole rows/columns (`1:1`, `A:A`) and named ranges —
|
|
29
|
+
* this tool answers for ONE cell, so these are refused as malformed;
|
|
30
|
+
* - R1C1 style (`R1C3`) — refused as malformed; the API speaks A1;
|
|
31
|
+
* - the true Excel ceiling (XFD / 1048576). The shape check bounds the
|
|
32
|
+
* column at 3 letters and the row at 7 digits, so `ZZZ9999999` parses and
|
|
33
|
+
* then simply has no history. That is an honest empty, not a false one.
|
|
34
|
+
*/
|
|
35
|
+
export function parseCellAddress(input) {
|
|
36
|
+
const trimmed = input.trim();
|
|
37
|
+
if (!trimmed)
|
|
38
|
+
return { ok: false, reason: 'the address is empty' };
|
|
39
|
+
const split = trimmed.lastIndexOf('!');
|
|
40
|
+
const rawSheet = split === -1 ? null : trimmed.slice(0, split);
|
|
41
|
+
const rawCell = split === -1 ? trimmed : trimmed.slice(split + 1);
|
|
42
|
+
let sheet = null;
|
|
43
|
+
if (rawSheet !== null) {
|
|
44
|
+
sheet =
|
|
45
|
+
rawSheet.startsWith("'") && rawSheet.endsWith("'") && rawSheet.length > 1
|
|
46
|
+
? rawSheet.slice(1, -1).replace(/''/g, "'")
|
|
47
|
+
: rawSheet;
|
|
48
|
+
if (!sheet.trim()) {
|
|
49
|
+
return { ok: false, reason: 'it has a "!" but no sheet name before it' };
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const match = CELL_REF.exec(rawCell);
|
|
53
|
+
if (!match) {
|
|
54
|
+
return {
|
|
55
|
+
ok: false,
|
|
56
|
+
reason: `"${rawCell}" is not a single cell reference like "A1" or "BS11"`,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return { ok: true, sheet, cell: `${match[1].toUpperCase()}${match[2]}` };
|
|
60
|
+
}
|
|
61
|
+
/** Excel resolves sheet references case-insensitively; so do we. */
|
|
62
|
+
export function sheetNamesAgree(a, b) {
|
|
63
|
+
return a.trim().toLowerCase() === b.trim().toLowerCase();
|
|
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AAQ,CAAC;QACf,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAClB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,0CAA0C,EAAE,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,IAAI,OAAO,sDAAsD;SAC1E,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAC3E,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,CAAS,EAAE,CAAS;IAClD,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cell-history.d.ts","sourceRoot":"","sources":["../../src/tools/get-cell-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-cell-history.d.ts","sourceRoot":"","sources":["../../src/tools/get-cell-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQlD,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,GACb,IAAI,CAwHN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { assertChangeHistoryComplete, isNotReady, notReadyToolResult, } from '../not-ready.js';
|
|
3
|
+
import { parseCellAddress, sheetNamesAgree } from './cell-address.js';
|
|
3
4
|
export function registerGetCellHistoryTool(server, api) {
|
|
4
5
|
server.registerTool('get_cell_history', {
|
|
5
6
|
title: 'Get Cell History',
|
|
@@ -17,19 +18,53 @@ export function registerGetCellHistoryTool(server, api) {
|
|
|
17
18
|
sheetName: z.string().describe('Name of the worksheet'),
|
|
18
19
|
cellAddress: z
|
|
19
20
|
.string()
|
|
20
|
-
.describe('Cell address (e.g. "A1", "B12",
|
|
21
|
+
.describe('Cell address, bare or sheet-qualified (e.g. "A1", "B12", ' +
|
|
22
|
+
'"Sheet1!C3", "\'My Sheet\'!C3"). A sheet prefix must name the ' +
|
|
23
|
+
'same worksheet as sheetName. One cell only — a range such as ' +
|
|
24
|
+
'"A1:B2" is refused.'),
|
|
21
25
|
}),
|
|
22
26
|
annotations: {
|
|
23
27
|
readOnlyHint: true,
|
|
24
28
|
openWorldHint: false,
|
|
25
29
|
},
|
|
26
30
|
}, async ({ fileMsId, sheetName, cellAddress }) => {
|
|
31
|
+
// ENG-4340 — parse BEFORE any API call. A malformed or contradictory
|
|
32
|
+
// address is a refusal naming the address; it must never reach the
|
|
33
|
+
// "No history found" branch, which asserts the cell has no recorded
|
|
34
|
+
// changes.
|
|
35
|
+
const parsed = parseCellAddress(cellAddress);
|
|
36
|
+
if (!parsed.ok) {
|
|
37
|
+
return {
|
|
38
|
+
content: [
|
|
39
|
+
{
|
|
40
|
+
type: 'text',
|
|
41
|
+
text: `Cannot read "${cellAddress}" as a cell address: ${parsed.reason}. ` +
|
|
42
|
+
`This is a bad address, NOT a cell without changes — nothing was looked up.`,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
isError: true,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (parsed.sheet !== null && !sheetNamesAgree(parsed.sheet, sheetName)) {
|
|
49
|
+
return {
|
|
50
|
+
content: [
|
|
51
|
+
{
|
|
52
|
+
type: 'text',
|
|
53
|
+
text: `Conflicting worksheets: cellAddress "${cellAddress}" names sheet ` +
|
|
54
|
+
`"${parsed.sheet}" but sheetName is "${sheetName}". Nothing was ` +
|
|
55
|
+
`looked up — re-send with the two in agreement.`,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const cell = parsed.cell;
|
|
27
62
|
try {
|
|
28
63
|
// Plan 02 ruling 5 (STRICT): completeness FIRST. A pending fold means
|
|
29
64
|
// the change-log window is mid-rewrite, so rows served now are a
|
|
30
65
|
// partial view an assistant would summarise as the whole truth.
|
|
31
66
|
await assertChangeHistoryComplete(api, fileMsId);
|
|
32
|
-
const history = await api.getCellHistory(fileMsId, sheetName,
|
|
67
|
+
const history = await api.getCellHistory(fileMsId, sheetName, cell);
|
|
33
68
|
// ENG-1638 (P3-2): a ledger-served entry carries a backend-rendered
|
|
34
69
|
// `formatted` line — 'vX.Y.Z: <value> — <provenance> (driven by
|
|
35
70
|
// <human>) — <ts>' — print it verbatim. The legacy normalized
|
|
@@ -46,9 +81,12 @@ export function registerGetCellHistoryTool(server, api) {
|
|
|
46
81
|
content: [
|
|
47
82
|
{
|
|
48
83
|
type: 'text',
|
|
84
|
+
// Render the normalized cell, so the qualified and bare forms
|
|
85
|
+
// of one address answer identically rather than merely
|
|
86
|
+
// equivalently.
|
|
49
87
|
text: history.length
|
|
50
|
-
? `Cell ${
|
|
51
|
-
: `No history found for ${
|
|
88
|
+
? `Cell ${cell} on "${sheetName}" — ${history.length} change(s):\n\n${summary}`
|
|
89
|
+
: `No history found for ${cell} on "${sheetName}".`,
|
|
52
90
|
},
|
|
53
91
|
],
|
|
54
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cell-history.js","sourceRoot":"","sources":["../../src/tools/get-cell-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-cell-history.js","sourceRoot":"","sources":["../../src/tools/get-cell-history.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtE,MAAM,UAAU,0BAA0B,CACxC,MAAiB,EACjB,GAAc;IAEd,MAAM,CAAC,YAAY,CACjB,kBAAkB,EAClB;QACE,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,kEAAkE;YAClE,oDAAoD;YACpD,uEAAuE;YACvE,oEAAoE;YACpE,+BAA+B;YAC/B,uEAAuE;YACvE,oEAAoE;YACpE,iEAAiE;YACjE,6BAA6B;QAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;YACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;YACvD,WAAW,EAAE,CAAC;iBACX,MAAM,EAAE;iBACR,QAAQ,CACP,2DAA2D;gBACzD,gEAAgE;gBAChE,+DAA+D;gBAC/D,qBAAqB,CACxB;SACJ,CAAC;QACF,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;QAC7C,qEAAqE;QACrE,mEAAmE;QACnE,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ACpC,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,GACb,IAAI,
|
|
1
|
+
{"version":3,"file":"get-reviews.d.ts","sourceRoot":"","sources":["../../src/tools/get-reviews.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,GACb,IAAI,CAgHN"}
|
|
@@ -3,16 +3,19 @@ export function registerGetReviewsTool(server, api) {
|
|
|
3
3
|
server.registerTool('get_reviews', {
|
|
4
4
|
title: 'Get Reviews',
|
|
5
5
|
description: 'Get all review requests for a specific file version, or for the latest version of a file. ' +
|
|
6
|
-
'Provide
|
|
6
|
+
'Provide EXACTLY ONE of versionId or fileMsId (for latest version reviews) — ' +
|
|
7
|
+
'sending both is refused, because they can name different files.',
|
|
7
8
|
inputSchema: z.object({
|
|
8
9
|
versionId: z
|
|
9
10
|
.number()
|
|
10
11
|
.optional()
|
|
11
|
-
.describe('Internal ID of the file version'
|
|
12
|
+
.describe('Internal ID of the file version. Mutually exclusive with ' +
|
|
13
|
+
'`fileMsId` — never send both.'),
|
|
12
14
|
fileMsId: z
|
|
13
15
|
.string()
|
|
14
16
|
.optional()
|
|
15
|
-
.describe('Platform ID of the enrolled file (returns reviews for latest
|
|
17
|
+
.describe('Platform ID of the enrolled file (returns reviews for latest ' +
|
|
18
|
+
'version). Mutually exclusive with `versionId` — never send both.'),
|
|
16
19
|
}),
|
|
17
20
|
annotations: {
|
|
18
21
|
readOnlyHint: true,
|
|
@@ -31,6 +34,32 @@ export function registerGetReviewsTool(server, api) {
|
|
|
31
34
|
isError: true,
|
|
32
35
|
};
|
|
33
36
|
}
|
|
37
|
+
// ENG-4339 — REFUSE both-present rather than picking one. The two
|
|
38
|
+
// identifiers can name DIFFERENT files (a caller holds `fileMsId` from
|
|
39
|
+
// `list_files` and `versionId` from `get_file_versions`, and filling in
|
|
40
|
+
// everything it knows is the natural move), and the old ternary took
|
|
41
|
+
// `versionId` while discarding `fileMsId` without a word. That renders
|
|
42
|
+
// one file's reviews under another file's handle — a wrong answer
|
|
43
|
+
// attributed to the wrong file, which is worse than an error.
|
|
44
|
+
//
|
|
45
|
+
// A silent precedence rule is invisible to a caller who did not know
|
|
46
|
+
// there was a conflict, so this mirrors the both-absent guard above and
|
|
47
|
+
// the same exclusion `enroll_file` already enforces
|
|
48
|
+
// (`src/tools/enroll-file.ts` — "not both").
|
|
49
|
+
if (versionId && fileMsId) {
|
|
50
|
+
return {
|
|
51
|
+
content: [
|
|
52
|
+
{
|
|
53
|
+
type: 'text',
|
|
54
|
+
text: 'Provide versionId or fileMsId, not both — they can name ' +
|
|
55
|
+
'different files and this tool will not guess which one you ' +
|
|
56
|
+
'meant. Use versionId for one specific version, or fileMsId ' +
|
|
57
|
+
"for that file's latest version.",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
isError: true,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
34
63
|
const reviews = versionId
|
|
35
64
|
? await api.getReviewsForVersion(versionId)
|
|
36
65
|
: await api.getReviewsForLatestVersion(fileMsId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reviews.js","sourceRoot":"","sources":["../../src/tools/get-reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,GAAc;IAEd,MAAM,CAAC,YAAY,CACjB,aAAa,EACb;QACE,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,4FAA4F;YAC5F,
|
|
1
|
+
{"version":3,"file":"get-reviews.js","sourceRoot":"","sources":["../../src/tools/get-reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM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,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-unenrolled-files.d.ts","sourceRoot":"","sources":["../../src/tools/list-unenrolled-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,GACb,IAAI,
|
|
1
|
+
{"version":3,"file":"list-unenrolled-files.d.ts","sourceRoot":"","sources":["../../src/tools/list-unenrolled-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,GACb,IAAI,CA6FN"}
|
|
@@ -45,6 +45,14 @@ export function registerListUnenrolledFilesTool(server, api) {
|
|
|
45
45
|
'and asks nothing. The answer comes from stored records rather than a ' +
|
|
46
46
|
'live Microsoft read, so it is dated — pass a listed file\'s `msId` ' +
|
|
47
47
|
'and `driveMsId` to `enroll_file` to add it. ' +
|
|
48
|
+
// ENG-4283. Stated up front, in `enroll_file`'s words, because the
|
|
49
|
+
// model has to know the scope BEFORE it picks the tool: offered as the
|
|
50
|
+
// answer to a Google Workspace customer's "what could I add?", this
|
|
51
|
+
// returns an empty list whose emptiness means nothing about their
|
|
52
|
+
// drive, and the tool cannot un-ask the question afterwards.
|
|
53
|
+
'MICROSOFT ONLY — it lists OneDrive and SharePoint workbooks and ' +
|
|
54
|
+
'covers no other storage. An account with no Microsoft link gets ' +
|
|
55
|
+
'nothing from it, which is not a statement about what that user has. ' +
|
|
48
56
|
// ENG-2814. The model has to know a short page is not an answer, or it
|
|
49
57
|
// will report "nothing to add" from the middle of a walk.
|
|
50
58
|
'PAGINATED: a response ending with a cursor has MORE files past it, ' +
|
|
@@ -152,6 +160,37 @@ function renderFound(items, freshness, nextCursor = null) {
|
|
|
152
160
|
return (`${counted}\n\n` +
|
|
153
161
|
`${lines.join('\n')}\n\n${dateline(freshness)}${moreToCome(nextCursor)}`);
|
|
154
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* ENG-4283 — the backend's code for "no Microsoft tenant on this account".
|
|
165
|
+
*
|
|
166
|
+
* Duplicated from `DriveInventoryFreshnessDto` rather than imported, for the
|
|
167
|
+
* same reason `graph-link-failure.ts` duplicates its four: this package ships
|
|
168
|
+
* over npm and takes no build dependency on the API tree. EXACT match, and no
|
|
169
|
+
* case folding — a value this package has not learned about is not "probably
|
|
170
|
+
* this one", and guessing at a spelling is precisely what left ENG-4311's
|
|
171
|
+
* comparison dead for a release.
|
|
172
|
+
*/
|
|
173
|
+
const NO_MICROSOFT_TENANT = 'NO_MICROSOFT_TENANT';
|
|
174
|
+
/**
|
|
175
|
+
* What to tell the assistant when the lane does not serve this account.
|
|
176
|
+
*
|
|
177
|
+
* Three rules, each answering a specific way the old message did harm:
|
|
178
|
+
* - **No retry language.** Nothing about this changes on a later call, and a
|
|
179
|
+
* model complies with "try again shortly" indefinitely.
|
|
180
|
+
* - **No `connect_microsoft`.** There is no tenant behind it for this user, so
|
|
181
|
+
* the link would send them to Microsoft to be refused (ENG-2614).
|
|
182
|
+
* - **Names the scope and the alternative**, so the answer is usable rather
|
|
183
|
+
* than only correct — a Google customer's files are enrolled a different way
|
|
184
|
+
* and the assistant should say so instead of stopping at a refusal.
|
|
185
|
+
*/
|
|
186
|
+
const NO_MICROSOFT_TENANT_TEXT = 'Rockhopper\'s drive inventory covers OneDrive and SharePoint, and this ' +
|
|
187
|
+
'account has no Microsoft link — so there is nothing for it to list and ' +
|
|
188
|
+
'nothing to retry. This is NOT evidence that every workbook is already in ' +
|
|
189
|
+
'Rockhopper, and it does not mean the user has no files: it means this ' +
|
|
190
|
+
'particular list cannot see them. Do not call `list_unenrolled_files` again ' +
|
|
191
|
+
'for this user, and do not report their drive as covered. If they use ' +
|
|
192
|
+
'Google Workspace, their spreadsheets are added through Rockhopper directly ' +
|
|
193
|
+
'rather than from this list.';
|
|
155
194
|
function renderEmpty(freshness, nextCursor = null) {
|
|
156
195
|
// ORDER IS LOAD-BEARING. A broken link and a first refresh that has not
|
|
157
196
|
// finished both mean there is nothing to page THROUGH, so sending the model
|
|
@@ -165,6 +204,22 @@ function renderEmpty(freshness, nextCursor = null) {
|
|
|
165
204
|
// been started and to try again shortly. Neither was true. The four codes are
|
|
166
205
|
// kept APART rather than collapsed, because three of them name a different
|
|
167
206
|
// person who has to act — see `graph-link-failure.ts`.
|
|
207
|
+
// ENG-4283 — FIRST, ahead of every other branch including the link failures.
|
|
208
|
+
//
|
|
209
|
+
// The four states below all assume this lane COVERS the caller and something
|
|
210
|
+
// went wrong on the way to filling it. An account with no Microsoft tenant is
|
|
211
|
+
// a fifth thing: the refresh returns before it writes a sync-state row, so
|
|
212
|
+
// `asOf` stays null and `refreshing` stays false PERMANENTLY, and the
|
|
213
|
+
// never-refreshed branch below fires on every call — asserting a scan "has
|
|
214
|
+
// been started" when none was, and instructing a retry that cannot terminate.
|
|
215
|
+
//
|
|
216
|
+
// It outranks the link failures rather than following them because a link
|
|
217
|
+
// failure names something a user or an administrator can fix, and this names
|
|
218
|
+
// something neither can: sending a Google-only customer to
|
|
219
|
+
// `connect_microsoft` is ENG-2614's loop with an extra hop.
|
|
220
|
+
if (freshness.inapplicableReason === NO_MICROSOFT_TENANT) {
|
|
221
|
+
return NO_MICROSOFT_TENANT_TEXT;
|
|
222
|
+
}
|
|
168
223
|
const linkFailure = graphLinkFailureFrom(freshness.lastFailureReason);
|
|
169
224
|
if (linkFailure)
|
|
170
225
|
return GRAPH_LINK_FAILURE_TEXT[linkFailure];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-unenrolled-files.js","sourceRoot":"","sources":["../../src/tools/list-unenrolled-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAMlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,+BAA+B,CAC7C,MAAiB,EACjB,GAAc;IAEd,MAAM,CAAC,YAAY,CACjB,uBAAuB,EACvB;QACE,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EACT,mEAAmE;YACnE,iEAAiE;YACjE,2DAA2D;YAC3D,oEAAoE;YACpE,uEAAuE;YACvE,qEAAqE;YACrE,8CAA8C;YAC9C,uEAAuE;YACvE,0DAA0D;YAC1D,qEAAqE;YACrE,oEAAoE;YACpE,kEAAkE;YAClE,oEAAoE;YACpE,qEAAqE;YACrE,gEAAgE;YAChE,uEAAuE;QACzE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,GAAG,CAAC;iBACR,QAAQ,EAAE;iBACV,QAAQ,CACP,4DAA4D;gBAC1D,gEAAgE;gBAChE,kCAAkC,CACrC;YACH,MAAM,EAAE,CAAC;iBACN,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CACP,6DAA6D;gBAC3D,4DAA4D;gBAC5D,iEAAiE;gBACjE,4DAA4D,CAC/D;SACJ,CAAC;QACF,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,aAAa,EAAE,KAAK;SACrB;KACF,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,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CAAC,SAAkC;IACrD,IAAI,CAAC,SAAS,CAAC,mBAAmB,IAAI,CAAC,SAAS,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAC1E,OAAO,CACL,uBAAuB,SAAS,CAAC,mBAAmB,qBAAqB;QACzE,WAAW,SAAS,CAAC,aAAa,EAAE;QACpC,GAAG,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAC7E,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-unenrolled-files.js","sourceRoot":"","sources":["../../src/tools/list-unenrolled-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAMlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,+BAA+B,CAC7C,MAAiB,EACjB,GAAc;IAEd,MAAM,CAAC,YAAY,CACjB,uBAAuB,EACvB;QACE,KAAK,EAAE,sCAAsC;QAC7C,WAAW,EACT,mEAAmE;YACnE,iEAAiE;YACjE,2DAA2D;YAC3D,oEAAoE;YACpE,uEAAuE;YACvE,qEAAqE;YACrE,8CAA8C;YAC9C,mEAAmE;YACnE,uEAAuE;YACvE,oEAAoE;YACpE,kEAAkE;YAClE,6DAA6D;YAC7D,kEAAkE;YAClE,kEAAkE;YAClE,sEAAsE;YACtE,uEAAuE;YACvE,0DAA0D;YAC1D,qEAAqE;YACrE,oEAAoE;YACpE,kEAAkE;YAClE,oEAAoE;YACpE,qEAAqE;YACrE,gEAAgE;YAChE,uEAAuE;QACzE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,GAAG,EAAE;iBACL,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC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AC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -169,6 +169,29 @@ export interface DriveInventoryFreshness {
|
|
|
169
169
|
/** Coarse reason code. Never a Microsoft error body — those quote names. */
|
|
170
170
|
lastFailureReason: string | null;
|
|
171
171
|
consecutiveFailures: number;
|
|
172
|
+
/**
|
|
173
|
+
* ENG-4283 — why this inventory does not serve this account AT ALL, or
|
|
174
|
+
* `null`/absent when it does.
|
|
175
|
+
*
|
|
176
|
+
* NOT a failure. `lastFailureReason` means a refresh ran and something went
|
|
177
|
+
* wrong, which a retry or a reconnect can change. This means no refresh will
|
|
178
|
+
* ever run, because the lane reads Microsoft Graph and the account has no
|
|
179
|
+
* Microsoft tenant to read. Every other field is then null-or-zero forever,
|
|
180
|
+
* which is byte-for-byte what a genuine first run looks like — so this field
|
|
181
|
+
* is the only thing that separates them, and the client may not infer it.
|
|
182
|
+
*
|
|
183
|
+
* Optional because this package ships to customers over npm on its own
|
|
184
|
+
* clock: a `npx` user picks up `latest` against whatever backend their tenant
|
|
185
|
+
* runs, so a deployment that predates the field is a real case. Absent means
|
|
186
|
+
* "this backend does not answer the question", which keeps the old handling
|
|
187
|
+
* rather than guessing at it.
|
|
188
|
+
*
|
|
189
|
+
* Typed as a bare string, not a union, because a value added on the server is
|
|
190
|
+
* invisible here until someone edits this line. Readers match the codes they
|
|
191
|
+
* know EXACTLY and fall through on anything else — see
|
|
192
|
+
* `list-unenrolled-files.ts`.
|
|
193
|
+
*/
|
|
194
|
+
inapplicableReason?: string | null;
|
|
172
195
|
}
|
|
173
196
|
/** Which slice of the inventory was asked for. */
|
|
174
197
|
export type DriveInventoryEnrollment = 'all' | 'enrolled' | 'not_enrolled';
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM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": "2.1.60-staging.2f43ad1",
|
|
4
4
|
"description": "Rockhopper MCP server — expose file metadata, versions, reviews, and comments to AI tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|