agent-rulebook 0.1.7 → 0.2.1
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 +63 -140
- package/dist/commands/home.d.ts +2 -0
- package/dist/commands/home.js +59 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/index.js +11 -10
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.js +3 -6
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/output.d.ts +0 -5
- package/dist/commands/output.js +0 -47
- package/dist/commands/output.js.map +1 -1
- package/dist/commands/project.d.ts +2 -0
- package/dist/commands/project.js +33 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/resolution.d.ts +2 -0
- package/dist/commands/resolution.js +32 -0
- package/dist/commands/resolution.js.map +1 -0
- package/dist/commands/sync.d.ts +6 -3
- package/dist/commands/sync.js +130 -177
- package/dist/commands/sync.js.map +1 -1
- package/dist/core/attempt-outcome.d.ts +21 -0
- package/dist/core/attempt-outcome.js +61 -0
- package/dist/core/attempt-outcome.js.map +1 -0
- package/dist/core/change-policy.d.ts +7 -0
- package/dist/core/change-policy.js +14 -0
- package/dist/core/change-policy.js.map +1 -0
- package/dist/core/index.d.ts +34 -33
- package/dist/core/index.js +18 -14
- package/dist/core/index.js.map +1 -1
- package/dist/core/outcome-schema.d.ts +55 -0
- package/dist/core/outcome-schema.js +44 -0
- package/dist/core/outcome-schema.js.map +1 -0
- package/dist/core/problem-fingerprint.d.ts +4 -0
- package/dist/core/problem-fingerprint.js +37 -0
- package/dist/core/problem-fingerprint.js.map +1 -0
- package/dist/core/problem-schema.d.ts +34 -0
- package/dist/core/problem-schema.js +37 -0
- package/dist/core/problem-schema.js.map +1 -0
- package/dist/core/project-environment-detector.d.ts +2 -2
- package/dist/core/project-environment-detector.js +8 -52
- package/dist/core/project-environment-detector.js.map +1 -1
- package/dist/core/project-file-scan.d.ts +17 -0
- package/dist/core/project-file-scan.js +73 -0
- package/dist/core/project-file-scan.js.map +1 -0
- package/dist/core/project-registry.d.ts +8 -0
- package/dist/core/project-registry.js +38 -0
- package/dist/core/project-registry.js.map +1 -0
- package/dist/core/repository-identity.d.ts +7 -0
- package/dist/core/repository-identity.js +27 -0
- package/dist/core/repository-identity.js.map +1 -0
- package/dist/core/resolution-applicability.d.ts +20 -0
- package/dist/core/resolution-applicability.js +38 -0
- package/dist/core/resolution-applicability.js.map +1 -0
- package/dist/core/resolution-parser.d.ts +20 -0
- package/dist/core/resolution-parser.js +47 -0
- package/dist/core/resolution-parser.js.map +1 -0
- package/dist/core/resolution-ranker.d.ts +34 -0
- package/dist/core/resolution-ranker.js +40 -0
- package/dist/core/resolution-ranker.js.map +1 -0
- package/dist/core/resolution-relation.d.ts +14 -0
- package/dist/core/resolution-relation.js +29 -0
- package/dist/core/resolution-relation.js.map +1 -0
- package/dist/core/resolution-schema.d.ts +109 -0
- package/dist/core/resolution-schema.js +29 -0
- package/dist/core/resolution-schema.js.map +1 -0
- package/dist/core/resolution-search-types.d.ts +37 -0
- package/dist/core/resolution-search-types.js +2 -0
- package/dist/core/resolution-search-types.js.map +1 -0
- package/dist/core/resolution-semantic-checksum.d.ts +12 -0
- package/dist/core/resolution-semantic-checksum.js +24 -0
- package/dist/core/resolution-semantic-checksum.js.map +1 -0
- package/dist/core/resolution-writer.d.ts +7 -0
- package/dist/core/resolution-writer.js +33 -0
- package/dist/core/resolution-writer.js.map +1 -0
- package/dist/core/solution-schema.d.ts +42 -0
- package/dist/core/solution-schema.js +28 -0
- package/dist/core/solution-schema.js.map +1 -0
- package/dist/core/source-evidence-schema.d.ts +26 -0
- package/dist/core/source-evidence-schema.js +29 -0
- package/dist/core/source-evidence-schema.js.map +1 -0
- package/dist/core/source-evidence.d.ts +14 -0
- package/dist/core/source-evidence.js +69 -0
- package/dist/core/source-evidence.js.map +1 -0
- package/dist/core/stack-detector.d.ts +2 -2
- package/dist/core/stack-detector.js +11 -63
- package/dist/core/stack-detector.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/resolution-change.d.ts +19 -0
- package/dist/mcp/resolution-change.js +136 -0
- package/dist/mcp/resolution-change.js.map +1 -0
- package/dist/mcp/resolutions-commit-change-tool.d.ts +5 -0
- package/dist/mcp/resolutions-commit-change-tool.js +21 -0
- package/dist/mcp/resolutions-commit-change-tool.js.map +1 -0
- package/dist/mcp/resolutions-find-tool.d.ts +5 -0
- package/dist/mcp/resolutions-find-tool.js +75 -0
- package/dist/mcp/resolutions-find-tool.js.map +1 -0
- package/dist/mcp/resolutions-get-source-tool.d.ts +5 -0
- package/dist/mcp/resolutions-get-source-tool.js +30 -0
- package/dist/mcp/resolutions-get-source-tool.js.map +1 -0
- package/dist/mcp/resolutions-get-tool.d.ts +5 -0
- package/dist/mcp/resolutions-get-tool.js +27 -0
- package/dist/mcp/resolutions-get-tool.js.map +1 -0
- package/dist/mcp/resolutions-list-facets-tool.d.ts +4 -0
- package/dist/mcp/resolutions-list-facets-tool.js +18 -0
- package/dist/mcp/resolutions-list-facets-tool.js.map +1 -0
- package/dist/mcp/resolutions-prepare-change-tool.d.ts +5 -0
- package/dist/mcp/resolutions-prepare-change-tool.js +7 -0
- package/dist/mcp/resolutions-prepare-change-tool.js.map +1 -0
- package/dist/mcp/resolutions-report-attempt-tool.d.ts +5 -0
- package/dist/mcp/resolutions-report-attempt-tool.js +87 -0
- package/dist/mcp/resolutions-report-attempt-tool.js.map +1 -0
- package/dist/mcp/schemas.d.ts +265 -197
- package/dist/mcp/schemas.js +28 -93
- package/dist/mcp/schemas.js.map +1 -1
- package/dist/mcp/tool-output.d.ts +0 -34
- package/dist/mcp/tool-output.js +2 -71
- package/dist/mcp/tool-output.js.map +1 -1
- package/dist/mcp/tools.d.ts +973 -204
- package/dist/mcp/tools.js +47 -101
- package/dist/mcp/tools.js.map +1 -1
- package/dist/program.js +7 -9
- package/dist/program.js.map +1 -1
- package/dist/storage/index.d.ts +10 -15
- package/dist/storage/index.js +8 -8
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/project-code-index-source.d.ts +2 -0
- package/dist/storage/project-code-index-source.js +23 -0
- package/dist/storage/project-code-index-source.js.map +1 -0
- package/dist/storage/resolution-candidate-service.d.ts +6 -0
- package/dist/storage/resolution-candidate-service.js +94 -0
- package/dist/storage/resolution-candidate-service.js.map +1 -0
- package/dist/storage/resolution-change-transaction.d.ts +11 -0
- package/dist/storage/resolution-change-transaction.js +56 -0
- package/dist/storage/resolution-change-transaction.js.map +1 -0
- package/dist/storage/resolution-home.d.ts +21 -0
- package/dist/storage/resolution-home.js +62 -0
- package/dist/storage/resolution-home.js.map +1 -0
- package/dist/storage/resolution-index-check.d.ts +28 -0
- package/dist/storage/resolution-index-check.js +30 -0
- package/dist/storage/resolution-index-check.js.map +1 -0
- package/dist/storage/resolution-indexer.d.ts +19 -0
- package/dist/storage/resolution-indexer.js +158 -0
- package/dist/storage/resolution-indexer.js.map +1 -0
- package/dist/storage/resolution-migrations.d.ts +3 -0
- package/dist/storage/resolution-migrations.js +39 -0
- package/dist/storage/resolution-migrations.js.map +1 -0
- package/package.json +5 -3
- package/dist/commands/add.d.ts +0 -2
- package/dist/commands/add.js +0 -134
- package/dist/commands/add.js.map +0 -1
- package/dist/commands/migrate.d.ts +0 -2
- package/dist/commands/migrate.js +0 -73
- package/dist/commands/migrate.js.map +0 -1
- package/dist/commands/rule.d.ts +0 -23
- package/dist/commands/rule.js +0 -158
- package/dist/commands/rule.js.map +0 -1
- package/dist/commands/search.d.ts +0 -2
- package/dist/commands/search.js +0 -57
- package/dist/commands/search.js.map +0 -1
- package/dist/core/capture-policy.d.ts +0 -6
- package/dist/core/capture-policy.js +0 -5
- package/dist/core/capture-policy.js.map +0 -1
- package/dist/core/compatibility-matcher.d.ts +0 -17
- package/dist/core/compatibility-matcher.js +0 -146
- package/dist/core/compatibility-matcher.js.map +0 -1
- package/dist/core/dedup.d.ts +0 -22
- package/dist/core/dedup.js +0 -54
- package/dist/core/dedup.js.map +0 -1
- package/dist/core/error-signature.d.ts +0 -15
- package/dist/core/error-signature.js +0 -59
- package/dist/core/error-signature.js.map +0 -1
- package/dist/core/facets.d.ts +0 -9
- package/dist/core/facets.js +0 -46
- package/dist/core/facets.js.map +0 -1
- package/dist/core/lesson-importer.d.ts +0 -22
- package/dist/core/lesson-importer.js +0 -94
- package/dist/core/lesson-importer.js.map +0 -1
- package/dist/core/ranker.d.ts +0 -3
- package/dist/core/ranker.js +0 -83
- package/dist/core/ranker.js.map +0 -1
- package/dist/core/rule-compatibility.d.ts +0 -66
- package/dist/core/rule-compatibility.js +0 -53
- package/dist/core/rule-compatibility.js.map +0 -1
- package/dist/core/rule-parser.d.ts +0 -25
- package/dist/core/rule-parser.js +0 -81
- package/dist/core/rule-parser.js.map +0 -1
- package/dist/core/rule-schema.d.ts +0 -283
- package/dist/core/rule-schema.js +0 -213
- package/dist/core/rule-schema.js.map +0 -1
- package/dist/core/rule-writer.d.ts +0 -35
- package/dist/core/rule-writer.js +0 -63
- package/dist/core/rule-writer.js.map +0 -1
- package/dist/core/search-types.d.ts +0 -57
- package/dist/core/search-types.js +0 -2
- package/dist/core/search-types.js.map +0 -1
- package/dist/core/semantic-checksum.d.ts +0 -6
- package/dist/core/semantic-checksum.js +0 -34
- package/dist/core/semantic-checksum.js.map +0 -1
- package/dist/core/slug.d.ts +0 -13
- package/dist/core/slug.js +0 -42
- package/dist/core/slug.js.map +0 -1
- package/dist/mcp/lesson-capture.d.ts +0 -30
- package/dist/mcp/lesson-capture.js +0 -148
- package/dist/mcp/lesson-capture.js.map +0 -1
- package/dist/mcp/rules-add-lesson-tool.d.ts +0 -4
- package/dist/mcp/rules-add-lesson-tool.js +0 -73
- package/dist/mcp/rules-add-lesson-tool.js.map +0 -1
- package/dist/mcp/rules-dedup-lesson-tool.d.ts +0 -4
- package/dist/mcp/rules-dedup-lesson-tool.js +0 -69
- package/dist/mcp/rules-dedup-lesson-tool.js.map +0 -1
- package/dist/mcp/rules-list-facets-tool.d.ts +0 -3
- package/dist/mcp/rules-list-facets-tool.js +0 -31
- package/dist/mcp/rules-list-facets-tool.js.map +0 -1
- package/dist/mcp/rules-prepare-lesson-tool.d.ts +0 -4
- package/dist/mcp/rules-prepare-lesson-tool.js +0 -7
- package/dist/mcp/rules-prepare-lesson-tool.js.map +0 -1
- package/dist/mcp/rules-search-error-tool.d.ts +0 -4
- package/dist/mcp/rules-search-error-tool.js +0 -103
- package/dist/mcp/rules-search-error-tool.js.map +0 -1
- package/dist/mcp/rules-search-for-project-tool.d.ts +0 -4
- package/dist/mcp/rules-search-for-project-tool.js +0 -105
- package/dist/mcp/rules-search-for-project-tool.js.map +0 -1
- package/dist/mcp/rules-search-tool.d.ts +0 -7
- package/dist/mcp/rules-search-tool.js +0 -65
- package/dist/mcp/rules-search-tool.js.map +0 -1
- package/dist/migration/adapters/fenced-lessons.d.ts +0 -2
- package/dist/migration/adapters/fenced-lessons.js +0 -55
- package/dist/migration/adapters/fenced-lessons.js.map +0 -1
- package/dist/migration/adapters/global-rules.d.ts +0 -2
- package/dist/migration/adapters/global-rules.js +0 -72
- package/dist/migration/adapters/global-rules.js.map +0 -1
- package/dist/migration/adapters/index.d.ts +0 -2
- package/dist/migration/adapters/index.js +0 -13
- package/dist/migration/adapters/index.js.map +0 -1
- package/dist/migration/adapters/markdown-lessons.d.ts +0 -2
- package/dist/migration/adapters/markdown-lessons.js +0 -36
- package/dist/migration/adapters/markdown-lessons.js.map +0 -1
- package/dist/migration/adapters/structured-lessons.d.ts +0 -2
- package/dist/migration/adapters/structured-lessons.js +0 -8
- package/dist/migration/adapters/structured-lessons.js.map +0 -1
- package/dist/migration/adapters/structured-shared.d.ts +0 -3
- package/dist/migration/adapters/structured-shared.js +0 -97
- package/dist/migration/adapters/structured-shared.js.map +0 -1
- package/dist/migration/applier.d.ts +0 -32
- package/dist/migration/applier.js +0 -559
- package/dist/migration/applier.js.map +0 -1
- package/dist/migration/index.d.ts +0 -11
- package/dist/migration/index.js +0 -7
- package/dist/migration/index.js.map +0 -1
- package/dist/migration/manifest.d.ts +0 -263
- package/dist/migration/manifest.js +0 -91
- package/dist/migration/manifest.js.map +0 -1
- package/dist/migration/migration-report.d.ts +0 -151
- package/dist/migration/migration-report.js +0 -85
- package/dist/migration/migration-report.js.map +0 -1
- package/dist/migration/scanner.d.ts +0 -2
- package/dist/migration/scanner.js +0 -312
- package/dist/migration/scanner.js.map +0 -1
- package/dist/migration/source-adapter.d.ts +0 -37
- package/dist/migration/source-adapter.js +0 -2
- package/dist/migration/source-adapter.js.map +0 -1
- package/dist/migration/verifier.d.ts +0 -5
- package/dist/migration/verifier.js +0 -218
- package/dist/migration/verifier.js.map +0 -1
- package/dist/storage/index-check.d.ts +0 -21
- package/dist/storage/index-check.js +0 -136
- package/dist/storage/index-check.js.map +0 -1
- package/dist/storage/indexer.d.ts +0 -19
- package/dist/storage/indexer.js +0 -367
- package/dist/storage/indexer.js.map +0 -1
- package/dist/storage/migrations.d.ts +0 -3
- package/dist/storage/migrations.js +0 -126
- package/dist/storage/migrations.js.map +0 -1
- package/dist/storage/rule-discovery.d.ts +0 -4
- package/dist/storage/rule-discovery.js +0 -34
- package/dist/storage/rule-discovery.js.map +0 -1
- package/dist/storage/rule-store.d.ts +0 -10
- package/dist/storage/rule-store.js +0 -12
- package/dist/storage/rule-store.js.map +0 -1
- package/dist/storage/rulebook-home.d.ts +0 -21
- package/dist/storage/rulebook-home.js +0 -78
- package/dist/storage/rulebook-home.js.map +0 -1
- package/dist/storage/search-service.d.ts +0 -17
- package/dist/storage/search-service.js +0 -275
- package/dist/storage/search-service.js.map +0 -1
package/dist/mcp/tools.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import {
|
|
2
|
+
import { type McpResolutionsFindInput, type McpResolutionsGetInput, type McpResolutionsGetSourceInput, type McpResolutionsListFacetsInput, type McpResolutionsReportAttemptInput, type McpResolutionsPrepareChangeInput, type McpResolutionsCommitChangeInput } from './schemas.js';
|
|
3
3
|
export declare const MCP_SEARCH_LIMIT_POLICY: {
|
|
4
4
|
readonly defaultLimit: 5;
|
|
5
5
|
readonly maxLimit: 10;
|
|
6
6
|
};
|
|
7
|
-
export declare const AGENT_RULEBOOK_MCP_TOOL_NAMES: readonly ["
|
|
7
|
+
export declare const AGENT_RULEBOOK_MCP_TOOL_NAMES: readonly ["resolutions.find", "resolutions.get", "resolutions.get_source", "resolutions.list_facets", "resolutions.report_attempt", "resolutions.prepare_change", "resolutions.commit_change"];
|
|
8
8
|
export type AgentRulebookMcpToolName = (typeof AGENT_RULEBOOK_MCP_TOOL_NAMES)[number];
|
|
9
9
|
export type AgentRulebookToolContext = {
|
|
10
10
|
rulebookHome: string;
|
|
@@ -13,52 +13,74 @@ export type AgentRulebookToolDefinition = {
|
|
|
13
13
|
name: AgentRulebookMcpToolName;
|
|
14
14
|
title: string;
|
|
15
15
|
description: string;
|
|
16
|
-
inputSchema:
|
|
17
|
-
annotations:
|
|
18
|
-
readOnlyHint: boolean;
|
|
19
|
-
destructiveHint: boolean;
|
|
20
|
-
idempotentHint: boolean;
|
|
21
|
-
openWorldHint: boolean;
|
|
22
|
-
};
|
|
16
|
+
inputSchema: object;
|
|
17
|
+
annotations: ReturnType<typeof readOnlyAnnotations> | ReturnType<typeof writeAnnotations>;
|
|
23
18
|
handler: (args: never, context: AgentRulebookToolContext) => Promise<CallToolResult>;
|
|
24
19
|
};
|
|
25
20
|
export declare const AGENT_RULEBOOK_MCP_TOOLS: ({
|
|
26
|
-
name: "
|
|
21
|
+
name: "resolutions.find";
|
|
27
22
|
title: string;
|
|
28
23
|
description: string;
|
|
29
|
-
inputSchema: import("zod").ZodObject<{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
24
|
+
inputSchema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
25
|
+
mode: import("zod").ZodLiteral<"troubleshoot">;
|
|
26
|
+
observations: import("zod").ZodObject<{
|
|
27
|
+
symptoms: import("zod").ZodArray<import("zod").ZodString>;
|
|
28
|
+
error_signatures: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
29
|
+
symbols: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
30
|
+
operations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
31
|
+
expected: import("zod").ZodString;
|
|
32
|
+
observed: import("zod").ZodString;
|
|
33
|
+
}, import("zod/v4/core").$strict>;
|
|
34
|
+
hypotheses: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
35
|
+
suspected_causes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
36
|
+
components: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
37
|
+
}, import("zod/v4/core").$strict>>;
|
|
38
|
+
environment: import("zod").ZodObject<{
|
|
39
|
+
languages: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
40
|
+
platforms: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
41
|
+
runtimes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
42
|
+
tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
43
|
+
}, import("zod/v4/core").$strict>;
|
|
44
|
+
attempted_solution_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
45
|
+
current_evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
46
|
+
context_fingerprint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
satisfied_conditions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
49
|
+
rejected_conditions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
44
50
|
}, import("zod/v4/core").$strict>>;
|
|
45
51
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
46
|
-
}, import("zod/v4/core").$strict
|
|
52
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
53
|
+
mode: import("zod").ZodLiteral<"preventive">;
|
|
54
|
+
goal: import("zod").ZodString;
|
|
55
|
+
operations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
56
|
+
environment: import("zod").ZodObject<{
|
|
57
|
+
languages: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
58
|
+
platforms: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
59
|
+
runtimes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
60
|
+
tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
61
|
+
}, import("zod/v4/core").$strict>;
|
|
62
|
+
attempted_solution_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
63
|
+
current_evidence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
64
|
+
context_fingerprint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
satisfied_conditions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
67
|
+
rejected_conditions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
68
|
+
}, import("zod/v4/core").$strict>>;
|
|
69
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
70
|
+
}, import("zod/v4/core").$strict>], "mode">;
|
|
47
71
|
annotations: {
|
|
48
72
|
readonly readOnlyHint: true;
|
|
49
73
|
readonly destructiveHint: false;
|
|
50
74
|
readonly idempotentHint: true;
|
|
51
75
|
readonly openWorldHint: false;
|
|
52
76
|
};
|
|
53
|
-
handler: typeof
|
|
77
|
+
handler: typeof handleFind;
|
|
54
78
|
} | {
|
|
55
|
-
name: "
|
|
79
|
+
name: "resolutions.get";
|
|
56
80
|
title: string;
|
|
57
81
|
description: string;
|
|
58
82
|
inputSchema: import("zod").ZodObject<{
|
|
59
|
-
|
|
60
|
-
task: import("zod").ZodString;
|
|
61
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
83
|
+
solution_handle: import("zod").ZodString;
|
|
62
84
|
}, import("zod/v4/core").$strict>;
|
|
63
85
|
annotations: {
|
|
64
86
|
readonly readOnlyHint: true;
|
|
@@ -66,15 +88,14 @@ export declare const AGENT_RULEBOOK_MCP_TOOLS: ({
|
|
|
66
88
|
readonly idempotentHint: true;
|
|
67
89
|
readonly openWorldHint: false;
|
|
68
90
|
};
|
|
69
|
-
handler: typeof
|
|
91
|
+
handler: typeof handleGet;
|
|
70
92
|
} | {
|
|
71
|
-
name: "
|
|
93
|
+
name: "resolutions.get_source";
|
|
72
94
|
title: string;
|
|
73
95
|
description: string;
|
|
74
96
|
inputSchema: import("zod").ZodObject<{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
97
|
+
solution_handle: import("zod").ZodString;
|
|
98
|
+
source_handle: import("zod").ZodString;
|
|
78
99
|
}, import("zod/v4/core").$strict>;
|
|
79
100
|
annotations: {
|
|
80
101
|
readonly readOnlyHint: true;
|
|
@@ -82,9 +103,9 @@ export declare const AGENT_RULEBOOK_MCP_TOOLS: ({
|
|
|
82
103
|
readonly idempotentHint: true;
|
|
83
104
|
readonly openWorldHint: false;
|
|
84
105
|
};
|
|
85
|
-
handler: typeof
|
|
106
|
+
handler: typeof handleGetSource;
|
|
86
107
|
} | {
|
|
87
|
-
name: "
|
|
108
|
+
name: "resolutions.list_facets";
|
|
88
109
|
title: string;
|
|
89
110
|
description: string;
|
|
90
111
|
inputSchema: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
@@ -96,107 +117,138 @@ export declare const AGENT_RULEBOOK_MCP_TOOLS: ({
|
|
|
96
117
|
};
|
|
97
118
|
handler: typeof handleListFacets;
|
|
98
119
|
} | {
|
|
99
|
-
name: "
|
|
120
|
+
name: "resolutions.report_attempt";
|
|
100
121
|
title: string;
|
|
101
122
|
description: string;
|
|
102
123
|
inputSchema: import("zod").ZodObject<{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
python: "python";
|
|
111
|
-
mcp: "mcp";
|
|
112
|
-
other: "other";
|
|
124
|
+
solution_handle: import("zod").ZodString;
|
|
125
|
+
result: import("zod").ZodEnum<{
|
|
126
|
+
solved: "solved";
|
|
127
|
+
failed: "failed";
|
|
128
|
+
inapplicable: "inapplicable";
|
|
129
|
+
inconclusive: "inconclusive";
|
|
130
|
+
regressed: "regressed";
|
|
113
131
|
}>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
132
|
+
problem_fingerprint: import("zod").ZodString;
|
|
133
|
+
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
134
|
+
environment: import("zod").ZodObject<{
|
|
135
|
+
languages: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
136
|
+
platforms: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
137
|
+
runtimes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
138
|
+
tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
139
|
+
}, import("zod/v4/core").$strict>;
|
|
140
|
+
reason_code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
141
|
+
evidence: import("zod").ZodArray<import("zod").ZodObject<{
|
|
142
|
+
kind: import("zod").ZodEnum<{
|
|
143
|
+
focused_test: "focused_test";
|
|
144
|
+
integration_test: "integration_test";
|
|
145
|
+
manual_verification: "manual_verification";
|
|
146
|
+
observation: "observation";
|
|
147
|
+
}>;
|
|
148
|
+
handle: import("zod").ZodString;
|
|
149
|
+
summary: import("zod").ZodString;
|
|
150
|
+
}, import("zod/v4/core").$strict>>;
|
|
120
151
|
}, import("zod/v4/core").$strict>;
|
|
121
152
|
annotations: {
|
|
122
|
-
readonly readOnlyHint:
|
|
153
|
+
readonly readOnlyHint: false;
|
|
123
154
|
readonly destructiveHint: false;
|
|
124
|
-
readonly idempotentHint:
|
|
155
|
+
readonly idempotentHint: boolean;
|
|
125
156
|
readonly openWorldHint: false;
|
|
126
157
|
};
|
|
127
|
-
handler: typeof
|
|
158
|
+
handler: typeof handleReportAttempt;
|
|
128
159
|
} | {
|
|
129
|
-
name: "
|
|
160
|
+
name: "resolutions.prepare_change";
|
|
130
161
|
title: string;
|
|
131
162
|
description: string;
|
|
132
163
|
inputSchema: import("zod").ZodObject<{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
164
|
+
problem: import("zod").ZodObject<{
|
|
165
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
166
|
+
kind: import("zod").ZodLiteral<"problem">;
|
|
167
|
+
id: import("zod").ZodString;
|
|
168
|
+
title: import("zod").ZodString;
|
|
169
|
+
observations: import("zod").ZodObject<{
|
|
170
|
+
symptoms: import("zod").ZodArray<import("zod").ZodString>;
|
|
171
|
+
error_signatures: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
172
|
+
symbols: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
173
|
+
operations: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
174
|
+
expected: import("zod").ZodString;
|
|
175
|
+
observed: import("zod").ZodString;
|
|
176
|
+
}, import("zod/v4/core").$strict>;
|
|
177
|
+
hypotheses: import("zod").ZodObject<{
|
|
178
|
+
suspected_causes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
179
|
+
components: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
180
|
+
}, import("zod/v4/core").$strict>;
|
|
181
|
+
environment: import("zod").ZodObject<{
|
|
182
|
+
languages: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
183
|
+
platforms: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
184
|
+
runtimes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
185
|
+
tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
186
|
+
}, import("zod/v4/core").$strict>;
|
|
187
|
+
created_at: import("zod").ZodISODateTime;
|
|
188
|
+
}, import("zod/v4/core").$strict>;
|
|
189
|
+
solution: import("zod").ZodObject<{
|
|
190
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
191
|
+
kind: import("zod").ZodLiteral<"solution">;
|
|
192
|
+
id: import("zod").ZodString;
|
|
193
|
+
problem_id: import("zod").ZodString;
|
|
194
|
+
revision: import("zod").ZodNumber;
|
|
195
|
+
title: import("zod").ZodString;
|
|
196
|
+
cause: import("zod").ZodString;
|
|
197
|
+
applicable_if: import("zod").ZodArray<import("zod").ZodString>;
|
|
198
|
+
reject_if: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
199
|
+
inspections: import("zod").ZodArray<import("zod").ZodString>;
|
|
200
|
+
actions: import("zod").ZodArray<import("zod").ZodString>;
|
|
201
|
+
verification: import("zod").ZodArray<import("zod").ZodString>;
|
|
202
|
+
safety: import("zod").ZodArray<import("zod").ZodString>;
|
|
203
|
+
source_evidence: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
204
|
+
id: import("zod").ZodString;
|
|
205
|
+
project_key: import("zod").ZodString;
|
|
206
|
+
repository_fingerprint: import("zod").ZodString;
|
|
207
|
+
revision: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
208
|
+
kind: import("zod").ZodLiteral<"git_commit">;
|
|
209
|
+
value: import("zod").ZodString;
|
|
210
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
211
|
+
kind: import("zod").ZodLiteral<"working_tree_hash">;
|
|
212
|
+
value: import("zod").ZodString;
|
|
213
|
+
}, import("zod/v4/core").$strict>], "kind">;
|
|
214
|
+
relative_path: import("zod").ZodString;
|
|
215
|
+
symbol: import("zod").ZodOptional<import("zod").ZodString>;
|
|
216
|
+
content_hash: import("zod").ZodString;
|
|
217
|
+
tests: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
218
|
+
}, import("zod/v4/core").$strict>>>;
|
|
219
|
+
prior_solution: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
220
|
+
id: import("zod").ZodString;
|
|
221
|
+
revision: import("zod").ZodNumber;
|
|
222
|
+
relation: import("zod").ZodEnum<{
|
|
223
|
+
refines: "refines";
|
|
224
|
+
supersedes: "supersedes";
|
|
225
|
+
}>;
|
|
226
|
+
}, import("zod/v4/core").$strict>>;
|
|
227
|
+
created_at: import("zod").ZodISODateTime;
|
|
228
|
+
}, import("zod/v4/core").$strict>;
|
|
229
|
+
problem_fingerprint: import("zod").ZodString;
|
|
154
230
|
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
constraints: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
231
|
+
target_solution_handle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
232
|
+
verification: import("zod").ZodObject<{
|
|
233
|
+
recurrence_risk: import("zod").ZodLiteral<"high">;
|
|
234
|
+
value: import("zod").ZodLiteral<"high">;
|
|
235
|
+
verified_at: import("zod").ZodISODateTime;
|
|
236
|
+
evidence: import("zod").ZodArray<import("zod").ZodObject<{
|
|
162
237
|
kind: import("zod").ZodEnum<{
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
runtime: "runtime";
|
|
168
|
-
build_tool: "build_tool";
|
|
169
|
-
platform: "platform";
|
|
238
|
+
focused_test: "focused_test";
|
|
239
|
+
integration_test: "integration_test";
|
|
240
|
+
manual_verification: "manual_verification";
|
|
241
|
+
observation: "observation";
|
|
170
242
|
}>;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}, import("zod/v4/core").$strict
|
|
174
|
-
verified_with: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
175
|
-
component: import("zod").ZodString;
|
|
176
|
-
version: import("zod").ZodString;
|
|
177
|
-
}, import("zod/v4/core").$strict>>>;
|
|
178
|
-
}, import("zod/v4/core").$strict>;
|
|
179
|
-
criteria: import("zod").ZodObject<{
|
|
180
|
-
debugging_cost: import("zod").ZodEnum<{
|
|
181
|
-
low: "low";
|
|
182
|
-
high: "high";
|
|
183
|
-
}>;
|
|
184
|
-
token_cost: import("zod").ZodEnum<{
|
|
185
|
-
low: "low";
|
|
186
|
-
high: "high";
|
|
187
|
-
}>;
|
|
188
|
-
recurrence_risk: import("zod").ZodEnum<{
|
|
189
|
-
low: "low";
|
|
190
|
-
high: "high";
|
|
191
|
-
}>;
|
|
243
|
+
handle: import("zod").ZodString;
|
|
244
|
+
summary: import("zod").ZodString;
|
|
245
|
+
}, import("zod/v4/core").$strict>>;
|
|
192
246
|
}, import("zod/v4/core").$strict>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}>;
|
|
199
|
-
evidence: import("zod").ZodString;
|
|
247
|
+
relation_evidence: import("zod").ZodObject<{
|
|
248
|
+
replacement_verified: import("zod").ZodBoolean;
|
|
249
|
+
conflict: import("zod").ZodArray<import("zod").ZodString>;
|
|
250
|
+
analogous: import("zod").ZodArray<import("zod").ZodString>;
|
|
251
|
+
weak_text_overlap: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
200
252
|
}, import("zod/v4/core").$strict>;
|
|
201
253
|
}, import("zod/v4/core").$strict>;
|
|
202
254
|
annotations: {
|
|
@@ -205,96 +257,813 @@ export declare const AGENT_RULEBOOK_MCP_TOOLS: ({
|
|
|
205
257
|
readonly idempotentHint: true;
|
|
206
258
|
readonly openWorldHint: false;
|
|
207
259
|
};
|
|
208
|
-
handler: typeof
|
|
260
|
+
handler: typeof handlePrepareChange;
|
|
209
261
|
} | {
|
|
210
|
-
name: "
|
|
262
|
+
name: "resolutions.commit_change";
|
|
211
263
|
title: string;
|
|
212
264
|
description: string;
|
|
213
265
|
inputSchema: import("zod").ZodObject<{
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}>;
|
|
280
|
-
|
|
266
|
+
payload: import("zod").ZodObject<{
|
|
267
|
+
problem: import("zod").ZodObject<{
|
|
268
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
269
|
+
kind: import("zod").ZodLiteral<"problem">;
|
|
270
|
+
id: import("zod").ZodString;
|
|
271
|
+
title: import("zod").ZodString;
|
|
272
|
+
observations: import("zod").ZodObject<{
|
|
273
|
+
symptoms: import("zod").ZodArray<import("zod").ZodString>;
|
|
274
|
+
error_signatures: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
275
|
+
symbols: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
276
|
+
operations: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
277
|
+
expected: import("zod").ZodString;
|
|
278
|
+
observed: import("zod").ZodString;
|
|
279
|
+
}, import("zod/v4/core").$strict>;
|
|
280
|
+
hypotheses: import("zod").ZodObject<{
|
|
281
|
+
suspected_causes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
282
|
+
components: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
283
|
+
}, import("zod/v4/core").$strict>;
|
|
284
|
+
environment: import("zod").ZodObject<{
|
|
285
|
+
languages: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
286
|
+
platforms: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
287
|
+
runtimes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
288
|
+
tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
289
|
+
}, import("zod/v4/core").$strict>;
|
|
290
|
+
created_at: import("zod").ZodISODateTime;
|
|
291
|
+
}, import("zod/v4/core").$strict>;
|
|
292
|
+
solution: import("zod").ZodObject<{
|
|
293
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
294
|
+
kind: import("zod").ZodLiteral<"solution">;
|
|
295
|
+
id: import("zod").ZodString;
|
|
296
|
+
problem_id: import("zod").ZodString;
|
|
297
|
+
revision: import("zod").ZodNumber;
|
|
298
|
+
title: import("zod").ZodString;
|
|
299
|
+
cause: import("zod").ZodString;
|
|
300
|
+
applicable_if: import("zod").ZodArray<import("zod").ZodString>;
|
|
301
|
+
reject_if: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
302
|
+
inspections: import("zod").ZodArray<import("zod").ZodString>;
|
|
303
|
+
actions: import("zod").ZodArray<import("zod").ZodString>;
|
|
304
|
+
verification: import("zod").ZodArray<import("zod").ZodString>;
|
|
305
|
+
safety: import("zod").ZodArray<import("zod").ZodString>;
|
|
306
|
+
source_evidence: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
307
|
+
id: import("zod").ZodString;
|
|
308
|
+
project_key: import("zod").ZodString;
|
|
309
|
+
repository_fingerprint: import("zod").ZodString;
|
|
310
|
+
revision: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
311
|
+
kind: import("zod").ZodLiteral<"git_commit">;
|
|
312
|
+
value: import("zod").ZodString;
|
|
313
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
314
|
+
kind: import("zod").ZodLiteral<"working_tree_hash">;
|
|
315
|
+
value: import("zod").ZodString;
|
|
316
|
+
}, import("zod/v4/core").$strict>], "kind">;
|
|
317
|
+
relative_path: import("zod").ZodString;
|
|
318
|
+
symbol: import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
|
+
content_hash: import("zod").ZodString;
|
|
320
|
+
tests: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
321
|
+
}, import("zod/v4/core").$strict>>>;
|
|
322
|
+
prior_solution: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
323
|
+
id: import("zod").ZodString;
|
|
324
|
+
revision: import("zod").ZodNumber;
|
|
325
|
+
relation: import("zod").ZodEnum<{
|
|
326
|
+
refines: "refines";
|
|
327
|
+
supersedes: "supersedes";
|
|
328
|
+
}>;
|
|
329
|
+
}, import("zod/v4/core").$strict>>;
|
|
330
|
+
created_at: import("zod").ZodISODateTime;
|
|
331
|
+
}, import("zod/v4/core").$strict>;
|
|
332
|
+
problem_fingerprint: import("zod").ZodString;
|
|
333
|
+
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
334
|
+
target_solution_handle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
|
+
verification: import("zod").ZodObject<{
|
|
336
|
+
recurrence_risk: import("zod").ZodLiteral<"high">;
|
|
337
|
+
value: import("zod").ZodLiteral<"high">;
|
|
338
|
+
verified_at: import("zod").ZodISODateTime;
|
|
339
|
+
evidence: import("zod").ZodArray<import("zod").ZodObject<{
|
|
340
|
+
kind: import("zod").ZodEnum<{
|
|
341
|
+
focused_test: "focused_test";
|
|
342
|
+
integration_test: "integration_test";
|
|
343
|
+
manual_verification: "manual_verification";
|
|
344
|
+
observation: "observation";
|
|
345
|
+
}>;
|
|
346
|
+
handle: import("zod").ZodString;
|
|
347
|
+
summary: import("zod").ZodString;
|
|
348
|
+
}, import("zod/v4/core").$strict>>;
|
|
349
|
+
}, import("zod/v4/core").$strict>;
|
|
350
|
+
relation_evidence: import("zod").ZodObject<{
|
|
351
|
+
replacement_verified: import("zod").ZodBoolean;
|
|
352
|
+
conflict: import("zod").ZodArray<import("zod").ZodString>;
|
|
353
|
+
analogous: import("zod").ZodArray<import("zod").ZodString>;
|
|
354
|
+
weak_text_overlap: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
355
|
+
}, import("zod/v4/core").$strict>;
|
|
281
356
|
}, import("zod/v4/core").$strict>;
|
|
282
357
|
payload_hash: import("zod").ZodString;
|
|
358
|
+
state_hash: import("zod").ZodString;
|
|
359
|
+
relation: import("zod").ZodEnum<{
|
|
360
|
+
exact_solution: "exact_solution";
|
|
361
|
+
same_problem_alternative: "same_problem_alternative";
|
|
362
|
+
refines_solution: "refines_solution";
|
|
363
|
+
supersedes_solution: "supersedes_solution";
|
|
364
|
+
contradicts_solution: "contradicts_solution";
|
|
365
|
+
analogous_pattern: "analogous_pattern";
|
|
366
|
+
weak_overlap: "weak_overlap";
|
|
367
|
+
new_problem: "new_problem";
|
|
368
|
+
}>;
|
|
283
369
|
}, import("zod/v4/core").$strict>;
|
|
284
370
|
annotations: {
|
|
285
|
-
readOnlyHint: false;
|
|
286
|
-
destructiveHint: false;
|
|
287
|
-
idempotentHint:
|
|
288
|
-
openWorldHint: false;
|
|
371
|
+
readonly readOnlyHint: false;
|
|
372
|
+
readonly destructiveHint: false;
|
|
373
|
+
readonly idempotentHint: boolean;
|
|
374
|
+
readonly openWorldHint: false;
|
|
289
375
|
};
|
|
290
|
-
handler: typeof
|
|
376
|
+
handler: typeof handleCommitChange;
|
|
291
377
|
})[];
|
|
292
|
-
declare function
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
378
|
+
declare function handleFind(args: McpResolutionsFindInput, context: AgentRulebookToolContext): Promise<{
|
|
379
|
+
[x: string]: unknown;
|
|
380
|
+
content: ({
|
|
381
|
+
type: "text";
|
|
382
|
+
text: string;
|
|
383
|
+
annotations?: {
|
|
384
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
385
|
+
priority?: number | undefined;
|
|
386
|
+
lastModified?: string | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
_meta?: {
|
|
389
|
+
[x: string]: unknown;
|
|
390
|
+
} | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
type: "image";
|
|
393
|
+
data: string;
|
|
394
|
+
mimeType: string;
|
|
395
|
+
annotations?: {
|
|
396
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
397
|
+
priority?: number | undefined;
|
|
398
|
+
lastModified?: string | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
_meta?: {
|
|
401
|
+
[x: string]: unknown;
|
|
402
|
+
} | undefined;
|
|
403
|
+
} | {
|
|
404
|
+
type: "audio";
|
|
405
|
+
data: string;
|
|
406
|
+
mimeType: string;
|
|
407
|
+
annotations?: {
|
|
408
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
409
|
+
priority?: number | undefined;
|
|
410
|
+
lastModified?: string | undefined;
|
|
411
|
+
} | undefined;
|
|
412
|
+
_meta?: {
|
|
413
|
+
[x: string]: unknown;
|
|
414
|
+
} | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
uri: string;
|
|
417
|
+
name: string;
|
|
418
|
+
type: "resource_link";
|
|
419
|
+
description?: string | undefined;
|
|
420
|
+
mimeType?: string | undefined;
|
|
421
|
+
size?: number | undefined;
|
|
422
|
+
annotations?: {
|
|
423
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
424
|
+
priority?: number | undefined;
|
|
425
|
+
lastModified?: string | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
_meta?: {
|
|
428
|
+
[x: string]: unknown;
|
|
429
|
+
} | undefined;
|
|
430
|
+
icons?: {
|
|
431
|
+
src: string;
|
|
432
|
+
mimeType?: string | undefined;
|
|
433
|
+
sizes?: string[] | undefined;
|
|
434
|
+
theme?: "light" | "dark" | undefined;
|
|
435
|
+
}[] | undefined;
|
|
436
|
+
title?: string | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
type: "resource";
|
|
439
|
+
resource: {
|
|
440
|
+
uri: string;
|
|
441
|
+
text: string;
|
|
442
|
+
mimeType?: string | undefined;
|
|
443
|
+
_meta?: {
|
|
444
|
+
[x: string]: unknown;
|
|
445
|
+
} | undefined;
|
|
446
|
+
} | {
|
|
447
|
+
uri: string;
|
|
448
|
+
blob: string;
|
|
449
|
+
mimeType?: string | undefined;
|
|
450
|
+
_meta?: {
|
|
451
|
+
[x: string]: unknown;
|
|
452
|
+
} | undefined;
|
|
453
|
+
};
|
|
454
|
+
annotations?: {
|
|
455
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
456
|
+
priority?: number | undefined;
|
|
457
|
+
lastModified?: string | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
_meta?: {
|
|
460
|
+
[x: string]: unknown;
|
|
461
|
+
} | undefined;
|
|
462
|
+
})[];
|
|
463
|
+
_meta?: {
|
|
464
|
+
[x: string]: unknown;
|
|
465
|
+
progressToken?: string | number | undefined;
|
|
466
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
467
|
+
taskId: string;
|
|
468
|
+
} | undefined;
|
|
469
|
+
} | undefined;
|
|
470
|
+
structuredContent?: {
|
|
471
|
+
[x: string]: unknown;
|
|
472
|
+
} | undefined;
|
|
473
|
+
isError?: boolean | undefined;
|
|
474
|
+
}>;
|
|
475
|
+
declare function handleGet(args: McpResolutionsGetInput, context: AgentRulebookToolContext): Promise<{
|
|
476
|
+
[x: string]: unknown;
|
|
477
|
+
content: ({
|
|
478
|
+
type: "text";
|
|
479
|
+
text: string;
|
|
480
|
+
annotations?: {
|
|
481
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
482
|
+
priority?: number | undefined;
|
|
483
|
+
lastModified?: string | undefined;
|
|
484
|
+
} | undefined;
|
|
485
|
+
_meta?: {
|
|
486
|
+
[x: string]: unknown;
|
|
487
|
+
} | undefined;
|
|
488
|
+
} | {
|
|
489
|
+
type: "image";
|
|
490
|
+
data: string;
|
|
491
|
+
mimeType: string;
|
|
492
|
+
annotations?: {
|
|
493
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
494
|
+
priority?: number | undefined;
|
|
495
|
+
lastModified?: string | undefined;
|
|
496
|
+
} | undefined;
|
|
497
|
+
_meta?: {
|
|
498
|
+
[x: string]: unknown;
|
|
499
|
+
} | undefined;
|
|
500
|
+
} | {
|
|
501
|
+
type: "audio";
|
|
502
|
+
data: string;
|
|
503
|
+
mimeType: string;
|
|
504
|
+
annotations?: {
|
|
505
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
506
|
+
priority?: number | undefined;
|
|
507
|
+
lastModified?: string | undefined;
|
|
508
|
+
} | undefined;
|
|
509
|
+
_meta?: {
|
|
510
|
+
[x: string]: unknown;
|
|
511
|
+
} | undefined;
|
|
512
|
+
} | {
|
|
513
|
+
uri: string;
|
|
514
|
+
name: string;
|
|
515
|
+
type: "resource_link";
|
|
516
|
+
description?: string | undefined;
|
|
517
|
+
mimeType?: string | undefined;
|
|
518
|
+
size?: number | undefined;
|
|
519
|
+
annotations?: {
|
|
520
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
521
|
+
priority?: number | undefined;
|
|
522
|
+
lastModified?: string | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
_meta?: {
|
|
525
|
+
[x: string]: unknown;
|
|
526
|
+
} | undefined;
|
|
527
|
+
icons?: {
|
|
528
|
+
src: string;
|
|
529
|
+
mimeType?: string | undefined;
|
|
530
|
+
sizes?: string[] | undefined;
|
|
531
|
+
theme?: "light" | "dark" | undefined;
|
|
532
|
+
}[] | undefined;
|
|
533
|
+
title?: string | undefined;
|
|
534
|
+
} | {
|
|
535
|
+
type: "resource";
|
|
536
|
+
resource: {
|
|
537
|
+
uri: string;
|
|
538
|
+
text: string;
|
|
539
|
+
mimeType?: string | undefined;
|
|
540
|
+
_meta?: {
|
|
541
|
+
[x: string]: unknown;
|
|
542
|
+
} | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
uri: string;
|
|
545
|
+
blob: string;
|
|
546
|
+
mimeType?: string | undefined;
|
|
547
|
+
_meta?: {
|
|
548
|
+
[x: string]: unknown;
|
|
549
|
+
} | undefined;
|
|
550
|
+
};
|
|
551
|
+
annotations?: {
|
|
552
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
553
|
+
priority?: number | undefined;
|
|
554
|
+
lastModified?: string | undefined;
|
|
555
|
+
} | undefined;
|
|
556
|
+
_meta?: {
|
|
557
|
+
[x: string]: unknown;
|
|
558
|
+
} | undefined;
|
|
559
|
+
})[];
|
|
560
|
+
_meta?: {
|
|
561
|
+
[x: string]: unknown;
|
|
562
|
+
progressToken?: string | number | undefined;
|
|
563
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
564
|
+
taskId: string;
|
|
565
|
+
} | undefined;
|
|
566
|
+
} | undefined;
|
|
567
|
+
structuredContent?: {
|
|
568
|
+
[x: string]: unknown;
|
|
569
|
+
} | undefined;
|
|
570
|
+
isError?: boolean | undefined;
|
|
571
|
+
}>;
|
|
572
|
+
declare function handleGetSource(args: McpResolutionsGetSourceInput, context: AgentRulebookToolContext): Promise<{
|
|
573
|
+
[x: string]: unknown;
|
|
574
|
+
content: ({
|
|
575
|
+
type: "text";
|
|
576
|
+
text: string;
|
|
577
|
+
annotations?: {
|
|
578
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
579
|
+
priority?: number | undefined;
|
|
580
|
+
lastModified?: string | undefined;
|
|
581
|
+
} | undefined;
|
|
582
|
+
_meta?: {
|
|
583
|
+
[x: string]: unknown;
|
|
584
|
+
} | undefined;
|
|
585
|
+
} | {
|
|
586
|
+
type: "image";
|
|
587
|
+
data: string;
|
|
588
|
+
mimeType: string;
|
|
589
|
+
annotations?: {
|
|
590
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
591
|
+
priority?: number | undefined;
|
|
592
|
+
lastModified?: string | undefined;
|
|
593
|
+
} | undefined;
|
|
594
|
+
_meta?: {
|
|
595
|
+
[x: string]: unknown;
|
|
596
|
+
} | undefined;
|
|
597
|
+
} | {
|
|
598
|
+
type: "audio";
|
|
599
|
+
data: string;
|
|
600
|
+
mimeType: string;
|
|
601
|
+
annotations?: {
|
|
602
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
603
|
+
priority?: number | undefined;
|
|
604
|
+
lastModified?: string | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
_meta?: {
|
|
607
|
+
[x: string]: unknown;
|
|
608
|
+
} | undefined;
|
|
609
|
+
} | {
|
|
610
|
+
uri: string;
|
|
611
|
+
name: string;
|
|
612
|
+
type: "resource_link";
|
|
613
|
+
description?: string | undefined;
|
|
614
|
+
mimeType?: string | undefined;
|
|
615
|
+
size?: number | undefined;
|
|
616
|
+
annotations?: {
|
|
617
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
618
|
+
priority?: number | undefined;
|
|
619
|
+
lastModified?: string | undefined;
|
|
620
|
+
} | undefined;
|
|
621
|
+
_meta?: {
|
|
622
|
+
[x: string]: unknown;
|
|
623
|
+
} | undefined;
|
|
624
|
+
icons?: {
|
|
625
|
+
src: string;
|
|
626
|
+
mimeType?: string | undefined;
|
|
627
|
+
sizes?: string[] | undefined;
|
|
628
|
+
theme?: "light" | "dark" | undefined;
|
|
629
|
+
}[] | undefined;
|
|
630
|
+
title?: string | undefined;
|
|
631
|
+
} | {
|
|
632
|
+
type: "resource";
|
|
633
|
+
resource: {
|
|
634
|
+
uri: string;
|
|
635
|
+
text: string;
|
|
636
|
+
mimeType?: string | undefined;
|
|
637
|
+
_meta?: {
|
|
638
|
+
[x: string]: unknown;
|
|
639
|
+
} | undefined;
|
|
640
|
+
} | {
|
|
641
|
+
uri: string;
|
|
642
|
+
blob: string;
|
|
643
|
+
mimeType?: string | undefined;
|
|
644
|
+
_meta?: {
|
|
645
|
+
[x: string]: unknown;
|
|
646
|
+
} | undefined;
|
|
647
|
+
};
|
|
648
|
+
annotations?: {
|
|
649
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
650
|
+
priority?: number | undefined;
|
|
651
|
+
lastModified?: string | undefined;
|
|
652
|
+
} | undefined;
|
|
653
|
+
_meta?: {
|
|
654
|
+
[x: string]: unknown;
|
|
655
|
+
} | undefined;
|
|
656
|
+
})[];
|
|
657
|
+
_meta?: {
|
|
658
|
+
[x: string]: unknown;
|
|
659
|
+
progressToken?: string | number | undefined;
|
|
660
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
661
|
+
taskId: string;
|
|
662
|
+
} | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
structuredContent?: {
|
|
665
|
+
[x: string]: unknown;
|
|
666
|
+
} | undefined;
|
|
667
|
+
isError?: boolean | undefined;
|
|
668
|
+
}>;
|
|
669
|
+
declare function handleListFacets(args: McpResolutionsListFacetsInput, context: AgentRulebookToolContext): Promise<{
|
|
670
|
+
[x: string]: unknown;
|
|
671
|
+
content: ({
|
|
672
|
+
type: "text";
|
|
673
|
+
text: string;
|
|
674
|
+
annotations?: {
|
|
675
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
676
|
+
priority?: number | undefined;
|
|
677
|
+
lastModified?: string | undefined;
|
|
678
|
+
} | undefined;
|
|
679
|
+
_meta?: {
|
|
680
|
+
[x: string]: unknown;
|
|
681
|
+
} | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
type: "image";
|
|
684
|
+
data: string;
|
|
685
|
+
mimeType: string;
|
|
686
|
+
annotations?: {
|
|
687
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
688
|
+
priority?: number | undefined;
|
|
689
|
+
lastModified?: string | undefined;
|
|
690
|
+
} | undefined;
|
|
691
|
+
_meta?: {
|
|
692
|
+
[x: string]: unknown;
|
|
693
|
+
} | undefined;
|
|
694
|
+
} | {
|
|
695
|
+
type: "audio";
|
|
696
|
+
data: string;
|
|
697
|
+
mimeType: string;
|
|
698
|
+
annotations?: {
|
|
699
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
700
|
+
priority?: number | undefined;
|
|
701
|
+
lastModified?: string | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
_meta?: {
|
|
704
|
+
[x: string]: unknown;
|
|
705
|
+
} | undefined;
|
|
706
|
+
} | {
|
|
707
|
+
uri: string;
|
|
708
|
+
name: string;
|
|
709
|
+
type: "resource_link";
|
|
710
|
+
description?: string | undefined;
|
|
711
|
+
mimeType?: string | undefined;
|
|
712
|
+
size?: number | undefined;
|
|
713
|
+
annotations?: {
|
|
714
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
715
|
+
priority?: number | undefined;
|
|
716
|
+
lastModified?: string | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
_meta?: {
|
|
719
|
+
[x: string]: unknown;
|
|
720
|
+
} | undefined;
|
|
721
|
+
icons?: {
|
|
722
|
+
src: string;
|
|
723
|
+
mimeType?: string | undefined;
|
|
724
|
+
sizes?: string[] | undefined;
|
|
725
|
+
theme?: "light" | "dark" | undefined;
|
|
726
|
+
}[] | undefined;
|
|
727
|
+
title?: string | undefined;
|
|
728
|
+
} | {
|
|
729
|
+
type: "resource";
|
|
730
|
+
resource: {
|
|
731
|
+
uri: string;
|
|
732
|
+
text: string;
|
|
733
|
+
mimeType?: string | undefined;
|
|
734
|
+
_meta?: {
|
|
735
|
+
[x: string]: unknown;
|
|
736
|
+
} | undefined;
|
|
737
|
+
} | {
|
|
738
|
+
uri: string;
|
|
739
|
+
blob: string;
|
|
740
|
+
mimeType?: string | undefined;
|
|
741
|
+
_meta?: {
|
|
742
|
+
[x: string]: unknown;
|
|
743
|
+
} | undefined;
|
|
744
|
+
};
|
|
745
|
+
annotations?: {
|
|
746
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
747
|
+
priority?: number | undefined;
|
|
748
|
+
lastModified?: string | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
_meta?: {
|
|
751
|
+
[x: string]: unknown;
|
|
752
|
+
} | undefined;
|
|
753
|
+
})[];
|
|
754
|
+
_meta?: {
|
|
755
|
+
[x: string]: unknown;
|
|
756
|
+
progressToken?: string | number | undefined;
|
|
757
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
758
|
+
taskId: string;
|
|
759
|
+
} | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
structuredContent?: {
|
|
762
|
+
[x: string]: unknown;
|
|
763
|
+
} | undefined;
|
|
764
|
+
isError?: boolean | undefined;
|
|
765
|
+
}>;
|
|
766
|
+
declare function handleReportAttempt(args: McpResolutionsReportAttemptInput, context: AgentRulebookToolContext): Promise<{
|
|
767
|
+
[x: string]: unknown;
|
|
768
|
+
content: ({
|
|
769
|
+
type: "text";
|
|
770
|
+
text: string;
|
|
771
|
+
annotations?: {
|
|
772
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
773
|
+
priority?: number | undefined;
|
|
774
|
+
lastModified?: string | undefined;
|
|
775
|
+
} | undefined;
|
|
776
|
+
_meta?: {
|
|
777
|
+
[x: string]: unknown;
|
|
778
|
+
} | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
type: "image";
|
|
781
|
+
data: string;
|
|
782
|
+
mimeType: string;
|
|
783
|
+
annotations?: {
|
|
784
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
785
|
+
priority?: number | undefined;
|
|
786
|
+
lastModified?: string | undefined;
|
|
787
|
+
} | undefined;
|
|
788
|
+
_meta?: {
|
|
789
|
+
[x: string]: unknown;
|
|
790
|
+
} | undefined;
|
|
791
|
+
} | {
|
|
792
|
+
type: "audio";
|
|
793
|
+
data: string;
|
|
794
|
+
mimeType: string;
|
|
795
|
+
annotations?: {
|
|
796
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
797
|
+
priority?: number | undefined;
|
|
798
|
+
lastModified?: string | undefined;
|
|
799
|
+
} | undefined;
|
|
800
|
+
_meta?: {
|
|
801
|
+
[x: string]: unknown;
|
|
802
|
+
} | undefined;
|
|
803
|
+
} | {
|
|
804
|
+
uri: string;
|
|
805
|
+
name: string;
|
|
806
|
+
type: "resource_link";
|
|
807
|
+
description?: string | undefined;
|
|
808
|
+
mimeType?: string | undefined;
|
|
809
|
+
size?: number | undefined;
|
|
810
|
+
annotations?: {
|
|
811
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
812
|
+
priority?: number | undefined;
|
|
813
|
+
lastModified?: string | undefined;
|
|
814
|
+
} | undefined;
|
|
815
|
+
_meta?: {
|
|
816
|
+
[x: string]: unknown;
|
|
817
|
+
} | undefined;
|
|
818
|
+
icons?: {
|
|
819
|
+
src: string;
|
|
820
|
+
mimeType?: string | undefined;
|
|
821
|
+
sizes?: string[] | undefined;
|
|
822
|
+
theme?: "light" | "dark" | undefined;
|
|
823
|
+
}[] | undefined;
|
|
824
|
+
title?: string | undefined;
|
|
825
|
+
} | {
|
|
826
|
+
type: "resource";
|
|
827
|
+
resource: {
|
|
828
|
+
uri: string;
|
|
829
|
+
text: string;
|
|
830
|
+
mimeType?: string | undefined;
|
|
831
|
+
_meta?: {
|
|
832
|
+
[x: string]: unknown;
|
|
833
|
+
} | undefined;
|
|
834
|
+
} | {
|
|
835
|
+
uri: string;
|
|
836
|
+
blob: string;
|
|
837
|
+
mimeType?: string | undefined;
|
|
838
|
+
_meta?: {
|
|
839
|
+
[x: string]: unknown;
|
|
840
|
+
} | undefined;
|
|
841
|
+
};
|
|
842
|
+
annotations?: {
|
|
843
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
844
|
+
priority?: number | undefined;
|
|
845
|
+
lastModified?: string | undefined;
|
|
846
|
+
} | undefined;
|
|
847
|
+
_meta?: {
|
|
848
|
+
[x: string]: unknown;
|
|
849
|
+
} | undefined;
|
|
850
|
+
})[];
|
|
851
|
+
_meta?: {
|
|
852
|
+
[x: string]: unknown;
|
|
853
|
+
progressToken?: string | number | undefined;
|
|
854
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
855
|
+
taskId: string;
|
|
856
|
+
} | undefined;
|
|
857
|
+
} | undefined;
|
|
858
|
+
structuredContent?: {
|
|
859
|
+
[x: string]: unknown;
|
|
860
|
+
} | undefined;
|
|
861
|
+
isError?: boolean | undefined;
|
|
862
|
+
}>;
|
|
863
|
+
declare function handlePrepareChange(args: McpResolutionsPrepareChangeInput, context: AgentRulebookToolContext): Promise<{
|
|
864
|
+
[x: string]: unknown;
|
|
865
|
+
content: ({
|
|
866
|
+
type: "text";
|
|
867
|
+
text: string;
|
|
868
|
+
annotations?: {
|
|
869
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
870
|
+
priority?: number | undefined;
|
|
871
|
+
lastModified?: string | undefined;
|
|
872
|
+
} | undefined;
|
|
873
|
+
_meta?: {
|
|
874
|
+
[x: string]: unknown;
|
|
875
|
+
} | undefined;
|
|
876
|
+
} | {
|
|
877
|
+
type: "image";
|
|
878
|
+
data: string;
|
|
879
|
+
mimeType: string;
|
|
880
|
+
annotations?: {
|
|
881
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
882
|
+
priority?: number | undefined;
|
|
883
|
+
lastModified?: string | undefined;
|
|
884
|
+
} | undefined;
|
|
885
|
+
_meta?: {
|
|
886
|
+
[x: string]: unknown;
|
|
887
|
+
} | undefined;
|
|
888
|
+
} | {
|
|
889
|
+
type: "audio";
|
|
890
|
+
data: string;
|
|
891
|
+
mimeType: string;
|
|
892
|
+
annotations?: {
|
|
893
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
894
|
+
priority?: number | undefined;
|
|
895
|
+
lastModified?: string | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
_meta?: {
|
|
898
|
+
[x: string]: unknown;
|
|
899
|
+
} | undefined;
|
|
900
|
+
} | {
|
|
901
|
+
uri: string;
|
|
902
|
+
name: string;
|
|
903
|
+
type: "resource_link";
|
|
904
|
+
description?: string | undefined;
|
|
905
|
+
mimeType?: string | undefined;
|
|
906
|
+
size?: number | undefined;
|
|
907
|
+
annotations?: {
|
|
908
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
909
|
+
priority?: number | undefined;
|
|
910
|
+
lastModified?: string | undefined;
|
|
911
|
+
} | undefined;
|
|
912
|
+
_meta?: {
|
|
913
|
+
[x: string]: unknown;
|
|
914
|
+
} | undefined;
|
|
915
|
+
icons?: {
|
|
916
|
+
src: string;
|
|
917
|
+
mimeType?: string | undefined;
|
|
918
|
+
sizes?: string[] | undefined;
|
|
919
|
+
theme?: "light" | "dark" | undefined;
|
|
920
|
+
}[] | undefined;
|
|
921
|
+
title?: string | undefined;
|
|
922
|
+
} | {
|
|
923
|
+
type: "resource";
|
|
924
|
+
resource: {
|
|
925
|
+
uri: string;
|
|
926
|
+
text: string;
|
|
927
|
+
mimeType?: string | undefined;
|
|
928
|
+
_meta?: {
|
|
929
|
+
[x: string]: unknown;
|
|
930
|
+
} | undefined;
|
|
931
|
+
} | {
|
|
932
|
+
uri: string;
|
|
933
|
+
blob: string;
|
|
934
|
+
mimeType?: string | undefined;
|
|
935
|
+
_meta?: {
|
|
936
|
+
[x: string]: unknown;
|
|
937
|
+
} | undefined;
|
|
938
|
+
};
|
|
939
|
+
annotations?: {
|
|
940
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
941
|
+
priority?: number | undefined;
|
|
942
|
+
lastModified?: string | undefined;
|
|
943
|
+
} | undefined;
|
|
944
|
+
_meta?: {
|
|
945
|
+
[x: string]: unknown;
|
|
946
|
+
} | undefined;
|
|
947
|
+
})[];
|
|
948
|
+
_meta?: {
|
|
949
|
+
[x: string]: unknown;
|
|
950
|
+
progressToken?: string | number | undefined;
|
|
951
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
952
|
+
taskId: string;
|
|
953
|
+
} | undefined;
|
|
954
|
+
} | undefined;
|
|
955
|
+
structuredContent?: {
|
|
956
|
+
[x: string]: unknown;
|
|
957
|
+
} | undefined;
|
|
958
|
+
isError?: boolean | undefined;
|
|
959
|
+
}>;
|
|
960
|
+
declare function handleCommitChange(args: McpResolutionsCommitChangeInput, context: AgentRulebookToolContext): Promise<{
|
|
961
|
+
[x: string]: unknown;
|
|
962
|
+
content: ({
|
|
963
|
+
type: "text";
|
|
964
|
+
text: string;
|
|
965
|
+
annotations?: {
|
|
966
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
967
|
+
priority?: number | undefined;
|
|
968
|
+
lastModified?: string | undefined;
|
|
969
|
+
} | undefined;
|
|
970
|
+
_meta?: {
|
|
971
|
+
[x: string]: unknown;
|
|
972
|
+
} | undefined;
|
|
973
|
+
} | {
|
|
974
|
+
type: "image";
|
|
975
|
+
data: string;
|
|
976
|
+
mimeType: string;
|
|
977
|
+
annotations?: {
|
|
978
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
979
|
+
priority?: number | undefined;
|
|
980
|
+
lastModified?: string | undefined;
|
|
981
|
+
} | undefined;
|
|
982
|
+
_meta?: {
|
|
983
|
+
[x: string]: unknown;
|
|
984
|
+
} | undefined;
|
|
985
|
+
} | {
|
|
986
|
+
type: "audio";
|
|
987
|
+
data: string;
|
|
988
|
+
mimeType: string;
|
|
989
|
+
annotations?: {
|
|
990
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
991
|
+
priority?: number | undefined;
|
|
992
|
+
lastModified?: string | undefined;
|
|
993
|
+
} | undefined;
|
|
994
|
+
_meta?: {
|
|
995
|
+
[x: string]: unknown;
|
|
996
|
+
} | undefined;
|
|
997
|
+
} | {
|
|
998
|
+
uri: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
type: "resource_link";
|
|
1001
|
+
description?: string | undefined;
|
|
1002
|
+
mimeType?: string | undefined;
|
|
1003
|
+
size?: number | undefined;
|
|
1004
|
+
annotations?: {
|
|
1005
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
1006
|
+
priority?: number | undefined;
|
|
1007
|
+
lastModified?: string | undefined;
|
|
1008
|
+
} | undefined;
|
|
1009
|
+
_meta?: {
|
|
1010
|
+
[x: string]: unknown;
|
|
1011
|
+
} | undefined;
|
|
1012
|
+
icons?: {
|
|
1013
|
+
src: string;
|
|
1014
|
+
mimeType?: string | undefined;
|
|
1015
|
+
sizes?: string[] | undefined;
|
|
1016
|
+
theme?: "light" | "dark" | undefined;
|
|
1017
|
+
}[] | undefined;
|
|
1018
|
+
title?: string | undefined;
|
|
1019
|
+
} | {
|
|
1020
|
+
type: "resource";
|
|
1021
|
+
resource: {
|
|
1022
|
+
uri: string;
|
|
1023
|
+
text: string;
|
|
1024
|
+
mimeType?: string | undefined;
|
|
1025
|
+
_meta?: {
|
|
1026
|
+
[x: string]: unknown;
|
|
1027
|
+
} | undefined;
|
|
1028
|
+
} | {
|
|
1029
|
+
uri: string;
|
|
1030
|
+
blob: string;
|
|
1031
|
+
mimeType?: string | undefined;
|
|
1032
|
+
_meta?: {
|
|
1033
|
+
[x: string]: unknown;
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
};
|
|
1036
|
+
annotations?: {
|
|
1037
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
1038
|
+
priority?: number | undefined;
|
|
1039
|
+
lastModified?: string | undefined;
|
|
1040
|
+
} | undefined;
|
|
1041
|
+
_meta?: {
|
|
1042
|
+
[x: string]: unknown;
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
})[];
|
|
1045
|
+
_meta?: {
|
|
1046
|
+
[x: string]: unknown;
|
|
1047
|
+
progressToken?: string | number | undefined;
|
|
1048
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
1049
|
+
taskId: string;
|
|
1050
|
+
} | undefined;
|
|
1051
|
+
} | undefined;
|
|
1052
|
+
structuredContent?: {
|
|
1053
|
+
[x: string]: unknown;
|
|
1054
|
+
} | undefined;
|
|
1055
|
+
isError?: boolean | undefined;
|
|
1056
|
+
}>;
|
|
1057
|
+
declare function readOnlyAnnotations(): {
|
|
1058
|
+
readonly readOnlyHint: true;
|
|
1059
|
+
readonly destructiveHint: false;
|
|
1060
|
+
readonly idempotentHint: true;
|
|
1061
|
+
readonly openWorldHint: false;
|
|
1062
|
+
};
|
|
1063
|
+
declare function writeAnnotations(idempotent: boolean): {
|
|
1064
|
+
readonly readOnlyHint: false;
|
|
1065
|
+
readonly destructiveHint: false;
|
|
1066
|
+
readonly idempotentHint: boolean;
|
|
1067
|
+
readonly openWorldHint: false;
|
|
1068
|
+
};
|
|
300
1069
|
export {};
|