@doubao-dev/cli 1.0.0-rc.1 → 1.0.0-rc.11

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 (73) hide show
  1. package/README.md +12 -6
  2. package/dist/691.js +96 -0
  3. package/dist/build.js +1 -0
  4. package/dist/categories.js +1 -1
  5. package/dist/command.js +9 -3
  6. package/dist/command~1.js +4 -4
  7. package/dist/command~2.js +1 -1
  8. package/dist/command~3.js +2 -1
  9. package/dist/command~4.js +1 -1
  10. package/dist/command~5.js +6 -5
  11. package/dist/dist.js +1 -1
  12. package/dist/draft.js +2 -2
  13. package/dist/index.d.ts +886 -8
  14. package/dist/index.js +1 -1
  15. package/dist/main.d.ts +886 -8
  16. package/dist/main.js +1 -1
  17. package/dist/mcp-apps-inspector.js +1 -0
  18. package/dist/multipart-parser.js +1 -1
  19. package/dist/open.js +2 -0
  20. package/dist/plugin.js +2 -2
  21. package/dist/preview.js +5 -5
  22. package/dist/progress.js +1 -1
  23. package/dist/ratatui-ui.js +1 -1
  24. package/dist/session.js +1 -1
  25. package/dist/skills/doubao-plugin-cli/SKILL.md +44 -40
  26. package/dist/skills/doubao-plugin-cli/references/cli/development.md +126 -0
  27. package/dist/skills/doubao-plugin-cli/references/cli/project.md +188 -0
  28. package/dist/skills/doubao-plugin-cli/references/cli/release.md +144 -0
  29. package/dist/skills/doubao-plugin-cli/references/examples/todo-example.md +88 -0
  30. package/dist/skills/doubao-plugin-cli/references/examples/workbench-example.md +130 -0
  31. package/dist/skills/doubao-plugin-cli/references/protocols/business-skills.md +49 -0
  32. package/dist/skills/doubao-plugin-cli/references/protocols/cli-connectors.md +56 -0
  33. package/dist/skills/doubao-plugin-cli/references/protocols/managed-agents.md +46 -0
  34. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-apps/integration.md +186 -0
  35. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-apps/runtime.md +318 -0
  36. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-apps/workbench.md +180 -0
  37. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-auth.md +73 -0
  38. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-config.md +145 -0
  39. package/dist/skills/doubao-plugin-cli/references/protocols/mcp-events.md +260 -0
  40. package/dist/skills/doubao-plugin-cli/references/protocols/plugin-json.md +95 -0
  41. package/dist/skills/doubao-plugin-cli/references/protocols/workbench.md +120 -0
  42. package/dist/skills/doubao-plugin-cli/references/upstream/SOURCES.md +24 -0
  43. package/dist/skills/doubao-plugin-cli/references/upstream/mcp-apps.LICENSE +216 -0
  44. package/dist/skills/doubao-plugin-cli/references/upstream/mcp-apps.mdx +1768 -0
  45. package/dist/skills/doubao-plugin-cli/references/upstream/mcp-events.LICENSE +216 -0
  46. package/dist/skills/doubao-plugin-cli/references/upstream/mcp-events.md +1231 -0
  47. package/dist/skills/doubao-plugin-cli/references/upstream/standard-webhooks.LICENSE +201 -0
  48. package/dist/skills/doubao-plugin-cli/references/upstream/standard-webhooks.md +349 -0
  49. package/dist/templates/standard/AGENTS.md +1 -1
  50. package/dist/templates/workbench/README.md.template +9 -0
  51. package/dist/templates/workbench/com.doubao/workbench/manifest.json +10 -0
  52. package/dist/uninstall.js +1 -1
  53. package/dist/versions~1.js +1 -1
  54. package/dist/web/index.html +1 -0
  55. package/dist/web/sandbox-proxy.html +101 -0
  56. package/dist/web/static/css/index.b3102f16b9.css +1 -0
  57. package/dist/web/static/js/155.747f5232dc.js +69 -0
  58. package/dist/web/static/js/async/970.86106314b5.js +1 -0
  59. package/dist/web/static/js/index.c1186260b9.js +4 -0
  60. package/dist/web/static/js/lib-react.00514652bf.js +2 -0
  61. package/dist/web/static/js/lib-react.00514652bf.js.LICENSE.txt +39 -0
  62. package/dist/workbench-search.js +1 -0
  63. package/dist/xdg-open +1267 -0
  64. package/package.json +14 -15
  65. package/dist/21.js +0 -101
  66. package/dist/schema.js +0 -1
  67. package/dist/skills/doubao-plugin-cli/references/cli-connectors.md +0 -29
  68. package/dist/skills/doubao-plugin-cli/references/development.md +0 -29
  69. package/dist/skills/doubao-plugin-cli/references/mcp-apps.md +0 -40
  70. package/dist/skills/doubao-plugin-cli/references/mcp-auth.md +0 -23
  71. package/dist/skills/doubao-plugin-cli/references/project-config.md +0 -139
  72. package/dist/skills/doubao-plugin-cli/references/upload.md +0 -77
  73. /package/dist/{21.js.LICENSE.txt → 691.js.LICENSE.txt} +0 -0
package/dist/index.d.ts CHANGED
@@ -92,6 +92,860 @@ export declare type ExcludeHook = (ctx: {
92
92
  project: PluginProject;
93
93
  }, purpose: PackagePurpose) => Awaitable<readonly string[]>;
94
94
 
