cyber-agentkit 0.0.0-stage → 1.0.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.
@@ -0,0 +1,149 @@
1
+ import { O as ReferenceWarning, a as ReferenceTrace, b as ReferencePlugin, u as ResolvedReference } from "./resolve-reference-Cis-Ye6T.js";
2
+ import { cli } from "clibuilder";
3
+ //#region src/references/reference.command.d.ts
4
+ /** `show`'s entry for a name: its content alone when `found` with nothing else to say, else a record. */
5
+ type ReferenceShowEntry = string | {
6
+ name: string;
7
+ status: ResolvedReference['status'];
8
+ content?: string;
9
+ code?: string;
10
+ options?: string[];
11
+ metadata?: Record<string, unknown>;
12
+ warnings?: ReferenceWarning[];
13
+ trace?: ReferenceTrace;
14
+ };
15
+ type ReferenceListReport = {
16
+ /** A string when nothing matches, so a run states its zero explicitly. */
17
+ references: {
18
+ name: string;
19
+ description?: string;
20
+ status?: string;
21
+ options?: string[];
22
+ }[] | string;
23
+ /** Why some skills' defaults are not listed; left out when every detected harness's skill folders were read. */
24
+ defaults?: string;
25
+ layers?: {
26
+ name: string;
27
+ tier: string;
28
+ plugin?: string;
29
+ skill?: string;
30
+ path: string;
31
+ description?: string;
32
+ outcome: string;
33
+ selection?: boolean;
34
+ reachedBy?: string;
35
+ }[];
36
+ warnings?: ReferenceWarning[];
37
+ };
38
+ type ReferenceSearchReport = {
39
+ references: {
40
+ name: string;
41
+ description?: string;
42
+ match: string;
43
+ loadedBy?: string;
44
+ tier?: string;
45
+ plugin?: string;
46
+ skill?: string;
47
+ }[] | string;
48
+ /** Why some skills' defaults are not searched. */
49
+ defaults?: string;
50
+ };
51
+ type ReferenceCheckReport = {
52
+ failed?: {
53
+ name: string;
54
+ loadedBy?: string;
55
+ failures: {
56
+ check: string;
57
+ message: string;
58
+ }[];
59
+ }[];
60
+ passed: number;
61
+ references?: {
62
+ name: string;
63
+ loadedBy?: string;
64
+ kind: string;
65
+ status: string;
66
+ failures?: {
67
+ check: string;
68
+ message: string;
69
+ }[];
70
+ unsupported?: string[];
71
+ }[];
72
+ };
73
+ type ReferenceImplementationsReport = {
74
+ implementations: {
75
+ pin: string;
76
+ description?: string;
77
+ unsupported?: string[];
78
+ name?: string;
79
+ tier?: string;
80
+ version?: number;
81
+ }[] | string;
82
+ interface?: string;
83
+ cardinality?: string;
84
+ accept?: number[];
85
+ excluded?: {
86
+ name: string;
87
+ reasons: string[];
88
+ }[];
89
+ warnings?: ReferenceWarning[];
90
+ };
91
+ type ReferenceWhereOutput = {
92
+ name: string;
93
+ status: string;
94
+ places: {
95
+ scope: string;
96
+ path: string;
97
+ reaches: string;
98
+ status: string;
99
+ sections?: string[];
100
+ }[];
101
+ options?: string[];
102
+ layers?: ReferenceTrace['layers'];
103
+ warnings?: ReferenceWarning[];
104
+ };
105
+ /** The fields of `create`, `select`, and `delete` are not a contract yet (spec Q4). */
106
+ type ReferenceCreateReport = {
107
+ path: string;
108
+ hint: string;
109
+ content?: string;
110
+ hints?: string[];
111
+ trace?: ReferenceTrace;
112
+ };
113
+ type ReferenceSelectReport = {
114
+ path: string;
115
+ extends?: string[];
116
+ deleted?: boolean;
117
+ status: string;
118
+ stack?: string[];
119
+ answer: string;
120
+ };
121
+ type ReferenceDeleteReport = {
122
+ path: string;
123
+ dryRun?: boolean;
124
+ status: string;
125
+ stack?: string[];
126
+ answer: string;
127
+ selection?: string;
128
+ options?: string[];
129
+ };
130
+ type ReferenceCommandOptions = {
131
+ /** The plugin running the command; see `ReferenceLayerOptions['plugin']`. */
132
+ plugin?: ReferencePlugin | undefined;
133
+ };
134
+ type ReferenceCommands = {
135
+ show: cli.Command;
136
+ list: cli.Command;
137
+ search: cli.Command;
138
+ where: cli.Command;
139
+ create: cli.Command;
140
+ select: cli.Command;
141
+ delete: cli.Command;
142
+ check: cli.Command;
143
+ implementations: cli.Command;
144
+ };
145
+ /** A factory, so each host CLI names itself as the plugin whose own references come first. */
146
+ export declare function createReferenceCommands({ plugin }?: ReferenceCommandOptions): ReferenceCommands;
147
+ export declare function createReferenceCommand(options?: ReferenceCommandOptions): cli.Command;
148
+ //#endregion
149
+ export type { ReferenceCheckReport, ReferenceCommandOptions, ReferenceCommands, ReferenceCreateReport, ReferenceDeleteReport, ReferenceImplementationsReport, ReferenceListReport, ReferenceSearchReport, ReferenceSelectReport, ReferenceShowEntry, ReferenceWhereOutput };