@opencode-ai/codemode 0.0.0-dev-17870 → 0.0.0-dev-17873
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.
|
@@ -621,7 +621,7 @@ export class Interpreter {
|
|
|
621
621
|
customIterator(value, node, allowAsync = true) {
|
|
622
622
|
if (value instanceof CodeModeGenerator) {
|
|
623
623
|
if (value.asynchronous && !allowAsync)
|
|
624
|
-
return Effect.
|
|
624
|
+
return Effect.undefined;
|
|
625
625
|
return Effect.succeed({
|
|
626
626
|
iterator: value,
|
|
627
627
|
next: new GeneratorMethodReference(value, "next"),
|
|
@@ -629,11 +629,11 @@ export class Interpreter {
|
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
if (!isRecord(value) || isRuntimeReference(value))
|
|
632
|
-
return Effect.
|
|
632
|
+
return Effect.undefined;
|
|
633
633
|
const asyncMethod = allowAsync ? Reflect.get(value, AsyncIteratorSymbol) : undefined;
|
|
634
634
|
const method = asyncMethod ?? Reflect.get(value, IteratorSymbol);
|
|
635
635
|
if (method === undefined || method === null)
|
|
636
|
-
return Effect.
|
|
636
|
+
return Effect.undefined;
|
|
637
637
|
const self = this;
|
|
638
638
|
return Effect.map(this.invokeCallable(this.requireIteratorMethod(method, "Iterator method", node), [], node), (iterator) => {
|
|
639
639
|
const object = self.requireIterator(iterator, node);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/codemode",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-17873",
|
|
5
5
|
"description": "Effect-native confined code execution over schema-described tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|