@doubao-dev/cli 1.0.0-rc.8 → 1.0.0-rc.9
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 +9 -3
- package/dist/691.js +75 -67
- package/dist/command.js +8 -8
- package/dist/command~2.js +1 -1
- package/dist/command~3.js +2 -1
- package/dist/command~5.js +6 -5
- package/dist/draft.js +2 -2
- package/dist/index.d.ts +268 -20
- package/dist/main.d.ts +268 -20
- package/dist/plugin.js +2 -2
- package/dist/ratatui-ui.js +1 -1
- package/dist/session.js +1 -1
- package/dist/skills/doubao-plugin-cli/SKILL.md +15 -7
- package/dist/skills/doubao-plugin-cli/references/development.md +7 -6
- package/dist/skills/doubao-plugin-cli/references/project-config.md +3 -2
- package/dist/skills/doubao-plugin-cli/references/upload.md +18 -8
- package/dist/skills/doubao-plugin-cli/references/workbench.md +164 -0
- package/dist/templates/standard/AGENTS.md +1 -1
- package/dist/templates/workbench/README.md.template +9 -0
- package/dist/templates/workbench/com.doubao/workbench/manifest.json +10 -0
- package/dist/uninstall.js +1 -1
- package/dist/versions~1.js +1 -1
- package/dist/workbench-search.js +1 -0
- package/package.json +3 -3
package/dist/main.d.ts
CHANGED
|
@@ -170,6 +170,17 @@ declare namespace flow_open_platform_devtool {
|
|
|
170
170
|
/** 全租户 */
|
|
171
171
|
TENANT = 2
|
|
172
172
|
}
|
|
173
|
+
enum WorkbenchReferenceSource {
|
|
174
|
+
Official = 1,
|
|
175
|
+
Store = 2,
|
|
176
|
+
Enterprise = 3,
|
|
177
|
+
Personal = 4
|
|
178
|
+
}
|
|
179
|
+
enum WorkbenchReferenceType {
|
|
180
|
+
Skill = 1,
|
|
181
|
+
/** 包括原 resource_type=4(Plugin)及 resource_type=3(SkillPackage)。 */
|
|
182
|
+
Plugin = 2
|
|
183
|
+
}
|
|
173
184
|
/** 为含 MINI_APP 的既有 PLUGIN 版本生成二维码预览入口,支持 TEST / RELEASE。
|
|
174
185
|
用户和业务/租户上下文从可信登录态取得,不接受客户端指定下游版本。
|
|
175
186
|
不创建或构建资源,不执行安装,不修改正式发布状态。
|
|
@@ -234,22 +245,15 @@ declare namespace flow_open_platform_devtool {
|
|
|
234
245
|
error?: flowpc_common_agw.Error;
|
|
235
246
|
http_status_code?: number;
|
|
236
247
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
is_enterprise_publication_access?: boolean;
|
|
247
|
-
/** 当前可信飞书租户是否命中企业自建操作黑名单,与企业账号身份独立;不返回拦截文案 */
|
|
248
|
-
is_enterprise_blocked?: boolean;
|
|
249
|
-
}
|
|
250
|
-
interface DevtoolGetCurrentUserRequest {}
|
|
251
|
-
interface DevtoolGetCurrentUserResponse {
|
|
252
|
-
data?: flow_open_platform_devtool.DevtoolGetCurrentUserData;
|
|
248
|
+
interface DevtoolCreateWorkbenchPackageUploadData {
|
|
249
|
+
package_id?: string;
|
|
250
|
+
}
|
|
251
|
+
interface DevtoolCreateWorkbenchPackageUploadRequest {
|
|
252
|
+
file_name?: string;
|
|
253
|
+
PackageContent?: Blob;
|
|
254
|
+
}
|
|
255
|
+
interface DevtoolCreateWorkbenchPackageUploadResponse {
|
|
256
|
+
data?: flow_open_platform_devtool.DevtoolCreateWorkbenchPackageUploadData;
|
|
253
257
|
code?: number;
|
|
254
258
|
msg?: string;
|
|
255
259
|
message?: string;
|
|
@@ -333,6 +337,18 @@ declare namespace flow_open_platform_devtool {
|
|
|
333
337
|
error?: flowpc_common_agw.Error;
|
|
334
338
|
http_status_code?: number;
|
|
335
339
|
}
|
|
340
|
+
interface DevtoolGetWorkbenchDraftRequest {
|
|
341
|
+
name?: string;
|
|
342
|
+
ability_id?: string;
|
|
343
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
344
|
+
publication_type?: string;
|
|
345
|
+
}
|
|
346
|
+
interface DevtoolGetWorkbenchVersionApprovalRequest {
|
|
347
|
+
/** 业务必填 */
|
|
348
|
+
approval_id?: string;
|
|
349
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
350
|
+
publication_type?: string;
|
|
351
|
+
}
|
|
336
352
|
interface DevtoolListPluginCategoriesRequest {
|
|
337
353
|
publication_type?: string;
|
|
338
354
|
}
|
|
@@ -363,6 +379,23 @@ declare namespace flow_open_platform_devtool {
|
|
|
363
379
|
error?: flowpc_common_agw.Error;
|
|
364
380
|
http_status_code?: number;
|
|
365
381
|
}
|
|
382
|
+
interface DevtoolListWorkbenchVersionsRequest {
|
|
383
|
+
page_token?: string;
|
|
384
|
+
name?: string;
|
|
385
|
+
/** 1–50,未传默认 20 */
|
|
386
|
+
page_size?: number;
|
|
387
|
+
ability_id?: string;
|
|
388
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
389
|
+
publication_type?: string;
|
|
390
|
+
}
|
|
391
|
+
interface DevtoolListWorkbenchVersionsResponse {
|
|
392
|
+
data?: flow_open_platform_ability.ListAbilityVersionsData;
|
|
393
|
+
code?: number;
|
|
394
|
+
msg?: string;
|
|
395
|
+
message?: string;
|
|
396
|
+
error?: flowpc_common_agw.Error;
|
|
397
|
+
http_status_code?: number;
|
|
398
|
+
}
|
|
366
399
|
interface DevtoolOperatePluginToUserStoreData {}
|
|
367
400
|
interface DevtoolOperatePluginToUserStoreRequest {
|
|
368
401
|
/** 安装必填;卸载时可用原始插件 Name 替代 */
|
|
@@ -380,6 +413,23 @@ declare namespace flow_open_platform_devtool {
|
|
|
380
413
|
error?: flowpc_common_agw.Error;
|
|
381
414
|
http_status_code?: number;
|
|
382
415
|
}
|
|
416
|
+
interface DevtoolOperateWorkbenchToUserStoreData {}
|
|
417
|
+
interface DevtoolOperateWorkbenchToUserStoreRequest {
|
|
418
|
+
/** Install 必填;Uninstall 与 Name 二选一 */
|
|
419
|
+
package_id?: string;
|
|
420
|
+
/** 业务必填,仅支持 Install / Uninstall */
|
|
421
|
+
action?: string;
|
|
422
|
+
/** 仅用于卸载,使用原始包名 */
|
|
423
|
+
name?: string;
|
|
424
|
+
}
|
|
425
|
+
interface DevtoolOperateWorkbenchToUserStoreResponse {
|
|
426
|
+
data?: flow_open_platform_devtool.DevtoolOperateWorkbenchToUserStoreData;
|
|
427
|
+
code?: number;
|
|
428
|
+
msg?: string;
|
|
429
|
+
message?: string;
|
|
430
|
+
error?: flowpc_common_agw.Error;
|
|
431
|
+
http_status_code?: number;
|
|
432
|
+
}
|
|
383
433
|
interface DevtoolPluginVisibilityConfig {
|
|
384
434
|
/** 传入配置时必填 */
|
|
385
435
|
type?: flow_open_platform_devtool.DevtoolPluginVisibilityType;
|
|
@@ -406,6 +456,38 @@ declare namespace flow_open_platform_devtool {
|
|
|
406
456
|
error?: flowpc_common_agw.Error;
|
|
407
457
|
http_status_code?: number;
|
|
408
458
|
}
|
|
459
|
+
interface DevtoolSaveWorkbenchVersionData {
|
|
460
|
+
/** 实际保存的三段式版本号 */
|
|
461
|
+
version?: string;
|
|
462
|
+
}
|
|
463
|
+
interface DevtoolSaveWorkbenchVersionRequest {
|
|
464
|
+
/** 1–64 字节 */
|
|
465
|
+
request_id?: string;
|
|
466
|
+
name?: string;
|
|
467
|
+
ability_id?: string;
|
|
468
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
469
|
+
publication_type?: string;
|
|
470
|
+
}
|
|
471
|
+
interface DevtoolSaveWorkbenchVersionResponse {
|
|
472
|
+
data?: flow_open_platform_devtool.DevtoolSaveWorkbenchVersionData;
|
|
473
|
+
code?: number;
|
|
474
|
+
msg?: string;
|
|
475
|
+
message?: string;
|
|
476
|
+
error?: flowpc_common_agw.Error;
|
|
477
|
+
http_status_code?: number;
|
|
478
|
+
}
|
|
479
|
+
interface DevtoolSearchWorkbenchResourcesRequest {
|
|
480
|
+
keyword?: string;
|
|
481
|
+
sources?: Array<flow_open_platform_devtool.WorkbenchReferenceSource>;
|
|
482
|
+
}
|
|
483
|
+
interface DevtoolSearchWorkbenchResourcesResponse {
|
|
484
|
+
data?: flow_open_platform_devtool.SearchWorkbenchResourcesData;
|
|
485
|
+
code?: number;
|
|
486
|
+
msg?: string;
|
|
487
|
+
message?: string;
|
|
488
|
+
error?: flowpc_common_agw.Error;
|
|
489
|
+
http_status_code?: number;
|
|
490
|
+
}
|
|
409
491
|
interface DevtoolSubmitPluginVersionApprovalData {
|
|
410
492
|
approval_id?: string;
|
|
411
493
|
}
|
|
@@ -427,6 +509,25 @@ declare namespace flow_open_platform_devtool {
|
|
|
427
509
|
error?: flowpc_common_agw.Error;
|
|
428
510
|
http_status_code?: number;
|
|
429
511
|
}
|
|
512
|
+
interface DevtoolSubmitWorkbenchVersionApprovalData {
|
|
513
|
+
approval_id?: string;
|
|
514
|
+
}
|
|
515
|
+
interface DevtoolSubmitWorkbenchVersionApprovalRequest {
|
|
516
|
+
name?: string;
|
|
517
|
+
/** 业务必填,三段式版本号 */
|
|
518
|
+
version?: string;
|
|
519
|
+
ability_id?: string;
|
|
520
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
521
|
+
publication_type?: string;
|
|
522
|
+
}
|
|
523
|
+
interface DevtoolSubmitWorkbenchVersionApprovalResponse {
|
|
524
|
+
data?: flow_open_platform_devtool.DevtoolSubmitWorkbenchVersionApprovalData;
|
|
525
|
+
code?: number;
|
|
526
|
+
msg?: string;
|
|
527
|
+
message?: string;
|
|
528
|
+
error?: flowpc_common_agw.Error;
|
|
529
|
+
http_status_code?: number;
|
|
530
|
+
}
|
|
430
531
|
interface DevtoolUpsertPluginDraftData {
|
|
431
532
|
draft?: flow_open_platform_devtool.PluginDraft;
|
|
432
533
|
}
|
|
@@ -457,6 +558,19 @@ declare namespace flow_open_platform_devtool {
|
|
|
457
558
|
error?: flowpc_common_agw.Error;
|
|
458
559
|
http_status_code?: number;
|
|
459
560
|
}
|
|
561
|
+
interface DevtoolUpsertWorkbenchDraftRequest {
|
|
562
|
+
package_id?: string;
|
|
563
|
+
/** 空字符串清空 */
|
|
564
|
+
additional_info?: string;
|
|
565
|
+
name?: string;
|
|
566
|
+
ability_id?: string;
|
|
567
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
568
|
+
publication_type?: string;
|
|
569
|
+
/** 仅用于企业发布;省略时沿用草稿范围,首次默认仅本人;显式选择整体替换 */
|
|
570
|
+
visibility_config?: flow_open_platform_devtool.DevtoolPluginVisibilityConfig;
|
|
571
|
+
/** 补填内联 MCP 的测试凭据 */
|
|
572
|
+
modules?: Array<flow_open_platform_devtool.DevtoolWorkbenchModuleInput>;
|
|
573
|
+
}
|
|
460
574
|
interface DevtoolValidatePluginMaterialData {
|
|
461
575
|
passed?: boolean;
|
|
462
576
|
issues?: Array<flow_open_platform_model.AbilityValidationIssue>;
|
|
@@ -483,6 +597,31 @@ declare namespace flow_open_platform_devtool {
|
|
|
483
597
|
error?: flowpc_common_agw.Error;
|
|
484
598
|
http_status_code?: number;
|
|
485
599
|
}
|
|
600
|
+
interface DevtoolValidateWorkbenchMaterialData {
|
|
601
|
+
passed?: boolean;
|
|
602
|
+
issues?: Array<flow_open_platform_model.AbilityValidationIssue>;
|
|
603
|
+
}
|
|
604
|
+
interface DevtoolValidateWorkbenchMaterialRequest {
|
|
605
|
+
package_id?: string;
|
|
606
|
+
name?: string;
|
|
607
|
+
ability_id?: string;
|
|
608
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
609
|
+
publication_type?: string;
|
|
610
|
+
/** PACKAGE_PARSE 仅用于上传包;MCP_PROBE 检测连通性。省略时执行目标支持的两项检测。 */
|
|
611
|
+
validate_list?: Array<string>;
|
|
612
|
+
/** 仅 MCP_PROBE 可传;省略时检测全部内联 MCP */
|
|
613
|
+
module_id?: string;
|
|
614
|
+
/** 可选,已保存的三段式版本号 */
|
|
615
|
+
version?: string;
|
|
616
|
+
}
|
|
617
|
+
interface DevtoolValidateWorkbenchMaterialResponse {
|
|
618
|
+
data?: flow_open_platform_devtool.DevtoolValidateWorkbenchMaterialData;
|
|
619
|
+
code?: number;
|
|
620
|
+
msg?: string;
|
|
621
|
+
message?: string;
|
|
622
|
+
error?: flowpc_common_agw.Error;
|
|
623
|
+
http_status_code?: number;
|
|
624
|
+
}
|
|
486
625
|
interface DevtoolWithdrawPluginVersionApprovalData {
|
|
487
626
|
approval?: flow_open_platform_devtool.PluginVersionApproval;
|
|
488
627
|
}
|
|
@@ -500,6 +639,40 @@ declare namespace flow_open_platform_devtool {
|
|
|
500
639
|
error?: flowpc_common_agw.Error;
|
|
501
640
|
http_status_code?: number;
|
|
502
641
|
}
|
|
642
|
+
interface DevtoolWithdrawWorkbenchVersionApprovalRequest {
|
|
643
|
+
/** 业务必填 */
|
|
644
|
+
approval_id?: string;
|
|
645
|
+
/** 业务必填,PUBLIC 或 ENTERPRISE */
|
|
646
|
+
publication_type?: string;
|
|
647
|
+
}
|
|
648
|
+
interface DevtoolWorkbenchDraftData {
|
|
649
|
+
draft?: flow_open_platform_devtool.WorkbenchDraft;
|
|
650
|
+
}
|
|
651
|
+
interface DevtoolWorkbenchDraftResponse {
|
|
652
|
+
data?: flow_open_platform_devtool.DevtoolWorkbenchDraftData;
|
|
653
|
+
code?: number;
|
|
654
|
+
msg?: string;
|
|
655
|
+
message?: string;
|
|
656
|
+
error?: flowpc_common_agw.Error;
|
|
657
|
+
http_status_code?: number;
|
|
658
|
+
}
|
|
659
|
+
interface DevtoolWorkbenchModuleInput {
|
|
660
|
+
/** 业务必填,mcp:<server> */
|
|
661
|
+
module_id?: string;
|
|
662
|
+
/** 内联 MCP 的测试凭据 */
|
|
663
|
+
mcp?: flow_open_platform_ability.MCPModuleInput;
|
|
664
|
+
}
|
|
665
|
+
interface DevtoolWorkbenchVersionApprovalData {
|
|
666
|
+
approval?: flow_open_platform_devtool.PluginVersionApproval;
|
|
667
|
+
}
|
|
668
|
+
interface DevtoolWorkbenchVersionApprovalResponse {
|
|
669
|
+
data?: flow_open_platform_devtool.DevtoolWorkbenchVersionApprovalData;
|
|
670
|
+
code?: number;
|
|
671
|
+
msg?: string;
|
|
672
|
+
message?: string;
|
|
673
|
+
error?: flowpc_common_agw.Error;
|
|
674
|
+
http_status_code?: number;
|
|
675
|
+
}
|
|
503
676
|
/** 插件草稿视图;AbilityID 用于后续操作,Name 为当前包内 manifest.name。 */
|
|
504
677
|
interface PluginDraft {
|
|
505
678
|
version?: string;
|
|
@@ -515,7 +688,7 @@ declare namespace flow_open_platform_devtool {
|
|
|
515
688
|
publication_type?: string;
|
|
516
689
|
visibility_config?: flow_open_platform_model.VisibilityConfig;
|
|
517
690
|
}
|
|
518
|
-
/**
|
|
691
|
+
/** Plugin 和 Workbench Devtool 共用的版本审批记录。具体主体类型由接口决定。 */
|
|
519
692
|
interface PluginVersionApproval {
|
|
520
693
|
approval_id?: string;
|
|
521
694
|
/** major.minor.patch,例如 1.2.3 */
|
|
@@ -528,9 +701,55 @@ declare namespace flow_open_platform_devtool {
|
|
|
528
701
|
handled_by?: operation.OperationUser;
|
|
529
702
|
handled_at_ms?: Int64;
|
|
530
703
|
}
|
|
704
|
+
interface SearchWorkbenchResourcesData {
|
|
705
|
+
/** 最多返回 100 条匹配结果 */
|
|
706
|
+
items?: Array<flow_open_platform_devtool.WorkbenchCreationResource>;
|
|
707
|
+
}
|
|
708
|
+
/** 工作台创建候选资源;使用工作台引用枚举,保持下游数值。 */
|
|
709
|
+
interface WorkbenchCreationIcon {
|
|
710
|
+
uri?: string;
|
|
711
|
+
url?: string;
|
|
712
|
+
}
|
|
713
|
+
interface WorkbenchCreationResource {
|
|
714
|
+
resource_id?: string;
|
|
715
|
+
resource_type?: flow_open_platform_devtool.WorkbenchReferenceType;
|
|
716
|
+
source?: flow_open_platform_devtool.WorkbenchReferenceSource;
|
|
717
|
+
name?: string;
|
|
718
|
+
icon?: flow_open_platform_devtool.WorkbenchCreationIcon;
|
|
719
|
+
}
|
|
720
|
+
interface WorkbenchDraft {
|
|
721
|
+
version?: string;
|
|
722
|
+
package?: flow_open_platform_model.AbilityPackage;
|
|
723
|
+
form?: flow_open_platform_model.AbilityRevisionForm;
|
|
724
|
+
/** 返回工作台模块和包内 MCP 模块 */
|
|
725
|
+
modules?: Array<flow_open_platform_model.AbilityModule>;
|
|
726
|
+
created_at_ms?: Int64;
|
|
727
|
+
updated_at_ms?: Int64;
|
|
728
|
+
/** 包名 */
|
|
729
|
+
name?: string;
|
|
730
|
+
/** CLI 可保存至项目配置,供后续操作使用 */
|
|
731
|
+
ability_id?: string;
|
|
732
|
+
publication_type?: string;
|
|
733
|
+
visibility_config?: flow_open_platform_model.VisibilityConfig;
|
|
734
|
+
}
|
|
531
735
|
}
|
|
532
736
|
|
|
533
737
|
declare namespace flow_open_platform_model {
|
|
738
|
+
/** 关联资源自身的来源,不是工作台的管理来源;可引用范围仍由原有业务规则校验。 */
|
|
739
|
+
enum WorkbenchResourceSource {
|
|
740
|
+
Official = 1,
|
|
741
|
+
Store = 2,
|
|
742
|
+
Enterprise = 3,
|
|
743
|
+
Personal = 4
|
|
744
|
+
}
|
|
745
|
+
/** 工作台关联资源的实际类型,与 ActionHub/Core 引用类型对齐。
|
|
746
|
+
不使用创建候选接口的 WorkbenchReferenceType(Plugin=2),避免丢失 Plugin/SkillPackage 身份。 */
|
|
747
|
+
enum WorkbenchResourceType {
|
|
748
|
+
Skill = 1,
|
|
749
|
+
/** 历史技能包,摘要统计时计入关联插件;References按独立类型截断,引用中保留原类型 */
|
|
750
|
+
SkillPackage = 3,
|
|
751
|
+
Plugin = 4
|
|
752
|
+
}
|
|
534
753
|
/** 能力审批摘要。 */
|
|
535
754
|
interface AbilityApproval {
|
|
536
755
|
approval_id?: string;
|
|
@@ -579,6 +798,7 @@ declare namespace flow_open_platform_model {
|
|
|
579
798
|
version?: string;
|
|
580
799
|
/** 已提供的运行环境;未知时省略,不推断 */
|
|
581
800
|
runtime_types?: Array<string>;
|
|
801
|
+
workbench?: flow_open_platform_model.WorkbenchModule;
|
|
582
802
|
}
|
|
583
803
|
/** 上传包元数据。PackageID 是不透明标识,不暴露底层存储 Key。 */
|
|
584
804
|
interface AbilityPackage {
|
|
@@ -689,6 +909,30 @@ declare namespace flow_open_platform_model {
|
|
|
689
909
|
/** 用户、部门、租户使用原生飞书 ID;群聊原样使用 Aily ChatID,不转为用户 ID 或 open_chat_id */
|
|
690
910
|
entityID?: string;
|
|
691
911
|
}
|
|
912
|
+
interface WorkbenchModule {
|
|
913
|
+
system_remind?: string;
|
|
914
|
+
related_skills?: flow_open_platform_model.WorkbenchReferenceSummary;
|
|
915
|
+
related_plugins?: flow_open_platform_model.WorkbenchReferenceSummary;
|
|
916
|
+
appearance_locations?: Array<string>;
|
|
917
|
+
/** 只读;协议待接入,暂不返回,不写入元信息或审批快照 */
|
|
918
|
+
preview_url?: string;
|
|
919
|
+
}
|
|
920
|
+
/** 工作台关联资源明细。仅有摘要的历史审批快照可返回只含 Name 的展示项。
|
|
921
|
+
审核取本轮冻结值,管理取 ActionHub 当前生效版本的关联信息;名称、图标缺失时保持缺省。 */
|
|
922
|
+
interface WorkbenchReferenceItem {
|
|
923
|
+
resource_id?: string;
|
|
924
|
+
type?: flow_open_platform_model.WorkbenchResourceType;
|
|
925
|
+
source?: flow_open_platform_model.WorkbenchResourceSource;
|
|
926
|
+
name?: string;
|
|
927
|
+
icon_url?: string;
|
|
928
|
+
}
|
|
929
|
+
interface WorkbenchReferenceSummary {
|
|
930
|
+
/** 该类关联资源实际总数,不受展示截断影响 */
|
|
931
|
+
total?: Int64;
|
|
932
|
+
/** 字段 2 已退役。
|
|
933
|
+
每组最多 7 项,优先保留名称非空的明细,保留入选项的原始相对顺序 */
|
|
934
|
+
items?: Array<flow_open_platform_model.WorkbenchReferenceItem>;
|
|
935
|
+
}
|
|
692
936
|
}
|
|
693
937
|
|
|
694
938
|
declare namespace flowpc_common_agw {
|
|
@@ -709,6 +953,8 @@ declare interface InitContext {
|
|
|
709
953
|
declare interface InitOption {
|
|
710
954
|
flags: string;
|
|
711
955
|
description: string;
|
|
956
|
+
/** Included in the interactive capability selector when available. */
|
|
957
|
+
capability?: boolean | ((ctx: InitContext) => boolean);
|
|
712
958
|
/** Yes/no question asked in interactive init; returning undefined skips the question. */
|
|
713
959
|
prompt?: string | ((ctx: InitContext) => string | undefined);
|
|
714
960
|
}
|
|
@@ -762,8 +1008,6 @@ declare interface PluginAPI {
|
|
|
762
1008
|
};
|
|
763
1009
|
}
|
|
764
1010
|
|
|
765
|
-
declare type PluginDraft = flow_open_platform_devtool.PluginDraft;
|
|
766
|
-
|
|
767
1011
|
declare interface PluginHooks {
|
|
768
1012
|
setup: RegisteredHook<SetupHook>[];
|
|
769
1013
|
initOptions: InitOption[];
|
|
@@ -797,9 +1041,11 @@ declare class PluginProject {
|
|
|
797
1041
|
private manifest;
|
|
798
1042
|
constructor(cwd?: string);
|
|
799
1043
|
get plugin(): PluginManifest;
|
|
1044
|
+
get hasWorkbench(): boolean;
|
|
800
1045
|
updatePluginId(id: string): Promise<void>;
|
|
801
1046
|
updateManifest(update: (manifest: PluginManifest) => PluginManifest): Promise<void>;
|
|
802
1047
|
updatePublicationType(publicationType: PublicationType): Promise<void>;
|
|
1048
|
+
assertWorkbenchModules(): void;
|
|
803
1049
|
pack({ version, exclude }?: PackagePlan): Promise<Blob>;
|
|
804
1050
|
readSkills(): Skill[];
|
|
805
1051
|
get mcpServers(): McpServer[];
|
|
@@ -807,6 +1053,8 @@ declare class PluginProject {
|
|
|
807
1053
|
|
|
808
1054
|
declare type PrepareTemplatesHook = (ctx: InitContext) => Awaitable<readonly string[]>;
|
|
809
1055
|
|
|
1056
|
+
declare type ProjectDraft = flow_open_platform_devtool.PluginDraft | flow_open_platform_devtool.WorkbenchDraft;
|
|
1057
|
+
|
|
810
1058
|
declare type ProvideSkillsHook = (ctx: {
|
|
811
1059
|
project: PluginProject;
|
|
812
1060
|
}) => Awaitable<readonly SkillSource[]>;
|
|
@@ -852,7 +1100,7 @@ declare interface UploadContext {
|
|
|
852
1100
|
|
|
853
1101
|
declare interface UploadDraftResult {
|
|
854
1102
|
packageId: string;
|
|
855
|
-
draft:
|
|
1103
|
+
draft: ProjectDraft;
|
|
856
1104
|
}
|
|
857
1105
|
|
|
858
1106
|
declare interface UploadOptions {
|