95
+ declare namespace flow_open_platform_ability {
96
+ /** 子元素填写内容。ModuleID 必填,类型化内容必须与包解析出的模块类型一致。 */
97
+ interface AbilityModuleInput {
98
+ module_id?: string;
99
+ /** 2、3、4 曾用于 EvaluationURL、ExamplePrompt、TestAccount,不复用。 */
100
+ skill?: flow_open_platform_ability.SkillModuleInput;
101
+ mcp?: flow_open_platform_ability.MCPModuleInput;
102
+ mcp_app?: flow_open_platform_ability.MCPAppModuleInput;
103
+ cli?: flow_open_platform_ability.CLIModuleInput;
104
+ /** Type=MINI_APP,应用插件 */
105
+ mini_app?: flow_open_platform_ability.MiniAppModuleInput;
106
+ }
107
+ /** CLI 子元素填写内容。 */
108
+ interface CLIModuleInput {
109
+ instruction_document_url?: string;
110
+ }
111
+ interface GetAbilitySourceRequest {
112
+ ability_id?: string;
113
+ draft_id?: string;
114
+ /** 版本实体 ID */
115
+ version_id?: string;
116
+ }
117
+ interface GetAbilitySourceResponse {
118
+ PackageContent?: Blob;
119
+ code?: number;
120
+ msg?: string;
121
+ message?: string;
122
+ error?: flowpc_common_agw.Error;
123
+ http_status_code?: number;
124
+ }
125
+ interface GetAbilityVersionBuildStatusData {
126
+ /** 下游状态缺失时不返回,不能据此判定产物就绪 */
127
+ artifact_status?: string;
128
+ /** 下游返回的构建错误信息 */
129
+ artifact_build_error_info?: flow_open_platform_model.ArtifactBuildErrorInfo;
130
+ }
131
+ interface ListAbilityCategoriesData {
132
+ items?: Array<flow_open_platform_model.AbilityCategory>;
133
+ }
134
+ interface ListAbilityVersionsData {
135
+ items?: Array<flow_open_platform_model.AbilityVersionSummary>;
136
+ page?: flow_open_platform_common.PageResponse;
137
+ }
138
+ /** MCP Apps 子元素填写内容。 */
139
+ interface MCPAppModuleInput {
140
+ mcp?: flow_open_platform_ability.MCPModuleInput;
141
+ }
142
+ /** MCP 子元素填写内容。 */
143
+ interface MCPModuleInput {
144
+ /** 按鉴权方式填写测试账号或测试 Key */
145
+ test_credential?: string;
146
+ }
147
+ /** 小程序子元素填写内容。展示信息来自插件包,应用凭证通过专用接口读取,均不可填写。 */
148
+ interface MiniAppModuleInput {
149
+ evaluation_report_url?: string;
150
+ /** 与 Skill 一致,提审时要求 5 至 10 条非空内容 */
151
+ example_prompts?: Array<string>;
152
+ }
153
+ /** Skill 子元素填写内容。 */
154
+ interface SkillModuleInput {
155
+ evaluation_report_url?: string;
156
+ /** 提审时要求 5 至 10 条非空内容 */
157
+ example_prompts?: Array<string>;
158
+ }
159
+ }
160
+
161
+ declare namespace flow_open_platform_common {
162
+ /** 分页响应 */
163
+ interface PageResponse {
164
+ next_page_token?: string;
165
+ }
166
+ }
167
+
168
+ declare namespace flow_open_platform_devtool {
169
+ enum DevtoolPluginVisibilityType {
170
+ /** 仅本人 */
171
+ SELF = 1,
172
+ /** 全租户 */
173
+ TENANT = 2
174
+ }
175
+ enum WorkbenchReferenceSource {
176
+ Official = 1,
177
+ Store = 2,
178
+ Enterprise = 3,
179
+ Personal = 4
180
+ }
181
+ enum WorkbenchReferenceType {
182
+ Skill = 1,
183
+ /** 包括原 resource_type=4(Plugin)及 resource_type=3(SkillPackage)。 */
184
+ Plugin = 2
185
+ }
186
+ /** 为含 MINI_APP 的既有 PLUGIN 版本生成二维码预览入口,支持 TEST / RELEASE。
187
+ 用户和业务/租户上下文从可信登录态取得,不接受客户端指定下游版本。
188
+ 不创建或构建资源,不执行安装,不修改正式发布状态。
189
+ optional 是协议兼容修饰;业务必填、权限及版本状态由服务端校验。
190
+ PreviewURL 为二维码编码内容,由前端或 CLI 绘制;不承诺作为 PC 网页链接使用。 */
191
+ interface AbilityPreview {
192
+ /** 1、3 曾用于 VersionID、ExpiresAtMS,不复用。
193
+ doubaoapp://debug?short_token=...;短 Token 用于还原原始 debugInfo 链接,完整 URL 禁止写普通日志 */
194
+ preview_url?: string;
195
+ }
196
+ interface CreateAbilityDevelopmentPreviewData {
197
+ preview?: flow_open_platform_devtool.AbilityPreview;
198
+ /** 预览链接过期时间,Unix 毫秒 */
199
+ expires_at_ms?: Int64;
200
+ /** 插件展示名称 */
201
+ display_name?: string;
202
+ /** 测试版本号 */
203
+ test_version?: string;
204
+ }
205
+ interface CreateAbilityDevelopmentPreviewRequest {
206
+ /** 必填,版本实体 ID;不接受草稿 ID、语义版本号或 latest */
207
+ version_id?: string;
208
+ }
209
+ interface CreateAbilityDevelopmentPreviewResponse {
210
+ data?: flow_open_platform_devtool.CreateAbilityDevelopmentPreviewData;
211
+ code?: number;
212
+ msg?: string;
213
+ message?: string;
214
+ error?: flowpc_common_agw.Error;
215
+ http_status_code?: number;
216
+ }
217
+ interface DevtoolCreatePluginDevelopmentPreviewRequest {
218
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
219
+ name?: string;
220
+ /** 业务必填,三段式版本号 */
221
+ version?: string;
222
+ /** 开放平台能力 ID;与 Name 二选一 */
223
+ ability_id?: string;
224
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
225
+ publication_type?: string;
226
+ }
227
+ interface DevtoolCreatePluginDevelopmentPreviewResponse {
228
+ data?: flow_open_platform_devtool.CreateAbilityDevelopmentPreviewData;
229
+ code?: number;
230
+ msg?: string;
231
+ message?: string;
232
+ error?: flowpc_common_agw.Error;
233
+ http_status_code?: number;
234
+ }
235
+ interface DevtoolCreatePluginPackageUploadData {
236
+ package_id?: string;
237
+ }
238
+ interface DevtoolCreatePluginPackageUploadRequest {
239
+ file_name?: string;
240
+ PackageContent?: Blob;
241
+ }
242
+ interface DevtoolCreatePluginPackageUploadResponse {
243
+ data?: flow_open_platform_devtool.DevtoolCreatePluginPackageUploadData;
244
+ code?: number;
245
+ msg?: string;
246
+ message?: string;
247
+ error?: flowpc_common_agw.Error;
248
+ http_status_code?: number;
249
+ }
250
+ interface DevtoolCreateWorkbenchPackageUploadData {
251
+ package_id?: string;
252
+ }
253
+ interface DevtoolCreateWorkbenchPackageUploadRequest {
254
+ file_name?: string;
255
+ PackageContent?: Blob;
256
+ }
257
+ interface DevtoolCreateWorkbenchPackageUploadResponse {
258
+ data?: flow_open_platform_devtool.DevtoolCreateWorkbenchPackageUploadData;
259
+ code?: number;
260
+ msg?: string;
261
+ message?: string;
262
+ error?: flowpc_common_agw.Error;
263
+ http_status_code?: number;
264
+ }
265
+ interface DevtoolGetPluginDraftData {
266
+ draft?: flow_open_platform_devtool.PluginDraft;
267
+ }
268
+ interface DevtoolGetPluginDraftRequest {
269
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
270
+ name?: string;
271
+ /** 开放平台能力 ID;与 Name 二选一 */
272
+ ability_id?: string;
273
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
274
+ publication_type?: string;
275
+ }
276
+ interface DevtoolGetPluginDraftResponse {
277
+ data?: flow_open_platform_devtool.DevtoolGetPluginDraftData;
278
+ code?: number;
279
+ msg?: string;
280
+ message?: string;
281
+ error?: flowpc_common_agw.Error;
282
+ http_status_code?: number;
283
+ }
284
+ interface DevtoolGetPluginMiniAppBaseInfoData {
285
+ mini_app_base_info?: flow_open_platform_model.MiniAppBaseInfo;
286
+ }
287
+ interface DevtoolGetPluginMiniAppBaseInfoRequest {
288
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
289
+ name?: string;
290
+ /** 开放平台能力 ID;与 Name 二选一 */
291
+ ability_id?: string;
292
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
293
+ publication_type?: string;
294
+ }
295
+ interface DevtoolGetPluginMiniAppBaseInfoResponse {
296
+ data?: flow_open_platform_devtool.DevtoolGetPluginMiniAppBaseInfoData;
297
+ code?: number;
298
+ msg?: string;
299
+ message?: string;
300
+ error?: flowpc_common_agw.Error;
301
+ http_status_code?: number;
302
+ }
303
+ /** 保持原响应 Data 的字段编号和类型兼容;仅 Devtool 增加审批记录。 */
304
+ interface DevtoolGetPluginVersionApprovalData {
305
+ /** 1、2 为历史字段,保留编号不复用。
306
+ 兼容原字段,与 Approval.Reply 一致 */
307
+ improvement_reason?: string;
308
+ approval?: flow_open_platform_devtool.PluginVersionApproval;
309
+ }
310
+ interface DevtoolGetPluginVersionApprovalRequest {
311
+ /** 业务必填 */
312
+ approval_id?: string;
313
+ /** 默认 PUBLIC,兼容既有 CLI;企业审批传 ENTERPRISE */
314
+ publication_type?: string;
315
+ }
316
+ interface DevtoolGetPluginVersionApprovalResponse {
317
+ data?: flow_open_platform_devtool.DevtoolGetPluginVersionApprovalData;
318
+ code?: number;
319
+ msg?: string;
320
+ message?: string;
321
+ error?: flowpc_common_agw.Error;
322
+ http_status_code?: number;
323
+ }
324
+ interface DevtoolGetPluginVersionBuildStatusRequest {
325
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
326
+ name?: string;
327
+ /** 业务必填,三段式版本号 */
328
+ version?: string;
329
+ /** 开放平台能力 ID;与 Name 二选一 */
330
+ ability_id?: string;
331
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
332
+ publication_type?: string;
333
+ }
334
+ interface DevtoolGetPluginVersionBuildStatusResponse {
335
+ data?: flow_open_platform_ability.GetAbilityVersionBuildStatusData;
336
+ code?: number;
337
+ msg?: string;
338
+ message?: string;
339
+ error?: flowpc_common_agw.Error;
340
+ http_status_code?: number;
341
+ }
342
+ interface DevtoolGetWorkbenchDraftRequest {
343
+ name?: string;
344
+ ability_id?: string;
345
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
346
+ publication_type?: string;
347
+ }
348
+ interface DevtoolGetWorkbenchVersionApprovalRequest {
349
+ /** 业务必填 */
350
+ approval_id?: string;
351
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
352
+ publication_type?: string;
353
+ }
354
+ interface DevtoolListPluginCategoriesRequest {
355
+ publication_type?: string;
356
+ }
357
+ interface DevtoolListPluginCategoriesResponse {
358
+ data?: flow_open_platform_ability.ListAbilityCategoriesData;
359
+ code?: number;
360
+ msg?: string;
361
+ message?: string;
362
+ error?: flowpc_common_agw.Error;
363
+ http_status_code?: number;
364
+ }
365
+ interface DevtoolListPluginVersionsRequest {
366
+ page_token?: string;
367
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
368
+ name?: string;
369
+ /** 1–50,未传默认 20 */
370
+ page_size?: number;
371
+ /** 开放平台能力 ID;与 Name 二选一 */
372
+ ability_id?: string;
373
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
374
+ publication_type?: string;
375
+ }
376
+ interface DevtoolListPluginVersionsResponse {
377
+ data?: flow_open_platform_ability.ListAbilityVersionsData;
378
+ code?: number;
379
+ msg?: string;
380
+ message?: string;
381
+ error?: flowpc_common_agw.Error;
382
+ http_status_code?: number;
383
+ }
384
+ interface DevtoolListWorkbenchVersionsRequest {
385
+ page_token?: string;
386
+ name?: string;
387
+ /** 1–50,未传默认 20 */
388
+ page_size?: number;
389
+ ability_id?: string;
390
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
391
+ publication_type?: string;
392
+ }
393
+ interface DevtoolListWorkbenchVersionsResponse {
394
+ data?: flow_open_platform_ability.ListAbilityVersionsData;
395
+ code?: number;
396
+ msg?: string;
397
+ message?: string;
398
+ error?: flowpc_common_agw.Error;
399
+ http_status_code?: number;
400
+ }
401
+ interface DevtoolOperatePluginToUserStoreData {}
402
+ interface DevtoolOperatePluginToUserStoreRequest {
403
+ /** 安装必填;卸载时可用原始插件 Name 替代 */
404
+ package_id?: string;
405
+ /** 业务必填,仅支持 Install / Uninstall */
406
+ action?: string;
407
+ /** 仅卸载使用;原始包的 manifest.name,非生成的测试插件名称 */
408
+ name?: string;
409
+ }
410
+ interface DevtoolOperatePluginToUserStoreResponse {
411
+ data?: flow_open_platform_devtool.DevtoolOperatePluginToUserStoreData;
412
+ code?: number;
413
+ msg?: string;
414
+ message?: string;
415
+ error?: flowpc_common_agw.Error;
416
+ http_status_code?: number;
417
+ }
418
+ interface DevtoolOperateWorkbenchToUserStoreData {}
419
+ interface DevtoolOperateWorkbenchToUserStoreRequest {
420
+ /** Install 必填;Uninstall 与 Name 二选一 */
421
+ package_id?: string;
422
+ /** 业务必填,仅支持 Install / Uninstall */
423
+ action?: string;
424
+ /** 仅用于卸载,使用原始包名 */
425
+ name?: string;
426
+ }
427
+ interface DevtoolOperateWorkbenchToUserStoreResponse {
428
+ data?: flow_open_platform_devtool.DevtoolOperateWorkbenchToUserStoreData;
429
+ code?: number;
430
+ msg?: string;
431
+ message?: string;
432
+ error?: flowpc_common_agw.Error;
433
+ http_status_code?: number;
434
+ }
435
+ interface DevtoolPluginVisibilityConfig {
436
+ /** 传入配置时必填 */
437
+ type?: flow_open_platform_devtool.DevtoolPluginVisibilityType;
438
+ }
439
+ interface DevtoolSavePluginVersionData {
440
+ /** 实际保存的三段式版本号,供后续查询、预览及送审使用 */
441
+ version?: string;
442
+ }
443
+ interface DevtoolSavePluginVersionRequest {
444
+ /** 1–64 字节 */
445
+ request_id?: string;
446
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
447
+ name?: string;
448
+ /** 开放平台能力 ID;与 Name 二选一 */
449
+ ability_id?: string;
450
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
451
+ publication_type?: string;
452
+ }
453
+ interface DevtoolSavePluginVersionResponse {
454
+ data?: flow_open_platform_devtool.DevtoolSavePluginVersionData;
455
+ code?: number;
456
+ msg?: string;
457
+ message?: string;
458
+ error?: flowpc_common_agw.Error;
459
+ http_status_code?: number;
460
+ }
461
+ interface DevtoolSaveWorkbenchVersionData {
462
+ /** 实际保存的三段式版本号 */
463
+ version?: string;
464
+ }
465
+ interface DevtoolSaveWorkbenchVersionRequest {
466
+ /** 1–64 字节 */
467
+ request_id?: string;
468
+ name?: string;
469
+ ability_id?: string;
470
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
471
+ publication_type?: string;
472
+ }
473
+ interface DevtoolSaveWorkbenchVersionResponse {
474
+ data?: flow_open_platform_devtool.DevtoolSaveWorkbenchVersionData;
475
+ code?: number;
476
+ msg?: string;
477
+ message?: string;
478
+ error?: flowpc_common_agw.Error;
479
+ http_status_code?: number;
480
+ }
481
+ interface DevtoolSearchWorkbenchResourcesRequest {
482
+ keyword?: string;
483
+ sources?: Array<flow_open_platform_devtool.WorkbenchReferenceSource>;
484
+ }
485
+ interface DevtoolSearchWorkbenchResourcesResponse {
486
+ data?: flow_open_platform_devtool.SearchWorkbenchResourcesData;
487
+ code?: number;
488
+ msg?: string;
489
+ message?: string;
490
+ error?: flowpc_common_agw.Error;
491
+ http_status_code?: number;
492
+ }
493
+ interface DevtoolSubmitPluginVersionApprovalData {
494
+ approval_id?: string;
495
+ }
496
+ interface DevtoolSubmitPluginVersionApprovalRequest {
497
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
498
+ name?: string;
499
+ /** 业务必填,三段式版本号 */
500
+ version?: string;
501
+ /** 开放平台能力 ID;与 Name 二选一 */
502
+ ability_id?: string;
503
+ /** 按 Name 默认 PUBLIC,企业传 ENTERPRISE。按 AbilityID 沿用主体类型,显式值须一致。 */
504
+ publication_type?: string;
505
+ }
506
+ interface DevtoolSubmitPluginVersionApprovalResponse {
507
+ data?: flow_open_platform_devtool.DevtoolSubmitPluginVersionApprovalData;
508
+ code?: number;
509
+ msg?: string;
510
+ message?: string;
511
+ error?: flowpc_common_agw.Error;
512
+ http_status_code?: number;
513
+ }
514
+ interface DevtoolSubmitWorkbenchVersionApprovalData {
515
+ approval_id?: string;
516
+ }
517
+ interface DevtoolSubmitWorkbenchVersionApprovalRequest {
518
+ name?: string;
519
+ /** 业务必填,三段式版本号 */
520
+ version?: string;
521
+ ability_id?: string;
522
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
523
+ publication_type?: string;
524
+ }
525
+ interface DevtoolSubmitWorkbenchVersionApprovalResponse {
526
+ data?: flow_open_platform_devtool.DevtoolSubmitWorkbenchVersionApprovalData;
527
+ code?: number;
528
+ msg?: string;
529
+ message?: string;
530
+ error?: flowpc_common_agw.Error;
531
+ http_status_code?: number;
532
+ }
533
+ interface DevtoolUpsertPluginDraftData {
534
+ draft?: flow_open_platform_devtool.PluginDraft;
535
+ }
536
+ interface DevtoolUpsertPluginDraftRequest {
537
+ /** 草稿保存不提供 RequestID 幂等重放。 */
538
+ package_id?: string;
539
+ /** 最多两个 */
540
+ category_ids?: Array<string>;
541
+ modules?: Array<flow_open_platform_ability.AbilityModuleInput>;
542
+ /** 空字符串表示清空 */
543
+ additional_info?: string;
544
+ /** 5 曾用于 Version,不复用。
545
+ 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
546
+ name?: string;
547
+ /** 开放平台能力 ID;与 Name 二选一 */
548
+ ability_id?: string;
549
+ /** 新建或按包名定位时,省略按 PUBLIC 处理。企业插件须传 ENTERPRISE,与本次包校验使用的发布类型一致。
550
+ 按 AbilityID 更新时可省略,沿用主体的发布类型。显式传入的类型必须与主体一致。 */
551
+ publication_type?: string;
552
+ /** 仅企业插件可传。省略时沿用草稿范围,首次建草稿默认仅本人。显式选择整体替换。 */
553
+ visibility_config?: flow_open_platform_devtool.DevtoolPluginVisibilityConfig;
554
+ }
555
+ interface DevtoolUpsertPluginDraftResponse {
556
+ data?: flow_open_platform_devtool.DevtoolUpsertPluginDraftData;
557
+ code?: number;
558
+ msg?: string;
559
+ message?: string;
560
+ error?: flowpc_common_agw.Error;
561
+ http_status_code?: number;
562
+ }
563
+ interface DevtoolUpsertWorkbenchDraftRequest {
564
+ package_id?: string;
565
+ /** 空字符串清空 */
566
+ additional_info?: string;
567
+ name?: string;
568
+ ability_id?: string;
569
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
570
+ publication_type?: string;
571
+ /** 仅用于企业发布;省略时沿用草稿范围,首次默认仅本人;显式选择整体替换 */
572
+ visibility_config?: flow_open_platform_devtool.DevtoolPluginVisibilityConfig;
573
+ /** 补填内联 MCP 的测试凭据 */
574
+ modules?: Array<flow_open_platform_devtool.DevtoolWorkbenchModuleInput>;
575
+ }
576
+ interface DevtoolValidatePluginMaterialData {
577
+ passed?: boolean;
578
+ issues?: Array<flow_open_platform_model.AbilityValidationIssue>;
579
+ }
580
+ interface DevtoolValidatePluginMaterialRequest {
581
+ package_id?: string;
582
+ /** PACKAGE_PARSE 仅解析包;省略时执行完整检测,含小程序时执行 APP_VALIDATE */
583
+ validate_list?: Array<string>;
584
+ /** 仅检测指定 MCP 模块的连通性 */
585
+ module_id?: string;
586
+ /** 按发布类型定位;与 AbilityID 二选一;包内 manifest.name,非展示名称 */
587
+ name?: string;
588
+ /** 指定已创建的版本;省略时检测当前草稿 */
589
+ version?: string;
590
+ /** 开放平台能力 ID;与 Name 二选一 */
591
+ ability_id?: string;
592
+ publication_type?: string;
593
+ }
594
+ interface DevtoolValidatePluginMaterialResponse {
595
+ data?: flow_open_platform_devtool.DevtoolValidatePluginMaterialData;
596
+ code?: number;
597
+ msg?: string;
598
+ message?: string;
599
+ error?: flowpc_common_agw.Error;
600
+ http_status_code?: number;
601
+ }
602
+ interface DevtoolValidateWorkbenchMaterialData {
603
+ passed?: boolean;
604
+ issues?: Array<flow_open_platform_model.AbilityValidationIssue>;
605
+ }
606
+ interface DevtoolValidateWorkbenchMaterialRequest {
607
+ package_id?: string;
608
+ name?: string;
609
+ ability_id?: string;
610
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
611
+ publication_type?: string;
612
+ /** PACKAGE_PARSE 仅用于上传包;MCP_PROBE 检测连通性。省略时执行目标支持的两项检测。 */
613
+ validate_list?: Array<string>;
614
+ /** 仅 MCP_PROBE 可传;省略时检测全部内联 MCP */
615
+ module_id?: string;
616
+ /** 可选,已保存的三段式版本号 */
617
+ version?: string;
618
+ }
619
+ interface DevtoolValidateWorkbenchMaterialResponse {
620
+ data?: flow_open_platform_devtool.DevtoolValidateWorkbenchMaterialData;
621
+ code?: number;
622
+ msg?: string;
623
+ message?: string;
624
+ error?: flowpc_common_agw.Error;
625
+ http_status_code?: number;
626
+ }
627
+ interface DevtoolWithdrawPluginVersionApprovalData {
628
+ approval?: flow_open_platform_devtool.PluginVersionApproval;
629
+ }
630
+ interface DevtoolWithdrawPluginVersionApprovalRequest {
631
+ /** 业务必填 */
632
+ approval_id?: string;
633
+ /** 默认 PUBLIC,兼容既有 CLI;企业审批传 ENTERPRISE */
634
+ publication_type?: string;
635
+ }
636
+ interface DevtoolWithdrawPluginVersionApprovalResponse {
637
+ data?: flow_open_platform_devtool.DevtoolWithdrawPluginVersionApprovalData;
638
+ code?: number;
639
+ msg?: string;
640
+ message?: string;
641
+ error?: flowpc_common_agw.Error;
642
+ http_status_code?: number;
643
+ }
644
+ interface DevtoolWithdrawWorkbenchVersionApprovalRequest {
645
+ /** 业务必填 */
646
+ approval_id?: string;
647
+ /** 业务必填,PUBLIC 或 ENTERPRISE */
648
+ publication_type?: string;
649
+ }
650
+ interface DevtoolWorkbenchDraftData {
651
+ draft?: flow_open_platform_devtool.WorkbenchDraft;
652
+ }
653
+ interface DevtoolWorkbenchDraftResponse {
654
+ data?: flow_open_platform_devtool.DevtoolWorkbenchDraftData;
655
+ code?: number;
656
+ msg?: string;
657
+ message?: string;
658
+ error?: flowpc_common_agw.Error;
659
+ http_status_code?: number;
660
+ }
661
+ interface DevtoolWorkbenchModuleInput {
662
+ /** 业务必填,mcp:<server> */
663
+ module_id?: string;
664
+ /** 内联 MCP 的测试凭据 */
665
+ mcp?: flow_open_platform_ability.MCPModuleInput;
666
+ }
667
+ interface DevtoolWorkbenchVersionApprovalData {
668
+ approval?: flow_open_platform_devtool.PluginVersionApproval;
669
+ }
670
+ interface DevtoolWorkbenchVersionApprovalResponse {
671
+ data?: flow_open_platform_devtool.DevtoolWorkbenchVersionApprovalData;
672
+ code?: number;
673
+ msg?: string;
674
+ message?: string;
675
+ error?: flowpc_common_agw.Error;
676
+ http_status_code?: number;
677
+ }
678
+ /** 插件草稿视图;AbilityID 用于后续操作,Name 为当前包内 manifest.name。 */
679
+ interface PluginDraft {
680
+ version?: string;
681
+ package?: flow_open_platform_model.AbilityPackage;
682
+ form?: flow_open_platform_model.AbilityRevisionForm;
683
+ modules?: Array<flow_open_platform_model.AbilityModule>;
684
+ created_at_ms?: Int64;
685
+ updated_at_ms?: Int64;
686
+ /** ActionHub 插件 name(包内 manifest.name),非展示名称 */
687
+ name?: string;
688
+ /** 开放平台能力 ID;创建成功后 CLI 可保存项目关联 */
689
+ ability_id?: string;
690
+ publication_type?: string;
691
+ visibility_config?: flow_open_platform_model.VisibilityConfig;
692
+ }
693
+ /** Plugin 和 Workbench Devtool 共用的版本审批记录。具体主体类型由接口决定。 */
694
+ interface PluginVersionApproval {
695
+ approval_id?: string;
696
+ /** major.minor.patch,例如 1.2.3 */
697
+ sem_ver?: string;
698
+ status?: string;
699
+ reply?: string;
700
+ submitted_by?: string;
701
+ submitted_at_ms?: Int64;
702
+ /** 未处理时不返回;通过、拒绝或撤回时记录实际处理人 */
703
+ handled_by?: operation.OperationUser;
704
+ handled_at_ms?: Int64;
705
+ }
706
+ interface SearchWorkbenchResourcesData {
707
+ /** 最多返回 100 条匹配结果 */
708
+ items?: Array<flow_open_platform_devtool.WorkbenchCreationResource>;
709
+ }
710
+ /** 工作台创建候选资源;使用工作台引用枚举,保持下游数值。 */
711
+ interface WorkbenchCreationIcon {
712
+ uri?: string;
713
+ url?: string;
714
+ }
715
+ interface WorkbenchCreationResource {
716
+ resource_id?: string;
717
+ resource_type?: flow_open_platform_devtool.WorkbenchReferenceType;
718
+ source?: flow_open_platform_devtool.WorkbenchReferenceSource;
719
+ name?: string;
720
+ icon?: flow_open_platform_devtool.WorkbenchCreationIcon;
721
+ }
722
+ interface WorkbenchDraft {
723
+ version?: string;
724
+ package?: flow_open_platform_model.AbilityPackage;
725
+ form?: flow_open_platform_model.AbilityRevisionForm;
726
+ /** 返回工作台模块和包内 MCP 模块 */
727
+ modules?: Array<flow_open_platform_model.AbilityModule>;
728
+ created_at_ms?: Int64;
729
+ updated_at_ms?: Int64;
730
+ /** 包名 */
731
+ name?: string;
732
+ /** CLI 可保存至项目配置,供后续操作使用 */
733
+ ability_id?: string;
734
+ publication_type?: string;
735
+ visibility_config?: flow_open_platform_model.VisibilityConfig;
736
+ }
737
+ }
738
+
739
+ declare namespace flow_open_platform_model {
740
+ /** 关联资源自身的来源,不是工作台的管理来源;可引用范围仍由原有业务规则校验。 */
741
+ enum WorkbenchResourceSource {
742
+ Official = 1,
743
+ Store = 2,
744
+ Enterprise = 3,
745
+ Personal = 4
746
+ }
747
+ /** 工作台关联资源的实际类型,与 ActionHub/Core 引用类型对齐。
748
+ 不使用创建候选接口的 WorkbenchReferenceType(Plugin=2),避免丢失 Plugin/SkillPackage 身份。 */
749
+ enum WorkbenchResourceType {
750
+ Skill = 1,
751
+ /** 历史技能包,摘要统计时计入关联插件;References按独立类型截断,引用中保留原类型 */
752
+ SkillPackage = 3,
753
+ Plugin = 4
754
+ }
755
+ /** 能力审批摘要。 */
756
+ interface AbilityApproval {
757
+ approval_id?: string;
758
+ status?: string;
759
+ reply?: string;
760
+ }
761
+ interface AbilityCategory {
762
+ /** ActionHub 分类 ID */
763
+ category_id?: string;
764
+ name?: string;
765
+ }
766
+ /** 包内合规声明,仅供回显;修改声明须重新上传包,不接受表单覆盖。 */
767
+ interface AbilityCompliance {
768
+ /** 隐私政策链接;商店提审时必填,缺失不阻断上传、解析、调试或创建版本 */
769
+ privacy_url?: string;
770
+ /** 仅接受字符串 "true" / "false";包内缺失或为空时标准化为 "false" */
771
+ is_minor_included?: string;
772
+ /** 特殊行业资质证明链接,选填 */
773
+ special_license_url?: string;
774
+ }
775
+ /** 能力包中的子元素。 */
776
+ interface AbilityModule {
777
+ /** 包内唯一,用于匹配本次解析结果 */
778
+ module_id?: string;
779
+ type?: string;
780
+ name?: string;
781
+ icon_url?: string;
782
+ description?: string;
783
+ /** Type=SKILL */
784
+ skill?: flow_open_platform_model.SkillModule;
785
+ /** Type=MCP */
786
+ mcp?: flow_open_platform_model.MCPModule;
787
+ /** 历史审批快照;新填写内容使用 Skill.EvaluationReportURL */
788
+ evaluation_url?: string;
789
+ /** 历史审批快照;新填写内容使用 Skill.ExamplePrompts */
790
+ example_prompt?: string;
791
+ /** Type=MCP_APP */
792
+ mcp_app?: flow_open_platform_model.MCPAppModule;
793
+ /** Type=CLI */
794
+ cli?: flow_open_platform_model.CLIModule;
795
+ /** Type=MINI_APP */
796
+ mini_app?: flow_open_platform_model.MiniAppModule;
797
+ /** 管理详情:AH 子能力资源 ID */
798
+ resource_id?: string;
799
+ /** 管理详情:父插件固定绑定的子能力版本 */
800
+ version?: string;
801
+ /** 已提供的运行环境;未知时省略,不推断 */
802
+ runtime_types?: Array<string>;
803
+ workbench?: flow_open_platform_model.WorkbenchModule;
804
+ }
805
+ /** 上传包元数据。PackageID 是不透明标识,不暴露底层存储 Key。 */
806
+ interface AbilityPackage {
807
+ package_id?: string;
808
+ file_name?: string;
809
+ size_bytes?: string;
810
+ }
811
+ /** 从包解析的展示信息;分类和补充说明允许开发者单独修改。 */
812
+ interface AbilityRevisionForm {
813
+ display_name?: string;
814
+ description?: string;
815
+ detailed_description?: string;
816
+ /** 从包内图片解析生成 */
817
+ icon_url?: string;
818
+ /** 历史审批快照;新填写内容使用 Categories */
819
+ category_id?: string;
820
+ /** 使用场景、调用限制等补充信息 */
821
+ additional_info?: string;
822
+ categories?: Array<flow_open_platform_model.AbilityCategory>;
823
+ /** 插件取 plugin.json.extensions.com.doubao,独立技能取 SKILL.md.metadata;审批快照冻结本轮声明 */
824
+ compliance?: flow_open_platform_model.AbilityCompliance;
825
+ }
826
+ /** 物料校验问题。 */
827
+ interface AbilityValidationIssue {
828
+ /** 稳定错误码 */
829
+ code?: string;
830
+ /** 可展示消息 */
831
+ message?: string;
832
+ /** 包内相对路径 */
833
+ path?: string;
834
+ /** 文件内字段路径,如 metadata.version */
835
+ field_path?: string;
836
+ }
837
+ /** 开发者控制台中的版本列表项。VersionID 和 DraftID 二选一。 */
838
+ interface AbilityVersionSummary {
839
+ version_id?: string;
840
+ draft_id?: string;
841
+ version?: string;
842
+ status?: string;
843
+ status_message?: string;
844
+ created_at_ms?: Int64;
845
+ updated_at_ms?: Int64;
846
+ is_online?: boolean;
847
+ current_approval?: flow_open_platform_model.AbilityApproval;
848
+ /** 包含的能力类型,MINI_APP 表示小程序 */
849
+ capability?: Array<string>;
850
+ /** 11 已移除,保留编号不复用。
851
+ 版本最近一次更新人,UserID 为转换后的飞书 ID,user_id_type=feishu_user_id;姓名、头像实时查询 */
852
+ updated_by?: operation.OperationUser;
853
+ }
854
+ /** 对齐小程序平台 ArtifactBuildErrorInfo;错误内容需移除内部日志和敏感信息。 */
855
+ interface ArtifactBuildErrorInfo {
856
+ last_status_before_failed?: string;
857
+ error_code?: string;
858
+ error_info?: string;
859
+ }
860
+ /** CLI 子元素信息。功能说明文档由开发者填写。 */
861
+ interface CLIModule {
862
+ instruction_document_url?: string;
863
+ }
864
+ /** MCP Apps 子元素信息。 */
865
+ interface MCPAppModule {
866
+ mcp?: flow_open_platform_model.MCPModule;
867
+ }
868
+ /** MCP 子元素信息。传输和鉴权方式从包中解析,测试凭据仅返回脱敏摘要。 */
869
+ interface MCPModule {
870
+ transport?: string;
871
+ auth_type?: string;
872
+ has_test_credential?: boolean;
873
+ /** 4 曾用于 TestAccount,不复用。 */
874
+ masked_test_credential?: string;
875
+ }
876
+ /** 小程序基础信息。名称、头像、描述来自插件包;应用凭证仅向具有凭证读取权限的调用方返回。 */
877
+ interface MiniAppBaseInfo {
878
+ /** 小程序应用标识 */
879
+ app_id?: string;
880
+ /** 应用密钥,禁止写普通日志 */
881
+ app_secret?: string;
882
+ /** PluginParsedManifest.Name,只读 */
883
+ name?: string;
884
+ /** PluginParsedManifest.Icon,只读 */
885
+ icon_url?: string;
886
+ /** PluginParsedManifest.Description,只读 */
887
+ description?: string;
888
+ }
889
+ /** 小程序子元素信息,基础凭证按调用方的凭证读取权限返回。 */
890
+ interface MiniAppModule {
891
+ mini_app_base_info?: flow_open_platform_model.MiniAppBaseInfo;
892
+ evaluation_report_url?: string;
893
+ example_prompts?: Array<string>;
894
+ }
895
+ /** Skill 子元素信息。评测报告和示例 Prompt 由开发者填写。 */
896
+ interface SkillModule {
897
+ script_count?: number;
898
+ evaluation_report_url?: string;
899
+ example_prompts?: Array<string>;
900
+ }
901
+ interface VisibilityConfig {
902
+ /** 查询沿用 Aily:0:未指定;1:所有人;2:租户内全员;3:指定对象;4:仅自己。写入仅支持 2、3 */
903
+ type?: number;
904
+ /** 管理员指定范围支持用户、部门、用户组,至少一个对象;全员时为空。用户组保留原 ID,不转换为群聊或展开成员 */
905
+ entities?: Array<flow_open_platform_model.VisibilityEntity>;
906
+ }
907
+ /** 企业范围对象;群聊类型沿用 Aily,不将其映射为部门。 */
908
+ interface VisibilityEntity {
909
+ /** 0:未指定;1:用户;2:部门;3:租户;4:群聊;5:Admin 用户组。管理员范围支持 1、2、5;开发者申请范围沿用原约定 */
910
+ type?: number;
911
+ /** 用户、部门、租户使用原生飞书 ID;群聊原样使用 Aily ChatID,不转为用户 ID 或 open_chat_id */
912
+ entityID?: string;
913
+ }
914
+ interface WorkbenchModule {
915
+ system_remind?: string;
916
+ related_skills?: flow_open_platform_model.WorkbenchReferenceSummary;
917
+ related_plugins?: flow_open_platform_model.WorkbenchReferenceSummary;
918
+ appearance_locations?: Array<string>;
919
+ /** 只读;协议待接入,暂不返回,不写入元信息或审批快照 */
920
+ preview_url?: string;
921
+ }
922
+ /** 工作台关联资源明细。仅有摘要的历史审批快照可返回只含 Name 的展示项。
923
+ 审核取本轮冻结值,管理取 ActionHub 当前生效版本的关联信息;名称、图标缺失时保持缺省。 */
924
+ interface WorkbenchReferenceItem {
925
+ resource_id?: string;
926
+ type?: flow_open_platform_model.WorkbenchResourceType;
927
+ source?: flow_open_platform_model.WorkbenchResourceSource;
928
+ name?: string;
929
+ icon_url?: string;
930
+ }
931
+ interface WorkbenchReferenceSummary {
932
+ /** 该类关联资源实际总数,不受展示截断影响 */
933
+ total?: Int64;
934
+ /** 字段 2 已退役。
935
+ 每组最多 7 项,优先保留名称非空的明细,保留入选项的原始相对顺序 */
936
+ items?: Array<flow_open_platform_model.WorkbenchReferenceItem>;
937
+ }
938
+ }
939
+
940
+ declare namespace flowpc_common_agw {
941
+ /** Deprecated: 新增IDL 改引用上一层目录的 flow_agw/flow_agw_error.thrift */
942
+ interface Error {
943
+ code?: number;
944
+ message?: string;
945
+ locale?: string;
946
+ }
947
+ }
948
+
95
949
  export declare interface InitContext {
96
950
  name: string;
97
951
  directory: string;
@@ -101,14 +955,29 @@ export declare interface InitContext {
101
955
  export declare interface InitOption {
102
956
  flags: string;
103
957
  description: string;
104
- /** Yes/no question asked in interactive init when the option is not on the command line. */
105
- prompt?: string;
958
+ /** Included in the interactive capability selector when available. */
959
+ capability?: boolean | ((ctx: InitContext) => boolean);
960
+ /** Yes/no question asked in interactive init; returning undefined skips the question. */
961
+ prompt?: string | ((ctx: InitContext) => string | undefined);
106
962
  }
107
963
 
964
+ declare type Int64 = string | number;
965
+
108
966
  declare type Logger = Record<'info' | 'success' | 'warn' | 'error', (message: string) => void>;
109
967
 
110
968
  declare type McpServer = Record<string, unknown>;
111
969
 
970
+ declare namespace operation {
971
+ /** 运营平台人员展示信息(操作人或提交人);身份由服务端从可信登录态或已保存的审批记录取得,姓名、头像按需补充查询。 */
972
+ interface OperationUser {
973
+ /** 原始身份 ID,按 UserIDType 解释 */
974
+ user_id?: string;
975
+ user_id_type?: string;
976
+ name?: string;
977
+ avatar_url?: string;
978
+ }
979
+ }
980
+
112
981
  declare interface PackagePlan {
113
982
  version?: string;
114
983
  exclude?: readonly string[];
@@ -156,6 +1025,10 @@ declare const pluginManifestSchema: z.ZodObject<{
156
1025
  $schema: z.ZodOptional<z.ZodString>;
157
1026
  name: z.ZodString;
158
1027
  id: z.ZodOptional<z.ZodString>;
1028
+ publicationType: z.ZodOptional<z.ZodEnum<{
1029
+ PUBLIC: "PUBLIC";
1030
+ ENTERPRISE: "ENTERPRISE";
1031
+ }>>;
159
1032
  displayName: z.ZodOptional<z.ZodString>;
160
1033
  description: z.ZodOptional<z.ZodString>;
161
1034
  extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -163,11 +1036,16 @@ declare const pluginManifestSchema: z.ZodObject<{
163
1036
 
164
1037
  declare class PluginProject {
165
1038
  readonly root: string;
166
- readonly plugin: PluginManifest;
167
1039
  readonly app?: AppProject;
168
1040
  private readonly pluginManifestPath;
1041
+ private manifest;
169
1042
  constructor(cwd?: string);
1043
+ get plugin(): PluginManifest;
1044
+ get hasWorkbench(): boolean;
170
1045
  updatePluginId(id: string): Promise<void>;
1046
+ updateManifest(update: (manifest: PluginManifest) => PluginManifest): Promise<void>;
1047
+ updatePublicationType(publicationType: PublicationType): Promise<void>;
1048
+ assertWorkbenchModules(): void;
171
1049
  pack({ version, exclude }?: PackagePlan): Promise<Blob>;
172
1050
  readSkills(): Skill[];
173
1051
  get mcpServers(): McpServer[];
@@ -175,10 +1053,14 @@ declare class PluginProject {
175
1053
 
176
1054
  export declare type PrepareTemplatesHook = (ctx: InitContext) => Awaitable<readonly string[]>;
177
1055
 
1056
+ declare type ProjectDraft = flow_open_platform_devtool.PluginDraft | flow_open_platform_devtool.WorkbenchDraft;
1057
+
178
1058
  export declare type ProvideSkillsHook = (ctx: {
179
1059
  project: PluginProject;
180
1060
  }) => Awaitable<readonly SkillSource[]>;
181
1061
 
1062
+ declare type PublicationType = 'PUBLIC' | 'ENTERPRISE';
1063
+
182
1064
  export declare interface RegisteredDevTarget {
183
1065
  pluginName: string;
184
1066
  target: DevTarget;
@@ -220,11 +1102,7 @@ export declare interface UploadContext {
220
1102
 
221
1103
  export declare interface UploadDraftResult {
222
1104
  packageId: string;
223
- draft: {
224
- name?: string;
225
- ability_id?: string;
226
- version?: string;
227
- };
1105
+ draft: ProjectDraft;
228
1106
  }
229
1107
 
230
1108
  export declare interface UploadOptions {