@hanhnd/agent-kit 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -208
- package/dist/kit-server.js +230 -226
- package/dist/tools/handoffs.js +11 -6
- package/package.json +8 -8
package/dist/tools/handoffs.js
CHANGED
|
@@ -8,7 +8,7 @@ export const HANDOFF_TYPES = [
|
|
|
8
8
|
'scenario',
|
|
9
9
|
'investigation',
|
|
10
10
|
];
|
|
11
|
-
const TICKET_ID_PATTERN = /\b[A-
|
|
11
|
+
const TICKET_ID_PATTERN = /\b[A-Z][A-Z0-9]+-\d+\b/;
|
|
12
12
|
function findTicketId(value) {
|
|
13
13
|
return value.match(TICKET_ID_PATTERN)?.[0].toLowerCase() ?? null;
|
|
14
14
|
}
|
|
@@ -33,11 +33,16 @@ export function normalizeHandoffType(type) {
|
|
|
33
33
|
return type;
|
|
34
34
|
}
|
|
35
35
|
export function deriveFeatureSlug(input) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const requestedTicketSlug = findTicketId(input.requestedSlug);
|
|
37
|
+
if (requestedTicketSlug)
|
|
38
|
+
return requestedTicketSlug;
|
|
39
|
+
const requestedSlug = sanitizeFeatureSlug(input.requestedSlug);
|
|
40
|
+
if (requestedSlug)
|
|
41
|
+
return requestedSlug;
|
|
42
|
+
const contentTicketSlug = findTicketId(input.content);
|
|
43
|
+
if (contentTicketSlug)
|
|
44
|
+
return contentTicketSlug;
|
|
45
|
+
return (sanitizeFeatureSlug(contentSlugCandidate(input.content)) ||
|
|
41
46
|
'untitled-handoff');
|
|
42
47
|
}
|
|
43
48
|
export function resolveHandoffPath(input) {
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanhnd/agent-kit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.28",
|
|
4
|
+
"description": "Agent Kit MCP server for software development agent workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/kit-server.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"agent-kit": "dist/kit-server.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
12
13
|
],
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/hanh-nd/agent-kit.git"
|
|
19
|
+
"url": "git+https://github.com/hanh-nd/agent-kit.git",
|
|
20
|
+
"directory": "mcp"
|
|
19
21
|
},
|
|
20
22
|
"scripts": {
|
|
21
|
-
"build
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"build": "npm run build:skills && tsc && npm run bundle",
|
|
23
|
+
"build": "tsc && npm run bundle",
|
|
24
24
|
"bundle": "esbuild src/kit-server.ts --bundle --platform=node --format=esm --outfile=dist/kit-server.js --external:node:* --banner:js=\"import { createRequire } from 'module'; const require = createRequire(import.meta.url);\"",
|
|
25
25
|
"dev": "tsc --watch",
|
|
26
|
-
"
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.13.1",
|