@sedum-dev/core 0.1.0-alpha.0 → 0.1.0-alpha.4
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 +15 -15
- package/dist/index.d.ts +412 -2
- package/dist/index.js +1578 -169
- package/dist/page-script/index.global.js +709 -96
- package/dist/run-result.schema.json +78 -3
- package/package.json +5 -1
|
@@ -246,12 +246,17 @@
|
|
|
246
246
|
"items": {
|
|
247
247
|
"type": "object",
|
|
248
248
|
"properties": {
|
|
249
|
+
"modality": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"const": "vision"
|
|
252
|
+
},
|
|
249
253
|
"purpose": {
|
|
250
254
|
"type": "string",
|
|
251
255
|
"enum": [
|
|
252
256
|
"classification",
|
|
253
257
|
"locator",
|
|
254
|
-
"judge"
|
|
258
|
+
"judge",
|
|
259
|
+
"planner"
|
|
255
260
|
]
|
|
256
261
|
},
|
|
257
262
|
"requestedModel": {
|
|
@@ -384,6 +389,22 @@
|
|
|
384
389
|
"type": "string",
|
|
385
390
|
"maxLength": 512
|
|
386
391
|
},
|
|
392
|
+
"goal": {
|
|
393
|
+
"type": "object",
|
|
394
|
+
"properties": {
|
|
395
|
+
"text": {
|
|
396
|
+
"type": "string"
|
|
397
|
+
},
|
|
398
|
+
"verify": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": [
|
|
403
|
+
"text",
|
|
404
|
+
"verify"
|
|
405
|
+
],
|
|
406
|
+
"additionalProperties": false
|
|
407
|
+
},
|
|
387
408
|
"tags": {
|
|
388
409
|
"type": "array",
|
|
389
410
|
"items": {
|
|
@@ -728,6 +749,50 @@
|
|
|
728
749
|
{
|
|
729
750
|
"type": "object",
|
|
730
751
|
"properties": {
|
|
752
|
+
"vision": {
|
|
753
|
+
"type": "object",
|
|
754
|
+
"properties": {
|
|
755
|
+
"outcome": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"enum": [
|
|
758
|
+
"selected",
|
|
759
|
+
"abstained",
|
|
760
|
+
"failed"
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
"reason": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"maxLength": 120
|
|
766
|
+
},
|
|
767
|
+
"elapsedMs": {
|
|
768
|
+
"type": "number",
|
|
769
|
+
"minimum": 0
|
|
770
|
+
},
|
|
771
|
+
"failure": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"enum": [
|
|
774
|
+
"timeout",
|
|
775
|
+
"canceled",
|
|
776
|
+
"http_error",
|
|
777
|
+
"connection",
|
|
778
|
+
"invalid_envelope",
|
|
779
|
+
"invalid_json",
|
|
780
|
+
"invalid_selection",
|
|
781
|
+
"truncated_response",
|
|
782
|
+
"unknown"
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"httpStatus": {
|
|
786
|
+
"type": "integer",
|
|
787
|
+
"minimum": 100,
|
|
788
|
+
"maximum": 599
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"required": [
|
|
792
|
+
"elapsedMs"
|
|
793
|
+
],
|
|
794
|
+
"additionalProperties": false
|
|
795
|
+
},
|
|
731
796
|
"confidence": {
|
|
732
797
|
"anyOf": [
|
|
733
798
|
{
|
|
@@ -977,12 +1042,17 @@
|
|
|
977
1042
|
"items": {
|
|
978
1043
|
"type": "object",
|
|
979
1044
|
"properties": {
|
|
1045
|
+
"modality": {
|
|
1046
|
+
"type": "string",
|
|
1047
|
+
"const": "vision"
|
|
1048
|
+
},
|
|
980
1049
|
"purpose": {
|
|
981
1050
|
"type": "string",
|
|
982
1051
|
"enum": [
|
|
983
1052
|
"classification",
|
|
984
1053
|
"locator",
|
|
985
|
-
"judge"
|
|
1054
|
+
"judge",
|
|
1055
|
+
"planner"
|
|
986
1056
|
]
|
|
987
1057
|
},
|
|
988
1058
|
"requestedModel": {
|
|
@@ -1335,12 +1405,17 @@
|
|
|
1335
1405
|
"items": {
|
|
1336
1406
|
"type": "object",
|
|
1337
1407
|
"properties": {
|
|
1408
|
+
"modality": {
|
|
1409
|
+
"type": "string",
|
|
1410
|
+
"const": "vision"
|
|
1411
|
+
},
|
|
1338
1412
|
"purpose": {
|
|
1339
1413
|
"type": "string",
|
|
1340
1414
|
"enum": [
|
|
1341
1415
|
"classification",
|
|
1342
1416
|
"locator",
|
|
1343
|
-
"judge"
|
|
1417
|
+
"judge",
|
|
1418
|
+
"planner"
|
|
1344
1419
|
]
|
|
1345
1420
|
},
|
|
1346
1421
|
"requestedModel": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sedum-dev/core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"repository": "https://github.com/sedum-dev/sedum",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,9 +22,13 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"playwright-core": "1.63.0",
|
|
25
|
+
"sharp": "0.35.5",
|
|
25
26
|
"yaml": "2.9.1",
|
|
26
27
|
"zod": "4.6.5"
|
|
27
28
|
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@hegeldev/hegel": "0.4.7"
|
|
31
|
+
},
|
|
28
32
|
"scripts": {
|
|
29
33
|
"build": "tsup src/index.ts --format esm --dts --clean --out-dir dist && node scripts/write-run-result-schema.mjs && tsup src/page-script/index.ts --format iife --platform browser --global-name SedumPageScript --out-dir dist/page-script",
|
|
30
34
|
"typecheck": "tsc --noEmit"
|