@kuafucloud/developer 0.0.0-stage → 0.1.9-alpha.3
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/admin/admin/extension.zip +0 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +2 -0
- package/dist/admin/meta/admin.json +59 -0
- package/dist/admin/meta/extension-manifest.json +794 -0
- package/dist/facade/index.d.ts +241 -0
- package/dist/facade/index.js +11 -0
- package/dist/monitor/runtime-services/app/index.js +660 -0
- package/dist/monitor/runtime-services/app/service-module.config.json +16 -0
- package/dist/monitor/runtime-services/app-simulator/index.js +648 -0
- package/dist/monitor/runtime-services/app-simulator/service-module.config.json +12 -0
- package/dist/monitor/runtime-services/mini-program/index.js +653 -0
- package/dist/monitor/runtime-services/mini-program/service-module.config.json +12 -0
- package/dist/monitor/runtime-services/mini-program-simulator/index.js +648 -0
- package/dist/monitor/runtime-services/mini-program-simulator/service-module.config.json +12 -0
- package/dist/monitor/runtime-services/site/index.js +648 -0
- package/dist/monitor/runtime-services/site/service-module.config.json +12 -0
- package/dist/public/monitor/index.js +6 -0
- package/dist/public/monitor/runtime-services/core/index.js +552 -0
- package/dist/public/realtime/host/index.js +4550 -0
- package/dist/public/realtime/index.js +3180 -0
- package/dist/public/realtime/native-preview-http/index.js +148 -0
- package/dist/simulation/artifact/meta/database.json +43 -0
- package/dist/simulation/artifact/meta/manifest.json +170 -0
- package/dist/simulation/artifact/meta/runtime-meta.json +28 -0
- package/dist/simulation/artifact/meta/schema.json +41 -0
- package/dist/simulation/artifact/server/worker/index.js +39 -0
- package/dist/simulation/artifact/server/worker/monitoring-contract.json +7 -0
- package/dist/simulation/index.d.ts +1 -0
- package/dist/simulation/index.js +1 -0
- package/dist/types/monitor/client/index.d.ts +4 -0
- package/dist/types/monitor/runtime-services/app/index.d.ts +4 -0
- package/dist/types/monitor/runtime-services/app-simulator/index.d.ts +4 -0
- package/dist/types/monitor/runtime-services/core/index.d.ts +1 -0
- package/dist/types/monitor/runtime-services/core/monitor-browser-service.d.ts +25 -0
- package/dist/types/monitor/runtime-services/core/monitor-mini-program-service.d.ts +25 -0
- package/dist/types/monitor/runtime-services/core/monitor-native-service.d.ts +25 -0
- package/dist/types/monitor/runtime-services/core/monitor-service.d.ts +35 -0
- package/dist/types/monitor/runtime-services/mini-program/index.d.ts +4 -0
- package/dist/types/monitor/runtime-services/mini-program-simulator/index.d.ts +4 -0
- package/dist/types/monitor/runtime-services/site/index.d.ts +4 -0
- package/dist/types/realtime/agent-chat-model.d.ts +216 -0
- package/dist/types/realtime/agent-question.d.ts +24 -0
- package/dist/types/realtime/developer-realtime.d.ts +158 -0
- package/dist/types/realtime/host/index.d.ts +28 -0
- package/dist/types/realtime/host-channels.d.ts +52 -0
- package/dist/types/realtime/host-connection.d.ts +131 -0
- package/dist/types/realtime/native-preview-http/index.d.ts +6 -0
- package/dist/types/realtime/native-source-codec.d.ts +21 -0
- package/dist/types/realtime/payload-fragments.d.ts +21 -0
- package/dist/types/realtime/preview-device.d.ts +9 -0
- package/dist/types/realtime/product-preview-cache.d.ts +69 -0
- package/dist/types/realtime/product-preview-clients.d.ts +7 -0
- package/dist/types/realtime/product-preview-host.d.ts +50 -0
- package/dist/types/realtime/product-preview-http-runtime.d.ts +9 -0
- package/dist/types/realtime/product-preview-protocol.d.ts +167 -0
- package/dist/types/realtime/product-preview-socket-source.d.ts +24 -0
- package/dist/types/realtime/product-preview-viewer-http.d.ts +41 -0
- package/dist/types/realtime/product-preview-viewer.d.ts +44 -0
- package/dist/types/realtime/project-workspaces.d.ts +43 -0
- package/dist/types/realtime/viewer/index.d.ts +22 -0
- package/dist/types/realtime/websocket-transport.d.ts +12 -0
- package/dist/types/realtime/workspace-agent-history.d.ts +46 -0
- package/dist/types/realtime/workspace-agent-input.d.ts +38 -0
- package/dist/types/realtime/workspace-agent-member.d.ts +15 -0
- package/dist/types/realtime/workspace-agent-view.d.ts +22 -0
- package/dist/types/realtime/workspace-cache-store.d.ts +38 -0
- package/dist/types/realtime/workspace-cache.d.ts +72 -0
- package/dist/types/realtime/workspace-chat-stream.d.ts +6 -0
- package/dist/types/realtime/workspace-file-view.d.ts +9 -0
- package/dist/types/realtime/workspace-status-view.d.ts +8 -0
- package/dist/types/realtime/workspace-viewer.d.ts +100 -0
- package/extension-manifest.json +457 -0
- package/package.json +112 -4
- package/README.md +0 -3
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 `./agent-tool generate extension-facades` 自动生成,请勿手改。
|
|
3
|
+
*/
|
|
4
|
+
export type paths = {
|
|
5
|
+
readonly "/develop/workspace-chat/resolve": {
|
|
6
|
+
parameters: {};
|
|
7
|
+
post: {
|
|
8
|
+
parameters: {};
|
|
9
|
+
requestBody?: {
|
|
10
|
+
content: {
|
|
11
|
+
"application/json": {
|
|
12
|
+
conversationIds: Array<string>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} | undefined;
|
|
16
|
+
responses: {
|
|
17
|
+
readonly 200: {
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": {
|
|
20
|
+
data: {
|
|
21
|
+
bindings: Array<{
|
|
22
|
+
agentSubject: string;
|
|
23
|
+
conversationId: string;
|
|
24
|
+
hostDeviceId: string;
|
|
25
|
+
kind: "workspace";
|
|
26
|
+
name: string;
|
|
27
|
+
products?: Array<{
|
|
28
|
+
codebasePath: string;
|
|
29
|
+
kind: string;
|
|
30
|
+
name: string;
|
|
31
|
+
productId: string;
|
|
32
|
+
repositoryId: string;
|
|
33
|
+
repositoryName?: string | undefined;
|
|
34
|
+
state?: string | undefined;
|
|
35
|
+
}> | undefined;
|
|
36
|
+
revision: number;
|
|
37
|
+
socketUrl: string;
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
headers: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly 503: {
|
|
48
|
+
content: {
|
|
49
|
+
"application/json": {
|
|
50
|
+
code: string;
|
|
51
|
+
message: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
headers: {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly "/develop/workspace-chat/ticket": {
|
|
62
|
+
parameters: {};
|
|
63
|
+
post: {
|
|
64
|
+
parameters: {};
|
|
65
|
+
requestBody?: {
|
|
66
|
+
content: {
|
|
67
|
+
"application/json": {
|
|
68
|
+
conversationIds: Array<string>;
|
|
69
|
+
role: "viewer";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | undefined;
|
|
73
|
+
responses: {
|
|
74
|
+
readonly 200: {
|
|
75
|
+
content: {
|
|
76
|
+
"application/json": {
|
|
77
|
+
data: {
|
|
78
|
+
protocol: "kuafu.developer.v1";
|
|
79
|
+
socketUrl: string;
|
|
80
|
+
tickets: Array<{
|
|
81
|
+
expiresAt: number;
|
|
82
|
+
hostDeviceId: string;
|
|
83
|
+
ticket: string;
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
headers: {
|
|
89
|
+
[key: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly 403: {
|
|
93
|
+
content: {
|
|
94
|
+
"application/json": {
|
|
95
|
+
code: string;
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
headers: {
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly 503: {
|
|
104
|
+
content: {
|
|
105
|
+
"application/json": {
|
|
106
|
+
code: string;
|
|
107
|
+
message: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
headers: {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export type operations = {
|
|
119
|
+
readonly "post /develop/workspace-chat/resolve": {
|
|
120
|
+
parameters: {};
|
|
121
|
+
requestBody?: {
|
|
122
|
+
content: {
|
|
123
|
+
"application/json": {
|
|
124
|
+
conversationIds: Array<string>;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
} | undefined;
|
|
128
|
+
responses: {
|
|
129
|
+
readonly 200: {
|
|
130
|
+
content: {
|
|
131
|
+
"application/json": {
|
|
132
|
+
data: {
|
|
133
|
+
bindings: Array<{
|
|
134
|
+
agentSubject: string;
|
|
135
|
+
conversationId: string;
|
|
136
|
+
hostDeviceId: string;
|
|
137
|
+
kind: "workspace";
|
|
138
|
+
name: string;
|
|
139
|
+
products?: Array<{
|
|
140
|
+
codebasePath: string;
|
|
141
|
+
kind: string;
|
|
142
|
+
name: string;
|
|
143
|
+
productId: string;
|
|
144
|
+
repositoryId: string;
|
|
145
|
+
repositoryName?: string | undefined;
|
|
146
|
+
state?: string | undefined;
|
|
147
|
+
}> | undefined;
|
|
148
|
+
revision: number;
|
|
149
|
+
socketUrl: string;
|
|
150
|
+
workspaceId: string;
|
|
151
|
+
}>;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
headers: {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly 503: {
|
|
160
|
+
content: {
|
|
161
|
+
"application/json": {
|
|
162
|
+
code: string;
|
|
163
|
+
message: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
headers: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly "post /develop/workspace-chat/ticket": {
|
|
173
|
+
parameters: {};
|
|
174
|
+
requestBody?: {
|
|
175
|
+
content: {
|
|
176
|
+
"application/json": {
|
|
177
|
+
conversationIds: Array<string>;
|
|
178
|
+
role: "viewer";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
} | undefined;
|
|
182
|
+
responses: {
|
|
183
|
+
readonly 200: {
|
|
184
|
+
content: {
|
|
185
|
+
"application/json": {
|
|
186
|
+
data: {
|
|
187
|
+
protocol: "kuafu.developer.v1";
|
|
188
|
+
socketUrl: string;
|
|
189
|
+
tickets: Array<{
|
|
190
|
+
expiresAt: number;
|
|
191
|
+
hostDeviceId: string;
|
|
192
|
+
ticket: string;
|
|
193
|
+
}>;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
headers: {
|
|
198
|
+
[key: string]: unknown;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly 403: {
|
|
202
|
+
content: {
|
|
203
|
+
"application/json": {
|
|
204
|
+
code: string;
|
|
205
|
+
message: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
headers: {
|
|
209
|
+
[key: string]: unknown;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
readonly 503: {
|
|
213
|
+
content: {
|
|
214
|
+
"application/json": {
|
|
215
|
+
code: string;
|
|
216
|
+
message: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
headers: {
|
|
220
|
+
[key: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
export declare const extensionId: "developer";
|
|
227
|
+
export declare const extension: Readonly<{
|
|
228
|
+
extensionId: typeof extensionId;
|
|
229
|
+
source: "npm";
|
|
230
|
+
sourceVersion: "0.1.9-alpha.3";
|
|
231
|
+
sourceDigest: "sha256:a33e2ab802ae8160a622c1098b24f807bddf21fd77519e90db6917c88774cff9";
|
|
232
|
+
operations: readonly Readonly<{
|
|
233
|
+
operationId: string;
|
|
234
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
235
|
+
path: `/${string}`;
|
|
236
|
+
clientAudience: "product" | "runtime";
|
|
237
|
+
authScope?: "admin" | "account";
|
|
238
|
+
}>[];
|
|
239
|
+
readonly __paths: paths;
|
|
240
|
+
readonly __operations: operations;
|
|
241
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 `./agent-tool generate extension-facades` 自动生成,请勿手改。
|
|
3
|
+
*/
|
|
4
|
+
export const extensionId = "developer";
|
|
5
|
+
export const extension = Object.freeze({
|
|
6
|
+
extensionId,
|
|
7
|
+
source: "npm",
|
|
8
|
+
sourceVersion: "0.1.9-alpha.3",
|
|
9
|
+
sourceDigest: "sha256:a33e2ab802ae8160a622c1098b24f807bddf21fd77519e90db6917c88774cff9",
|
|
10
|
+
operations: Object.freeze([{"operationId":"op.developer.develop.workspace.chat.resolve.a6870b7b9d23924f","method":"POST","path":"/develop/workspace-chat/resolve","clientAudience":"product"},{"operationId":"op.developer.develop.workspace.chat.ticket.51d9cc0d2cff1351","method":"POST","path":"/develop/workspace-chat/ticket","clientAudience":"product","authScope":"account"}]),
|
|
11
|
+
});
|