@kubohiroya/turbowarp-named-functions 0.1.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/LICENSE +373 -0
- package/README.ja.md +209 -0
- package/README.md +258 -0
- package/dist/composition.js +398 -0
- package/dist/extension-manifest.json +133 -0
- package/dist/turbowarp-named-functions.js +701 -0
- package/dist/types/composition.d.ts +49 -0
- package/dist/types/config.d.ts +11 -0
- package/dist/types/extension-manifest.d.ts +30 -0
- package/dist/types/extension.d.ts +29 -0
- package/dist/types/function-dispatcher.d.ts +60 -0
- package/dist/types/function-registry.d.ts +28 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/runtime-types.d.ts +37 -0
- package/dist/types/schema-validator.d.ts +9 -0
- package/package.json +75 -0
- package/schemas/extension-manifest.schema.json +49 -0
- package/src/block-definitions.json +168 -0
- package/src/composition.ts +220 -0
- package/src/config.ts +12 -0
- package/src/extension-manifest.ts +149 -0
- package/src/extension.ts +200 -0
- package/src/function-dispatcher.ts +208 -0
- package/src/function-registry.ts +124 -0
- package/src/globals.d.ts +26 -0
- package/src/index.ts +14 -0
- package/src/runtime-types.ts +42 -0
- package/src/schema-validator.ts +101 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"formatVersion": 1,
|
|
3
|
+
"id": "kubohiroyanamedfunctions",
|
|
4
|
+
"blocks": [
|
|
5
|
+
{
|
|
6
|
+
"opcode": "awaitAll",
|
|
7
|
+
"blockType": "REPORTER",
|
|
8
|
+
"arguments": [
|
|
9
|
+
{
|
|
10
|
+
"id": "PROMISES",
|
|
11
|
+
"type": "STRING"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"opcode": "awaitResult",
|
|
17
|
+
"blockType": "REPORTER",
|
|
18
|
+
"arguments": [
|
|
19
|
+
{
|
|
20
|
+
"id": "PROMISE",
|
|
21
|
+
"type": "STRING"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"opcode": "callFunction",
|
|
27
|
+
"blockType": "REPORTER",
|
|
28
|
+
"arguments": [
|
|
29
|
+
{
|
|
30
|
+
"id": "ARGS",
|
|
31
|
+
"type": "STRING"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "NAME",
|
|
35
|
+
"type": "STRING"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"opcode": "defineFunction",
|
|
41
|
+
"blockType": "HAT",
|
|
42
|
+
"arguments": [
|
|
43
|
+
{
|
|
44
|
+
"id": "DESCRIPTION",
|
|
45
|
+
"type": "STRING"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "EXPORT",
|
|
49
|
+
"type": "STRING",
|
|
50
|
+
"menu": "exportModes"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "NAME",
|
|
54
|
+
"type": "STRING"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "SCHEMA",
|
|
58
|
+
"type": "STRING"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"opcode": "functionArgument",
|
|
64
|
+
"blockType": "REPORTER",
|
|
65
|
+
"arguments": [
|
|
66
|
+
{
|
|
67
|
+
"id": "PATH",
|
|
68
|
+
"type": "STRING"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"opcode": "functionArgumentsJson",
|
|
74
|
+
"blockType": "REPORTER",
|
|
75
|
+
"arguments": []
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"opcode": "isDefined",
|
|
79
|
+
"blockType": "BOOLEAN",
|
|
80
|
+
"arguments": [
|
|
81
|
+
{
|
|
82
|
+
"id": "NAME",
|
|
83
|
+
"type": "STRING"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"opcode": "isSettled",
|
|
89
|
+
"blockType": "BOOLEAN",
|
|
90
|
+
"arguments": [
|
|
91
|
+
{
|
|
92
|
+
"id": "PROMISE",
|
|
93
|
+
"type": "STRING"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"opcode": "lastError",
|
|
99
|
+
"blockType": "REPORTER",
|
|
100
|
+
"arguments": []
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"opcode": "returnValue",
|
|
104
|
+
"blockType": "COMMAND",
|
|
105
|
+
"arguments": [
|
|
106
|
+
{
|
|
107
|
+
"id": "VALUE",
|
|
108
|
+
"type": "STRING"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"opcode": "startFunction",
|
|
114
|
+
"blockType": "REPORTER",
|
|
115
|
+
"arguments": [
|
|
116
|
+
{
|
|
117
|
+
"id": "ARGS",
|
|
118
|
+
"type": "STRING"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "NAME",
|
|
122
|
+
"type": "STRING"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"menus": [
|
|
128
|
+
{
|
|
129
|
+
"id": "exportModes",
|
|
130
|
+
"acceptReporters": false
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|