@aopslab/domain-tooling-docman 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.
@@ -0,0 +1,96 @@
1
+ import { buildDocmanDomainCapabilityManifest as buildDocmanDomainCapabilityManifestFromKit, buildDocmanHostRouteProjection as buildDocmanHostRouteProjectionFromKit, listDocmanOperationSpecs as listDocmanOperationSpecsFromKit } from '@aopslab/domain-kit-docman';
2
+ type DocmanOperationSpec = ReturnType<typeof listDocmanOperationSpecsFromKit>[number];
3
+ export type DocmanToolDescriptor = {
4
+ toolId: string;
5
+ localToolId: string;
6
+ domain: 'docman';
7
+ operationId: string;
8
+ title?: string;
9
+ summary?: string;
10
+ sideEffect?: 'none' | 'db' | 'fs' | 'network' | 'mixed';
11
+ tags?: string[];
12
+ inputSchemaRef?: string;
13
+ outputSchemaRef?: string;
14
+ policy?: unknown;
15
+ aliases: string[];
16
+ notes?: string[];
17
+ examples?: string[];
18
+ route?: {
19
+ method: string;
20
+ pattern: string;
21
+ };
22
+ };
23
+ export type DocmanAgentManifest = {
24
+ kind: 'docman-agent-manifest';
25
+ version: 'v1';
26
+ domain: 'docman';
27
+ generatedAt: string;
28
+ tools: DocmanToolDescriptor[];
29
+ };
30
+ export type DocmanCliHelpSection = {
31
+ title: string;
32
+ lines: string[];
33
+ };
34
+ export type DocmanCliCommandDescriptor = {
35
+ id: string;
36
+ kind: 'root' | 'static' | 'operation';
37
+ title: string;
38
+ command: string[];
39
+ aliases: string[];
40
+ summary?: string;
41
+ operationId?: string;
42
+ toolId?: string;
43
+ localToolId?: string;
44
+ sections: DocmanCliHelpSection[];
45
+ };
46
+ export type DocmanCliManifestArtifact = {
47
+ id: 'dcm' | 'routes' | 'agent' | 'cli' | 'host-registration' | 'ops';
48
+ aliases?: string[];
49
+ title: string;
50
+ summary: string;
51
+ canonicalRole: 'canonical' | 'projection' | 'registration' | 'list';
52
+ };
53
+ export type DocmanCliProjection = {
54
+ kind: 'docman-cli-projection';
55
+ version: 'v1';
56
+ domain: 'docman';
57
+ generatedAt: string;
58
+ sourceOfTruth: {
59
+ canonical: 'dcm';
60
+ notes: string[];
61
+ };
62
+ artifacts: DocmanCliManifestArtifact[];
63
+ commands: DocmanCliCommandDescriptor[];
64
+ commandsById: Record<string, DocmanCliCommandDescriptor>;
65
+ };
66
+ export declare function listDocmanToolingOperations(options?: {
67
+ refresh?: boolean;
68
+ }): DocmanOperationSpec[];
69
+ export declare function getDocmanOperationSpecById(identifier: string, options?: {
70
+ refresh?: boolean;
71
+ }): DocmanOperationSpec | null;
72
+ export declare function resolveDocmanOperationIdByToolId(identifier: string, options?: {
73
+ refresh?: boolean;
74
+ }): string | null;
75
+ export declare function resolveDocmanToolIdByOperationId(operationId: string, options?: {
76
+ refresh?: boolean;
77
+ }): string | null;
78
+ export declare function listDocmanToolingTools(options?: {
79
+ refresh?: boolean;
80
+ }): DocmanToolDescriptor[];
81
+ export declare function buildDocmanAgentManifest(options?: {
82
+ refresh?: boolean;
83
+ }): DocmanAgentManifest;
84
+ export declare function buildDocmanCliProjection(options?: {
85
+ refresh?: boolean;
86
+ }): DocmanCliProjection;
87
+ export declare function runDocmanOperationById(operationId: string, input?: unknown, options?: {
88
+ refresh?: boolean;
89
+ }): Promise<unknown>;
90
+ export declare function runDocmanToolById(identifier: string, input?: unknown, options?: {
91
+ refresh?: boolean;
92
+ }): Promise<unknown>;
93
+ export declare function clearDocmanToolingRuntimeCaches(): void;
94
+ export declare const buildDocmanDomainCapabilityManifest: typeof buildDocmanDomainCapabilityManifestFromKit;
95
+ export declare const buildDocmanHostRouteProjection: typeof buildDocmanHostRouteProjectionFromKit;
96
+ export {};