@elaraai/east-plugin 1.0.105 → 1.0.106
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/index.json +114 -2
- package/package.json +3 -3
package/index.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 2,
|
|
3
3
|
"stats": {
|
|
4
|
-
"totalEntries":
|
|
4
|
+
"totalEntries": 1317,
|
|
5
5
|
"totalFiles": 221,
|
|
6
6
|
"packages": {
|
|
7
|
-
"east":
|
|
7
|
+
"east": 587,
|
|
8
8
|
"east-node-std": 55,
|
|
9
9
|
"east-node-io": 63,
|
|
10
10
|
"east-py-datascience": 94,
|
|
@@ -5172,6 +5172,80 @@
|
|
|
5172
5172
|
"FloatMultiply"
|
|
5173
5173
|
]
|
|
5174
5174
|
},
|
|
5175
|
+
{
|
|
5176
|
+
"id": "east:crosslang.examples.ts:crosslangIntegerNamedCases",
|
|
5177
|
+
"skill": "east",
|
|
5178
|
+
"package": "east",
|
|
5179
|
+
"file": "east/test/crosslang.examples.ts",
|
|
5180
|
+
"suite": "",
|
|
5181
|
+
"test": "A match over a variant whose case names look like integers: its cases and its arms in the order their names sort",
|
|
5182
|
+
"keywords": [
|
|
5183
|
+
"cross-language",
|
|
5184
|
+
"python",
|
|
5185
|
+
"variant",
|
|
5186
|
+
"match",
|
|
5187
|
+
"case order",
|
|
5188
|
+
"integer-like names"
|
|
5189
|
+
],
|
|
5190
|
+
"imports": [
|
|
5191
|
+
"import {"
|
|
5192
|
+
],
|
|
5193
|
+
"languages": [
|
|
5194
|
+
"typescript",
|
|
5195
|
+
"python"
|
|
5196
|
+
],
|
|
5197
|
+
"ir": "{\"type\":\"Function\",\"value\":{\"type\":{\"type\":\"Function\",\"value\":{\"inputs\":[{\"type\":\"Variant\",\"value\":[{\"name\":\"100\",\"type\":{\"type\":\"Null\",\"value\":null}},{\"name\":\"50\",\"type\":{\"type\":\"Null\",\"value\":null}},{\"name\":\"a\",\"type\":{\"type\":\"Integer\",\"value\":null}}]}],\"output\":{\"type\":\"Integer\",\"value\":null}}},\"loc_id\":\"0\",\"captures\":[],\"parameters\":[{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Variant\",\"value\":{\"$ref\":\"5#type/Function/inputs/0/Variant\"}},\"loc_id\":\"0\",\"name\":\"s\",\"mutable\":false,\"captured\":false}}],\"body\":{\"type\":\"Match\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"variant\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Variant\",\"value\":{\"$ref\":\"6#type/Function/inputs/0/Variant\"}},\"loc_id\":\"0\",\"name\":\"s\",\"mutable\":false,\"captured\":false}},\"cases\":[{\"case\":\"100\",\"variable\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Null\",\"value\":null},\"loc_id\":\"0\",\"name\":\"_v\",\"mutable\":false,\"captured\":false}},\"body\":{\"type\":\"Value\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"value\":{\"type\":\"Integer\",\"value\":\"100\"}}}},{\"case\":\"50\",\"variable\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Null\",\"value\":null},\"loc_id\":\"0\",\"name\":\"_v\",\"mutable\":false,\"captured\":false}},\"body\":{\"type\":\"Value\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"value\":{\"type\":\"Integer\",\"value\":\"50\"}}}},{\"case\":\"a\",\"variable\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"name\":\"n\",\"mutable\":false,\"captured\":false}},\"body\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"name\":\"n\",\"mutable\":false,\"captured\":false}}}]}}}}",
|
|
5198
|
+
"ts": "// Generated by east-node transpile — East IR printed as the East.function\n// builder surface. Rebuilding this module yields the same IR (normalized).\nimport { East, NullType, IntegerType, VariantType } from \"@elaraai/east\";\n\nexport const crosslangIntegerNamedCases = East.function(\n [VariantType({ \"100\": NullType, \"50\": NullType, a: IntegerType })],\n IntegerType,\n ($, s) => s.match({ \"100\": ($, _v) => 100n, \"50\": ($, _v) => 50n, a: ($, n) => n }),\n);\n",
|
|
5199
|
+
"python": "# Generated by east-py transpile — East IR printed as the East.function\n# builder surface. Rebuilding this module yields the same IR (normalized).\nfrom east import East, NullType, IntegerType, VariantType\n\n@East.function(\n [VariantType([('100', NullType), ('50', NullType), ('a', IntegerType)])],\n IntegerType,\n)\ndef crosslangIntegerNamedCases(b, s):\n return s.match({'100': lambda b, _v: 100, '50': lambda b, _v: 50, 'a': lambda b, n: n})\n",
|
|
5200
|
+
"signature": {
|
|
5201
|
+
"inputs": [
|
|
5202
|
+
"VariantType({ \"100\": NullType, \"50\": NullType, a: IntegerType })"
|
|
5203
|
+
],
|
|
5204
|
+
"output": "IntegerType",
|
|
5205
|
+
"async": false
|
|
5206
|
+
},
|
|
5207
|
+
"inputs": "[{\"type\":\"100\",\"value\":null}]",
|
|
5208
|
+
"returns": "\"100\"",
|
|
5209
|
+
"builtins": []
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
"id": "east:crosslang.examples.ts:crosslangIntegerNamedFields",
|
|
5213
|
+
"skill": "east",
|
|
5214
|
+
"package": "east",
|
|
5215
|
+
"file": "east/test/crosslang.examples.ts",
|
|
5216
|
+
"suite": "",
|
|
5217
|
+
"test": "A struct whose field names look like integers, declared as a list: its fields, and a literal of it, in the order its type lists them",
|
|
5218
|
+
"keywords": [
|
|
5219
|
+
"cross-language",
|
|
5220
|
+
"python",
|
|
5221
|
+
"struct",
|
|
5222
|
+
"field order",
|
|
5223
|
+
"integer-like names",
|
|
5224
|
+
"StructType list"
|
|
5225
|
+
],
|
|
5226
|
+
"imports": [
|
|
5227
|
+
"import {"
|
|
5228
|
+
],
|
|
5229
|
+
"languages": [
|
|
5230
|
+
"typescript",
|
|
5231
|
+
"python"
|
|
5232
|
+
],
|
|
5233
|
+
"ir": "{\"type\":\"Function\",\"value\":{\"type\":{\"type\":\"Function\",\"value\":{\"inputs\":[{\"type\":\"Struct\",\"value\":[{\"name\":\"b\",\"type\":{\"type\":\"Integer\",\"value\":null}},{\"name\":\"10\",\"type\":{\"type\":\"Integer\",\"value\":null}},{\"name\":\"2\",\"type\":{\"type\":\"Integer\",\"value\":null}}]}],\"output\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"2#inputs/0/Struct\"}}}},\"loc_id\":\"0\",\"captures\":[],\"parameters\":[{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"5#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"c\",\"mutable\":false,\"captured\":false}}],\"body\":{\"type\":\"Struct\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"4#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"fields\":[{\"name\":\"b\",\"value\":{\"type\":\"GetField\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"field\":\"2\",\"struct\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"10#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"c\",\"mutable\":false,\"captured\":false}}}}},{\"name\":\"10\",\"value\":{\"type\":\"Builtin\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"builtin\":\"IntegerAdd\",\"type_parameters\":[],\"arguments\":[{\"type\":\"GetField\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"field\":\"10\",\"struct\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"13#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"c\",\"mutable\":false,\"captured\":false}}}},{\"type\":\"Value\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"value\":{\"type\":\"Integer\",\"value\":\"1\"}}}]}}},{\"name\":\"2\",\"value\":{\"type\":\"GetField\",\"value\":{\"type\":{\"type\":\"Integer\",\"value\":null},\"loc_id\":\"0\",\"field\":\"b\",\"struct\":{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"10#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"c\",\"mutable\":false,\"captured\":false}}}}}]}}}}",
|
|
5234
|
+
"ts": "// Generated by east-node transpile — East IR printed as the East.function\n// builder surface. Rebuilding this module yields the same IR (normalized).\nimport { East, IntegerType, StructType } from \"@elaraai/east\";\n\nexport const crosslangIntegerNamedFields = East.function(\n [StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]])],\n StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]]),\n ($, c) => ({ b: c[\"2\"], \"10\": c[\"10\"].add(1n), \"2\": c.b }),\n);\n",
|
|
5235
|
+
"python": "# Generated by east-py transpile — East IR printed as the East.function\n# builder surface. Rebuilding this module yields the same IR (normalized).\nfrom east import East, IntegerType, StructType\n\n@East.function(\n [StructType([('b', IntegerType), ('10', IntegerType), ('2', IntegerType)])],\n StructType([('b', IntegerType), ('10', IntegerType), ('2', IntegerType)]),\n)\ndef crosslangIntegerNamedFields(b, c):\n return {'b': c.field('2'), '10': (c.field('10') + 1), '2': c.b}\n",
|
|
5236
|
+
"signature": {
|
|
5237
|
+
"inputs": [
|
|
5238
|
+
"StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]])"
|
|
5239
|
+
],
|
|
5240
|
+
"output": "StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]])",
|
|
5241
|
+
"async": false
|
|
5242
|
+
},
|
|
5243
|
+
"inputs": "[{\"2\":\"3\",\"10\":\"2\",\"b\":\"1\"}]",
|
|
5244
|
+
"returns": "{\"2\":\"1\",\"10\":\"3\",\"b\":\"3\"}",
|
|
5245
|
+
"builtins": [
|
|
5246
|
+
"IntegerAdd"
|
|
5247
|
+
]
|
|
5248
|
+
},
|
|
5175
5249
|
{
|
|
5176
5250
|
"id": "east:crosslang.examples.ts:crosslangDictSet",
|
|
5177
5251
|
"skill": "east",
|
|
@@ -19638,6 +19712,44 @@
|
|
|
19638
19712
|
"Parse"
|
|
19639
19713
|
]
|
|
19640
19714
|
},
|
|
19715
|
+
{
|
|
19716
|
+
"id": "east:struct.examples.ts:structIntegerNamedFields",
|
|
19717
|
+
"skill": "east",
|
|
19718
|
+
"package": "east",
|
|
19719
|
+
"file": "east/test/struct.examples.ts",
|
|
19720
|
+
"suite": "Fields named like integers",
|
|
19721
|
+
"test": "Declare a struct whose fields are named like integers as a list of its fields, which keeps their order",
|
|
19722
|
+
"keywords": [
|
|
19723
|
+
"struct",
|
|
19724
|
+
"StructType",
|
|
19725
|
+
"field order",
|
|
19726
|
+
"integer-like names",
|
|
19727
|
+
"list of fields",
|
|
19728
|
+
"print"
|
|
19729
|
+
],
|
|
19730
|
+
"imports": [
|
|
19731
|
+
"import { East, IntegerType, StringType, StructType, BooleanType, example } from \"@elaraai/east\";"
|
|
19732
|
+
],
|
|
19733
|
+
"languages": [
|
|
19734
|
+
"typescript",
|
|
19735
|
+
"python"
|
|
19736
|
+
],
|
|
19737
|
+
"ir": "{\"type\":\"Function\",\"value\":{\"type\":{\"type\":\"Function\",\"value\":{\"inputs\":[{\"type\":\"Struct\",\"value\":[{\"name\":\"b\",\"type\":{\"type\":\"Integer\",\"value\":null}},{\"name\":\"10\",\"type\":{\"type\":\"Integer\",\"value\":null}},{\"name\":\"2\",\"type\":{\"type\":\"Integer\",\"value\":null}}]}],\"output\":{\"type\":\"String\",\"value\":null}}},\"loc_id\":\"0\",\"captures\":[],\"parameters\":[{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"5#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"counts\",\"mutable\":false,\"captured\":false}}],\"body\":{\"type\":\"Builtin\",\"value\":{\"type\":{\"type\":\"String\",\"value\":null},\"loc_id\":\"0\",\"builtin\":\"Print\",\"type_parameters\":[{\"type\":\"Struct\",\"value\":{\"$ref\":\"5#type/Function/inputs/0/Struct\"}}],\"arguments\":[{\"type\":\"Variable\",\"value\":{\"type\":{\"type\":\"Struct\",\"value\":{\"$ref\":\"7#type/Function/inputs/0/Struct\"}},\"loc_id\":\"0\",\"name\":\"counts\",\"mutable\":false,\"captured\":false}}]}}}}",
|
|
19738
|
+
"ts": "// Generated by east-node transpile — East IR printed as the East.function\n// builder surface. Rebuilding this module yields the same IR (normalized).\nimport { East, IntegerType, StringType, StructType } from \"@elaraai/east\";\n\nexport const structIntegerNamedFields = East.function(\n [StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]])],\n StringType,\n ($, counts) => East.print(counts),\n);\n",
|
|
19739
|
+
"python": "# Generated by east-py transpile — East IR printed as the East.function\n# builder surface. Rebuilding this module yields the same IR (normalized).\nfrom east import East, IntegerType, StringType, StructType\n\n@East.function(\n [StructType([('b', IntegerType), ('10', IntegerType), ('2', IntegerType)])],\n StringType,\n)\ndef structIntegerNamedFields(b, counts):\n return East.String.print(\n StructType([('b', IntegerType), ('10', IntegerType), ('2', IntegerType)]),\n counts,\n )\n",
|
|
19740
|
+
"signature": {
|
|
19741
|
+
"inputs": [
|
|
19742
|
+
"StructType([[\"b\", IntegerType], [\"10\", IntegerType], [\"2\", IntegerType]])"
|
|
19743
|
+
],
|
|
19744
|
+
"output": "StringType",
|
|
19745
|
+
"async": false
|
|
19746
|
+
},
|
|
19747
|
+
"inputs": "[{\"2\":\"3\",\"10\":\"2\",\"b\":\"1\"}]",
|
|
19748
|
+
"returns": "\"(b=1, `10`=2, `2`=3)\"",
|
|
19749
|
+
"builtins": [
|
|
19750
|
+
"Print"
|
|
19751
|
+
]
|
|
19752
|
+
},
|
|
19641
19753
|
{
|
|
19642
19754
|
"id": "east:variant.examples.ts:variantCreate",
|
|
19643
19755
|
"skill": "east",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/east-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.106",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "East's agent plugin runtime — the example index generator, the example search and its MCP tools, the search-first hooks and the Codex skill adapter — for a Claude Code or Codex plugin that builds on East's.",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
44
44
|
"minisearch": "^7.1.2",
|
|
45
45
|
"zod": "^3.0.0",
|
|
46
|
-
"@elaraai/east": "1.0.
|
|
47
|
-
"@elaraai/east-diagnostics": "1.0.
|
|
46
|
+
"@elaraai/east": "1.0.106",
|
|
47
|
+
"@elaraai/east-diagnostics": "1.0.106"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^22.18.1",
|