@skedulo/memory-hub-mcp 0.2.39 → 0.2.40
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/assets/skills/ask/SKILL.md +3 -3
- package/assets/skills/delegate-ticket/SKILL.md +2 -1
- package/assets/skills/plan-ticket/SKILL.md +5 -2
- package/dist/ask-prompt.js +1 -1
- package/dist/index.js +1 -1
- package/dist/list-fields.js +27 -0
- package/dist/read-api.js +6 -1
- package/package.json +1 -1
- package/skill-guide.md +3 -1
|
@@ -115,8 +115,8 @@ steps 4 to 7 say what changes.
|
|
|
115
115
|
returns every project's shared items, from every team, plus the person's own, Private ones
|
|
116
116
|
included. Each item names its `repoName` and `teamName`.
|
|
117
117
|
2. When a project is named, also list its pages, which works outside a repo too:
|
|
118
|
-
`memory_list type=Wiki scope=all titlePrefix="<Project> ›"` (paginate
|
|
119
|
-
have `total`). Pick the pages the question needs.
|
|
118
|
+
`memory_list type=Wiki scope=all titlePrefix="<Project> ›" fields=["uid","title"]` (paginate
|
|
119
|
+
with `offset` until you have `total`). Pick the pages the question needs.
|
|
120
120
|
3. When the question is about one project and an answer comes from another, say which project it
|
|
121
121
|
came from and treat it as precedent, not as that project's rule. Keep the other customer's
|
|
122
122
|
names, data and terms out of anything meant for this one.
|
|
@@ -550,7 +550,7 @@ If step 6 found the answer, skip this step: answer (step 8) and save it (step 9)
|
|
|
550
550
|
question handled by steps 2.5 and 2.6 skips this step too.
|
|
551
551
|
|
|
552
552
|
If nothing found answers the question, say so plainly. First list the projects the hub holds:
|
|
553
|
-
`memory_list type=Wiki scope=all limit=200`, paged with `offset` until `total`; keep only titles
|
|
553
|
+
`memory_list type=Wiki scope=all limit=200 fields=["title"]`, paged with `offset` until `total`; keep only titles
|
|
554
554
|
containing " › ", take the text before it, dedupe, show up to 15, and ask
|
|
555
555
|
"Did you mean one of these?" Only if none fits, ask which sources to read: links or names of
|
|
556
556
|
documents, tickets, Slack channels or repos. In the same message, say that reading sources costs
|
|
@@ -147,7 +147,8 @@ from the pages and the code at the pinned commit, and say in your report which o
|
|
|
147
147
|
path that handles it, and give it no Acceptance Criteria item.
|
|
148
148
|
8. Cross-repo impact: start from the outcome's field, then look for every caller of each route,
|
|
149
149
|
exported function, field and event topic the outcome changes: the architecture-map edges that touch
|
|
150
|
-
its files (`memory_list type=Skill tags=["ArchitectureMap"]
|
|
150
|
+
its files (`memory_list type=Skill tags=["ArchitectureMap"] fields=["uid","title","repoName","check"]`,
|
|
151
|
+
then `memory_get`), and a code search
|
|
151
152
|
for each name in this repo at the pinned commit and in the repos those maps name (`git grep`,
|
|
152
153
|
`gh search code`). Note what each caller relies on. With no map and no caller, write "None found"
|
|
153
154
|
and where you looked.
|
|
@@ -104,8 +104,11 @@ the Linear connector is not connected, stop and tell the developer.
|
|
|
104
104
|
the filter means no similar ticket; say nothing about it. An item whose `repoName` is not this
|
|
105
105
|
project's is precedent: say in the plan's Decisions which project it came from and check it
|
|
106
106
|
against this code, and keep that customer's names, data and settings out of the plan.
|
|
107
|
-
7. For each repo involved, read its architecture map: `memory_list type=Skill tags=["ArchitectureMap"]
|
|
108
|
-
|
|
107
|
+
7. For each repo involved, read its architecture map: `memory_list type=Skill tags=["ArchitectureMap"]
|
|
108
|
+
repo=<repo uid> fields=["uid","title"]`, with the repo's uid from `memory_listRepos`, then
|
|
109
|
+
`memory_get type=Skill uid=<uid>`. When that lists no map, or `memory_listRepos` does not show the
|
|
110
|
+
repo, list without `repo`, with `fields=["uid","title","repoName"]`, and keep the maps whose
|
|
111
|
+
`repoName` is that repo or whose title names it.
|
|
109
112
|
8. When the plan depends on what a customer's tenant runs, read the newest tenant snapshot as the
|
|
110
113
|
guide's "Tenant snapshots" says (`memory_list type=Fact scope=all titlePrefix="<Customer> <env> tenant
|
|
111
114
|
snapshot"`, take the newest by the ISO time in the title, then `memory_get` that uid), never
|
package/dist/ask-prompt.js
CHANGED
|
@@ -16,7 +16,7 @@ const FALLBACK = [
|
|
|
16
16
|
'3. Read anything cut short with `memory_get`, and back each claim with the item it came from: its title, whose it is and its date. Show uids only when asked; the closing line carries them.',
|
|
17
17
|
'4. For every incident question, read memory_getSkillGuide section="Incident records" first. An incident question with no matching incident record: follow its Discovery steps without asking: search the PIRs, answer, and save the record when the PIR states a confirmed cause. ' +
|
|
18
18
|
`An incident question also gets the affected project's delivery flow (where to develop, the hotfix path, release, what is live, recent changes), found and saved as Team without asking; see ask step 2.6, or the guide's "Incident records" section, "The affected project".`,
|
|
19
|
-
"5. Otherwise, when the hub has nothing, say so, then list the projects the hub holds (`memory_list type=Wiki scope=all limit=200`, paged with `offset` until `total`, keeping titles with ' › ' and taking the text before it, up to 15) and ask 'Did you mean one of these?' Only if none fits, ask which sources to read; reading sources costs tokens. Searching everything for a project needs Claude Code in the project's repo.",
|
|
19
|
+
"5. Otherwise, when the hub has nothing, say so, then list the projects the hub holds (`memory_list type=Wiki scope=all limit=200 fields=[\"title\"]`, paged with `offset` until `total`, keeping titles with ' › ' and taking the text before it, up to 15) and ask 'Did you mean one of these?' Only if none fits, ask which sources to read; reading sources costs tokens. Searching everything for a project needs Claude Code in the project's repo.",
|
|
20
20
|
'6. Never paste SOW text and never quote Slack. Never save prices, rates, budgets, estimates in hours, days or points, customer personal data or credentials.',
|
|
21
21
|
'7. When a note and a project rule disagree: a rule marked Pending <ticket> is not built yet, so the code or the note stands; else the code you read wins; else the project rule; else the newer note; a note from another project is precedent only. Name both with their dates. Never edit a project rule from an answer.',
|
|
22
22
|
'8. End with one line of what you updated and saved, each by its title with the uid in brackets, or "Nothing changed."',
|
package/dist/index.js
CHANGED
|
@@ -215,7 +215,7 @@ server.tool('memory_saveBatch', 'Save up to 25 Facts/Skills/Scenarios/Wiki pages
|
|
|
215
215
|
],
|
|
216
216
|
};
|
|
217
217
|
});
|
|
218
|
-
server.tool('memory_list', "List memory items of one type that you can see, newest first, with a title, visibility, repo and whether each is yours — an inventory for choosing which items to share, move or review. Feed the uids to memory_setVisibility or memory_moveResourceRepo as resourceIds. Returns total (all matches) and one page of items; page with offset. Not a search: use memory_recall to find content by meaning.", read_api_1.READ_FUNCTIONS.list.shape, async (input) => {
|
|
218
|
+
server.tool('memory_list', "List memory items of one type that you can see, newest first, with a title, visibility, repo and whether each is yours — an inventory for choosing which items to share, move or review. Feed the uids to memory_setVisibility or memory_moveResourceRepo as resourceIds. Returns total (all matches) and one page of items; page with offset. Pass fields to get only what you need: every item also carries its source and check, which make a long list large. Not a search: use memory_recall to find content by meaning.", read_api_1.READ_FUNCTIONS.list.shape, async (input) => {
|
|
219
219
|
const result = await read_api_1.READ_FUNCTIONS.list.run(readDeps(), input);
|
|
220
220
|
return { content: [{ type: 'text', text: JSON.stringify(result) }] };
|
|
221
221
|
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.projectListItems = exports.LIST_FIELDS_DESCRIPTION = exports.LIST_FIELDS = void 0;
|
|
4
|
+
exports.LIST_FIELDS = [
|
|
5
|
+
'uid',
|
|
6
|
+
'type',
|
|
7
|
+
'title',
|
|
8
|
+
'visibility',
|
|
9
|
+
'repoId',
|
|
10
|
+
'repoName',
|
|
11
|
+
'teamName',
|
|
12
|
+
'mine',
|
|
13
|
+
'lastModifiedDate',
|
|
14
|
+
'source',
|
|
15
|
+
'upstream',
|
|
16
|
+
'check',
|
|
17
|
+
];
|
|
18
|
+
exports.LIST_FIELDS_DESCRIPTION = 'Return only these fields of each item, e.g. ["title"] to read titles or ["uid","title"] to choose items to memory_get. Omit for every field. Get an item before relying on it.';
|
|
19
|
+
function projectListItems(result, fields) {
|
|
20
|
+
if (!fields?.length)
|
|
21
|
+
return result;
|
|
22
|
+
return {
|
|
23
|
+
total: result.total,
|
|
24
|
+
items: result.items.map((item) => Object.fromEntries(fields.filter((field) => item[field] !== undefined).map((field) => [field, item[field]]))),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.projectListItems = projectListItems;
|
package/dist/read-api.js
CHANGED
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const annotate_1 = require("./annotate");
|
|
6
6
|
const change_tools_1 = require("./change-tools");
|
|
7
7
|
const check_sources_1 = require("./check-sources");
|
|
8
|
+
const list_fields_1 = require("./list-fields");
|
|
8
9
|
const list_repos_1 = require("./list-repos");
|
|
9
10
|
const recall_1 = require("./recall");
|
|
10
11
|
const source_1 = require("./source");
|
|
@@ -41,6 +42,7 @@ const listShape = {
|
|
|
41
42
|
verifiedBefore: zod_1.z.string().min(1).refine(source_1.isIsoDate, 'verifiedBefore must be an ISO date or datetime').optional().describe('Only items last verified before this ISO date or datetime.'),
|
|
42
43
|
offset: zod_1.z.number().int().min(0).optional(),
|
|
43
44
|
limit: zod_1.z.number().int().min(1).max(200).optional().describe('Default 50, max 200.'),
|
|
45
|
+
fields: zod_1.z.array(zod_1.z.enum(list_fields_1.LIST_FIELDS)).min(1).optional().describe(list_fields_1.LIST_FIELDS_DESCRIPTION),
|
|
44
46
|
};
|
|
45
47
|
const checkSourcesShape = {
|
|
46
48
|
repo: zod_1.z.string().min(1).optional().describe("owner/name. Defaults to the current directory's repo."),
|
|
@@ -95,7 +97,10 @@ exports.READ_FUNCTIONS = {
|
|
|
95
97
|
summary: 'List one type of items you can see, newest first, one page at a time.',
|
|
96
98
|
flags: '`check`, `upstream`; not annotated, so no `staleness` or `superseded`',
|
|
97
99
|
shape: listShape,
|
|
98
|
-
run: ({ client }, input) =>
|
|
100
|
+
run: async ({ client }, input) => {
|
|
101
|
+
const { fields, ...filters } = input;
|
|
102
|
+
return (0, list_fields_1.projectListItems)(await client.listResources(filters), fields);
|
|
103
|
+
},
|
|
99
104
|
},
|
|
100
105
|
related: {
|
|
101
106
|
name: 'related',
|
package/package.json
CHANGED
package/skill-guide.md
CHANGED
|
@@ -911,7 +911,9 @@ on one bad item.
|
|
|
911
911
|
means no repo), `visibility`, `titlePrefix`, `tags` (not for Scenario),
|
|
912
912
|
`mine`, `createdAfter` (ISO date), `sourceRepo` (`owner/name`, exact) and
|
|
913
913
|
`verifiedBefore` (ISO date; items last verified earlier). Each item carries its
|
|
914
|
-
`source` when it has one.
|
|
914
|
+
`source` when it has one. `fields` returns only the named fields of each item
|
|
915
|
+
(`["title"]`, `["uid","title"]`), which keeps a long list small; get an item
|
|
916
|
+
before relying on it. It is not a search; use `memory_recall`
|
|
915
917
|
for that. It changes nothing.
|
|
916
918
|
- **`memory_saveBatch`** — `items` (1-25), each exactly a `memory_save` input.
|
|
917
919
|
Results come back by `index`; duplicates appear as a short `similarTo` list.
|