@kaname-tasks/kaname 0.2.1 → 0.2.2
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/dist/{chunk-FR675V3R.js → chunk-6LXHRLHG.js} +44 -0
- package/dist/index.js +2 -44
- package/dist/mcp.js +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// package.json
|
|
4
|
+
var package_default = {
|
|
5
|
+
name: "@kaname-tasks/kaname",
|
|
6
|
+
version: "0.2.2",
|
|
7
|
+
description: "Command-line client for Kaname",
|
|
8
|
+
type: "module",
|
|
9
|
+
bin: {
|
|
10
|
+
kaname: "dist/index.js",
|
|
11
|
+
"kaname-mcp": "dist/mcp.js"
|
|
12
|
+
},
|
|
13
|
+
files: [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
publishConfig: {
|
|
17
|
+
access: "public"
|
|
18
|
+
},
|
|
19
|
+
engines: {
|
|
20
|
+
node: ">=20"
|
|
21
|
+
},
|
|
22
|
+
scripts: {
|
|
23
|
+
build: "tsup",
|
|
24
|
+
dev: "tsx src/index.ts",
|
|
25
|
+
lint: "tsc --noEmit",
|
|
26
|
+
test: "vitest run",
|
|
27
|
+
"generate-types": "node scripts/generate-types.js"
|
|
28
|
+
},
|
|
29
|
+
dependencies: {
|
|
30
|
+
"@clack/prompts": "^0.11.0",
|
|
31
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
32
|
+
commander: "^14.0.0",
|
|
33
|
+
picocolors: "^1.1.1",
|
|
34
|
+
zod: "^4.4.3"
|
|
35
|
+
},
|
|
36
|
+
devDependencies: {
|
|
37
|
+
"@types/node": "^22.20.0",
|
|
38
|
+
"openapi-typescript": "^7.10.1",
|
|
39
|
+
tsup: "^8.3.5",
|
|
40
|
+
tsx: "^4.19.2",
|
|
41
|
+
typescript: "^5.7.2",
|
|
42
|
+
vitest: "^3.0.0"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
3
46
|
// src/config.ts
|
|
4
47
|
import fs from "fs";
|
|
5
48
|
import os from "os";
|
|
@@ -406,6 +449,7 @@ function registerListCommands(program) {
|
|
|
406
449
|
}
|
|
407
450
|
|
|
408
451
|
export {
|
|
452
|
+
package_default,
|
|
409
453
|
loadConfig,
|
|
410
454
|
saveConfig,
|
|
411
455
|
DEFAULT_GOOGLE_CLIENT_ID,
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
listNameMap,
|
|
13
13
|
loadConfig,
|
|
14
14
|
localToday,
|
|
15
|
+
package_default,
|
|
15
16
|
parseDateArg,
|
|
16
17
|
printJson,
|
|
17
18
|
printTodoDetail,
|
|
@@ -23,55 +24,12 @@ import {
|
|
|
23
24
|
saveCredentials,
|
|
24
25
|
saveLastView,
|
|
25
26
|
shortId
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6LXHRLHG.js";
|
|
27
28
|
|
|
28
29
|
// src/index.ts
|
|
29
30
|
import { Command } from "commander";
|
|
30
31
|
import pc3 from "picocolors";
|
|
31
32
|
|
|
32
|
-
// package.json
|
|
33
|
-
var package_default = {
|
|
34
|
-
name: "@kaname-tasks/kaname",
|
|
35
|
-
version: "0.2.1",
|
|
36
|
-
description: "Command-line client for Kaname",
|
|
37
|
-
type: "module",
|
|
38
|
-
bin: {
|
|
39
|
-
kaname: "dist/index.js",
|
|
40
|
-
"kaname-mcp": "dist/mcp.js"
|
|
41
|
-
},
|
|
42
|
-
files: [
|
|
43
|
-
"dist"
|
|
44
|
-
],
|
|
45
|
-
publishConfig: {
|
|
46
|
-
access: "public"
|
|
47
|
-
},
|
|
48
|
-
engines: {
|
|
49
|
-
node: ">=20"
|
|
50
|
-
},
|
|
51
|
-
scripts: {
|
|
52
|
-
build: "tsup",
|
|
53
|
-
dev: "tsx src/index.ts",
|
|
54
|
-
lint: "tsc --noEmit",
|
|
55
|
-
test: "vitest run",
|
|
56
|
-
"generate-types": "node scripts/generate-types.js"
|
|
57
|
-
},
|
|
58
|
-
dependencies: {
|
|
59
|
-
"@clack/prompts": "^0.11.0",
|
|
60
|
-
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
61
|
-
commander: "^14.0.0",
|
|
62
|
-
picocolors: "^1.1.1",
|
|
63
|
-
zod: "^4.4.3"
|
|
64
|
-
},
|
|
65
|
-
devDependencies: {
|
|
66
|
-
"@types/node": "^22.20.0",
|
|
67
|
-
"openapi-typescript": "^7.10.1",
|
|
68
|
-
tsup: "^8.3.5",
|
|
69
|
-
tsx: "^4.19.2",
|
|
70
|
-
typescript: "^5.7.2",
|
|
71
|
-
vitest: "^3.0.0"
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
33
|
// src/commands/auth.ts
|
|
76
34
|
import crypto from "crypto";
|
|
77
35
|
import http from "http";
|
package/dist/mcp.js
CHANGED
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
flattenLists,
|
|
8
8
|
loadCredentials,
|
|
9
9
|
localToday,
|
|
10
|
+
package_default,
|
|
10
11
|
parseDateArg,
|
|
11
12
|
resolveList
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6LXHRLHG.js";
|
|
13
14
|
|
|
14
15
|
// src/mcp.ts
|
|
15
16
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -37,7 +38,7 @@ async function resolveListArg(nameOrId) {
|
|
|
37
38
|
}
|
|
38
39
|
var dateArg = z.string().describe('today, tomorrow, a weekday (fri), a relative offset (+3d), an ISO date (2026-07-10), or "none" to clear');
|
|
39
40
|
function buildServer() {
|
|
40
|
-
const server = new McpServer({ name: "kaname", version:
|
|
41
|
+
const server = new McpServer({ name: "kaname", version: package_default.version });
|
|
41
42
|
server.registerTool(
|
|
42
43
|
"list_todos",
|
|
43
44
|
{
|