openxiangda-devkit-core 2.0.0-alpha.29 → 2.0.0-alpha.34
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/README.md +2 -1
- package/dist/application-services.d.ts +79 -43
- package/dist/application-services.d.ts.map +1 -1
- package/dist/application-services.js +257 -160
- package/dist/application-services.js.map +1 -1
- package/dist/backend-image-build.d.ts +23 -0
- package/dist/backend-image-build.d.ts.map +1 -0
- package/dist/backend-image-build.js +192 -0
- package/dist/backend-image-build.js.map +1 -0
- package/dist/command-registry.d.ts +26 -576
- package/dist/command-registry.d.ts.map +1 -1
- package/dist/command-registry.js +9 -374
- package/dist/command-registry.js.map +1 -1
- package/dist/compiler/bundle.d.ts +23 -0
- package/dist/compiler/bundle.d.ts.map +1 -0
- package/dist/compiler/bundle.js +604 -0
- package/dist/compiler/bundle.js.map +1 -0
- package/dist/compiler/config.d.ts +377 -0
- package/dist/compiler/config.d.ts.map +1 -0
- package/dist/compiler/config.js +1137 -0
- package/dist/compiler/config.js.map +1 -0
- package/dist/compiler/index.d.ts +4 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +4 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/package-compiler.d.ts +22 -0
- package/dist/compiler/package-compiler.d.ts.map +1 -0
- package/dist/compiler/package-compiler.js +60 -0
- package/dist/compiler/package-compiler.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connected-development.d.ts +62 -0
- package/dist/connected-development.d.ts.map +1 -0
- package/dist/connected-development.js +389 -0
- package/dist/connected-development.js.map +1 -0
- package/dist/control-plane-client.d.ts +50 -1
- package/dist/control-plane-client.d.ts.map +1 -1
- package/dist/control-plane-client.js +43 -2
- package/dist/control-plane-client.js.map +1 -1
- package/dist/deployment.d.ts +3 -1
- package/dist/deployment.d.ts.map +1 -1
- package/dist/deployment.js +18 -8
- package/dist/deployment.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/workflow.d.ts +81 -0
- package/dist/internal/workflow.d.ts.map +1 -0
- package/dist/internal/workflow.js +351 -0
- package/dist/internal/workflow.js.map +1 -0
- package/dist/package-compiler.d.ts +1 -1
- package/dist/package-compiler.d.ts.map +1 -1
- package/dist/package-compiler.js +1 -1
- package/dist/package-compiler.js.map +1 -1
- package/dist/testing.d.ts +38 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +46 -0
- package/dist/testing.js.map +1 -0
- package/dist/workspace-loader.d.ts +1 -1
- package/package.json +8 -4
- package/dist/local-development.d.ts +0 -85
- package/dist/local-development.d.ts.map +0 -1
- package/dist/local-development.js +0 -919
- package/dist/local-development.js.map +0 -1
- package/dist/local-postgres.d.ts +0 -32
- package/dist/local-postgres.d.ts.map +0 -1
- package/dist/local-postgres.js +0 -324
- package/dist/local-postgres.js.map +0 -1
package/dist/command-registry.js
CHANGED
|
@@ -1,379 +1,14 @@
|
|
|
1
1
|
export const DEVKIT_COMMANDS = [
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
operation: "auth.status",
|
|
11
|
-
summary: "查看当前登录会话",
|
|
12
|
-
risk: "read",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: "auth:logout",
|
|
16
|
-
operation: "auth.logout",
|
|
17
|
-
summary: "删除当前登录会话",
|
|
18
|
-
risk: "write-local",
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: "app:create",
|
|
22
|
-
operation: "app.create",
|
|
23
|
-
summary: "从官方模板创建 2.0 应用",
|
|
24
|
-
risk: "write-local",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: "app:link",
|
|
28
|
-
operation: "app.link",
|
|
29
|
-
summary: "绑定平台地址和应用环境",
|
|
30
|
-
risk: "write-local",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: "app:provision",
|
|
34
|
-
operation: "app.provision",
|
|
35
|
-
summary: "在平台幂等创建 2.0 应用身份和默认预发环境",
|
|
36
|
-
risk: "deploy",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "app:info",
|
|
40
|
-
operation: "app.info",
|
|
41
|
-
summary: "读取应用工作区上下文",
|
|
42
|
-
risk: "read",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: "authz:membership:list",
|
|
46
|
-
operation: "authz.membership.list",
|
|
47
|
-
summary: "查询 Native 应用角色成员",
|
|
48
|
-
risk: "read",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: "authz:membership:grant",
|
|
52
|
-
operation: "authz.membership.create",
|
|
53
|
-
summary: "授予 Native 应用业务角色",
|
|
54
|
-
risk: "deploy",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "authz:membership:update",
|
|
58
|
-
operation: "authz.membership.update",
|
|
59
|
-
summary: "更新 Native 角色成员范围",
|
|
60
|
-
risk: "deploy",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "authz:membership:revoke",
|
|
64
|
-
operation: "authz.membership.revoke",
|
|
65
|
-
summary: "撤销 Native 应用角色成员",
|
|
66
|
-
risk: "deploy",
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: "authz:relationship:list",
|
|
70
|
-
operation: "authz.relationship.list",
|
|
71
|
-
summary: "查询 Native 资源关系授权",
|
|
72
|
-
risk: "read",
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "authz:relationship:grant",
|
|
76
|
-
operation: "authz.relationship.create",
|
|
77
|
-
summary: "创建 Native 资源关系授权",
|
|
78
|
-
risk: "deploy",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: "authz:relationship:update",
|
|
82
|
-
operation: "authz.relationship.update",
|
|
83
|
-
summary: "更新 Native 资源关系授权",
|
|
84
|
-
risk: "deploy",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: "authz:relationship:revoke",
|
|
88
|
-
operation: "authz.relationship.revoke",
|
|
89
|
-
summary: "撤销 Native 资源关系授权",
|
|
90
|
-
risk: "deploy",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "authz:super-admin:list",
|
|
94
|
-
operation: "authz.super-admin.list",
|
|
95
|
-
summary: "查询 Native 应用超级管理员",
|
|
96
|
-
risk: "read",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: "authz:super-admin:grant",
|
|
100
|
-
operation: "authz.super-admin.grant",
|
|
101
|
-
summary: "授予 Native 应用超级管理员",
|
|
102
|
-
risk: "deploy",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: "authz:super-admin:revoke",
|
|
106
|
-
operation: "authz.super-admin.revoke",
|
|
107
|
-
summary: "撤销 Native 应用超级管理员",
|
|
108
|
-
risk: "deploy",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: "oauth:client:list",
|
|
112
|
-
operation: "oauth.client.list",
|
|
113
|
-
summary: "查询应用 OAuth2 客户端",
|
|
114
|
-
risk: "read",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "oauth:client:create",
|
|
118
|
-
operation: "oauth.client.create",
|
|
119
|
-
summary: "创建环境绑定的 OAuth2 客户端",
|
|
120
|
-
risk: "deploy",
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: "oauth:client:update",
|
|
124
|
-
operation: "oauth.client.update",
|
|
125
|
-
summary: "更新 OAuth2 客户端",
|
|
126
|
-
risk: "deploy",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
id: "oauth:client:rotate",
|
|
130
|
-
operation: "oauth.client.rotate",
|
|
131
|
-
summary: "双密钥轮换 OAuth2 客户端",
|
|
132
|
-
risk: "deploy",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: "oauth:client:revoke",
|
|
136
|
-
operation: "oauth.client.revoke",
|
|
137
|
-
summary: "吊销 OAuth2 客户端",
|
|
138
|
-
risk: "deploy",
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
id: "oauth:runtime:status",
|
|
142
|
-
operation: "oauth.runtime.status",
|
|
143
|
-
summary: "查询平台托管运行凭据状态",
|
|
144
|
-
risk: "read",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
id: "oauth:runtime:rotate",
|
|
148
|
-
operation: "oauth.runtime.rotate",
|
|
149
|
-
summary: "暂存运行凭据并创建同版本滚动部署",
|
|
150
|
-
risk: "deploy",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
id: "oauth:audit:list",
|
|
154
|
-
operation: "oauth.audit.list",
|
|
155
|
-
summary: "查询 OAuth2 审计事件",
|
|
156
|
-
risk: "read",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: "secret:list",
|
|
160
|
-
operation: "secret.list",
|
|
161
|
-
summary: "查询环境隔离的应用 Secret 元数据",
|
|
162
|
-
risk: "read",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
id: "secret:create",
|
|
166
|
-
operation: "secret.create",
|
|
167
|
-
summary: "从本机安全来源创建应用 Secret",
|
|
168
|
-
risk: "deploy",
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "secret:update",
|
|
172
|
-
operation: "secret.update",
|
|
173
|
-
summary: "更新应用 Secret 元数据和状态",
|
|
174
|
-
risk: "deploy",
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
id: "secret:rotate",
|
|
178
|
-
operation: "secret.rotate",
|
|
179
|
-
summary: "追加不可变版本并轮换应用 Secret",
|
|
180
|
-
risk: "deploy",
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
id: "secret:delete",
|
|
184
|
-
operation: "secret.delete",
|
|
185
|
-
summary: "删除未被当前配置引用的应用 Secret",
|
|
186
|
-
risk: "deploy",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
id: "secret:audit:list",
|
|
190
|
-
operation: "secret.audit.list",
|
|
191
|
-
summary: "查询应用 Secret 审计事件",
|
|
192
|
-
risk: "read",
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
id: "event:subscription:list",
|
|
196
|
-
operation: "event.subscription.list",
|
|
197
|
-
summary: "查询应用事件订阅",
|
|
198
|
-
risk: "read",
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
id: "event:subscription:status",
|
|
202
|
-
operation: "event.subscription.status",
|
|
203
|
-
summary: "暂停或恢复事件订阅",
|
|
204
|
-
risk: "deploy",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: "event:subscription:rotate-secret",
|
|
208
|
-
operation: "event.subscription.rotate",
|
|
209
|
-
summary: "暂存下一版本事件签名密钥并随下次部署激活",
|
|
210
|
-
risk: "deploy",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
id: "event:delivery:list",
|
|
214
|
-
operation: "event.delivery.list",
|
|
215
|
-
summary: "查询事件投递与死信",
|
|
216
|
-
risk: "read",
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
id: "event:delivery:replay",
|
|
220
|
-
operation: "event.delivery.replay",
|
|
221
|
-
summary: "幂等回放历史事件投递",
|
|
222
|
-
risk: "deploy",
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
id: "event:timer:list",
|
|
226
|
-
operation: "event.timer.list",
|
|
227
|
-
summary: "查询定时事件",
|
|
228
|
-
risk: "read",
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
id: "event:timer:status",
|
|
232
|
-
operation: "event.timer.status",
|
|
233
|
-
summary: "暂停或恢复定时事件",
|
|
234
|
-
risk: "deploy",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: "event:timer:fire",
|
|
238
|
-
operation: "event.timer.fire-local",
|
|
239
|
-
summary: "在完整本地开发会话中触发下一次定时事件",
|
|
240
|
-
risk: "write-local",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: "workflow:provider:list",
|
|
244
|
-
operation: "workflow.provider.list",
|
|
245
|
-
summary: "查询 Workflow Assignee Provider",
|
|
246
|
-
risk: "read",
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
id: "workflow:provider:rotate",
|
|
250
|
-
operation: "workflow.provider.rotate",
|
|
251
|
-
summary: "轮换 Workflow Provider 签名密钥",
|
|
252
|
-
risk: "deploy",
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: "skill:install",
|
|
256
|
-
operation: "skill.install",
|
|
257
|
-
summary: "安装 OpenXiangda 2.0 AI Skills",
|
|
258
|
-
risk: "write-local",
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
id: "skill:validate",
|
|
262
|
-
operation: "skill.validate",
|
|
263
|
-
summary: "验证 OpenXiangda 2.0 AI Skills",
|
|
264
|
-
risk: "read",
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
id: "dev",
|
|
268
|
-
operation: "dev",
|
|
269
|
-
summary: "启动受监督的完整本地应用",
|
|
270
|
-
risk: "write-local",
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
id: "dev:status",
|
|
274
|
-
operation: "dev.status",
|
|
275
|
-
summary: "查看当前工作区本地开发会话",
|
|
276
|
-
risk: "read",
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: "dev:stop",
|
|
280
|
-
operation: "dev.stop",
|
|
281
|
-
summary: "停止当前工作区本地开发会话并保留数据",
|
|
282
|
-
risk: "write-local",
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
id: "dev:reset",
|
|
286
|
-
operation: "dev.reset",
|
|
287
|
-
summary: "删除当前工作区本地数据库和开发状态",
|
|
288
|
-
risk: "write-local",
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
id: "generate",
|
|
292
|
-
operation: "generate",
|
|
293
|
-
summary: "生成 Data/App/Workflow/Event 类型契约",
|
|
294
|
-
risk: "write-local",
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: "check",
|
|
298
|
-
operation: "check",
|
|
299
|
-
summary: "确定性检查完整应用",
|
|
300
|
-
risk: "read",
|
|
301
|
-
},
|
|
302
|
-
{ id: "test", operation: "test", summary: "运行应用测试", risk: "read" },
|
|
303
|
-
{
|
|
304
|
-
id: "build",
|
|
305
|
-
operation: "build",
|
|
306
|
-
summary: "构建并密封一个 AppPackage",
|
|
307
|
-
risk: "write-local",
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
id: "deploy",
|
|
311
|
-
operation: "deploy",
|
|
312
|
-
summary: "创建平台持久执行的 DeploymentRun",
|
|
313
|
-
risk: "deploy",
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
id: "promote",
|
|
317
|
-
operation: "promote",
|
|
318
|
-
summary: "以同一 AppVersion 晋级目标环境",
|
|
319
|
-
risk: "deploy",
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
id: "environment:status",
|
|
323
|
-
operation: "environment.status",
|
|
324
|
-
summary: "查询应用环境、运行状态和活动版本",
|
|
325
|
-
risk: "read",
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
id: "environment:start",
|
|
329
|
-
operation: "environment.start",
|
|
330
|
-
summary: "从活动版本启动应用环境",
|
|
331
|
-
risk: "deploy",
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
id: "environment:stop",
|
|
335
|
-
operation: "environment.stop",
|
|
336
|
-
summary: "停止应用环境并保留数据与配置",
|
|
337
|
-
risk: "deploy",
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
id: "status",
|
|
341
|
-
operation: "status",
|
|
342
|
-
summary: "查询 DeploymentRun 状态",
|
|
343
|
-
risk: "read",
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
id: "logs",
|
|
347
|
-
operation: "logs",
|
|
348
|
-
summary: "查询部署检查点和关联日志",
|
|
349
|
-
risk: "read",
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
id: "retry",
|
|
353
|
-
operation: "retry",
|
|
354
|
-
summary: "重试可恢复的 DeploymentRun",
|
|
355
|
-
risk: "deploy",
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
id: "cancel",
|
|
359
|
-
operation: "cancel",
|
|
360
|
-
summary: "幂等取消 DeploymentRun",
|
|
361
|
-
risk: "deploy",
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: "rollback",
|
|
365
|
-
operation: "rollback",
|
|
366
|
-
summary: "以历史 AppVersion 创建回滚部署",
|
|
367
|
-
risk: "deploy",
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
id: "doctor",
|
|
371
|
-
operation: "doctor",
|
|
372
|
-
summary: "诊断本地工具链和平台兼容性",
|
|
373
|
-
risk: "read",
|
|
374
|
-
},
|
|
2
|
+
{ id: "create", operation: "create", summary: "创建、绑定并初始化应用", risk: "deploy" },
|
|
3
|
+
{ id: "dev", operation: "dev", summary: "连接平台测试数据启动本地 Web 与 Nest", risk: "write-local" },
|
|
4
|
+
{ id: "check", operation: "check", summary: "生成契约并执行检查、测试和构建", risk: "write-local" },
|
|
5
|
+
{ id: "deploy", operation: "deploy", summary: "部署测试环境或显式复用测试版本部署生产", risk: "deploy" },
|
|
6
|
+
{ id: "status", operation: "status", summary: "查询最近或指定部署状态", risk: "read" },
|
|
7
|
+
{ id: "logs", operation: "logs", summary: "查询最近或指定部署日志", risk: "read" },
|
|
8
|
+
{ id: "rollback", operation: "rollback", summary: "回滚测试或生产环境", risk: "deploy" },
|
|
9
|
+
{ id: "login", operation: "login", summary: "通过平台浏览器授权登录", risk: "write-local" },
|
|
375
10
|
];
|
|
376
11
|
export function commandDefinition(id) {
|
|
377
|
-
return DEVKIT_COMMANDS.find(
|
|
12
|
+
return DEVKIT_COMMANDS.find(command => command.id === id);
|
|
378
13
|
}
|
|
379
14
|
//# sourceMappingURL=command-registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-registry.js","sourceRoot":"","sources":["../src/command-registry.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B
|
|
1
|
+
{"version":3,"file":"command-registry.js","sourceRoot":"","sources":["../src/command-registry.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC7E,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,yBAAyB,EAAE,IAAI,EAAE,aAAa,EAAE;IACxF,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,EAAE;IACpF,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,QAAQ,EAAE;IACrF,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;IAC3E,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;IACvE,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC/E,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE;CAC3B,CAAC;AAExD,MAAM,UAAU,iBAAiB,CAAC,EAAU;IAC1C,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type AppArtifact, type ConfigurationBundleV3, type ContractBundleV3 } from 'openxiangda-contracts';
|
|
2
|
+
import type { OpenXiangdaAppConfig } from './config.js';
|
|
3
|
+
export declare const CONFIG_BUNDLE_SCHEMA: "openxiangda.config-bundle/v3";
|
|
4
|
+
export declare const CONTRACT_BUNDLE_SCHEMA: "openxiangda.contract-bundle/v3";
|
|
5
|
+
export declare const COMPILER_CONTRACT_VERSION: "native-2";
|
|
6
|
+
export interface CompiledSourceBundle<T> {
|
|
7
|
+
value: T;
|
|
8
|
+
content: string;
|
|
9
|
+
digest: string;
|
|
10
|
+
artifact: AppArtifact;
|
|
11
|
+
}
|
|
12
|
+
export interface CompiledApplicationSources {
|
|
13
|
+
config: CompiledSourceBundle<ConfigurationBundleV3>;
|
|
14
|
+
contracts: CompiledSourceBundle<ContractBundleV3> & {
|
|
15
|
+
typescript: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function compileApplicationSources(config: OpenXiangdaAppConfig, generatorVersion?: string): CompiledApplicationSources;
|
|
19
|
+
export declare function normalizeConfiguration(config: OpenXiangdaAppConfig): ConfigurationBundleV3;
|
|
20
|
+
export declare function compileContractBundle(config: OpenXiangdaAppConfig, configDigest?: string, generatorVersion?: string): ContractBundleV3;
|
|
21
|
+
export declare function renderGeneratedContracts(config: OpenXiangdaAppConfig, contract?: ContractBundleV3): string;
|
|
22
|
+
export declare function sha256Bytes(content: string | Uint8Array): string;
|
|
23
|
+
//# sourceMappingURL=bundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/compiler/bundle.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,WAAW,EAIhB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EAItB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,eAAO,MAAM,oBAAoB,gCAAsC,CAAC;AACxE,eAAO,MAAM,sBAAsB,kCAAiC,CAAC;AACrE,eAAO,MAAM,yBAAyB,YACC,CAAC;AAExC,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;IACpD,SAAS,EAAE,oBAAoB,CAAC,gBAAgB,CAAC,GAAG;QAClD,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,oBAAoB,EAC5B,gBAAgB,SAA4B,GAC3C,0BAA0B,CA6C5B;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,oBAAoB,GAC3B,qBAAqB,CA4PvB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,oBAAoB,EAC5B,YAAY,SAA6D,EACzE,gBAAgB,SAA4B,GAC3C,gBAAgB,CAkClB;AAqRD,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,mBAAgC,UAqDzC;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,UAEvD"}
|