@ghostpaw/questlog 0.5.0 → 0.6.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/README.md +74 -1
- package/SKILL.md +293 -0
- package/dist/cli.js +7204 -0
- package/dist/database-DShQ4N46.d.cts +20 -0
- package/dist/database-DShQ4N46.d.ts +20 -0
- package/dist/index.cjs +33 -1
- package/dist/index.d.cts +3 -19
- package/dist/index.d.ts +3 -19
- package/dist/index.js +33 -1
- package/dist/mcp-server.js +5931 -0
- package/dist/mcp.cjs +4954 -0
- package/dist/mcp.d.cts +89 -0
- package/dist/mcp.d.ts +89 -0
- package/dist/mcp.js +4946 -0
- package/package.json +46 -9
- package/skills/questlog/SKILL.md +293 -0
- package/skills/questlog/references/archive-delete-and-prune.md +25 -0
- package/skills/questlog/references/choose-work-shape.md +25 -0
- package/skills/questlog/references/clarify-ambiguous-requests.md +24 -0
- package/skills/questlog/references/close-work-and-claim-outcomes.md +23 -0
- package/skills/questlog/references/create-concrete-quest.md +21 -0
- package/skills/questlog/references/detect-slips-and-staleness.md +22 -0
- package/skills/questlog/references/escalate-and-unblock.md +22 -0
- package/skills/questlog/references/frame-initiative-questline.md +23 -0
- package/skills/questlog/references/handle-exceptions-and-weird-cases.md +24 -0
- package/skills/questlog/references/intake-triage.md +25 -0
- package/skills/questlog/references/maintain-clear-ownership.md +22 -0
- package/skills/questlog/references/manage-approvals-and-promises.md +22 -0
- package/skills/questlog/references/plan-successor-work.md +22 -0
- package/skills/questlog/references/plan-time-correctly.md +22 -0
- package/skills/questlog/references/prioritize-across-streams.md +21 -0
- package/skills/questlog/references/protect-capacity-and-focus.md +20 -0
- package/skills/questlog/references/recover-from-modeling-mistakes.md +25 -0
- package/skills/questlog/references/report-status-and-manage-expectations.md +20 -0
- package/skills/questlog/references/revise-or-reshape-commitment.md +22 -0
- package/skills/questlog/references/run-operational-review.md +24 -0
- package/skills/questlog/references/run-recurring-rhythms.md +24 -0
- package/skills/questlog/references/search-and-retrieve-context.md +23 -0
- package/skills/questlog/references/sequence-with-unlocks.md +23 -0
- package/skills/questlog/references/settle-rumor-into-structure.md +25 -0
- package/skills/questlog/references/tag-and-filter-portfolios.md +21 -0
package/dist/mcp.d.cts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Q as QuestlogDb } from './database-DShQ4N46.cjs';
|
|
2
|
+
import { Readable, Writable } from 'node:stream';
|
|
3
|
+
|
|
4
|
+
declare const questlogMcpInstructions = "Questlog manages local tasks, calendar commitments, and recurring work. Search before creating work, inspect before changing it, and keep uncertain work as rumors. Use unlock prerequisites to sequence work. run_quest refuses blocked starts unless force is true. Review commitments and resolve work with an honest outcome.";
|
|
5
|
+
|
|
6
|
+
declare function serveQuestlogMcp(options?: {
|
|
7
|
+
db?: QuestlogDb;
|
|
8
|
+
dbPath?: string;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
|
|
11
|
+
interface JsonSchema {
|
|
12
|
+
type?: string | readonly string[] | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
properties?: Record<string, JsonSchema> | undefined;
|
|
15
|
+
required?: readonly string[] | undefined;
|
|
16
|
+
enum?: readonly unknown[] | undefined;
|
|
17
|
+
items?: JsonSchema | undefined;
|
|
18
|
+
oneOf?: readonly JsonSchema[] | undefined;
|
|
19
|
+
}
|
|
20
|
+
interface SurfaceTool<TCtx> {
|
|
21
|
+
name: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
description: string;
|
|
24
|
+
inputSchema: JsonSchema & {
|
|
25
|
+
type: 'object';
|
|
26
|
+
};
|
|
27
|
+
whenToUse?: string;
|
|
28
|
+
whenNotToUse?: string;
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
sideEffects?: string;
|
|
31
|
+
handler(ctx: TCtx, input: Record<string, unknown>): unknown | Promise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
interface ToolAnnotations {
|
|
34
|
+
readOnlyHint: boolean;
|
|
35
|
+
destructiveHint: boolean;
|
|
36
|
+
idempotentHint: boolean;
|
|
37
|
+
openWorldHint: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface JsonRpcRequest {
|
|
40
|
+
jsonrpc: '2.0';
|
|
41
|
+
id?: string | number | null;
|
|
42
|
+
method: string;
|
|
43
|
+
params?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
interface JsonRpcError {
|
|
46
|
+
code: number;
|
|
47
|
+
message: string;
|
|
48
|
+
data?: unknown;
|
|
49
|
+
}
|
|
50
|
+
type JsonRpcResponse = {
|
|
51
|
+
jsonrpc: '2.0';
|
|
52
|
+
id: string | number | null;
|
|
53
|
+
} & ({
|
|
54
|
+
result: object;
|
|
55
|
+
} | {
|
|
56
|
+
error: JsonRpcError;
|
|
57
|
+
});
|
|
58
|
+
interface McpServer {
|
|
59
|
+
handleMessage(msg: unknown): Promise<object | undefined>;
|
|
60
|
+
handleLine(line: string): Promise<string | undefined>;
|
|
61
|
+
}
|
|
62
|
+
declare function isErrorResult(result: unknown): boolean;
|
|
63
|
+
|
|
64
|
+
declare const MCP_LATEST_PROTOCOL_VERSION = "2026-07-28";
|
|
65
|
+
declare const MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly ["2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"];
|
|
66
|
+
interface McpServerOptions<TCtx> {
|
|
67
|
+
name: string;
|
|
68
|
+
version: string;
|
|
69
|
+
title?: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
instructions?: string;
|
|
72
|
+
tools: readonly SurfaceTool<TCtx>[];
|
|
73
|
+
context: () => TCtx | Promise<TCtx>;
|
|
74
|
+
annotations?: (tool: SurfaceTool<TCtx>) => ToolAnnotations;
|
|
75
|
+
isErrorResult?: (result: unknown) => boolean;
|
|
76
|
+
}
|
|
77
|
+
declare function createMcpServer<TCtx>(options: McpServerOptions<TCtx>): McpServer;
|
|
78
|
+
|
|
79
|
+
declare function serveMcpStdio(server: McpServer, options?: {
|
|
80
|
+
input?: Readable;
|
|
81
|
+
output?: Writable;
|
|
82
|
+
}): Promise<void>;
|
|
83
|
+
|
|
84
|
+
declare function createQuestlogMcpServer(options?: {
|
|
85
|
+
db?: QuestlogDb;
|
|
86
|
+
dbPath?: string;
|
|
87
|
+
}): McpServer;
|
|
88
|
+
|
|
89
|
+
export { type JsonRpcError, type JsonRpcRequest, type JsonRpcResponse, type JsonSchema, MCP_LATEST_PROTOCOL_VERSION, MCP_SUPPORTED_PROTOCOL_VERSIONS, type McpServer, type McpServerOptions, type SurfaceTool, type ToolAnnotations, createMcpServer, createQuestlogMcpServer, isErrorResult, questlogMcpInstructions, serveMcpStdio, serveQuestlogMcp };
|
package/dist/mcp.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Q as QuestlogDb } from './database-DShQ4N46.js';
|
|
2
|
+
import { Readable, Writable } from 'node:stream';
|
|
3
|
+
|
|
4
|
+
declare const questlogMcpInstructions = "Questlog manages local tasks, calendar commitments, and recurring work. Search before creating work, inspect before changing it, and keep uncertain work as rumors. Use unlock prerequisites to sequence work. run_quest refuses blocked starts unless force is true. Review commitments and resolve work with an honest outcome.";
|
|
5
|
+
|
|
6
|
+
declare function serveQuestlogMcp(options?: {
|
|
7
|
+
db?: QuestlogDb;
|
|
8
|
+
dbPath?: string;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
|
|
11
|
+
interface JsonSchema {
|
|
12
|
+
type?: string | readonly string[] | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
properties?: Record<string, JsonSchema> | undefined;
|
|
15
|
+
required?: readonly string[] | undefined;
|
|
16
|
+
enum?: readonly unknown[] | undefined;
|
|
17
|
+
items?: JsonSchema | undefined;
|
|
18
|
+
oneOf?: readonly JsonSchema[] | undefined;
|
|
19
|
+
}
|
|
20
|
+
interface SurfaceTool<TCtx> {
|
|
21
|
+
name: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
description: string;
|
|
24
|
+
inputSchema: JsonSchema & {
|
|
25
|
+
type: 'object';
|
|
26
|
+
};
|
|
27
|
+
whenToUse?: string;
|
|
28
|
+
whenNotToUse?: string;
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
sideEffects?: string;
|
|
31
|
+
handler(ctx: TCtx, input: Record<string, unknown>): unknown | Promise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
interface ToolAnnotations {
|
|
34
|
+
readOnlyHint: boolean;
|
|
35
|
+
destructiveHint: boolean;
|
|
36
|
+
idempotentHint: boolean;
|
|
37
|
+
openWorldHint: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface JsonRpcRequest {
|
|
40
|
+
jsonrpc: '2.0';
|
|
41
|
+
id?: string | number | null;
|
|
42
|
+
method: string;
|
|
43
|
+
params?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
interface JsonRpcError {
|
|
46
|
+
code: number;
|
|
47
|
+
message: string;
|
|
48
|
+
data?: unknown;
|
|
49
|
+
}
|
|
50
|
+
type JsonRpcResponse = {
|
|
51
|
+
jsonrpc: '2.0';
|
|
52
|
+
id: string | number | null;
|
|
53
|
+
} & ({
|
|
54
|
+
result: object;
|
|
55
|
+
} | {
|
|
56
|
+
error: JsonRpcError;
|
|
57
|
+
});
|
|
58
|
+
interface McpServer {
|
|
59
|
+
handleMessage(msg: unknown): Promise<object | undefined>;
|
|
60
|
+
handleLine(line: string): Promise<string | undefined>;
|
|
61
|
+
}
|
|
62
|
+
declare function isErrorResult(result: unknown): boolean;
|
|
63
|
+
|
|
64
|
+
declare const MCP_LATEST_PROTOCOL_VERSION = "2026-07-28";
|
|
65
|
+
declare const MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly ["2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"];
|
|
66
|
+
interface McpServerOptions<TCtx> {
|
|
67
|
+
name: string;
|
|
68
|
+
version: string;
|
|
69
|
+
title?: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
instructions?: string;
|
|
72
|
+
tools: readonly SurfaceTool<TCtx>[];
|
|
73
|
+
context: () => TCtx | Promise<TCtx>;
|
|
74
|
+
annotations?: (tool: SurfaceTool<TCtx>) => ToolAnnotations;
|
|
75
|
+
isErrorResult?: (result: unknown) => boolean;
|
|
76
|
+
}
|
|
77
|
+
declare function createMcpServer<TCtx>(options: McpServerOptions<TCtx>): McpServer;
|
|
78
|
+
|
|
79
|
+
declare function serveMcpStdio(server: McpServer, options?: {
|
|
80
|
+
input?: Readable;
|
|
81
|
+
output?: Writable;
|
|
82
|
+
}): Promise<void>;
|
|
83
|
+
|
|
84
|
+
declare function createQuestlogMcpServer(options?: {
|
|
85
|
+
db?: QuestlogDb;
|
|
86
|
+
dbPath?: string;
|
|
87
|
+
}): McpServer;
|
|
88
|
+
|
|
89
|
+
export { type JsonRpcError, type JsonRpcRequest, type JsonRpcResponse, type JsonSchema, MCP_LATEST_PROTOCOL_VERSION, MCP_SUPPORTED_PROTOCOL_VERSIONS, type McpServer, type McpServerOptions, type SurfaceTool, type ToolAnnotations, createMcpServer, createQuestlogMcpServer, isErrorResult, questlogMcpInstructions, serveMcpStdio, serveQuestlogMcp };
|