cyber-agentkit 1.2.0 → 2.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.
@@ -1,56 +1,15 @@
1
- import { O as ReferenceWarning, a as ReferenceTrace, b as ReferencePlugin, u as ResolvedReference } from "./resolve-reference-D62VJZc0.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
- /** Set when the answer is not Markdown. */
10
- format?: string;
11
- code?: string;
12
- options?: string[];
13
- metadata?: Record<string, unknown>;
14
- warnings?: ReferenceWarning[];
15
- trace?: ReferenceTrace;
16
- };
17
- type ReferenceListReport = {
18
- /** A string when nothing matches, so a run states its zero explicitly. */
19
- references: {
20
- name: string;
21
- description?: string;
22
- format?: string;
23
- status?: string;
24
- options?: string[];
25
- }[] | string;
26
- /** Why some skills' defaults are not listed; left out when every detected harness's skill folders were read. */
27
- defaults?: string;
28
- layers?: {
29
- name: string;
30
- tier: string;
31
- plugin?: string;
32
- skill?: string;
33
- path: string;
34
- description?: string;
35
- outcome: string;
36
- selection?: boolean;
37
- reachedBy?: string;
38
- }[];
39
- warnings?: ReferenceWarning[];
40
- };
41
- type ReferenceSearchReport = {
42
- references: {
43
- name: string;
44
- description?: string;
45
- match: string;
46
- loadedBy?: string;
47
- tier?: string;
48
- plugin?: string;
49
- skill?: string;
50
- }[] | string;
51
- /** Why some skills' defaults are not searched. */
52
- defaults?: string;
1
+ import { $ as AssetPlugin, E as ReferencePlugin, G as ReferenceWarning, W as ReferenceStatusCode, _ as ResolvedProjectSection, c as ReferenceTrace, p as ResolvedReference, t as ReferenceWhereFile } from "./reference-where-BsBpwLyg.js";
2
+ import { cli, t } from "clibuilder";
3
+ //#region src/assets/asset-resolve.command.d.ts
4
+ type AssetResolveCommandOptions = {
5
+ /** The plugin running the command; see `AssetLayerOptions['plugin']`. */
6
+ plugin?: AssetPlugin | undefined;
53
7
  };
8
+ //#endregion
9
+ //#region src/assets/asset.command.d.ts
10
+ export declare function createAssetCommand(options?: AssetResolveCommandOptions): cli.Command;
11
+ //#endregion
12
+ //#region src/references/reference-check.command.d.ts
54
13
  type ReferenceCheckReport = {
55
14
  failed?: {
56
15
  name: string;
@@ -59,6 +18,13 @@ type ReferenceCheckReport = {
59
18
  check: string;
60
19
  message: string;
61
20
  }[];
21
+ warnings?: ReferenceWarning[];
22
+ }[];
23
+ /** The entries that pass with a warning, which never fails a check. */
24
+ warned?: {
25
+ name: string;
26
+ loadedBy?: string;
27
+ warnings: ReferenceWarning[];
62
28
  }[];
63
29
  passed: number;
64
30
  references?: {
@@ -71,8 +37,76 @@ type ReferenceCheckReport = {
71
37
  message: string;
72
38
  }[];
73
39
  unsupported?: string[];
40
+ warnings?: ReferenceWarning[];
74
41
  }[];
75
42
  };
43
+ //#endregion
44
+ //#region src/references/reference-create.command.d.ts
45
+ /** A write's report is informational (R38), except its `code` and `warnings`, which are contract (J25). */
46
+ type ReferenceCreateReport = {
47
+ path: string;
48
+ /** A project section's folder, relative to the root. */
49
+ folder?: string;
50
+ hint: string;
51
+ content?: string;
52
+ hints?: string[];
53
+ warnings?: ReferenceWarning[];
54
+ trace?: ReferenceTrace;
55
+ };
56
+ //#endregion
57
+ //#region src/references/reference-customize.command.d.ts
58
+ /** `customize --base`: what the generator reads for the target (R84). */
59
+ type ReferenceCustomizeBase = {
60
+ status: string;
61
+ stack?: string[];
62
+ /** The interface's stub when one is named, then the main document built for the target. */
63
+ content: string;
64
+ /** For a folder target: the project sections of the folders above it. */
65
+ projectSections?: Pick<ResolvedProjectSection, 'folder' | 'content'>[];
66
+ };
67
+ /** A write's report is informational (R38), except its `code` and `warnings`, which are contract (J25). */
68
+ type ReferenceCustomizeReport = {
69
+ path: string;
70
+ /** A project section's folder, relative to the root. */
71
+ folder?: string;
72
+ /** A non-Markdown name's metadata file, which holds the record. */
73
+ metadataFile?: string;
74
+ /** `no-selection` when `--extends none` found none: a no-op, exit 0. */
75
+ code?: 'no-selection';
76
+ message?: string;
77
+ extends?: unknown[];
78
+ deleted?: boolean;
79
+ status?: string;
80
+ stack?: string[];
81
+ answer?: string;
82
+ hint?: string;
83
+ content?: string;
84
+ metadataContent?: string;
85
+ hints?: string[];
86
+ warnings?: ReferenceWarning[];
87
+ trace?: ReferenceTrace;
88
+ };
89
+ //#endregion
90
+ //#region src/references/reference-delete.command.d.ts
91
+ /** A write's report is informational (R38), except its `code`, which is contract (J25). */
92
+ type ReferenceDeleteReport = {
93
+ path: string;
94
+ /** A project section's folder, relative to the root. */
95
+ folder?: string;
96
+ /** The metadata file that went with a non-Markdown file. */
97
+ metadataFile?: string;
98
+ /** `no-file` when there was no file to delete: a no-op, exit 0. */
99
+ code?: 'no-file';
100
+ message?: string;
101
+ dryRun?: boolean;
102
+ status: string;
103
+ stack?: string[];
104
+ answer: string;
105
+ selection?: string;
106
+ options?: string[];
107
+ };
108
+ //#endregion
109
+ //#region src/references/reference-implementations.command.d.ts
76
110
  type ReferenceImplementationsReport = {
77
111
  implementations: {
78
112
  pin: string;
@@ -81,7 +115,7 @@ type ReferenceImplementationsReport = {
81
115
  name?: string;
82
116
  tier?: string;
83
117
  version?: number;
84
- }[] | string;
118
+ }[];
85
119
  interface?: string;
86
120
  cardinality?: string;
87
121
  accept?: number[];
@@ -91,56 +125,97 @@ type ReferenceImplementationsReport = {
91
125
  }[];
92
126
  warnings?: ReferenceWarning[];
93
127
  };
94
- type ReferenceWhereOutput = {
95
- name: string;
96
- status: string;
97
- places: {
98
- scope: string;
128
+ //#endregion
129
+ //#region src/references/reference-list.command.d.ts
130
+ type ReferenceListReport = {
131
+ references: {
132
+ name: string;
133
+ description?: string;
134
+ format?: string;
135
+ status?: string;
136
+ code?: ReferenceStatusCode;
137
+ options?: string[];
138
+ }[];
139
+ /** Why some skills' defaults are not listed; left out when every detected harness's skill folders were read. */
140
+ defaults?: string;
141
+ layers?: {
142
+ name: string;
143
+ tier: string;
144
+ plugin?: string;
145
+ skill?: string;
99
146
  path: string;
100
- reaches: string;
101
- status: string;
102
- sections?: string[];
147
+ description?: string;
148
+ outcome: string;
149
+ kind?: string;
150
+ folder?: string;
151
+ reachedBy?: string;
103
152
  }[];
104
- options?: string[];
105
- layers?: ReferenceTrace['layers'];
106
153
  warnings?: ReferenceWarning[];
107
154
  };
108
- /** The fields of `create`, `select`, and `delete` are not a contract yet (spec Q4). */
109
- type ReferenceCreateReport = {
110
- path: string;
111
- hint: string;
155
+ //#endregion
156
+ //#region src/references/reference-load.command.d.ts
157
+ /** `load`'s entry for a name: its content alone when `found` with nothing else to say, else a record. */
158
+ type ReferenceLoadEntry = string | {
159
+ name: string;
160
+ status: ResolvedReference['status'];
112
161
  content?: string;
113
- hints?: string[];
162
+ /** What each folder below the root adds after the main document, in path order. */
163
+ projectSections?: {
164
+ folder: string;
165
+ plugin?: string;
166
+ content: string;
167
+ }[];
168
+ /** Set when the answer is not Markdown. */
169
+ format?: string;
170
+ code?: ReferenceStatusCode;
171
+ options?: string[];
172
+ metadata?: Record<string, unknown>;
173
+ warnings?: ReferenceWarning[];
114
174
  trace?: ReferenceTrace;
115
175
  };
116
- type ReferenceSelectReport = {
117
- path: string;
118
- extends?: string[];
119
- deleted?: boolean;
120
- status: string;
121
- stack?: string[];
122
- answer: string;
176
+ //#endregion
177
+ //#region src/references/reference-search.command.d.ts
178
+ type ReferenceSearchReport = {
179
+ references: {
180
+ name: string;
181
+ description?: string;
182
+ match: string;
183
+ folder?: string;
184
+ loadedBy?: string;
185
+ tier?: string;
186
+ plugin?: string;
187
+ skill?: string;
188
+ }[];
189
+ /** Why some skills' defaults are not searched. */
190
+ defaults?: string;
123
191
  };
124
- type ReferenceDeleteReport = {
125
- path: string;
126
- dryRun?: boolean;
192
+ //#endregion
193
+ //#region src/references/reference-where.command.d.ts
194
+ type ReferenceWhereOutput = {
195
+ name: string;
127
196
  status: string;
128
- stack?: string[];
129
- answer: string;
130
- selection?: string;
197
+ files: ReferenceWhereFile[];
198
+ headings?: string[];
199
+ used?: string[];
131
200
  options?: string[];
201
+ /** Informational: the plugins and default the stack uses are read-only (UC2.6). */
202
+ hint?: string;
203
+ layers?: ReferenceTrace['layers'];
204
+ warnings?: ReferenceWarning[];
132
205
  };
206
+ //#endregion
207
+ //#region src/references/reference.command.d.ts
133
208
  type ReferenceCommandOptions = {
134
209
  /** The plugin running the command; see `ReferenceLayerOptions['plugin']`. */
135
210
  plugin?: ReferencePlugin | undefined;
136
211
  };
137
212
  type ReferenceCommands = {
138
- show: cli.Command;
213
+ load: cli.Command;
139
214
  list: cli.Command;
140
215
  search: cli.Command;
141
216
  where: cli.Command;
142
217
  create: cli.Command;
143
- select: cli.Command;
218
+ customize: cli.Command;
144
219
  delete: cli.Command;
145
220
  check: cli.Command;
146
221
  implementations: cli.Command;
@@ -149,7 +224,4 @@ type ReferenceCommands = {
149
224
  export declare function createReferenceCommands({ plugin }?: ReferenceCommandOptions): ReferenceCommands;
150
225
  export declare function createReferenceCommand(options?: ReferenceCommandOptions): cli.Command;
151
226
  //#endregion
152
- //#region src/assets/asset.command.d.ts
153
- export declare function createAssetCommand(options?: ReferenceCommandOptions): cli.Command;
154
- //#endregion
155
- export type { ReferenceCheckReport, ReferenceCommandOptions, ReferenceCommands, ReferenceCreateReport, ReferenceDeleteReport, ReferenceImplementationsReport, ReferenceListReport, ReferenceSearchReport, ReferenceSelectReport, ReferenceShowEntry, ReferenceWhereOutput };
227
+ export type { ReferenceCheckReport, ReferenceCommandOptions, ReferenceCommands, ReferenceCreateReport, ReferenceCustomizeBase, ReferenceCustomizeReport, ReferenceDeleteReport, ReferenceImplementationsReport, ReferenceListReport, ReferenceLoadEntry, ReferenceSearchReport, ReferenceWhereOutput };