@next-bricks/ai-portal 0.25.2 → 0.26.0
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/bricks.json +13 -13
- package/dist/chunks/3624.e880f724.js +2 -0
- package/dist/chunks/3624.e880f724.js.map +1 -0
- package/dist/chunks/3800.3dccb1f9.js +2 -0
- package/dist/chunks/3800.3dccb1f9.js.map +1 -0
- package/dist/chunks/6175.7bb583eb.js +3 -0
- package/dist/chunks/6175.7bb583eb.js.map +1 -0
- package/dist/chunks/{chat-stream.ee882aeb.js → chat-stream.20c70bf3.js} +2 -2
- package/dist/chunks/{chat-stream.ee882aeb.js.map → chat-stream.20c70bf3.js.map} +1 -1
- package/dist/chunks/cruise-canvas.3fdcba20.js +2 -0
- package/dist/chunks/cruise-canvas.3fdcba20.js.map +1 -0
- package/dist/chunks/{main.2a65e7bb.js → main.47abfac1.js} +2 -2
- package/dist/chunks/{main.2a65e7bb.js.map → main.47abfac1.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.9c3a15cf.js → index.73637f83.js} +2 -2
- package/dist/{index.9c3a15cf.js.map → index.73637f83.js.map} +1 -1
- package/dist/manifest.json +65 -61
- package/dist/types.json +71 -64
- package/dist-types/cruise-canvas/index.d.ts +2 -0
- package/dist-types/shared/JsxEditor/JsxEditor.d.ts +2 -0
- package/dist-types/shared/TaskContext.d.ts +7 -1
- package/package.json +4 -3
- package/dist/chunks/3732.26be1e16.js +0 -2
- package/dist/chunks/3732.26be1e16.js.map +0 -1
- package/dist/chunks/6175.85d46564.js +0 -3
- package/dist/chunks/6175.85d46564.js.map +0 -1
- package/dist/chunks/7813.332ffbbe.js +0 -2
- package/dist/chunks/7813.332ffbbe.js.map +0 -1
- package/dist/chunks/cruise-canvas.e201cbc8.js +0 -2
- package/dist/chunks/cruise-canvas.e201cbc8.js.map +0 -1
- /package/dist/chunks/{6175.85d46564.js.LICENSE.txt → 6175.7bb583eb.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"ai-portal.home-container": {
|
|
3
|
+
"properties": [],
|
|
4
|
+
"events": [],
|
|
5
|
+
"methods": []
|
|
6
|
+
},
|
|
2
7
|
"ai-portal.stat-with-mini-chart": {
|
|
3
8
|
"properties": [
|
|
4
9
|
{
|
|
@@ -103,11 +108,6 @@
|
|
|
103
108
|
"events": [],
|
|
104
109
|
"methods": []
|
|
105
110
|
},
|
|
106
|
-
"ai-portal.home-container": {
|
|
107
|
-
"properties": [],
|
|
108
|
-
"events": [],
|
|
109
|
-
"methods": []
|
|
110
|
-
},
|
|
111
111
|
"ai-portal.elevo-logo": {
|
|
112
112
|
"properties": [],
|
|
113
113
|
"events": [],
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
}
|
|
448
448
|
]
|
|
449
449
|
},
|
|
450
|
-
"ai-portal.
|
|
450
|
+
"ai-portal.show-cases": {
|
|
451
451
|
"properties": [
|
|
452
452
|
{
|
|
453
453
|
"name": "list",
|
|
@@ -457,10 +457,17 @@
|
|
|
457
457
|
"type": "reference",
|
|
458
458
|
"typeName": {
|
|
459
459
|
"type": "identifier",
|
|
460
|
-
"name": "
|
|
460
|
+
"name": "ShowCase"
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "taskUrlTemplate",
|
|
467
|
+
"annotation": {
|
|
468
|
+
"type": "keyword",
|
|
469
|
+
"value": "string"
|
|
470
|
+
}
|
|
464
471
|
}
|
|
465
472
|
],
|
|
466
473
|
"events": [],
|
|
@@ -468,13 +475,13 @@
|
|
|
468
475
|
"types": [
|
|
469
476
|
{
|
|
470
477
|
"type": "interface",
|
|
471
|
-
"name": "
|
|
478
|
+
"name": "ShowCase",
|
|
472
479
|
"body": [
|
|
473
480
|
{
|
|
474
481
|
"type": "propertySignature",
|
|
475
482
|
"key": {
|
|
476
483
|
"type": "identifier",
|
|
477
|
-
"name": "
|
|
484
|
+
"name": "taskId"
|
|
478
485
|
},
|
|
479
486
|
"annotation": {
|
|
480
487
|
"type": "keyword",
|
|
@@ -498,7 +505,7 @@
|
|
|
498
505
|
"type": "propertySignature",
|
|
499
506
|
"key": {
|
|
500
507
|
"type": "identifier",
|
|
501
|
-
"name": "
|
|
508
|
+
"name": "summary"
|
|
502
509
|
},
|
|
503
510
|
"annotation": {
|
|
504
511
|
"type": "keyword",
|
|
@@ -510,44 +517,7 @@
|
|
|
510
517
|
"type": "propertySignature",
|
|
511
518
|
"key": {
|
|
512
519
|
"type": "identifier",
|
|
513
|
-
"name": "
|
|
514
|
-
},
|
|
515
|
-
"annotation": {
|
|
516
|
-
"type": "reference",
|
|
517
|
-
"typeName": {
|
|
518
|
-
"type": "identifier",
|
|
519
|
-
"name": "GeneralIconProps"
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"optional": true,
|
|
523
|
-
"computed": false
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"type": "propertySignature",
|
|
527
|
-
"key": {
|
|
528
|
-
"type": "identifier",
|
|
529
|
-
"name": "server"
|
|
530
|
-
},
|
|
531
|
-
"annotation": {
|
|
532
|
-
"type": "reference",
|
|
533
|
-
"typeName": {
|
|
534
|
-
"type": "identifier",
|
|
535
|
-
"name": "McpServer"
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
"computed": false
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"type": "interface",
|
|
544
|
-
"name": "McpServer",
|
|
545
|
-
"body": [
|
|
546
|
-
{
|
|
547
|
-
"type": "propertySignature",
|
|
548
|
-
"key": {
|
|
549
|
-
"type": "identifier",
|
|
550
|
-
"name": "id"
|
|
520
|
+
"name": "scenario"
|
|
551
521
|
},
|
|
552
522
|
"annotation": {
|
|
553
523
|
"type": "keyword",
|
|
@@ -559,19 +529,20 @@
|
|
|
559
529
|
"type": "propertySignature",
|
|
560
530
|
"key": {
|
|
561
531
|
"type": "identifier",
|
|
562
|
-
"name": "
|
|
532
|
+
"name": "thumbUrl"
|
|
563
533
|
},
|
|
564
534
|
"annotation": {
|
|
565
535
|
"type": "keyword",
|
|
566
536
|
"value": "string"
|
|
567
537
|
},
|
|
538
|
+
"optional": true,
|
|
568
539
|
"computed": false
|
|
569
540
|
}
|
|
570
541
|
]
|
|
571
542
|
}
|
|
572
543
|
]
|
|
573
544
|
},
|
|
574
|
-
"ai-portal.
|
|
545
|
+
"ai-portal.mcp-tools": {
|
|
575
546
|
"properties": [
|
|
576
547
|
{
|
|
577
548
|
"name": "list",
|
|
@@ -581,17 +552,10 @@
|
|
|
581
552
|
"type": "reference",
|
|
582
553
|
"typeName": {
|
|
583
554
|
"type": "identifier",
|
|
584
|
-
"name": "
|
|
555
|
+
"name": "McpTool"
|
|
585
556
|
}
|
|
586
557
|
}
|
|
587
558
|
}
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "taskUrlTemplate",
|
|
591
|
-
"annotation": {
|
|
592
|
-
"type": "keyword",
|
|
593
|
-
"value": "string"
|
|
594
|
-
}
|
|
595
559
|
}
|
|
596
560
|
],
|
|
597
561
|
"events": [],
|
|
@@ -599,13 +563,13 @@
|
|
|
599
563
|
"types": [
|
|
600
564
|
{
|
|
601
565
|
"type": "interface",
|
|
602
|
-
"name": "
|
|
566
|
+
"name": "McpTool",
|
|
603
567
|
"body": [
|
|
604
568
|
{
|
|
605
569
|
"type": "propertySignature",
|
|
606
570
|
"key": {
|
|
607
571
|
"type": "identifier",
|
|
608
|
-
"name": "
|
|
572
|
+
"name": "name"
|
|
609
573
|
},
|
|
610
574
|
"annotation": {
|
|
611
575
|
"type": "keyword",
|
|
@@ -629,7 +593,7 @@
|
|
|
629
593
|
"type": "propertySignature",
|
|
630
594
|
"key": {
|
|
631
595
|
"type": "identifier",
|
|
632
|
-
"name": "
|
|
596
|
+
"name": "description"
|
|
633
597
|
},
|
|
634
598
|
"annotation": {
|
|
635
599
|
"type": "keyword",
|
|
@@ -641,7 +605,44 @@
|
|
|
641
605
|
"type": "propertySignature",
|
|
642
606
|
"key": {
|
|
643
607
|
"type": "identifier",
|
|
644
|
-
"name": "
|
|
608
|
+
"name": "icon"
|
|
609
|
+
},
|
|
610
|
+
"annotation": {
|
|
611
|
+
"type": "reference",
|
|
612
|
+
"typeName": {
|
|
613
|
+
"type": "identifier",
|
|
614
|
+
"name": "GeneralIconProps"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"optional": true,
|
|
618
|
+
"computed": false
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"type": "propertySignature",
|
|
622
|
+
"key": {
|
|
623
|
+
"type": "identifier",
|
|
624
|
+
"name": "server"
|
|
625
|
+
},
|
|
626
|
+
"annotation": {
|
|
627
|
+
"type": "reference",
|
|
628
|
+
"typeName": {
|
|
629
|
+
"type": "identifier",
|
|
630
|
+
"name": "McpServer"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"computed": false
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"type": "interface",
|
|
639
|
+
"name": "McpServer",
|
|
640
|
+
"body": [
|
|
641
|
+
{
|
|
642
|
+
"type": "propertySignature",
|
|
643
|
+
"key": {
|
|
644
|
+
"type": "identifier",
|
|
645
|
+
"name": "id"
|
|
645
646
|
},
|
|
646
647
|
"annotation": {
|
|
647
648
|
"type": "keyword",
|
|
@@ -653,13 +654,12 @@
|
|
|
653
654
|
"type": "propertySignature",
|
|
654
655
|
"key": {
|
|
655
656
|
"type": "identifier",
|
|
656
|
-
"name": "
|
|
657
|
+
"name": "name"
|
|
657
658
|
},
|
|
658
659
|
"annotation": {
|
|
659
660
|
"type": "keyword",
|
|
660
661
|
"value": "string"
|
|
661
662
|
},
|
|
662
|
-
"optional": true,
|
|
663
663
|
"computed": false
|
|
664
664
|
}
|
|
665
665
|
]
|
|
@@ -1390,6 +1390,13 @@
|
|
|
1390
1390
|
"type": "keyword",
|
|
1391
1391
|
"value": "boolean"
|
|
1392
1392
|
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "showJsxEditor",
|
|
1396
|
+
"annotation": {
|
|
1397
|
+
"type": "keyword",
|
|
1398
|
+
"value": "boolean"
|
|
1399
|
+
}
|
|
1393
1400
|
}
|
|
1394
1401
|
],
|
|
1395
1402
|
"events": [
|
|
@@ -12,6 +12,7 @@ export interface CruiseCanvasProps {
|
|
|
12
12
|
showHiddenJobs?: boolean;
|
|
13
13
|
showFeedback?: boolean;
|
|
14
14
|
showUiSwitch?: boolean;
|
|
15
|
+
showJsxEditor?: boolean;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* 构件 `ai-portal.cruise-canvas`
|
|
@@ -34,6 +35,7 @@ export declare class CruiseCanvas extends ReactNextElement implements CruiseCanv
|
|
|
34
35
|
accessor showFeedback: boolean | undefined;
|
|
35
36
|
accessor showUiSwitch: boolean | undefined;
|
|
36
37
|
accessor hideMermaid: boolean | undefined;
|
|
38
|
+
accessor showJsxEditor: boolean | undefined;
|
|
37
39
|
resumed(): void;
|
|
38
40
|
feedbackSubmitDone(): void;
|
|
39
41
|
feedbackSubmitFailed(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Dispatch } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConstructResult } from "@next-shared/jsx-storyboard";
|
|
3
|
+
import type { FeedbackDetail, Job } from "../cruise-canvas/interfaces";
|
|
3
4
|
export interface TaskContextValue {
|
|
4
5
|
humanInput: (jobId: string, input: string) => void;
|
|
5
6
|
onShare: () => void;
|
|
@@ -15,5 +16,10 @@ export interface TaskContextValue {
|
|
|
15
16
|
submittedFeedback: boolean;
|
|
16
17
|
onSubmitFeedback: (detail: FeedbackDetail) => void;
|
|
17
18
|
setShowFeedback: Dispatch<React.SetStateAction<boolean>>;
|
|
19
|
+
showJsxEditor?: boolean;
|
|
20
|
+
activeJsxEditorJob?: Job;
|
|
21
|
+
setActiveJsxEditorJob?: Dispatch<React.SetStateAction<Job | undefined>>;
|
|
22
|
+
manuallyUpdatedViews?: Map<string, ConstructResult>;
|
|
23
|
+
updateView?: (jobId: string, view: ConstructResult) => void;
|
|
18
24
|
}
|
|
19
25
|
export declare const TaskContext: React.Context<TaskContextValue>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"@next-bricks/basic": "*",
|
|
44
44
|
"@next-bricks/diagram": "*",
|
|
45
45
|
"@next-bricks/mini-chart": "*",
|
|
46
|
-
"@next-bricks/presentational": "*"
|
|
46
|
+
"@next-bricks/presentational": "*",
|
|
47
|
+
"@next-bricks/vs": "*"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d96470fb1a51a23b996517ea3623c61f44de5022"
|
|
49
50
|
}
|