@xxkeefer/mrkl 0.1.0
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/LICENSE +21 -0
- package/dist/cli.mjs +137 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xxkeefer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { defineCommand, runMain } from 'citty';
|
|
3
|
+
import consola from 'consola';
|
|
4
|
+
|
|
5
|
+
function initConfig(_dir, _opts) {
|
|
6
|
+
throw new Error("not implemented");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const initCommand = defineCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "init",
|
|
12
|
+
description: "Initialize mrkl in the current project"
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
prefix: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Project prefix for task IDs (e.g., VON)"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
run({ args }) {
|
|
21
|
+
const dir = process.cwd();
|
|
22
|
+
initConfig(dir, { prefix: args.prefix });
|
|
23
|
+
consola.success("mrkl initialized");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
function createTask(_opts) {
|
|
28
|
+
throw new Error("not implemented");
|
|
29
|
+
}
|
|
30
|
+
function listTasks(_filter) {
|
|
31
|
+
throw new Error("not implemented");
|
|
32
|
+
}
|
|
33
|
+
function archiveTask(_dir, _id) {
|
|
34
|
+
throw new Error("not implemented");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const createCommand = defineCommand({
|
|
38
|
+
meta: {
|
|
39
|
+
name: "create",
|
|
40
|
+
description: "Create a new task"
|
|
41
|
+
},
|
|
42
|
+
args: {
|
|
43
|
+
type: {
|
|
44
|
+
type: "positional",
|
|
45
|
+
description: "Task type (feat, fix, chore, docs, perf, refactor, test, ci, build, style)",
|
|
46
|
+
required: true
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
type: "positional",
|
|
50
|
+
description: "Task title",
|
|
51
|
+
required: true
|
|
52
|
+
},
|
|
53
|
+
desc: {
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "Task description"
|
|
56
|
+
},
|
|
57
|
+
ac: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "Acceptance criterion (can be specified multiple times)"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
run({ args }) {
|
|
63
|
+
process.cwd();
|
|
64
|
+
const task = createTask({
|
|
65
|
+
type: args.type,
|
|
66
|
+
title: args.title,
|
|
67
|
+
description: args.desc,
|
|
68
|
+
acceptance_criteria: args.ac ? [args.ac] : void 0
|
|
69
|
+
});
|
|
70
|
+
consola.success(`Created ${task.id}: ${task.title}`);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const listCommand = defineCommand({
|
|
75
|
+
meta: {
|
|
76
|
+
name: "list",
|
|
77
|
+
description: "List active tasks"
|
|
78
|
+
},
|
|
79
|
+
args: {
|
|
80
|
+
type: {
|
|
81
|
+
type: "string",
|
|
82
|
+
description: "Filter by task type"
|
|
83
|
+
},
|
|
84
|
+
status: {
|
|
85
|
+
type: "string",
|
|
86
|
+
description: "Filter by status (todo, in-progress, done)"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
run({ args }) {
|
|
90
|
+
process.cwd();
|
|
91
|
+
const tasks = listTasks({
|
|
92
|
+
type: args.type,
|
|
93
|
+
status: args.status
|
|
94
|
+
});
|
|
95
|
+
if (tasks.length === 0) {
|
|
96
|
+
consola.info("No tasks found");
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
for (const task of tasks) {
|
|
100
|
+
consola.log(`${task.id} ${task.type.padEnd(10)} ${task.status.padEnd(12)} ${task.title}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const doneCommand = defineCommand({
|
|
106
|
+
meta: {
|
|
107
|
+
name: "done",
|
|
108
|
+
description: "Mark a task as done and archive it"
|
|
109
|
+
},
|
|
110
|
+
args: {
|
|
111
|
+
id: {
|
|
112
|
+
type: "positional",
|
|
113
|
+
description: "Task ID to mark as done (e.g., VON-001)",
|
|
114
|
+
required: true
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
run({ args }) {
|
|
118
|
+
const dir = process.cwd();
|
|
119
|
+
archiveTask(dir, args.id);
|
|
120
|
+
consola.success(`Archived ${args.id}`);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
const main = defineCommand({
|
|
125
|
+
meta: {
|
|
126
|
+
name: "mrkl",
|
|
127
|
+
version: "0.1.0",
|
|
128
|
+
description: "Lightweight CLI for structured markdown task tracking"
|
|
129
|
+
},
|
|
130
|
+
subCommands: {
|
|
131
|
+
init: initCommand,
|
|
132
|
+
create: createCommand,
|
|
133
|
+
list: listCommand,
|
|
134
|
+
done: doneCommand
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
runMain(main);
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xxkeefer/mrkl",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Lightweight CLI tool for structured markdown task tracking",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mrkl": "./dist/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "unbuild",
|
|
11
|
+
"dev": "node --import tsx src/cli.ts",
|
|
12
|
+
"test": "vitest run"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"cli",
|
|
16
|
+
"task",
|
|
17
|
+
"tracker",
|
|
18
|
+
"markdown"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"files": ["dist"],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/xxKeefer/mrkl.git"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/xxKeefer/mrkl#readme",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/xxKeefer/mrkl/issues"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"citty": "^0.1.6",
|
|
32
|
+
"consola": "^3.4.0",
|
|
33
|
+
"gray-matter": "^4.0.3",
|
|
34
|
+
"smol-toml": "^1.3.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^25.3.3",
|
|
38
|
+
"typescript": "^5.7.0",
|
|
39
|
+
"unbuild": "^3.3.1",
|
|
40
|
+
"vitest": "^3.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|