@outfitter/schema 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.
- package/dist/diff.d.ts +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +1 -1
- package/dist/shared/@outfitter/{schema-y9k7tad6.js → schema-4n5h5hen.js} +2 -2
- package/dist/shared/@outfitter/{schema-wgnvy5zh.d.ts → schema-8ag24yqg.d.ts} +1 -1
- package/dist/shared/@outfitter/{schema-xqcdyq2s.d.ts → schema-8nzjxpre.d.ts} +3 -3
- package/dist/shared/@outfitter/{schema-qm3b0skz.d.ts → schema-fr8990kz.d.ts} +4 -4
- package/dist/surface.d.ts +2 -2
- package/package.json +7 -6
- package/dist/shared/@outfitter/{schema-vzq7nzs3.d.ts → schema-21xhna1c.d.ts} +14 -14
package/dist/diff.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiffEntry, ModifiedEntry, SurfaceMapDiff, diffSurfaceMaps } from "./shared/@outfitter/schema-
|
|
2
|
-
import "./shared/@outfitter/schema-
|
|
3
|
-
import "./shared/@outfitter/schema-
|
|
1
|
+
import { DiffEntry, ModifiedEntry, SurfaceMapDiff, diffSurfaceMaps } from "./shared/@outfitter/schema-fr8990kz.js";
|
|
2
|
+
import "./shared/@outfitter/schema-8ag24yqg.js";
|
|
3
|
+
import "./shared/@outfitter/schema-21xhna1c.js";
|
|
4
4
|
export { diffSurfaceMaps, SurfaceMapDiff, ModifiedEntry, DiffEntry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DiffEntry, ModifiedEntry, SurfaceMapDiff, diffSurfaceMaps } from "./shared/@outfitter/schema-
|
|
2
|
-
import { GenerateSurfaceMapOptions, SurfaceMap, generateSurfaceMap, readSurfaceMap, resolveSnapshotPath, writeSurfaceMap } from "./shared/@outfitter/schema-
|
|
3
|
-
import { MarkdownFormatOptions, formatManifestMarkdown } from "./shared/@outfitter/schema-
|
|
4
|
-
import { ActionManifest, ActionManifestEntry, ActionSource, GenerateManifestOptions, ManifestApiSpec, ManifestCliOption, ManifestCliSpec, ManifestMcpSpec, generateManifest } from "./shared/@outfitter/schema-
|
|
1
|
+
import { DiffEntry, ModifiedEntry, SurfaceMapDiff, diffSurfaceMaps } from "./shared/@outfitter/schema-fr8990kz.js";
|
|
2
|
+
import { GenerateSurfaceMapOptions, SurfaceMap, generateSurfaceMap, readSurfaceMap, resolveSnapshotPath, writeSurfaceMap } from "./shared/@outfitter/schema-8ag24yqg.js";
|
|
3
|
+
import { MarkdownFormatOptions, formatManifestMarkdown } from "./shared/@outfitter/schema-8nzjxpre.js";
|
|
4
|
+
import { ActionManifest, ActionManifestEntry, ActionSource, GenerateManifestOptions, ManifestApiSpec, ManifestCliOption, ManifestCliSpec, ManifestMcpSpec, generateManifest } from "./shared/@outfitter/schema-21xhna1c.js";
|
|
5
5
|
export { writeSurfaceMap, resolveSnapshotPath, readSurfaceMap, generateSurfaceMap, generateManifest, formatManifestMarkdown, diffSurfaceMaps, SurfaceMapDiff, SurfaceMap, ModifiedEntry, MarkdownFormatOptions, ManifestMcpSpec, ManifestCliSpec, ManifestCliOption, ManifestApiSpec, GenerateSurfaceMapOptions, GenerateManifestOptions, DiffEntry, ActionSource, ActionManifestEntry, ActionManifest };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./shared/@outfitter/schema-d4xhpz76.js";
|
|
11
11
|
import {
|
|
12
12
|
formatManifestMarkdown
|
|
13
|
-
} from "./shared/@outfitter/schema-
|
|
13
|
+
} from "./shared/@outfitter/schema-4n5h5hen.js";
|
|
14
14
|
import {
|
|
15
15
|
generateManifest
|
|
16
16
|
} from "./shared/@outfitter/schema-tnrxpckr.js";
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionManifest, ActionManifestEntry, ActionSource, GenerateManifestOptions, ManifestApiSpec, ManifestCliOption, ManifestCliSpec, ManifestMcpSpec, generateManifest } from "./shared/@outfitter/schema-
|
|
1
|
+
import { ActionManifest, ActionManifestEntry, ActionSource, GenerateManifestOptions, ManifestApiSpec, ManifestCliOption, ManifestCliSpec, ManifestMcpSpec, generateManifest } from "./shared/@outfitter/schema-21xhna1c.js";
|
|
2
2
|
export { generateManifest, ManifestMcpSpec, ManifestCliSpec, ManifestCliOption, ManifestApiSpec, GenerateManifestOptions, ActionSource, ActionManifestEntry, ActionManifest };
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MarkdownFormatOptions, formatManifestMarkdown } from "./shared/@outfitter/schema-
|
|
2
|
-
import "./shared/@outfitter/schema-
|
|
1
|
+
import { MarkdownFormatOptions, formatManifestMarkdown } from "./shared/@outfitter/schema-8nzjxpre.js";
|
|
2
|
+
import "./shared/@outfitter/schema-21xhna1c.js";
|
|
3
3
|
export { formatManifestMarkdown, MarkdownFormatOptions };
|
package/dist/markdown.js
CHANGED
|
@@ -171,8 +171,8 @@ function displayName(action, surface) {
|
|
|
171
171
|
if (!cli)
|
|
172
172
|
return action.id;
|
|
173
173
|
const group = cli.group;
|
|
174
|
-
const command = cli.command ?? action.id;
|
|
175
|
-
return group ? `${group} ${command}
|
|
174
|
+
const command = cli.command ?? (group ? "" : action.id);
|
|
175
|
+
return group ? `${group} ${command}`.trimEnd() : command;
|
|
176
176
|
}
|
|
177
177
|
return action.mcp?.tool ?? action.id;
|
|
178
178
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionManifest, ActionSource, GenerateManifestOptions } from "./schema-
|
|
1
|
+
import { ActionManifest, ActionSource, GenerateManifestOptions } from "./schema-21xhna1c.js";
|
|
2
2
|
interface SurfaceMap extends ActionManifest {
|
|
3
3
|
readonly $schema: string;
|
|
4
4
|
readonly generator: "runtime" | "build";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ActionManifest } from "./schema-
|
|
1
|
+
import { ActionManifest } from "./schema-21xhna1c.js";
|
|
2
2
|
type DocSurface = "mcp" | "cli";
|
|
3
3
|
interface MarkdownFormatOptions {
|
|
4
4
|
/** Which surface to document. Default: "mcp" */
|
|
5
5
|
readonly surface?: DocSurface;
|
|
6
|
+
/** Include generated timestamp. Default: true */
|
|
7
|
+
readonly timestamp?: boolean;
|
|
6
8
|
/** Document title. Default: surface-specific (e.g., "MCP Tools Reference") */
|
|
7
9
|
readonly title?: string;
|
|
8
10
|
/** Include table of contents. Default: true when 2+ entries */
|
|
9
11
|
readonly toc?: boolean;
|
|
10
|
-
/** Include generated timestamp. Default: true */
|
|
11
|
-
readonly timestamp?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Format an action manifest as a markdown reference document.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SurfaceMap } from "./schema-
|
|
1
|
+
import { SurfaceMap } from "./schema-8ag24yqg.js";
|
|
2
2
|
interface SurfaceMapDiff {
|
|
3
|
-
readonly hasChanges: boolean;
|
|
4
3
|
readonly added: readonly DiffEntry[];
|
|
5
|
-
readonly
|
|
6
|
-
readonly modified: readonly ModifiedEntry[];
|
|
4
|
+
readonly hasChanges: boolean;
|
|
7
5
|
readonly metadataChanges: readonly string[];
|
|
6
|
+
readonly modified: readonly ModifiedEntry[];
|
|
7
|
+
readonly removed: readonly DiffEntry[];
|
|
8
8
|
}
|
|
9
9
|
interface DiffEntry {
|
|
10
10
|
readonly id: string;
|
package/dist/surface.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GenerateSurfaceMapOptions, SurfaceMap, generateSurfaceMap, readSurfaceMap, resolveSnapshotPath, writeSurfaceMap } from "./shared/@outfitter/schema-
|
|
2
|
-
import "./shared/@outfitter/schema-
|
|
1
|
+
import { GenerateSurfaceMapOptions, SurfaceMap, generateSurfaceMap, readSurfaceMap, resolveSnapshotPath, writeSurfaceMap } from "./shared/@outfitter/schema-8ag24yqg.js";
|
|
2
|
+
import "./shared/@outfitter/schema-21xhna1c.js";
|
|
3
3
|
export { writeSurfaceMap, resolveSnapshotPath, readSurfaceMap, generateSurfaceMap, SurfaceMap, GenerateSurfaceMapOptions };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outfitter/schema",
|
|
3
3
|
"description": "Schema introspection, surface map generation, and drift detection for Outfitter",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -49,21 +49,22 @@
|
|
|
49
49
|
"lint": "biome lint ./src",
|
|
50
50
|
"lint:fix": "biome lint --write ./src",
|
|
51
51
|
"typecheck": "tsc --noEmit",
|
|
52
|
-
"clean": "rm -rf dist"
|
|
52
|
+
"clean": "rm -rf dist",
|
|
53
|
+
"prepublishOnly": "bun ../../scripts/check-publish-manifest.ts"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@outfitter/contracts": "
|
|
56
|
-
"@outfitter/types": "
|
|
56
|
+
"@outfitter/contracts": "0.4.1",
|
|
57
|
+
"@outfitter/types": "0.2.3"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"zod": "^4.3.5"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@types/bun": "^1.3.
|
|
63
|
+
"@types/bun": "^1.3.9",
|
|
63
64
|
"typescript": "^5.9.3"
|
|
64
65
|
},
|
|
65
66
|
"engines": {
|
|
66
|
-
"bun": ">=1.3.
|
|
67
|
+
"bun": ">=1.3.9"
|
|
67
68
|
},
|
|
68
69
|
"keywords": [
|
|
69
70
|
"outfitter",
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { ActionRegistry, ActionSurface, AnyActionSpec, ErrorCategory, JsonSchema } from "@outfitter/contracts";
|
|
2
2
|
interface ActionManifest {
|
|
3
|
-
readonly version: string;
|
|
4
|
-
readonly generatedAt: string;
|
|
5
|
-
readonly surfaces: ActionSurface[];
|
|
6
3
|
readonly actions: ActionManifestEntry[];
|
|
7
4
|
readonly errors: Record<ErrorCategory, {
|
|
8
5
|
exit: number;
|
|
9
6
|
http: number;
|
|
10
7
|
}>;
|
|
8
|
+
readonly generatedAt: string;
|
|
11
9
|
readonly outputModes: string[];
|
|
10
|
+
readonly surfaces: ActionSurface[];
|
|
11
|
+
readonly version: string;
|
|
12
12
|
}
|
|
13
13
|
interface ActionManifestEntry {
|
|
14
|
-
readonly
|
|
14
|
+
readonly api?: ManifestApiSpec | undefined;
|
|
15
|
+
readonly cli?: ManifestCliSpec | undefined;
|
|
15
16
|
readonly description?: string | undefined;
|
|
16
|
-
readonly
|
|
17
|
+
readonly id: string;
|
|
17
18
|
readonly input: JsonSchema;
|
|
18
|
-
readonly output?: JsonSchema | undefined;
|
|
19
|
-
readonly cli?: ManifestCliSpec | undefined;
|
|
20
19
|
readonly mcp?: ManifestMcpSpec | undefined;
|
|
21
|
-
readonly
|
|
20
|
+
readonly output?: JsonSchema | undefined;
|
|
21
|
+
readonly surfaces: ActionSurface[];
|
|
22
22
|
}
|
|
23
23
|
interface ManifestCliSpec {
|
|
24
|
-
readonly
|
|
24
|
+
readonly aliases?: readonly string[] | undefined;
|
|
25
25
|
readonly command?: string | undefined;
|
|
26
26
|
readonly description?: string | undefined;
|
|
27
|
-
readonly
|
|
27
|
+
readonly group?: string | undefined;
|
|
28
28
|
readonly options?: readonly ManifestCliOption[] | undefined;
|
|
29
29
|
}
|
|
30
30
|
interface ManifestCliOption {
|
|
31
|
-
readonly flags: string;
|
|
32
|
-
readonly description: string;
|
|
33
31
|
readonly defaultValue?: string | boolean | string[] | undefined;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly flags: string;
|
|
34
34
|
readonly required?: boolean | undefined;
|
|
35
35
|
}
|
|
36
36
|
interface ManifestMcpSpec {
|
|
37
|
-
readonly tool?: string | undefined;
|
|
38
|
-
readonly description?: string | undefined;
|
|
39
37
|
readonly deferLoading?: boolean | undefined;
|
|
38
|
+
readonly description?: string | undefined;
|
|
39
|
+
readonly tool?: string | undefined;
|
|
40
40
|
}
|
|
41
41
|
interface ManifestApiSpec {
|
|
42
42
|
readonly method?: string | undefined;
|