@hasna/calendar 0.1.3 → 0.1.4
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 +1 -2
- package/dist/mcp/index.d.ts +1 -2
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +3342 -3720
- package/dist/server/index.js +52 -21005
- package/dist/server/serve.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/mcp/bin.js +0 -2
- package/dist/mcp/http.d.ts +0 -25
- package/dist/mcp/http.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/server/serve.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/server/serve.ts"],"names":[],"mappings":"AAWA,wBAAgB,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,SAAM,GAAG,QAAQ,CAK1D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAM,GAAG,QAAQ,CAE7D;AAED,wBAAsB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAM7E;AAID,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,yBAiNjC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/calendar",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Universal calendar management for AI coding agents - CLI + MCP server + interactive TUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
9
|
"calendar": "dist/cli/index.js",
|
|
10
|
-
"calendar-mcp": "dist/mcp/
|
|
10
|
+
"calendar-mcp": "dist/mcp/index.js",
|
|
11
11
|
"calendar-serve": "dist/server/index.js"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk &&
|
|
26
|
+
"build": "bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/index.ts --outdir dist --target bun && tsc --emitDeclarationOnly --outDir dist",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"test": "BUN_TEST=1 bun test",
|
|
29
29
|
"dev:cli": "bun run src/cli/index.tsx",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"author": "Andrei Hasna <andrei@hasna.com>",
|
|
61
61
|
"license": "Apache-2.0",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@hasna/cloud": "0.1.28",
|
|
64
63
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
65
64
|
"chalk": "^5.4.1",
|
|
66
65
|
"commander": "^13.1.0",
|
package/dist/mcp/bin.js
DELETED
package/dist/mcp/http.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type IncomingMessage, type ServerResponse } from "node:http";
|
|
2
|
-
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
-
export declare const DEFAULT_MCP_HTTP_PORT = 8803;
|
|
4
|
-
export declare const MCP_SERVICE_NAME = "calendar";
|
|
5
|
-
export declare function resolveMcpHttpPort(explicit?: number): number;
|
|
6
|
-
export declare function isHttpMode(argv?: string[]): boolean;
|
|
7
|
-
export declare function parseHttpArgv(argv?: string[]): {
|
|
8
|
-
http: boolean;
|
|
9
|
-
port?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function handleStatelessMcpNode(req: IncomingMessage, res: ServerResponse, getServer?: () => McpServer | Promise<McpServer>): Promise<void>;
|
|
12
|
-
export declare function handleMcpFetch(request: Request, getServer?: () => McpServer | Promise<McpServer>): Promise<Response>;
|
|
13
|
-
export declare function healthPayload(name?: string): {
|
|
14
|
-
status: string;
|
|
15
|
-
name: string;
|
|
16
|
-
};
|
|
17
|
-
export declare function startMcpHttpServer(options?: {
|
|
18
|
-
port?: number;
|
|
19
|
-
getServer?: () => McpServer | Promise<McpServer>;
|
|
20
|
-
name?: string;
|
|
21
|
-
}): Promise<{
|
|
22
|
-
port: number;
|
|
23
|
-
close: () => Promise<void>;
|
|
24
|
-
}>;
|
|
25
|
-
//# sourceMappingURL=http.d.ts.map
|
package/dist/mcp/http.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/mcp/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAGpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ5D;AAED,wBAAgB,UAAU,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAEjE;AAED,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAQ7F;AAUD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,eAAe,EAC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