@jarkkojs/readseek-api 0.10.7 → 0.11.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 +20 -5
- package/dist/argv.d.ts +74 -39
- package/dist/client-output.d.ts +273 -20
- package/dist/client.d.ts +39 -128
- package/dist/contract.d.ts +30 -30
- package/dist/index.d.ts +8 -7
- package/dist/index.js +1718 -1662
- package/dist/process.d.ts +3 -2
- package/dist/show-presentation.d.ts +15 -0
- package/dist/validation.d.ts +3 -10
- package/package.json +2 -2
package/dist/process.d.ts
CHANGED
|
@@ -28,5 +28,6 @@ export declare function failureFromProcessResult(result: ProcessRunResult, optio
|
|
|
28
28
|
overflow?: "stdout" | "stderr";
|
|
29
29
|
maxOutputBytes?: number;
|
|
30
30
|
}): Error;
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
31
|
+
export declare function acceptsReadSeekExitCode(args: readonly string[], exitCode: number | null): boolean;
|
|
32
|
+
export declare function ensureSuccessfulStdout(result: ProcessRunResult, args?: readonly string[]): string;
|
|
33
|
+
export declare function parseSuccessfulKdl(result: ProcessRunResult, args?: readonly string[]): unknown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ShowTool = "show_content" | "show_structure" | "show_metadata" | "show_assets";
|
|
2
|
+
export interface ShowPresentation {
|
|
3
|
+
summary: string;
|
|
4
|
+
body: string;
|
|
5
|
+
notices: string[];
|
|
6
|
+
metadata: Record<string, number>;
|
|
7
|
+
}
|
|
8
|
+
export interface ShowPresentationOptions {
|
|
9
|
+
path?: string;
|
|
10
|
+
at?: string;
|
|
11
|
+
noAnchors?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function isShowTool(name: string): name is ShowTool;
|
|
14
|
+
export declare function presentShowResult(tool: ShowTool, value: unknown, options?: ShowPresentationOptions): ShowPresentation;
|
|
15
|
+
export declare function formatShowResult(presentation: ShowPresentation): string;
|
package/dist/validation.d.ts
CHANGED
|
@@ -4,18 +4,11 @@ export type ValidationResult = {
|
|
|
4
4
|
ok: false;
|
|
5
5
|
error: string;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type ReferencesSelectionInput = {
|
|
8
8
|
name?: string;
|
|
9
|
-
|
|
10
|
-
line?: number;
|
|
11
|
-
column?: number;
|
|
9
|
+
at?: string;
|
|
12
10
|
};
|
|
13
|
-
export declare function
|
|
14
|
-
export type VisionInput = {
|
|
15
|
-
visionMode?: string;
|
|
16
|
-
visionLevel?: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function validateVisionLevelVsMode(input: VisionInput): ValidationResult;
|
|
11
|
+
export declare function validateReferencesSelection(input: ReferencesSelectionInput): ValidationResult;
|
|
19
12
|
export type SetLineEdit = {
|
|
20
13
|
set_line: {
|
|
21
14
|
anchor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarkkojs/readseek-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Shared ReadSeek CLI contract, validation, argv builders, and bounded process runners",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vitest": "^4.1.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@jarkkojs/readseek": "^0.
|
|
54
|
+
"@jarkkojs/readseek": "^0.11.1",
|
|
55
55
|
"@bgotink/kdl": "0.4.0",
|
|
56
56
|
"@sinclair/typebox": "0.34.52"
|
|
57
57
|
}
|