@hachej/boring-tasks 0.1.79
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 +27 -0
- package/dist/front/index.d.ts +42 -0
- package/dist/front/index.js +1134 -0
- package/dist/server/index.d.ts +161 -0
- package/dist/server/index.js +469 -0
- package/dist/shared/index.d.ts +69 -0
- package/dist/shared/index.js +9 -0
- package/package.json +73 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const TASKS_PLUGIN_ID = "tasks";
|
|
2
|
+
declare const TASKS_PLUGIN_LABEL = "Tasks";
|
|
3
|
+
declare const TASKS_ROUTE_PREFIX = "/api/boring-tasks";
|
|
4
|
+
type BoringTaskStatusId = string;
|
|
5
|
+
interface BoringTaskColumn {
|
|
6
|
+
id: BoringTaskStatusId;
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
acceptsDrop?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface BoringTaskBoardConfig {
|
|
13
|
+
adapterId: string;
|
|
14
|
+
columns: BoringTaskColumn[];
|
|
15
|
+
defaultColumnId?: BoringTaskStatusId;
|
|
16
|
+
}
|
|
17
|
+
interface BoringTaskEpicRef {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
}
|
|
22
|
+
interface BoringTaskPullRequestRef {
|
|
23
|
+
id: string;
|
|
24
|
+
number: string;
|
|
25
|
+
title: string;
|
|
26
|
+
url?: string;
|
|
27
|
+
state?: string;
|
|
28
|
+
}
|
|
29
|
+
interface BoringTaskCard {
|
|
30
|
+
id: string;
|
|
31
|
+
/** Display identifier only, adapter-scoped. `id` is the stable key. */
|
|
32
|
+
number: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
statusId: BoringTaskStatusId;
|
|
36
|
+
tags?: string[];
|
|
37
|
+
/** Optional higher-level grouping from the native task system: GitHub milestone, Linear project, Kata epic, etc. */
|
|
38
|
+
epic?: BoringTaskEpicRef;
|
|
39
|
+
/** Allows card-level actions to route back to the owning adapter. */
|
|
40
|
+
adapterId: string;
|
|
41
|
+
/** Open or otherwise associated pull requests discovered by the adapter. */
|
|
42
|
+
pullRequests?: BoringTaskPullRequestRef[];
|
|
43
|
+
url?: string;
|
|
44
|
+
}
|
|
45
|
+
interface BoringTaskAdapterCapabilities {
|
|
46
|
+
move: boolean;
|
|
47
|
+
delete?: boolean;
|
|
48
|
+
}
|
|
49
|
+
interface BoringTaskAdapterSummary {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
capabilities: BoringTaskAdapterCapabilities;
|
|
54
|
+
}
|
|
55
|
+
interface BoringTaskMoveInput {
|
|
56
|
+
taskId: string;
|
|
57
|
+
statusId: BoringTaskStatusId;
|
|
58
|
+
}
|
|
59
|
+
interface BoringTaskDeleteInput {
|
|
60
|
+
taskId: string;
|
|
61
|
+
}
|
|
62
|
+
interface BoringTaskAdapter extends BoringTaskAdapterSummary {
|
|
63
|
+
getBoardConfig(): Promise<BoringTaskBoardConfig> | BoringTaskBoardConfig;
|
|
64
|
+
listTasks(): Promise<BoringTaskCard[]> | BoringTaskCard[];
|
|
65
|
+
moveTask?(input: BoringTaskMoveInput): Promise<BoringTaskCard> | BoringTaskCard;
|
|
66
|
+
deleteTask?(input: BoringTaskDeleteInput): Promise<void> | void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { type BoringTaskAdapter, type BoringTaskAdapterCapabilities, type BoringTaskAdapterSummary, type BoringTaskBoardConfig, type BoringTaskCard, type BoringTaskColumn, type BoringTaskDeleteInput, type BoringTaskEpicRef, type BoringTaskMoveInput, type BoringTaskPullRequestRef, type BoringTaskStatusId, TASKS_PLUGIN_ID, TASKS_PLUGIN_LABEL, TASKS_ROUTE_PREFIX };
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hachej/boring-tasks",
|
|
3
|
+
"version": "0.1.79",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"description": "Lean Kanban task board plugin for Boring workspace with adapter-mapped task sources.",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/hachej/boring-ui"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/hachej/boring-ui",
|
|
13
|
+
"boring": {
|
|
14
|
+
"id": "tasks",
|
|
15
|
+
"label": "Tasks",
|
|
16
|
+
"front": "dist/front/index.js",
|
|
17
|
+
"server": "dist/server/index.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/front/index.d.ts",
|
|
25
|
+
"import": "./dist/front/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./front": {
|
|
28
|
+
"types": "./dist/front/index.d.ts",
|
|
29
|
+
"import": "./dist/front/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./shared": {
|
|
32
|
+
"types": "./dist/shared/index.d.ts",
|
|
33
|
+
"import": "./dist/shared/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./server": {
|
|
36
|
+
"types": "./dist/server/index.d.ts",
|
|
37
|
+
"import": "./dist/server/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"test": "vitest run --passWithNoTests",
|
|
46
|
+
"lint": "pnpm run typecheck",
|
|
47
|
+
"clean": "rm -rf dist .tsbuildinfo"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@hachej/boring-ui-kit": "workspace:*",
|
|
51
|
+
"lucide-react": "^1.21.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@hachej/boring-workspace": "workspace:*",
|
|
55
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
56
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@hachej/boring-workspace": "workspace:*",
|
|
60
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
61
|
+
"@testing-library/react": "^16.3.0",
|
|
62
|
+
"@types/node": "^22.0.0",
|
|
63
|
+
"@types/react": "^19.0.0",
|
|
64
|
+
"@types/react-dom": "^19.0.0",
|
|
65
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
66
|
+
"jsdom": "^29.0.2",
|
|
67
|
+
"react": "^19.0.0",
|
|
68
|
+
"react-dom": "^19.0.0",
|
|
69
|
+
"tsup": "^8.4.0",
|
|
70
|
+
"typescript": "~6.0.3",
|
|
71
|
+
"vitest": "^4.1.9"
|
|
72
|
+
}
|
|
73
|
+
}
|