@yahoo/uds-create-config 4.36.0 → 4.36.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/dist/configs/CanvasConfig.d.ts +68 -5167
- package/dist/configs/CanvasConfig.js +0 -76
- package/dist/configs/documentation.d.ts +11 -251
- package/dist/configs/documentation.js +0 -1
- package/dist/configs/react-native-system.d.ts +39 -4239
- package/dist/configs/react-native-system.js +0 -11
- package/dist/configs/system.d.ts +44 -4209
- package/dist/configs/system.js +0 -9
- package/dist/entities/documentation/Documentation.d.ts +5 -18
- package/dist/entities/documentation/Documentation.js +0 -1
- package/dist/entities/native/NativeModifier.d.ts +6 -3
- package/dist/entities/native/NativeSettings.d.ts +6 -3
- package/dist/entities/native/NativeSettings.js +0 -1
- package/dist/entities/native/NativeStyleProperty.d.ts +1 -20
- package/dist/entities/native/NativeToken.d.ts +2 -6
- package/dist/entities/system/CanvasRole.d.ts +6 -7
- package/dist/entities/system/Component.d.ts +86 -1588
- package/dist/entities/system/Component.js +0 -9
- package/dist/entities/system/Composite.d.ts +8 -6
- package/dist/entities/system/Composite.js +0 -1
- package/dist/entities/system/Device.d.ts +6 -3
- package/dist/entities/system/Device.js +0 -6
- package/dist/entities/system/File.d.ts +43 -8
- package/dist/entities/system/File.js +0 -51
- package/dist/entities/system/Font.d.ts +10 -11
- package/dist/entities/system/Font.js +0 -21
- package/dist/entities/system/GlobalStyle.d.ts +6 -3
- package/dist/entities/system/Guidance.d.ts +6 -3
- package/dist/entities/system/GuidanceStyle.d.ts +6 -3
- package/dist/entities/system/Icon.d.ts +8 -8
- package/dist/entities/system/Icon.js +0 -16
- package/dist/entities/system/LinkedSystem.d.ts +5 -155
- package/dist/entities/system/Modifier.d.ts +8 -8
- package/dist/entities/system/Motion.d.ts +6 -3
- package/dist/entities/system/Operation.d.ts +5 -2
- package/dist/entities/system/Package.d.ts +24 -4
- package/dist/entities/system/Package.js +0 -46
- package/dist/entities/system/Settings.d.ts +18 -7
- package/dist/entities/system/Settings.js +0 -6
- package/dist/entities/system/StyleProperty.d.ts +14 -27
- package/dist/entities/system/StyleProperty.js +0 -6
- package/dist/entities/system/Token.d.ts +12 -9
- package/dist/entities/system/Tool.d.ts +7 -90
- package/dist/entities/system/composed-values.d.ts +1 -1
- package/dist/entities/system/copy-plan.d.ts +2 -2
- package/dist/entities/system/copy-plan.js +31 -8
- package/dist/entities/system/defineComponent.d.ts +1 -1
- package/dist/entities/system/icon-metadata.d.ts +2 -6
- package/dist/entities/system/link-plan.d.ts +2 -0
- package/dist/entities/system/link-plan.js +1 -0
- package/dist/entities/system/style-bag.d.ts +27 -1
- package/dist/entities/system/style-bag.js +0 -10
- package/dist/framework/Config.d.ts +18 -2
- package/dist/framework/Config.js +70 -15
- package/dist/framework/class-names.js +1 -0
- package/dist/framework/defineConfig.d.ts +2 -2
- package/dist/framework/defineEntity.d.ts +27 -7
- package/dist/framework/named.d.ts +9 -0
- package/dist/framework/plan.d.ts +3 -0
- package/dist/framework/plan.js +4 -1
- package/dist/framework/utils/group.d.ts +15 -5
- package/dist/index.d.ts +46 -45
- package/dist/migrations/2.0.0/v1-artifact.d.ts +38 -2109
- package/dist/renderer/wrappers/html-aliases.js +1 -0
- package/dist/spec/cell.d.ts +1 -1
- package/dist/spec/preview-content.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -10,42 +10,6 @@ import { Tool } from "../entities/system/Tool.js";
|
|
|
10
10
|
import { defineConfig } from "../framework/defineConfig.js";
|
|
11
11
|
import { System } from "./system.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
-
//#region src/configs/CanvasConfig.ts
|
|
14
|
-
/**
|
|
15
|
-
* The canvas config — a design file as its own config TYPE, and every entity it owns, co-located in
|
|
16
|
-
* one home (the same shape `../design-file.ts` keeps, which this supersedes).
|
|
17
|
-
*
|
|
18
|
-
* `Node` is the ONE kind, flat: every element is its own node row. A PLACED node — the thing
|
|
19
|
-
* react-flow wraps — additionally carries `page` + geometry; its subtree nodes carry none and nest
|
|
20
|
-
* under its id (`n1/badge` is part of `n1`, the same occupied-prefix containment `Card/Header`
|
|
21
|
-
* uses), with `children`/`slots` as real node refs. Flat rather than an embedded keyed tree
|
|
22
|
-
* because an embedded tree is the old `spec` jsonb blob again: one Yjs key per node means two
|
|
23
|
-
* people editing different subtree elements conflict as whole-blob writes, and every edit re-ships
|
|
24
|
-
* the tree. One row per element is the collaboration and write granularity. An instance is one
|
|
25
|
-
* placed node, a generation placeholder is a placed node with no `type` yet.
|
|
26
|
-
*
|
|
27
|
-
* AI provenance is the chain node → `AiGeneration` → `AiFlow` → `AiMessage` → `AiChat`, every hop a
|
|
28
|
-
* real ref. The system arrives WHOLE through `SystemSource` — never `LinkedSystem`'s partial-borrow
|
|
29
|
-
* apparatus, which a canvas has no use for. See `docs/config-v2-spec-renderer-model.md`, "Where an
|
|
30
|
-
* entity-shaped Spec lives".
|
|
31
|
-
*
|
|
32
|
-
* Lives in config-v2 (not studio) so every consumer can hold one: the derived `operation`/`tool`
|
|
33
|
-
* catalog means the compact agent tools serve canvas CRUD the same way they serve the system's —
|
|
34
|
-
* the MCP/CLI surface derives from the config type, and a studio-only home would fence
|
|
35
|
-
* that off. Studio keeps the runtime halves (row mapping, Yjs session, dynamic registry), which
|
|
36
|
-
* genuinely are app concerns.
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* `SystemSource` — this canvas's pointer at the ONE system it belongs to, in full. `LinkedSystem` is
|
|
40
|
-
* the wrong mechanism here: it exists for a design system partially borrowing PIECES of another
|
|
41
|
-
* (`link`, per-entity `options`, override/extend), and a canvas never does that — a node's `type`
|
|
42
|
-
* always resolves against the whole of exactly one system.
|
|
43
|
-
*
|
|
44
|
-
* The source is attached under the system config's own `name`, which is `system-config` for a web
|
|
45
|
-
* system and `react-native-system` for a native one, so a node ref the canvas mints
|
|
46
|
-
* (`component:actions/Button@system-config`) means "the attached system". The system itself resolves
|
|
47
|
-
* that ref as its own, through `Config.configFor`'s own-name rule.
|
|
48
|
-
*/
|
|
49
13
|
const SystemSource = defineEntity({
|
|
50
14
|
kind: "system-source",
|
|
51
15
|
fields: z.object({
|
|
@@ -62,18 +26,10 @@ systemId: z.string().optional() }),
|
|
|
62
26
|
},
|
|
63
27
|
linkable: false
|
|
64
28
|
});
|
|
65
|
-
/**
|
|
66
|
-
* `Canvas` — a surface in a design file (a design file has one or more). Pages belong to a canvas,
|
|
67
|
-
* nodes belong to a page (flat, ref-related, matching the real tables' `canvasId`/`pageId` columns).
|
|
68
|
-
*/
|
|
69
29
|
const Canvas = defineEntity({
|
|
70
30
|
kind: "canvas",
|
|
71
31
|
fields: z.object({ name: z.string().optional() })
|
|
72
32
|
});
|
|
73
|
-
/**
|
|
74
|
-
* `Page` — a page within a `Canvas`. Field-for-field the `canvas_pages` table (id → path,
|
|
75
|
-
* `canvasId` → the ref, timestamps DB-owned).
|
|
76
|
-
*/
|
|
77
33
|
const Page = defineEntity({
|
|
78
34
|
kind: "page",
|
|
79
35
|
fields: z.object({
|
|
@@ -85,17 +41,12 @@ const Page = defineEntity({
|
|
|
85
41
|
sortOrder: z.number().optional()
|
|
86
42
|
})
|
|
87
43
|
});
|
|
88
|
-
/**
|
|
89
|
-
* `AiChat` — one conversation. Deliberately minimal: the transcript is the `AiMessage` rows that
|
|
90
|
-
* ref it (flat rows pointing at their owner, never an embedded array nothing can ref into).
|
|
91
|
-
*/
|
|
92
44
|
const AiChat = defineEntity({
|
|
93
45
|
kind: "ai-chat",
|
|
94
46
|
fields: z.object({ title: z.string().optional() }),
|
|
95
47
|
label: "AI chat",
|
|
96
48
|
linkable: false
|
|
97
49
|
});
|
|
98
|
-
/** `AiMessage` — one turn in an `AiChat`. */
|
|
99
50
|
const AiMessage = defineEntity({
|
|
100
51
|
kind: "ai-message",
|
|
101
52
|
fields: z.object({
|
|
@@ -146,11 +97,6 @@ const AiFlow = defineEntity({
|
|
|
146
97
|
label: "AI flow",
|
|
147
98
|
linkable: false
|
|
148
99
|
});
|
|
149
|
-
/**
|
|
150
|
-
* `AiGeneration` — how one node came to exist: the flow that produced it, and — for an iteration —
|
|
151
|
-
* the lineage it varied from, as a real graph edge. Replaces the `canvas_nodes` table's
|
|
152
|
-
* `generation_*` and `iteration_meta` columns, which all describe this one event.
|
|
153
|
-
*/
|
|
154
100
|
const AiGeneration = defineEntity({
|
|
155
101
|
kind: "ai-generation",
|
|
156
102
|
fields: z.object({
|
|
@@ -199,17 +145,6 @@ const Size = z.discriminatedUnion("type", [z.object({
|
|
|
199
145
|
type: z.literal("device"),
|
|
200
146
|
ref: Device
|
|
201
147
|
})]);
|
|
202
|
-
/**
|
|
203
|
-
* `Node` — the unit of a canvas: one element, one record, one row. FLAT — a subtree node is its own
|
|
204
|
-
* item nested under its placed root's id (`n1/badge`), and `children`/`slots` hold real node refs,
|
|
205
|
-
* so `dependents()`, delete-refusal and rename-cascade come from the framework instead of
|
|
206
|
-
* `reKeySlotRefs` (UDS-3526) / `gcUnreachableElements` (UDS-3557) hand-rolling them per gesture.
|
|
207
|
-
*
|
|
208
|
-
* Placement fields are present on a PLACED node (`page` is the discriminant — what the canvas lists
|
|
209
|
-
* and react-flow wraps) and absent on subtree nodes. `type` is optional for exactly one reason: a
|
|
210
|
-
* placed node awaiting its first generation (today's skeleton / pending placeholder) exists before
|
|
211
|
-
* anyone knows what it renders.
|
|
212
|
-
*/
|
|
213
148
|
const Node = defineEntity({
|
|
214
149
|
kind: "node",
|
|
215
150
|
schemas: captureNodeOps,
|
|
@@ -284,17 +219,6 @@ displayLabel: ({ member, config }) => {
|
|
|
284
219
|
return type ? config.displayLabelOf(type) : void 0;
|
|
285
220
|
} }
|
|
286
221
|
});
|
|
287
|
-
/**
|
|
288
|
-
* `CanvasConfig` — the design-file config TYPE. Owns placement, content, and AI provenance (flat,
|
|
289
|
-
* ref-related), DRAWS ON a system, and derives the same agent-tool catalog (`operation`/`tool`) as
|
|
290
|
-
* the system so its design-file CRUD tools project from it.
|
|
291
|
-
*
|
|
292
|
-
* A source, not a read-through window onto every one of the system's kinds. A node's `type` carries
|
|
293
|
-
* the source it points into (`component:actions/Button@<slug>`), so one resolution path serves both
|
|
294
|
-
* and nothing has to know that THIS config borrows a whole kind. Read-only stays read-only: a
|
|
295
|
-
* source's items resolve through their own config, so there is no local collection to offer CRUD
|
|
296
|
-
* over.
|
|
297
|
-
*/
|
|
298
222
|
const CanvasConfig = defineConfig({
|
|
299
223
|
name: "canvas",
|
|
300
224
|
entities: {
|
|
@@ -1,256 +1,16 @@
|
|
|
1
|
-
import { ComputedInput } from "../framework/registry.js";
|
|
2
|
-
import { DerivedEntityClass } from "../framework/defineDerivedEntity.js";
|
|
3
|
-
import { EntityClass } from "../framework/defineEntity.js";
|
|
4
1
|
import { ConfigClass } from "../framework/defineConfig.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
2
|
+
import { Named } from "../framework/named.js";
|
|
3
|
+
import { DocumentationClass } from "../entities/documentation/Documentation.js";
|
|
4
|
+
import { OperationClass } from "../entities/system/Operation.js";
|
|
5
|
+
import { ToolClass } from "../entities/system/Tool.js";
|
|
9
6
|
//#region src/configs/documentation.d.ts
|
|
10
|
-
declare const
|
|
11
|
-
documents:
|
|
12
|
-
title: _$zod.ZodString;
|
|
13
|
-
summary: _$zod.ZodOptional<_$zod.ZodString>;
|
|
14
|
-
markdown: _$zod.ZodString;
|
|
15
|
-
category: _$zod.ZodString;
|
|
16
|
-
public: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
17
|
-
products: _$zod.ZodArray<_$zod.ZodEnum<{
|
|
18
|
-
create: "create";
|
|
19
|
-
uds: "uds";
|
|
20
|
-
}>>;
|
|
21
|
-
platform: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
22
|
-
mobile: "mobile";
|
|
23
|
-
web: "web";
|
|
24
|
-
}>>;
|
|
25
|
-
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "documentation", {
|
|
26
|
-
readonly search: {
|
|
27
|
-
readonly input: _$zod.ZodObject<{
|
|
28
|
-
query: _$zod.ZodDefault<_$zod.ZodString>;
|
|
29
|
-
}, _$zod_v4_core0.$strip>;
|
|
30
|
-
readonly readOnly: true;
|
|
31
|
-
readonly label: "Search";
|
|
32
|
-
readonly description: "Find articles by text in their path, title, summary, or Markdown. An empty query browses all articles. Returns metadata without article bodies; use get to read an article.";
|
|
33
|
-
readonly scope: "collection";
|
|
34
|
-
readonly example: () => {
|
|
35
|
-
query: string;
|
|
36
|
-
};
|
|
37
|
-
readonly handler: (input: Record<string, unknown>, config: Config) => {
|
|
38
|
-
path: string;
|
|
39
|
-
title: string;
|
|
40
|
-
summary: string | undefined;
|
|
41
|
-
category: string;
|
|
42
|
-
products: ("create" | "uds")[];
|
|
43
|
-
platform: "mobile" | "web" | undefined;
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
46
|
-
}, Record<never, never>, false, Record<never, never>, Record<never, never>>;
|
|
7
|
+
declare const DocumentationLibraryDefinition: ConfigClass<{
|
|
8
|
+
documents: DocumentationClass;
|
|
47
9
|
}, {
|
|
48
|
-
operations:
|
|
49
|
-
|
|
50
|
-
verb: _$zod.ZodString;
|
|
51
|
-
readOnly: _$zod.ZodBoolean;
|
|
52
|
-
label: _$zod.ZodString;
|
|
53
|
-
description: _$zod.ZodString;
|
|
54
|
-
scope: _$zod.ZodString;
|
|
55
|
-
creates: _$zod.ZodBoolean;
|
|
56
|
-
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
57
|
-
destructive: "destructive";
|
|
58
|
-
"reference-change": "reference-change";
|
|
59
|
-
}>>;
|
|
60
|
-
}, _$zod_v4_core0.$strip>, {
|
|
61
|
-
inputSchema: ({
|
|
62
|
-
member: op,
|
|
63
|
-
config
|
|
64
|
-
}: Omit<ComputedInput, "member"> & {
|
|
65
|
-
member: {
|
|
66
|
-
kind: string;
|
|
67
|
-
verb: string;
|
|
68
|
-
readOnly: boolean;
|
|
69
|
-
label: string;
|
|
70
|
-
description: string;
|
|
71
|
-
scope: string;
|
|
72
|
-
creates: boolean;
|
|
73
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
74
|
-
};
|
|
75
|
-
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
76
|
-
execute: ({
|
|
77
|
-
member: op,
|
|
78
|
-
config: declaring
|
|
79
|
-
}: Omit<ComputedInput, "member"> & {
|
|
80
|
-
member: {
|
|
81
|
-
kind: string;
|
|
82
|
-
verb: string;
|
|
83
|
-
readOnly: boolean;
|
|
84
|
-
label: string;
|
|
85
|
-
description: string;
|
|
86
|
-
scope: string;
|
|
87
|
-
creates: boolean;
|
|
88
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
89
|
-
};
|
|
90
|
-
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
91
|
-
field: ({
|
|
92
|
-
member: op
|
|
93
|
-
}: Omit<ComputedInput, "member"> & {
|
|
94
|
-
member: {
|
|
95
|
-
kind: string;
|
|
96
|
-
verb: string;
|
|
97
|
-
readOnly: boolean;
|
|
98
|
-
label: string;
|
|
99
|
-
description: string;
|
|
100
|
-
scope: string;
|
|
101
|
-
creates: boolean;
|
|
102
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
103
|
-
};
|
|
104
|
-
}) => string | undefined;
|
|
105
|
-
title: ({
|
|
106
|
-
member: op,
|
|
107
|
-
config
|
|
108
|
-
}: Omit<ComputedInput, "member"> & {
|
|
109
|
-
member: {
|
|
110
|
-
kind: string;
|
|
111
|
-
verb: string;
|
|
112
|
-
readOnly: boolean;
|
|
113
|
-
label: string;
|
|
114
|
-
description: string;
|
|
115
|
-
scope: string;
|
|
116
|
-
creates: boolean;
|
|
117
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
118
|
-
};
|
|
119
|
-
}) => ((entity: string) => string) | undefined;
|
|
120
|
-
example: ({
|
|
121
|
-
member: op,
|
|
122
|
-
config
|
|
123
|
-
}: Omit<ComputedInput, "member"> & {
|
|
124
|
-
member: {
|
|
125
|
-
kind: string;
|
|
126
|
-
verb: string;
|
|
127
|
-
readOnly: boolean;
|
|
128
|
-
label: string;
|
|
129
|
-
description: string;
|
|
130
|
-
scope: string;
|
|
131
|
-
creates: boolean;
|
|
132
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
133
|
-
};
|
|
134
|
-
}) => Record<string, unknown> | undefined;
|
|
135
|
-
}>;
|
|
136
|
-
tools: DerivedEntityClass<_$zod.ZodObject<{
|
|
137
|
-
operation: DerivedEntityClass<_$zod.ZodObject<{
|
|
138
|
-
kind: _$zod.ZodString;
|
|
139
|
-
verb: _$zod.ZodString;
|
|
140
|
-
readOnly: _$zod.ZodBoolean;
|
|
141
|
-
label: _$zod.ZodString;
|
|
142
|
-
description: _$zod.ZodString;
|
|
143
|
-
scope: _$zod.ZodString;
|
|
144
|
-
creates: _$zod.ZodBoolean;
|
|
145
|
-
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
146
|
-
destructive: "destructive";
|
|
147
|
-
"reference-change": "reference-change";
|
|
148
|
-
}>>;
|
|
149
|
-
}, _$zod_v4_core0.$strip>, {
|
|
150
|
-
inputSchema: ({
|
|
151
|
-
member: op,
|
|
152
|
-
config
|
|
153
|
-
}: Omit<ComputedInput, "member"> & {
|
|
154
|
-
member: {
|
|
155
|
-
kind: string;
|
|
156
|
-
verb: string;
|
|
157
|
-
readOnly: boolean;
|
|
158
|
-
label: string;
|
|
159
|
-
description: string;
|
|
160
|
-
scope: string;
|
|
161
|
-
creates: boolean;
|
|
162
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
163
|
-
};
|
|
164
|
-
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
165
|
-
execute: ({
|
|
166
|
-
member: op,
|
|
167
|
-
config: declaring
|
|
168
|
-
}: Omit<ComputedInput, "member"> & {
|
|
169
|
-
member: {
|
|
170
|
-
kind: string;
|
|
171
|
-
verb: string;
|
|
172
|
-
readOnly: boolean;
|
|
173
|
-
label: string;
|
|
174
|
-
description: string;
|
|
175
|
-
scope: string;
|
|
176
|
-
creates: boolean;
|
|
177
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
178
|
-
};
|
|
179
|
-
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
180
|
-
field: ({
|
|
181
|
-
member: op
|
|
182
|
-
}: Omit<ComputedInput, "member"> & {
|
|
183
|
-
member: {
|
|
184
|
-
kind: string;
|
|
185
|
-
verb: string;
|
|
186
|
-
readOnly: boolean;
|
|
187
|
-
label: string;
|
|
188
|
-
description: string;
|
|
189
|
-
scope: string;
|
|
190
|
-
creates: boolean;
|
|
191
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
192
|
-
};
|
|
193
|
-
}) => string | undefined;
|
|
194
|
-
title: ({
|
|
195
|
-
member: op,
|
|
196
|
-
config
|
|
197
|
-
}: Omit<ComputedInput, "member"> & {
|
|
198
|
-
member: {
|
|
199
|
-
kind: string;
|
|
200
|
-
verb: string;
|
|
201
|
-
readOnly: boolean;
|
|
202
|
-
label: string;
|
|
203
|
-
description: string;
|
|
204
|
-
scope: string;
|
|
205
|
-
creates: boolean;
|
|
206
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
207
|
-
};
|
|
208
|
-
}) => ((entity: string) => string) | undefined;
|
|
209
|
-
example: ({
|
|
210
|
-
member: op,
|
|
211
|
-
config
|
|
212
|
-
}: Omit<ComputedInput, "member"> & {
|
|
213
|
-
member: {
|
|
214
|
-
kind: string;
|
|
215
|
-
verb: string;
|
|
216
|
-
readOnly: boolean;
|
|
217
|
-
label: string;
|
|
218
|
-
description: string;
|
|
219
|
-
scope: string;
|
|
220
|
-
creates: boolean;
|
|
221
|
-
approval?: "destructive" | "reference-change" | undefined;
|
|
222
|
-
};
|
|
223
|
-
}) => Record<string, unknown> | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
name: _$zod.ZodString;
|
|
226
|
-
description: _$zod.ZodString;
|
|
227
|
-
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
228
|
-
}, _$zod_v4_core0.$strip>, {
|
|
229
|
-
kind: (input: ComputedInput) => string | undefined;
|
|
230
|
-
verb: (input: ComputedInput) => string | undefined;
|
|
231
|
-
readOnly: ({
|
|
232
|
-
member,
|
|
233
|
-
config
|
|
234
|
-
}: Omit<ComputedInput, "member"> & {
|
|
235
|
-
member: {
|
|
236
|
-
operation: {
|
|
237
|
-
__ref: string;
|
|
238
|
-
};
|
|
239
|
-
name: string;
|
|
240
|
-
description: string;
|
|
241
|
-
enabled: boolean;
|
|
242
|
-
};
|
|
243
|
-
}) => boolean;
|
|
244
|
-
inputSchema: (input: ComputedInput) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
245
|
-
execute: (input: ComputedInput) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
246
|
-
action: (input: ComputedInput) => string | undefined;
|
|
247
|
-
field: (input: ComputedInput) => string | undefined;
|
|
248
|
-
scope: (input: ComputedInput) => string | undefined;
|
|
249
|
-
approval: (input: ComputedInput) => "destructive" | "reference-change" | undefined;
|
|
250
|
-
label: (input: ComputedInput) => string | undefined;
|
|
251
|
-
shortLabel: (input: ComputedInput) => string | undefined;
|
|
252
|
-
example: (input: ComputedInput) => Record<string, unknown> | undefined;
|
|
253
|
-
}>;
|
|
10
|
+
operations: OperationClass;
|
|
11
|
+
tools: ToolClass;
|
|
254
12
|
}, Record<never, never>>;
|
|
13
|
+
interface DocumentationLibraryClass extends Named<typeof DocumentationLibraryDefinition> {}
|
|
14
|
+
declare const DocumentationLibrary: DocumentationLibraryClass;
|
|
255
15
|
//#endregion
|
|
256
|
-
export { DocumentationLibrary };
|
|
16
|
+
export { DocumentationLibrary, DocumentationLibraryClass };
|
|
@@ -2,7 +2,6 @@ import { Operation } from "../entities/system/Operation.js";
|
|
|
2
2
|
import { Tool } from "../entities/system/Tool.js";
|
|
3
3
|
import { defineConfig } from "../framework/defineConfig.js";
|
|
4
4
|
import { Documentation } from "../entities/documentation/Documentation.js";
|
|
5
|
-
//#region src/configs/documentation.ts
|
|
6
5
|
const DocumentationLibrary = defineConfig({
|
|
7
6
|
name: "documentation-library",
|
|
8
7
|
description: "Knowledge Base articles about UDS and Create, independently of users’ design systems.",
|