@paca-ai/paca-mcp 0.1.0-rc.6
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/api/client.d.ts +53 -0
- package/api/client.d.ts.map +1 -0
- package/api/client.js +267 -0
- package/api/client.js.map +1 -0
- package/api/doc-client.d.ts +26 -0
- package/api/doc-client.d.ts.map +1 -0
- package/api/doc-client.js +109 -0
- package/api/doc-client.js.map +1 -0
- package/api/extended-client.d.ts +44 -0
- package/api/extended-client.d.ts.map +1 -0
- package/api/extended-client.js +167 -0
- package/api/extended-client.js.map +1 -0
- package/api/github-client.d.ts +21 -0
- package/api/github-client.d.ts.map +1 -0
- package/api/github-client.js +87 -0
- package/api/github-client.js.map +1 -0
- package/api/index.d.ts +7 -0
- package/api/index.d.ts.map +1 -0
- package/api/index.js +7 -0
- package/api/index.js.map +1 -0
- package/api/task-extended-client.d.ts +28 -0
- package/api/task-extended-client.d.ts.map +1 -0
- package/api/task-extended-client.js +123 -0
- package/api/task-extended-client.js.map +1 -0
- package/api/views-client.d.ts +36 -0
- package/api/views-client.d.ts.map +1 -0
- package/api/views-client.js +157 -0
- package/api/views-client.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +41 -0
- package/index.js.map +1 -0
- package/package.json +40 -0
- package/server.d.ts +9 -0
- package/server.d.ts.map +1 -0
- package/server.js +46 -0
- package/server.js.map +1 -0
- package/tools/attachment-tools.d.ts +15 -0
- package/tools/attachment-tools.d.ts.map +1 -0
- package/tools/attachment-tools.js +402 -0
- package/tools/attachment-tools.js.map +1 -0
- package/tools/doc-github-tools.d.ts +15 -0
- package/tools/doc-github-tools.d.ts.map +1 -0
- package/tools/doc-github-tools.js +520 -0
- package/tools/doc-github-tools.js.map +1 -0
- package/tools/document-tools.d.ts +16 -0
- package/tools/document-tools.d.ts.map +1 -0
- package/tools/document-tools.js +224 -0
- package/tools/document-tools.js.map +1 -0
- package/tools/index.d.ts +19 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +171 -0
- package/tools/index.js.map +1 -0
- package/tools/member-tools.d.ts +15 -0
- package/tools/member-tools.d.ts.map +1 -0
- package/tools/member-tools.js +391 -0
- package/tools/member-tools.js.map +1 -0
- package/tools/project-tools.d.ts +16 -0
- package/tools/project-tools.d.ts.map +1 -0
- package/tools/project-tools.js +178 -0
- package/tools/project-tools.js.map +1 -0
- package/tools/sprint-tools.d.ts +16 -0
- package/tools/sprint-tools.d.ts.map +1 -0
- package/tools/sprint-tools.js +258 -0
- package/tools/sprint-tools.js.map +1 -0
- package/tools/task-activity-tools.d.ts +15 -0
- package/tools/task-activity-tools.d.ts.map +1 -0
- package/tools/task-activity-tools.js +425 -0
- package/tools/task-activity-tools.js.map +1 -0
- package/tools/task-tools.d.ts +16 -0
- package/tools/task-tools.d.ts.map +1 -0
- package/tools/task-tools.js +344 -0
- package/tools/task-tools.js.map +1 -0
- package/tools/task-type-tools.d.ts +12 -0
- package/tools/task-type-tools.d.ts.map +1 -0
- package/tools/task-type-tools.js +459 -0
- package/tools/task-type-tools.js.map +1 -0
- package/tools/view-tools.d.ts +15 -0
- package/tools/view-tools.d.ts.map +1 -0
- package/tools/view-tools.js +660 -0
- package/tools/view-tools.js.map +1 -0
- package/types/index.d.ts +564 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +2 -0
- package/types/index.js.map +1 -0
- package/utils/converters.d.ts +13 -0
- package/utils/converters.d.ts.map +1 -0
- package/utils/converters.js +50 -0
- package/utils/converters.js.map +1 -0
- package/utils/formatters.d.ts +34 -0
- package/utils/formatters.d.ts.map +1 -0
- package/utils/formatters.js +87 -0
- package/utils/formatters.js.map +1 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/index.js +3 -0
- package/utils/index.js.map +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Document, Project, Sprint, Task } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Formats a task object into a readable string.
|
|
4
|
+
* @param task - The task object to format
|
|
5
|
+
* @returns Formatted task string with description in Markdown
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatTask(task: Task): string;
|
|
8
|
+
/**
|
|
9
|
+
* Formats a document object into a readable string.
|
|
10
|
+
* @param doc - The document object to format
|
|
11
|
+
* @returns Formatted document string with content in Markdown
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatDocument(doc: Document): string;
|
|
14
|
+
/**
|
|
15
|
+
* Formats a project object into a readable string.
|
|
16
|
+
* @param project - The project object to format
|
|
17
|
+
* @returns Formatted project string
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatProject(project: Project): string;
|
|
20
|
+
/**
|
|
21
|
+
* Formats a sprint object into a readable string.
|
|
22
|
+
* @param sprint - The sprint object to format
|
|
23
|
+
* @returns Formatted sprint string
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatSprint(sprint: Sprint): string;
|
|
26
|
+
/**
|
|
27
|
+
* Formats a list of items with a separator.
|
|
28
|
+
* @param items - Array of items to format
|
|
29
|
+
* @param formatter - Function to format each item
|
|
30
|
+
* @param separator - Separator string between items
|
|
31
|
+
* @returns Formatted string with all items
|
|
32
|
+
*/
|
|
33
|
+
export declare function formatList<T>(items: T[], formatter: (item: T) => string, separator?: string): string;
|
|
34
|
+
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/utils/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzE;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAqB7C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAepD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAOtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAUnD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC3B,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,EAC9B,SAAS,GAAE,MAAsB,GAC/B,MAAM,CAER"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { blocknoteToMarkdown } from "./converters.js";
|
|
2
|
+
/**
|
|
3
|
+
* Formats a task object into a readable string.
|
|
4
|
+
* @param task - The task object to format
|
|
5
|
+
* @returns Formatted task string with description in Markdown
|
|
6
|
+
*/
|
|
7
|
+
export function formatTask(task) {
|
|
8
|
+
const description = task.description
|
|
9
|
+
? blocknoteToMarkdown(task.description)
|
|
10
|
+
: "No description";
|
|
11
|
+
return `Task #${task.task_number}: ${task.title}
|
|
12
|
+
ID: ${task.id}
|
|
13
|
+
Status: ${task.status_id || "None"}
|
|
14
|
+
Type: ${task.task_type_id || "None"}
|
|
15
|
+
Sprint: ${task.sprint_id || "None"}
|
|
16
|
+
Assignee: ${task.assignee_id || "Unassigned"}
|
|
17
|
+
Parent Task: ${task.parent_task_id || "None"}
|
|
18
|
+
Importance: ${task.importance}
|
|
19
|
+
Tags: ${task.tags && task.tags.length > 0 ? task.tags.join(", ") : "None"}
|
|
20
|
+
Start Date: ${task.start_date || "None"}
|
|
21
|
+
Due Date: ${task.due_date || "None"}
|
|
22
|
+
Created: ${task.created_at}
|
|
23
|
+
Updated: ${task.updated_at}
|
|
24
|
+
|
|
25
|
+
Description:
|
|
26
|
+
${description}`;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Formats a document object into a readable string.
|
|
30
|
+
* @param doc - The document object to format
|
|
31
|
+
* @returns Formatted document string with content in Markdown
|
|
32
|
+
*/
|
|
33
|
+
export function formatDocument(doc) {
|
|
34
|
+
const content = doc.content ? blocknoteToMarkdown(doc.content) : "No content";
|
|
35
|
+
return `Document: ${doc.title}
|
|
36
|
+
ID: ${doc.id}
|
|
37
|
+
Project: ${doc.project_id || "None"}
|
|
38
|
+
Folder: ${doc.folder_id || "None"}
|
|
39
|
+
Position: ${doc.position}
|
|
40
|
+
Created by: ${doc.created_by || "Unknown"}
|
|
41
|
+
Updated by: ${doc.updated_by || "Unknown"}
|
|
42
|
+
Created: ${doc.created_at}
|
|
43
|
+
Updated: ${doc.updated_at}
|
|
44
|
+
|
|
45
|
+
Content:
|
|
46
|
+
${content}`;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Formats a project object into a readable string.
|
|
50
|
+
* @param project - The project object to format
|
|
51
|
+
* @returns Formatted project string
|
|
52
|
+
*/
|
|
53
|
+
export function formatProject(project) {
|
|
54
|
+
return `Project: ${project.name}
|
|
55
|
+
ID: ${project.id}
|
|
56
|
+
Description: ${project.description || "No description"}
|
|
57
|
+
Task ID Prefix: ${project.task_id_prefix || "None"}
|
|
58
|
+
Created by: ${project.created_by || "Unknown"}
|
|
59
|
+
Created: ${project.created_at}`;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Formats a sprint object into a readable string.
|
|
63
|
+
* @param sprint - The sprint object to format
|
|
64
|
+
* @returns Formatted sprint string
|
|
65
|
+
*/
|
|
66
|
+
export function formatSprint(sprint) {
|
|
67
|
+
return `Sprint: ${sprint.name}
|
|
68
|
+
ID: ${sprint.id}
|
|
69
|
+
Project: ${sprint.project_id}
|
|
70
|
+
Start Date: ${sprint.start_date || "None"}
|
|
71
|
+
End Date: ${sprint.end_date || "None"}
|
|
72
|
+
Goal: ${sprint.goal || "None"}
|
|
73
|
+
Status: ${sprint.status}
|
|
74
|
+
Created: ${sprint.created_at}
|
|
75
|
+
Updated: ${sprint.updated_at}`;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Formats a list of items with a separator.
|
|
79
|
+
* @param items - Array of items to format
|
|
80
|
+
* @param formatter - Function to format each item
|
|
81
|
+
* @param separator - Separator string between items
|
|
82
|
+
* @returns Formatted string with all items
|
|
83
|
+
*/
|
|
84
|
+
export function formatList(items, formatter, separator = "\n\n---\n\n") {
|
|
85
|
+
return items.map(formatter).join(separator);
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=formatters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../src/utils/formatters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAU;IACpC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW;QACnC,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC;QACvC,CAAC,CAAC,gBAAgB,CAAC;IAEpB,OAAO,SAAS,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,KAAK;MAC1C,IAAI,CAAC,EAAE;UACH,IAAI,CAAC,SAAS,IAAI,MAAM;QAC1B,IAAI,CAAC,YAAY,IAAI,MAAM;UACzB,IAAI,CAAC,SAAS,IAAI,MAAM;YACtB,IAAI,CAAC,WAAW,IAAI,YAAY;eAC7B,IAAI,CAAC,cAAc,IAAI,MAAM;cAC9B,IAAI,CAAC,UAAU;QACrB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM;cAC3D,IAAI,CAAC,UAAU,IAAI,MAAM;YAC3B,IAAI,CAAC,QAAQ,IAAI,MAAM;WACxB,IAAI,CAAC,UAAU;WACf,IAAI,CAAC,UAAU;;;EAGxB,WAAW,EAAE,CAAC;AAChB,CAAC;AAED;;;;GAIG;AAC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C,IAAI,CAAC,SAAS,CAAC,CAAC;AAC7C,CAAC"}
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
package/utils/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|