@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.
Files changed (75) hide show
  1. package/dist/admin/admin/extension.zip +0 -0
  2. package/dist/admin/index.d.ts +2 -0
  3. package/dist/admin/index.js +2 -0
  4. package/dist/admin/meta/admin.json +59 -0
  5. package/dist/admin/meta/extension-manifest.json +794 -0
  6. package/dist/facade/index.d.ts +241 -0
  7. package/dist/facade/index.js +11 -0
  8. package/dist/monitor/runtime-services/app/index.js +660 -0
  9. package/dist/monitor/runtime-services/app/service-module.config.json +16 -0
  10. package/dist/monitor/runtime-services/app-simulator/index.js +648 -0
  11. package/dist/monitor/runtime-services/app-simulator/service-module.config.json +12 -0
  12. package/dist/monitor/runtime-services/mini-program/index.js +653 -0
  13. package/dist/monitor/runtime-services/mini-program/service-module.config.json +12 -0
  14. package/dist/monitor/runtime-services/mini-program-simulator/index.js +648 -0
  15. package/dist/monitor/runtime-services/mini-program-simulator/service-module.config.json +12 -0
  16. package/dist/monitor/runtime-services/site/index.js +648 -0
  17. package/dist/monitor/runtime-services/site/service-module.config.json +12 -0
  18. package/dist/public/monitor/index.js +6 -0
  19. package/dist/public/monitor/runtime-services/core/index.js +552 -0
  20. package/dist/public/realtime/host/index.js +4550 -0
  21. package/dist/public/realtime/index.js +3180 -0
  22. package/dist/public/realtime/native-preview-http/index.js +148 -0
  23. package/dist/simulation/artifact/meta/database.json +43 -0
  24. package/dist/simulation/artifact/meta/manifest.json +170 -0
  25. package/dist/simulation/artifact/meta/runtime-meta.json +28 -0
  26. package/dist/simulation/artifact/meta/schema.json +41 -0
  27. package/dist/simulation/artifact/server/worker/index.js +39 -0
  28. package/dist/simulation/artifact/server/worker/monitoring-contract.json +7 -0
  29. package/dist/simulation/index.d.ts +1 -0
  30. package/dist/simulation/index.js +1 -0
  31. package/dist/types/monitor/client/index.d.ts +4 -0
  32. package/dist/types/monitor/runtime-services/app/index.d.ts +4 -0
  33. package/dist/types/monitor/runtime-services/app-simulator/index.d.ts +4 -0
  34. package/dist/types/monitor/runtime-services/core/index.d.ts +1 -0
  35. package/dist/types/monitor/runtime-services/core/monitor-browser-service.d.ts +25 -0
  36. package/dist/types/monitor/runtime-services/core/monitor-mini-program-service.d.ts +25 -0
  37. package/dist/types/monitor/runtime-services/core/monitor-native-service.d.ts +25 -0
  38. package/dist/types/monitor/runtime-services/core/monitor-service.d.ts +35 -0
  39. package/dist/types/monitor/runtime-services/mini-program/index.d.ts +4 -0
  40. package/dist/types/monitor/runtime-services/mini-program-simulator/index.d.ts +4 -0
  41. package/dist/types/monitor/runtime-services/site/index.d.ts +4 -0
  42. package/dist/types/realtime/agent-chat-model.d.ts +216 -0
  43. package/dist/types/realtime/agent-question.d.ts +24 -0
  44. package/dist/types/realtime/developer-realtime.d.ts +158 -0
  45. package/dist/types/realtime/host/index.d.ts +28 -0
  46. package/dist/types/realtime/host-channels.d.ts +52 -0
  47. package/dist/types/realtime/host-connection.d.ts +131 -0
  48. package/dist/types/realtime/native-preview-http/index.d.ts +6 -0
  49. package/dist/types/realtime/native-source-codec.d.ts +21 -0
  50. package/dist/types/realtime/payload-fragments.d.ts +21 -0
  51. package/dist/types/realtime/preview-device.d.ts +9 -0
  52. package/dist/types/realtime/product-preview-cache.d.ts +69 -0
  53. package/dist/types/realtime/product-preview-clients.d.ts +7 -0
  54. package/dist/types/realtime/product-preview-host.d.ts +50 -0
  55. package/dist/types/realtime/product-preview-http-runtime.d.ts +9 -0
  56. package/dist/types/realtime/product-preview-protocol.d.ts +167 -0
  57. package/dist/types/realtime/product-preview-socket-source.d.ts +24 -0
  58. package/dist/types/realtime/product-preview-viewer-http.d.ts +41 -0
  59. package/dist/types/realtime/product-preview-viewer.d.ts +44 -0
  60. package/dist/types/realtime/project-workspaces.d.ts +43 -0
  61. package/dist/types/realtime/viewer/index.d.ts +22 -0
  62. package/dist/types/realtime/websocket-transport.d.ts +12 -0
  63. package/dist/types/realtime/workspace-agent-history.d.ts +46 -0
  64. package/dist/types/realtime/workspace-agent-input.d.ts +38 -0
  65. package/dist/types/realtime/workspace-agent-member.d.ts +15 -0
  66. package/dist/types/realtime/workspace-agent-view.d.ts +22 -0
  67. package/dist/types/realtime/workspace-cache-store.d.ts +38 -0
  68. package/dist/types/realtime/workspace-cache.d.ts +72 -0
  69. package/dist/types/realtime/workspace-chat-stream.d.ts +6 -0
  70. package/dist/types/realtime/workspace-file-view.d.ts +9 -0
  71. package/dist/types/realtime/workspace-status-view.d.ts +8 -0
  72. package/dist/types/realtime/workspace-viewer.d.ts +100 -0
  73. package/extension-manifest.json +457 -0
  74. package/package.json +112 -4
  75. 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
+ });