@kaname-tasks/kaname 0.2.0 → 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.
@@ -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,7 +24,7 @@ import {
23
24
  saveCredentials,
24
25
  saveLastView,
25
26
  shortId
26
- } from "./chunk-FR675V3R.js";
27
+ } from "./chunk-6LXHRLHG.js";
27
28
 
28
29
  // src/index.ts
29
30
  import { Command } from "commander";
@@ -310,7 +311,7 @@ function registerTodoCommands(program2) {
310
311
 
311
312
  // src/index.ts
312
313
  var program = new Command();
313
- program.name("kaname").description("Kaname from the command line").version("0.1.0").option("-j, --json", "output raw JSON (for scripting)").option("--plain", "plain tab-separated output (no color)");
314
+ program.name("kaname").description("Kaname from the command line").version(package_default.version).option("-j, --json", "output raw JSON (for scripting)").option("--plain", "plain tab-separated output (no color)");
314
315
  registerAuthCommands(program);
315
316
  registerTodoCommands(program);
316
317
  registerListCommands(program);
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-FR675V3R.js";
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: "0.1.0" });
41
+ const server = new McpServer({ name: "kaname", version: package_default.version });
41
42
  server.registerTool(
42
43
  "list_todos",
43
44
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaname-tasks/kaname",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Command-line client for Kaname",
5
5
  "type": "module",
6
6
  "bin": {