@proteos/sdk 0.32.0 → 0.32.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/{chunk-Y5RY27JB.js → chunk-JWLTUYS7.js} +4 -3
- package/dist/chunk-JWLTUYS7.js.map +1 -0
- package/dist/{chunk-3SWQRVZX.cjs → chunk-NZI4N4SK.cjs} +4 -3
- package/dist/chunk-NZI4N4SK.cjs.map +1 -0
- package/dist/index.cjs +140 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -3
- package/dist/index.d.ts +61 -3
- package/dist/index.js +58 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +53 -53
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-BguERkVI.d.cts → types-v9RkMuKf.d.cts} +6 -0
- package/dist/{types-BguERkVI.d.ts → types-v9RkMuKf.d.ts} +6 -0
- package/package.json +1 -1
- package/src/agent/index.ts +2 -0
- package/src/agent/mcp-servers.ts +28 -0
- package/src/agent/prompts.ts +28 -0
- package/src/agent/skills.ts +33 -1
- package/src/agent/tools.ts +34 -1
- package/src/agent/types.ts +20 -0
- package/src/index.ts +2 -0
- package/src/meta/layout/elements.ts +7 -0
- package/dist/chunk-3SWQRVZX.cjs.map +0 -1
- package/dist/chunk-Y5RY27JB.js.map +0 -1
package/dist/meta/index.cjs
CHANGED
|
@@ -1,216 +1,216 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNZI4N4SK_cjs = require('../chunk-NZI4N4SK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AppSchema", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkNZI4N4SK_cjs.AppSchema; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkNZI4N4SK_cjs.AttributeSchema; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BUILT_IN_CONTROLS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkNZI4N4SK_cjs.BUILT_IN_CONTROLS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ColumnSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNZI4N4SK_cjs.ColumnSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ComponentSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNZI4N4SK_cjs.ComponentSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNZI4N4SK_cjs.CurrencyAttributeMetaSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DesignReferenceSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkNZI4N4SK_cjs.DesignReferenceSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "EntitySchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkNZI4N4SK_cjs.EntitySchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "EntityWithSchemaSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkNZI4N4SK_cjs.EntityWithSchemaSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FileAttributeMetaSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkNZI4N4SK_cjs.FileAttributeMetaSchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FilterElementSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkNZI4N4SK_cjs.FilterElementSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FilterGroupSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkNZI4N4SK_cjs.FilterGroupSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "LayoutElementSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkNZI4N4SK_cjs.LayoutElementSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "LayoutElementType", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkNZI4N4SK_cjs.LayoutElementType; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ListSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkNZI4N4SK_cjs.ListSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ListViewSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkNZI4N4SK_cjs.ListViewSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "MenuConfigurationSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkNZI4N4SK_cjs.MenuConfigurationSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "MenuItemSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkNZI4N4SK_cjs.MenuItemSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "MenuItemType", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkNZI4N4SK_cjs.MenuItemType; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "MetaClient", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkNZI4N4SK_cjs.MetaClient; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ModuleSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkNZI4N4SK_cjs.ModuleSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "OnDeleteActionSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkNZI4N4SK_cjs.OnDeleteActionSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PAGE_BACKGROUND_TOKENS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkNZI4N4SK_cjs.PAGE_BACKGROUND_TOKENS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkNZI4N4SK_cjs.PLATFORM_ATTRIBUTE_NAMES; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "PageActionSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkNZI4N4SK_cjs.PageActionSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "PageLayoutSchema", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkNZI4N4SK_cjs.PageLayoutSchema; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "PageLayoutSidePanelSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkNZI4N4SK_cjs.PageLayoutSidePanelSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "PageSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkNZI4N4SK_cjs.PageSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PageStyleSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkNZI4N4SK_cjs.PageStyleSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "RelationAttributeMetaSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkNZI4N4SK_cjs.RelationAttributeMetaSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "SizeValueSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkNZI4N4SK_cjs.SizeValueSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "SortConfigSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkNZI4N4SK_cjs.SortConfigSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "UserAttributeMetaSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkNZI4N4SK_cjs.UserAttributeMetaSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "VariableSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkNZI4N4SK_cjs.VariableSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "allCurrencyCodes", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkNZI4N4SK_cjs.allCurrencyCodes; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "currencyLabel", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkNZI4N4SK_cjs.currencyLabel; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "currencySymbol", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkNZI4N4SK_cjs.currencySymbol; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "currencySymbolSide", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkNZI4N4SK_cjs.currencySymbolSide; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "formatAmount", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkNZI4N4SK_cjs.formatAmount; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "formatMoney", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkNZI4N4SK_cjs.formatMoney; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "isBuiltInControl", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkNZI4N4SK_cjs.isBuiltInControl; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "isPlatformAttributeName", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkNZI4N4SK_cjs.isPlatformAttributeName; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "localeNumberSeparators", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkNZI4N4SK_cjs.localeNumberSeparators; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "lookupCompatibleControls", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkNZI4N4SK_cjs.lookupCompatibleControls; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "lookupControls", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkNZI4N4SK_cjs.lookupControls; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "lookupPrimaryControl", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkNZI4N4SK_cjs.lookupPrimaryControl; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "parseAmount", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkNZI4N4SK_cjs.parseAmount; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "parseCurrencyMeta", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkNZI4N4SK_cjs.parseCurrencyMeta; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "parseFileMeta", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkNZI4N4SK_cjs.parseFileMeta; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "parseRelationMeta", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkNZI4N4SK_cjs.parseRelationMeta; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "parseUserMeta", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkNZI4N4SK_cjs.parseUserMeta; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "platformAttributes", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkNZI4N4SK_cjs.platformAttributes; }
|
|
214
214
|
});
|
|
215
215
|
//# sourceMappingURL=index.cjs.map
|
|
216
216
|
//# sourceMappingURL=index.cjs.map
|
package/dist/meta/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-
|
|
1
|
+
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-v9RkMuKf.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-
|
|
1
|
+
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-v9RkMuKf.js';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-
|
|
1
|
+
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-JWLTUYS7.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1500,6 +1500,12 @@ type ComponentElement = CommonProps & {
|
|
|
1500
1500
|
type: 'component';
|
|
1501
1501
|
component_slug: string;
|
|
1502
1502
|
props?: Record<string, unknown>;
|
|
1503
|
+
/** Placeholder height (px) reserved while the component bundle loads, used
|
|
1504
|
+
* ONLY when `height` is unset/auto. Does not constrain the rendered
|
|
1505
|
+
* component — it auto-sizes to real content after load. Reserving roughly
|
|
1506
|
+
* the right space keeps the reveal from shoving content below it. Defaults
|
|
1507
|
+
* to the host's 80px fallback when unset. */
|
|
1508
|
+
reserved_height?: number;
|
|
1503
1509
|
};
|
|
1504
1510
|
type DividerElement = CommonProps & {
|
|
1505
1511
|
type: 'divider';
|
|
@@ -1500,6 +1500,12 @@ type ComponentElement = CommonProps & {
|
|
|
1500
1500
|
type: 'component';
|
|
1501
1501
|
component_slug: string;
|
|
1502
1502
|
props?: Record<string, unknown>;
|
|
1503
|
+
/** Placeholder height (px) reserved while the component bundle loads, used
|
|
1504
|
+
* ONLY when `height` is unset/auto. Does not constrain the rendered
|
|
1505
|
+
* component — it auto-sizes to real content after load. Reserving roughly
|
|
1506
|
+
* the right space keeps the reveal from shoving content below it. Defaults
|
|
1507
|
+
* to the host's 80px fallback when unset. */
|
|
1508
|
+
reserved_height?: number;
|
|
1503
1509
|
};
|
|
1504
1510
|
type DividerElement = CommonProps & {
|
|
1505
1511
|
type: 'divider';
|
package/package.json
CHANGED
package/src/agent/index.ts
CHANGED
package/src/agent/mcp-servers.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { PageIterator } from '../iterator.js'
|
|
|
3
3
|
import type { ListResult } from '../types/common.js'
|
|
4
4
|
import type {
|
|
5
5
|
CreateMcpServerRequest,
|
|
6
|
+
DependentAgent,
|
|
7
|
+
DependentSyncResult,
|
|
6
8
|
ListMcpServersOptions,
|
|
7
9
|
McpConnectionStatus,
|
|
8
10
|
McpServer,
|
|
@@ -40,6 +42,16 @@ export interface McpServerService {
|
|
|
40
42
|
startOAuth(key: string): Promise<StartMcpOAuthResponse>
|
|
41
43
|
/** Drops a server's stored OAuth tokens. @throws {ProteosError} 400/404. */
|
|
42
44
|
disconnectOAuth(key: string): Promise<void>
|
|
45
|
+
/**
|
|
46
|
+
* Lists the agents referencing this MCP server, each stamped stale when the MCP server
|
|
47
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
48
|
+
*/
|
|
49
|
+
listDependents(key: string): Promise<DependentAgent[]>
|
|
50
|
+
/**
|
|
51
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
52
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
53
|
+
*/
|
|
54
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
export class McpServerServiceImpl implements McpServerService {
|
|
@@ -99,4 +111,20 @@ export class McpServerServiceImpl implements McpServerService {
|
|
|
99
111
|
async disconnectOAuth(key: string): Promise<void> {
|
|
100
112
|
await this.client.request<void>('DELETE', `${MCP_SERVERS_BASE_PATH}/${key}/oauth/connect`)
|
|
101
113
|
}
|
|
114
|
+
async listDependents(key: string): Promise<DependentAgent[]> {
|
|
115
|
+
const response = await this.client.request<{ data: DependentAgent[] }>(
|
|
116
|
+
'GET',
|
|
117
|
+
`${MCP_SERVERS_BASE_PATH}/${key}/dependents`,
|
|
118
|
+
)
|
|
119
|
+
return response.data
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async syncDependents(key: string): Promise<DependentSyncResult[]> {
|
|
123
|
+
const response = await this.client.request<{ data: DependentSyncResult[] }>(
|
|
124
|
+
'POST',
|
|
125
|
+
`${MCP_SERVERS_BASE_PATH}/${key}/dependents/sync`,
|
|
126
|
+
)
|
|
127
|
+
return response.data
|
|
128
|
+
}
|
|
102
129
|
}
|
|
130
|
+
|
package/src/agent/prompts.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { PageIterator } from '../iterator.js'
|
|
|
3
3
|
import type { ListResult } from '../types/common.js'
|
|
4
4
|
import type {
|
|
5
5
|
CreatePromptRequest,
|
|
6
|
+
DependentAgent,
|
|
7
|
+
DependentSyncResult,
|
|
6
8
|
ListPromptsOptions,
|
|
7
9
|
Prompt,
|
|
8
10
|
PromptVersion,
|
|
@@ -33,6 +35,16 @@ export interface PromptService {
|
|
|
33
35
|
listVersions(key: string): Promise<PromptVersion[]>
|
|
34
36
|
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
35
37
|
getVersion(key: string, number: number): Promise<PromptVersion>
|
|
38
|
+
/**
|
|
39
|
+
* Lists the agents referencing this prompt, each stamped stale when the prompt
|
|
40
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
41
|
+
*/
|
|
42
|
+
listDependents(key: string): Promise<DependentAgent[]>
|
|
43
|
+
/**
|
|
44
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
45
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
46
|
+
*/
|
|
47
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>
|
|
36
48
|
}
|
|
37
49
|
|
|
38
50
|
export class PromptServiceImpl implements PromptService {
|
|
@@ -77,4 +89,20 @@ export class PromptServiceImpl implements PromptService {
|
|
|
77
89
|
`${PROMPTS_BASE_PATH}/${key}/versions/${number}`,
|
|
78
90
|
)
|
|
79
91
|
}
|
|
92
|
+
async listDependents(key: string): Promise<DependentAgent[]> {
|
|
93
|
+
const response = await this.client.request<{ data: DependentAgent[] }>(
|
|
94
|
+
'GET',
|
|
95
|
+
`${PROMPTS_BASE_PATH}/${key}/dependents`,
|
|
96
|
+
)
|
|
97
|
+
return response.data
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async syncDependents(key: string): Promise<DependentSyncResult[]> {
|
|
101
|
+
const response = await this.client.request<{ data: DependentSyncResult[] }>(
|
|
102
|
+
'POST',
|
|
103
|
+
`${PROMPTS_BASE_PATH}/${key}/dependents/sync`,
|
|
104
|
+
)
|
|
105
|
+
return response.data
|
|
106
|
+
}
|
|
80
107
|
}
|
|
108
|
+
|
package/src/agent/skills.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { ProteosClient } from '../client.js'
|
|
2
2
|
import { PageIterator } from '../iterator.js'
|
|
3
3
|
import type { ListResult } from '../types/common.js'
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
DependentAgent,
|
|
6
|
+
DependentSyncResult,
|
|
7
|
+
ListSkillsOptions,
|
|
8
|
+
Skill,
|
|
9
|
+
SkillVersion,
|
|
10
|
+
} from './types.js'
|
|
5
11
|
|
|
6
12
|
const SKILLS_BASE_PATH = '/agents/v1/skills'
|
|
7
13
|
|
|
@@ -36,6 +42,16 @@ export interface SkillService {
|
|
|
36
42
|
listVersions(key: string): Promise<SkillVersion[]>
|
|
37
43
|
/** Gets a specific immutable version by number. @throws {ProteosError} 404. */
|
|
38
44
|
getVersion(key: string, number: number): Promise<SkillVersion>
|
|
45
|
+
/**
|
|
46
|
+
* Lists the agents referencing this skill, each stamped stale when the skill
|
|
47
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
48
|
+
*/
|
|
49
|
+
listDependents(key: string): Promise<DependentAgent[]>
|
|
50
|
+
/**
|
|
51
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
52
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
53
|
+
*/
|
|
54
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>
|
|
39
55
|
}
|
|
40
56
|
|
|
41
57
|
export class SkillServiceImpl implements SkillService {
|
|
@@ -86,4 +102,20 @@ export class SkillServiceImpl implements SkillService {
|
|
|
86
102
|
async getVersion(key: string, number: number): Promise<SkillVersion> {
|
|
87
103
|
return this.client.request<SkillVersion>('GET', `${SKILLS_BASE_PATH}/${key}/versions/${number}`)
|
|
88
104
|
}
|
|
105
|
+
async listDependents(key: string): Promise<DependentAgent[]> {
|
|
106
|
+
const response = await this.client.request<{ data: DependentAgent[] }>(
|
|
107
|
+
'GET',
|
|
108
|
+
`${SKILLS_BASE_PATH}/${key}/dependents`,
|
|
109
|
+
)
|
|
110
|
+
return response.data
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
async syncDependents(key: string): Promise<DependentSyncResult[]> {
|
|
114
|
+
const response = await this.client.request<{ data: DependentSyncResult[] }>(
|
|
115
|
+
'POST',
|
|
116
|
+
`${SKILLS_BASE_PATH}/${key}/dependents/sync`,
|
|
117
|
+
)
|
|
118
|
+
return response.data
|
|
119
|
+
}
|
|
89
120
|
}
|
|
121
|
+
|
package/src/agent/tools.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ProteosClient } from '../client.js'
|
|
2
2
|
import { PageIterator } from '../iterator.js'
|
|
3
3
|
import type { ListResult } from '../types/common.js'
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
CreateToolRequest,
|
|
6
|
+
DependentAgent,
|
|
7
|
+
DependentSyncResult,
|
|
8
|
+
ListToolsOptions,
|
|
9
|
+
Tool,
|
|
10
|
+
UpdateToolRequest,
|
|
11
|
+
} from './types.js'
|
|
5
12
|
|
|
6
13
|
const TOOLS_BASE_PATH = '/agents/v1/tools'
|
|
7
14
|
|
|
@@ -22,6 +29,16 @@ export interface ToolService {
|
|
|
22
29
|
update(key: string, request: UpdateToolRequest): Promise<Tool>
|
|
23
30
|
/** Deletes a tool. @throws {ProteosError} 404. */
|
|
24
31
|
delete(key: string): Promise<void>
|
|
32
|
+
/**
|
|
33
|
+
* Lists the agents referencing this tool, each stamped stale when the tool
|
|
34
|
+
* changed after the agent's last successful runtime sync. @throws {ProteosError} 404.
|
|
35
|
+
*/
|
|
36
|
+
listDependents(key: string): Promise<DependentAgent[]>
|
|
37
|
+
/**
|
|
38
|
+
* Re-syncs every STALE dependent agent onto the runtime (the one-click "update
|
|
39
|
+
* dependent agents" action). Returns a per-agent result. @throws {ProteosError} 404.
|
|
40
|
+
*/
|
|
41
|
+
syncDependents(key: string): Promise<DependentSyncResult[]>
|
|
25
42
|
}
|
|
26
43
|
|
|
27
44
|
export class ToolServiceImpl implements ToolService {
|
|
@@ -50,4 +67,20 @@ export class ToolServiceImpl implements ToolService {
|
|
|
50
67
|
async delete(key: string): Promise<void> {
|
|
51
68
|
await this.client.request<void>('DELETE', `${TOOLS_BASE_PATH}/${key}`)
|
|
52
69
|
}
|
|
70
|
+
async listDependents(key: string): Promise<DependentAgent[]> {
|
|
71
|
+
const response = await this.client.request<{ data: DependentAgent[] }>(
|
|
72
|
+
'GET',
|
|
73
|
+
`${TOOLS_BASE_PATH}/${key}/dependents`,
|
|
74
|
+
)
|
|
75
|
+
return response.data
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async syncDependents(key: string): Promise<DependentSyncResult[]> {
|
|
79
|
+
const response = await this.client.request<{ data: DependentSyncResult[] }>(
|
|
80
|
+
'POST',
|
|
81
|
+
`${TOOLS_BASE_PATH}/${key}/dependents/sync`,
|
|
82
|
+
)
|
|
83
|
+
return response.data
|
|
84
|
+
}
|
|
53
85
|
}
|
|
86
|
+
|
package/src/agent/types.ts
CHANGED
|
@@ -360,3 +360,23 @@ export interface UpdateMcpServerRequest {
|
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
export type ListMcpServersOptions = AgentResourceListOptions
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* One agent referencing a resource (MCP server / prompt / tool / skill), with its
|
|
366
|
+
* provider-sync staleness: `is_stale` means the resource changed after the agent's
|
|
367
|
+
* last successful sync (or the agent was never synced), so the runtime still runs
|
|
368
|
+
* the agent against the resource's previous configuration.
|
|
369
|
+
*/
|
|
370
|
+
export interface DependentAgent {
|
|
371
|
+
agent_key: string
|
|
372
|
+
name: string
|
|
373
|
+
is_stale: boolean
|
|
374
|
+
last_synced_at: string | null
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** Outcome of re-syncing one stale dependent agent. */
|
|
378
|
+
export interface DependentSyncResult {
|
|
379
|
+
agent_key: string
|
|
380
|
+
status: 'synced' | 'failed'
|
|
381
|
+
error?: string
|
|
382
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -100,6 +100,12 @@ export type ComponentElement = CommonProps & {
|
|
|
100
100
|
type: 'component'
|
|
101
101
|
component_slug: string
|
|
102
102
|
props?: Record<string, unknown>
|
|
103
|
+
/** Placeholder height (px) reserved while the component bundle loads, used
|
|
104
|
+
* ONLY when `height` is unset/auto. Does not constrain the rendered
|
|
105
|
+
* component — it auto-sizes to real content after load. Reserving roughly
|
|
106
|
+
* the right space keeps the reveal from shoving content below it. Defaults
|
|
107
|
+
* to the host's 80px fallback when unset. */
|
|
108
|
+
reserved_height?: number
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
export type DividerElement = CommonProps & {
|
|
@@ -195,6 +201,7 @@ export const LayoutElementSchema: z.ZodType<LayoutElement> = z.lazy(() =>
|
|
|
195
201
|
...commonPropsShape,
|
|
196
202
|
component_slug: z.string().min(1),
|
|
197
203
|
props: z.record(z.unknown()).optional(),
|
|
204
|
+
reserved_height: z.number().positive().optional(),
|
|
198
205
|
}),
|
|
199
206
|
z.object({
|
|
200
207
|
type: z.literal('divider'),
|