@fro.bot/systematic 3.16.0 → 3.16.1
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/index.js +69 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4005,7 +4005,7 @@ import { randomBytes as randomBytes3 } from "crypto";
|
|
|
4005
4005
|
import fs7 from "fs";
|
|
4006
4006
|
import { fileURLToPath } from "url";
|
|
4007
4007
|
|
|
4008
|
-
// node_modules/.bun/web-tree-sitter@0.
|
|
4008
|
+
// node_modules/.bun/web-tree-sitter@0.27.0/node_modules/web-tree-sitter/web-tree-sitter.js
|
|
4009
4009
|
var __defProp = Object.defineProperty;
|
|
4010
4010
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4011
4011
|
var Edit = class {
|
|
@@ -4110,44 +4110,65 @@ function setModule(module2) {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
__name(setModule, "setModule");
|
|
4112
4112
|
var C;
|
|
4113
|
+
function newFinalizer(handler) {
|
|
4114
|
+
try {
|
|
4115
|
+
return new FinalizationRegistry(handler);
|
|
4116
|
+
} catch (e) {
|
|
4117
|
+
console.error("Unsupported FinalizationRegistry:", e);
|
|
4118
|
+
return;
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
__name(newFinalizer, "newFinalizer");
|
|
4122
|
+
var finalizer = newFinalizer((address) => {
|
|
4123
|
+
C._ts_lookahead_iterator_delete(address);
|
|
4124
|
+
});
|
|
4113
4125
|
var LookaheadIterator = class {
|
|
4114
4126
|
static {
|
|
4115
4127
|
__name(this, "LookaheadIterator");
|
|
4116
4128
|
}
|
|
4117
4129
|
[0] = 0;
|
|
4118
4130
|
language;
|
|
4131
|
+
positioned = false;
|
|
4119
4132
|
constructor(internal, address, language) {
|
|
4120
4133
|
assertInternal(internal);
|
|
4121
4134
|
this[0] = address;
|
|
4122
4135
|
this.language = language;
|
|
4136
|
+
finalizer?.register(this, address, this);
|
|
4123
4137
|
}
|
|
4124
4138
|
get currentTypeId() {
|
|
4125
|
-
return C._ts_lookahead_iterator_current_symbol(this[0]);
|
|
4139
|
+
return this.positioned ? C._ts_lookahead_iterator_current_symbol(this[0]) : null;
|
|
4126
4140
|
}
|
|
4127
4141
|
get currentType() {
|
|
4128
|
-
|
|
4142
|
+
const id = this.currentTypeId;
|
|
4143
|
+
if (id === null)
|
|
4144
|
+
return null;
|
|
4145
|
+
return this.language.types[id] ?? C.UTF8ToString(C._ts_language_symbol_name(this.language[0], id));
|
|
4129
4146
|
}
|
|
4130
4147
|
delete() {
|
|
4148
|
+
finalizer?.unregister(this);
|
|
4131
4149
|
C._ts_lookahead_iterator_delete(this[0]);
|
|
4132
4150
|
this[0] = 0;
|
|
4133
4151
|
}
|
|
4134
4152
|
reset(language, stateId) {
|
|
4135
4153
|
if (C._ts_lookahead_iterator_reset(this[0], language[0], stateId)) {
|
|
4136
4154
|
this.language = language;
|
|
4155
|
+
this.positioned = false;
|
|
4137
4156
|
return true;
|
|
4138
4157
|
}
|
|
4139
4158
|
return false;
|
|
4140
4159
|
}
|
|
4141
4160
|
resetState(stateId) {
|
|
4142
|
-
|
|
4161
|
+
if (!C._ts_lookahead_iterator_reset_state(this[0], stateId))
|
|
4162
|
+
return false;
|
|
4163
|
+
this.positioned = false;
|
|
4164
|
+
return true;
|
|
4143
4165
|
}
|
|
4144
4166
|
[Symbol.iterator]() {
|
|
4145
4167
|
return {
|
|
4146
4168
|
next: /* @__PURE__ */ __name(() => {
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
}
|
|
4150
|
-
return { done: true, value: "" };
|
|
4169
|
+
this.positioned = Boolean(C._ts_lookahead_iterator_next(this[0]));
|
|
4170
|
+
const value = this.currentType;
|
|
4171
|
+
return value === null ? { done: true, value: "" } : { done: false, value };
|
|
4151
4172
|
}, "next")
|
|
4152
4173
|
};
|
|
4153
4174
|
}
|
|
@@ -4173,6 +4194,9 @@ function getText(tree, startIndex, endIndex, startPosition) {
|
|
|
4173
4194
|
return result ?? "";
|
|
4174
4195
|
}
|
|
4175
4196
|
__name(getText, "getText");
|
|
4197
|
+
var finalizer2 = newFinalizer((address) => {
|
|
4198
|
+
C._ts_tree_delete(address);
|
|
4199
|
+
});
|
|
4176
4200
|
var Tree = class _Tree {
|
|
4177
4201
|
static {
|
|
4178
4202
|
__name(this, "Tree");
|
|
@@ -4185,12 +4209,14 @@ var Tree = class _Tree {
|
|
|
4185
4209
|
this[0] = address;
|
|
4186
4210
|
this.language = language;
|
|
4187
4211
|
this.textCallback = textCallback;
|
|
4212
|
+
finalizer2?.register(this, address, this);
|
|
4188
4213
|
}
|
|
4189
4214
|
copy() {
|
|
4190
4215
|
const address = C._ts_tree_copy(this[0]);
|
|
4191
4216
|
return new _Tree(INTERNAL, address, this.language, this.textCallback);
|
|
4192
4217
|
}
|
|
4193
4218
|
delete() {
|
|
4219
|
+
finalizer2?.unregister(this);
|
|
4194
4220
|
C._ts_tree_delete(this[0]);
|
|
4195
4221
|
this[0] = 0;
|
|
4196
4222
|
}
|
|
@@ -4246,6 +4272,9 @@ var Tree = class _Tree {
|
|
|
4246
4272
|
return result;
|
|
4247
4273
|
}
|
|
4248
4274
|
};
|
|
4275
|
+
var finalizer3 = newFinalizer((address) => {
|
|
4276
|
+
C._ts_tree_cursor_delete_wasm(address);
|
|
4277
|
+
});
|
|
4249
4278
|
var TreeCursor = class _TreeCursor {
|
|
4250
4279
|
static {
|
|
4251
4280
|
__name(this, "TreeCursor");
|
|
@@ -4259,6 +4288,7 @@ var TreeCursor = class _TreeCursor {
|
|
|
4259
4288
|
assertInternal(internal);
|
|
4260
4289
|
this.tree = tree;
|
|
4261
4290
|
unmarshalTreeCursor(this);
|
|
4291
|
+
finalizer3?.register(this, this.tree[0], this);
|
|
4262
4292
|
}
|
|
4263
4293
|
copy() {
|
|
4264
4294
|
const copy = new _TreeCursor(INTERNAL, this.tree);
|
|
@@ -4267,6 +4297,7 @@ var TreeCursor = class _TreeCursor {
|
|
|
4267
4297
|
return copy;
|
|
4268
4298
|
}
|
|
4269
4299
|
delete() {
|
|
4300
|
+
finalizer3?.unregister(this);
|
|
4270
4301
|
marshalTreeCursor(this);
|
|
4271
4302
|
C._ts_tree_cursor_delete_wasm(this.tree[0]);
|
|
4272
4303
|
this[0] = this[1] = this[2] = 0;
|
|
@@ -5026,16 +5057,23 @@ ${body2}`);
|
|
|
5026
5057
|
}
|
|
5027
5058
|
}
|
|
5028
5059
|
const mod = await C.loadWebAssemblyModule(binary2, { loadAsync: true });
|
|
5060
|
+
return _Language.loadFromWasmExports(mod, { sync: false });
|
|
5061
|
+
}
|
|
5062
|
+
static loadFromWasmExports(mod, { sync }) {
|
|
5029
5063
|
const symbolNames = Object.keys(mod);
|
|
5030
5064
|
const functionName = symbolNames.find((key) => LANGUAGE_FUNCTION_REGEX.test(key) && !key.includes("external_scanner_"));
|
|
5031
5065
|
if (!functionName) {
|
|
5032
5066
|
console.log(`Couldn't find language function in Wasm file. Symbols:
|
|
5033
5067
|
${JSON.stringify(symbolNames, null, 2)}`);
|
|
5034
|
-
throw new Error("
|
|
5068
|
+
throw new Error(`Language.${sync ? "loadSync" : "load"} failed: no language function found in Wasm file`);
|
|
5035
5069
|
}
|
|
5036
5070
|
const languageAddress = mod[functionName]();
|
|
5037
5071
|
return new _Language(INTERNAL, languageAddress);
|
|
5038
5072
|
}
|
|
5073
|
+
static loadSync(wasmModule) {
|
|
5074
|
+
const mod = C.loadWebAssemblyModule(wasmModule, { loadAsync: false });
|
|
5075
|
+
return _Language.loadFromWasmExports(mod, { sync: true });
|
|
5076
|
+
}
|
|
5039
5077
|
};
|
|
5040
5078
|
async function Module2(moduleArg = {}) {
|
|
5041
5079
|
var moduleRtn;
|
|
@@ -5555,7 +5593,7 @@ async function Module2(moduleArg = {}) {
|
|
|
5555
5593
|
newDSO("__main__", 0, wasmImports);
|
|
5556
5594
|
}
|
|
5557
5595
|
};
|
|
5558
|
-
var ___heap_base =
|
|
5596
|
+
var ___heap_base = 82240;
|
|
5559
5597
|
var alignMemory = /* @__PURE__ */ __name((size, alignment) => Math.ceil(size / alignment) * alignment, "alignMemory");
|
|
5560
5598
|
var getMemory = /* @__PURE__ */ __name((size) => {
|
|
5561
5599
|
if (runtimeInitialized) {
|
|
@@ -6081,12 +6119,12 @@ async function Module2(moduleArg = {}) {
|
|
|
6081
6119
|
value: "i32",
|
|
6082
6120
|
mutable: false
|
|
6083
6121
|
}, 1024);
|
|
6084
|
-
var ___stack_high =
|
|
6085
|
-
var ___stack_low =
|
|
6122
|
+
var ___stack_high = 82240;
|
|
6123
|
+
var ___stack_low = 16704;
|
|
6086
6124
|
var ___stack_pointer = new WebAssembly.Global({
|
|
6087
6125
|
value: "i32",
|
|
6088
6126
|
mutable: true
|
|
6089
|
-
},
|
|
6127
|
+
}, 82240);
|
|
6090
6128
|
var ___table_base = new WebAssembly.Global({
|
|
6091
6129
|
value: "i32",
|
|
6092
6130
|
mutable: false
|
|
@@ -6353,7 +6391,7 @@ async function Module2(moduleArg = {}) {
|
|
|
6353
6391
|
Module["loadWebAssemblyModule"] = loadWebAssemblyModule;
|
|
6354
6392
|
Module["LE_HEAP_STORE_I64"] = LE_HEAP_STORE_I64;
|
|
6355
6393
|
var ASM_CONSTS = {};
|
|
6356
|
-
var _malloc, _calloc, _realloc, _free, _ts_range_edit, _memcmp, _ts_language_symbol_count, _ts_language_state_count, _ts_language_abi_version, _ts_language_name, _ts_language_field_count, _ts_language_next_state, _ts_language_symbol_name, _ts_language_symbol_for_name, _strncmp, _ts_language_symbol_type, _ts_language_field_name_for_id, _ts_lookahead_iterator_new, _ts_lookahead_iterator_delete, _ts_lookahead_iterator_reset_state, _ts_lookahead_iterator_reset, _ts_lookahead_iterator_next, _ts_lookahead_iterator_current_symbol, _ts_point_edit, _ts_parser_delete, _ts_parser_reset, _ts_parser_set_language, _ts_parser_set_included_ranges, _ts_query_new, _ts_query_delete, _iswspace, _iswalnum, _ts_query_pattern_count, _ts_query_capture_count, _ts_query_string_count, _ts_query_capture_name_for_id, _ts_query_capture_quantifier_for_id, _ts_query_string_value_for_id, _ts_query_predicates_for_pattern, _ts_query_start_byte_for_pattern, _ts_query_end_byte_for_pattern, _ts_query_is_pattern_rooted, _ts_query_is_pattern_non_local, _ts_query_is_pattern_guaranteed_at_step, _ts_query_disable_capture, _ts_query_disable_pattern, _ts_tree_copy, _ts_tree_delete, _ts_init, _ts_parser_new_wasm, _ts_parser_enable_logger_wasm, _ts_parser_parse_wasm, _ts_parser_included_ranges_wasm, _ts_language_type_is_named_wasm, _ts_language_type_is_visible_wasm, _ts_language_metadata_wasm, _ts_language_supertypes_wasm, _ts_language_subtypes_wasm, _ts_tree_root_node_wasm, _ts_tree_root_node_with_offset_wasm, _ts_tree_edit_wasm, _ts_tree_included_ranges_wasm, _ts_tree_get_changed_ranges_wasm, _ts_tree_cursor_new_wasm, _ts_tree_cursor_copy_wasm, _ts_tree_cursor_delete_wasm, _ts_tree_cursor_reset_wasm, _ts_tree_cursor_reset_to_wasm, _ts_tree_cursor_goto_first_child_wasm, _ts_tree_cursor_goto_last_child_wasm, _ts_tree_cursor_goto_first_child_for_index_wasm, _ts_tree_cursor_goto_first_child_for_position_wasm, _ts_tree_cursor_goto_next_sibling_wasm, _ts_tree_cursor_goto_previous_sibling_wasm, _ts_tree_cursor_goto_descendant_wasm, _ts_tree_cursor_goto_parent_wasm, _ts_tree_cursor_current_node_type_id_wasm, _ts_tree_cursor_current_node_state_id_wasm, _ts_tree_cursor_current_node_is_named_wasm, _ts_tree_cursor_current_node_is_missing_wasm, _ts_tree_cursor_current_node_id_wasm, _ts_tree_cursor_start_position_wasm, _ts_tree_cursor_end_position_wasm, _ts_tree_cursor_start_index_wasm, _ts_tree_cursor_end_index_wasm, _ts_tree_cursor_current_field_id_wasm, _ts_tree_cursor_current_depth_wasm, _ts_tree_cursor_current_descendant_index_wasm, _ts_tree_cursor_current_node_wasm, _ts_node_symbol_wasm, _ts_node_field_name_for_child_wasm, _ts_node_field_name_for_named_child_wasm, _ts_node_children_by_field_id_wasm, _ts_node_first_child_for_byte_wasm, _ts_node_first_named_child_for_byte_wasm, _ts_node_grammar_symbol_wasm, _ts_node_child_count_wasm, _ts_node_named_child_count_wasm, _ts_node_child_wasm, _ts_node_named_child_wasm, _ts_node_child_by_field_id_wasm, _ts_node_next_sibling_wasm, _ts_node_prev_sibling_wasm, _ts_node_next_named_sibling_wasm, _ts_node_prev_named_sibling_wasm, _ts_node_descendant_count_wasm, _ts_node_parent_wasm, _ts_node_child_with_descendant_wasm, _ts_node_descendant_for_index_wasm, _ts_node_named_descendant_for_index_wasm, _ts_node_descendant_for_position_wasm, _ts_node_named_descendant_for_position_wasm, _ts_node_start_point_wasm, _ts_node_end_point_wasm, _ts_node_start_index_wasm, _ts_node_end_index_wasm, _ts_node_to_string_wasm, _ts_node_children_wasm, _ts_node_named_children_wasm, _ts_node_descendants_of_type_wasm, _ts_node_is_named_wasm, _ts_node_has_changes_wasm, _ts_node_has_error_wasm, _ts_node_is_error_wasm, _ts_node_is_missing_wasm, _ts_node_is_extra_wasm, _ts_node_parse_state_wasm, _ts_node_next_parse_state_wasm, _ts_query_matches_wasm, _ts_query_captures_wasm, _memset, _memcpy, _memmove, _iswalpha, _iswblank, _iswdigit, _iswlower, _iswupper, _iswxdigit, _memchr, _strlen, _strcmp, _strncat, _strncpy, _towlower, _towupper, _setThrew, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, ___wasm_apply_data_relocs;
|
|
6394
|
+
var _malloc, _calloc, _realloc, _free, _ts_range_edit, _memcmp, _ts_language_symbol_count, _ts_language_state_count, _ts_language_abi_version, _ts_language_name, _ts_language_field_count, _ts_language_next_state, _ts_language_symbol_name, _ts_language_symbol_for_name, _strncmp, _ts_language_symbol_type, _ts_language_field_name_for_id, _ts_lookahead_iterator_new, _ts_lookahead_iterator_delete, _ts_lookahead_iterator_reset_state, _ts_lookahead_iterator_reset, _ts_lookahead_iterator_next, _ts_lookahead_iterator_current_symbol, _ts_point_edit, _ts_parser_delete, _ts_parser_reset, _ts_parser_set_language, _ts_parser_set_included_ranges, _ts_query_new, _ts_query_delete, _iswspace, _iswalnum, _ts_query_copy, _ts_query_pattern_count, _ts_query_capture_count, _ts_query_string_count, _ts_query_capture_name_for_id, _ts_query_capture_quantifier_for_id, _ts_query_string_value_for_id, _ts_query_predicates_for_pattern, _ts_query_start_byte_for_pattern, _ts_query_end_byte_for_pattern, _ts_query_is_pattern_rooted, _ts_query_is_pattern_non_local, _ts_query_is_pattern_guaranteed_at_step, _ts_query_disable_capture, _ts_query_disable_pattern, _ts_tree_copy, _ts_tree_delete, _ts_init, _ts_parser_new_wasm, _ts_parser_enable_logger_wasm, _ts_parser_parse_wasm, _ts_parser_included_ranges_wasm, _ts_language_type_is_named_wasm, _ts_language_type_is_visible_wasm, _ts_language_metadata_wasm, _ts_language_supertypes_wasm, _ts_language_subtypes_wasm, _ts_tree_root_node_wasm, _ts_tree_root_node_with_offset_wasm, _ts_tree_edit_wasm, _ts_tree_included_ranges_wasm, _ts_tree_get_changed_ranges_wasm, _ts_tree_cursor_new_wasm, _ts_tree_cursor_copy_wasm, _ts_tree_cursor_delete_wasm, _ts_tree_cursor_reset_wasm, _ts_tree_cursor_reset_to_wasm, _ts_tree_cursor_goto_first_child_wasm, _ts_tree_cursor_goto_last_child_wasm, _ts_tree_cursor_goto_first_child_for_index_wasm, _ts_tree_cursor_goto_first_child_for_position_wasm, _ts_tree_cursor_goto_next_sibling_wasm, _ts_tree_cursor_goto_previous_sibling_wasm, _ts_tree_cursor_goto_descendant_wasm, _ts_tree_cursor_goto_parent_wasm, _ts_tree_cursor_current_node_type_id_wasm, _ts_tree_cursor_current_node_state_id_wasm, _ts_tree_cursor_current_node_is_named_wasm, _ts_tree_cursor_current_node_is_missing_wasm, _ts_tree_cursor_current_node_id_wasm, _ts_tree_cursor_start_position_wasm, _ts_tree_cursor_end_position_wasm, _ts_tree_cursor_start_index_wasm, _ts_tree_cursor_end_index_wasm, _ts_tree_cursor_current_field_id_wasm, _ts_tree_cursor_current_depth_wasm, _ts_tree_cursor_current_descendant_index_wasm, _ts_tree_cursor_current_node_wasm, _ts_node_symbol_wasm, _ts_node_field_name_for_child_wasm, _ts_node_field_name_for_named_child_wasm, _ts_node_children_by_field_id_wasm, _ts_node_first_child_for_byte_wasm, _ts_node_first_named_child_for_byte_wasm, _ts_node_grammar_symbol_wasm, _ts_node_child_count_wasm, _ts_node_named_child_count_wasm, _ts_node_child_wasm, _ts_node_named_child_wasm, _ts_node_child_by_field_id_wasm, _ts_node_next_sibling_wasm, _ts_node_prev_sibling_wasm, _ts_node_next_named_sibling_wasm, _ts_node_prev_named_sibling_wasm, _ts_node_descendant_count_wasm, _ts_node_parent_wasm, _ts_node_child_with_descendant_wasm, _ts_node_descendant_for_index_wasm, _ts_node_named_descendant_for_index_wasm, _ts_node_descendant_for_position_wasm, _ts_node_named_descendant_for_position_wasm, _ts_node_start_point_wasm, _ts_node_end_point_wasm, _ts_node_start_index_wasm, _ts_node_end_index_wasm, _ts_node_to_string_wasm, _ts_node_children_wasm, _ts_node_named_children_wasm, _ts_node_descendants_of_type_wasm, _ts_node_is_named_wasm, _ts_node_has_changes_wasm, _ts_node_has_error_wasm, _ts_node_is_error_wasm, _ts_node_is_missing_wasm, _ts_node_is_extra_wasm, _ts_node_parse_state_wasm, _ts_node_next_parse_state_wasm, _ts_query_matches_wasm, _ts_query_captures_wasm, _memset, _memcpy, _memmove, _iswalpha, _iswblank, _iswdigit, _iswlower, _iswpunct, _iswupper, _iswxdigit, _memchr, _strlen, _strcmp, _strncat, _strncpy, _towlower, _towupper, _setThrew, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, ___wasm_apply_data_relocs;
|
|
6357
6395
|
function assignWasmExports(wasmExports2) {
|
|
6358
6396
|
Module["_malloc"] = _malloc = wasmExports2["malloc"];
|
|
6359
6397
|
Module["_calloc"] = _calloc = wasmExports2["calloc"];
|
|
@@ -6387,6 +6425,7 @@ async function Module2(moduleArg = {}) {
|
|
|
6387
6425
|
Module["_ts_query_delete"] = _ts_query_delete = wasmExports2["ts_query_delete"];
|
|
6388
6426
|
Module["_iswspace"] = _iswspace = wasmExports2["iswspace"];
|
|
6389
6427
|
Module["_iswalnum"] = _iswalnum = wasmExports2["iswalnum"];
|
|
6428
|
+
Module["_ts_query_copy"] = _ts_query_copy = wasmExports2["ts_query_copy"];
|
|
6390
6429
|
Module["_ts_query_pattern_count"] = _ts_query_pattern_count = wasmExports2["ts_query_pattern_count"];
|
|
6391
6430
|
Module["_ts_query_capture_count"] = _ts_query_capture_count = wasmExports2["ts_query_capture_count"];
|
|
6392
6431
|
Module["_ts_query_string_count"] = _ts_query_string_count = wasmExports2["ts_query_string_count"];
|
|
@@ -6492,6 +6531,7 @@ async function Module2(moduleArg = {}) {
|
|
|
6492
6531
|
Module["_iswblank"] = _iswblank = wasmExports2["iswblank"];
|
|
6493
6532
|
Module["_iswdigit"] = _iswdigit = wasmExports2["iswdigit"];
|
|
6494
6533
|
Module["_iswlower"] = _iswlower = wasmExports2["iswlower"];
|
|
6534
|
+
Module["_iswpunct"] = _iswpunct = wasmExports2["iswpunct"];
|
|
6495
6535
|
Module["_iswupper"] = _iswupper = wasmExports2["iswupper"];
|
|
6496
6536
|
Module["_iswxdigit"] = _iswxdigit = wasmExports2["iswxdigit"];
|
|
6497
6537
|
Module["_memchr"] = _memchr = wasmExports2["memchr"];
|
|
@@ -6611,6 +6651,10 @@ __name(checkModule, "checkModule");
|
|
|
6611
6651
|
var TRANSFER_BUFFER;
|
|
6612
6652
|
var LANGUAGE_VERSION;
|
|
6613
6653
|
var MIN_COMPATIBLE_VERSION;
|
|
6654
|
+
var finalizer4 = newFinalizer((addresses) => {
|
|
6655
|
+
C._ts_parser_delete(addresses[0]);
|
|
6656
|
+
C._free(addresses[1]);
|
|
6657
|
+
});
|
|
6614
6658
|
var Parser = class {
|
|
6615
6659
|
static {
|
|
6616
6660
|
__name(this, "Parser");
|
|
@@ -6627,6 +6671,7 @@ var Parser = class {
|
|
|
6627
6671
|
}
|
|
6628
6672
|
constructor() {
|
|
6629
6673
|
this.initialize();
|
|
6674
|
+
finalizer4?.register(this, [this[0], this[1]], this);
|
|
6630
6675
|
}
|
|
6631
6676
|
initialize() {
|
|
6632
6677
|
if (!checkModule()) {
|
|
@@ -6637,6 +6682,7 @@ var Parser = class {
|
|
|
6637
6682
|
this[1] = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
|
|
6638
6683
|
}
|
|
6639
6684
|
delete() {
|
|
6685
|
+
finalizer4?.unregister(this);
|
|
6640
6686
|
C._ts_parser_delete(this[0]);
|
|
6641
6687
|
C._free(this[1]);
|
|
6642
6688
|
this[0] = 0;
|
|
@@ -6767,6 +6813,10 @@ var QueryError = class _QueryError extends Error {
|
|
|
6767
6813
|
this.length = length;
|
|
6768
6814
|
this.name = "QueryError";
|
|
6769
6815
|
}
|
|
6816
|
+
kind;
|
|
6817
|
+
info;
|
|
6818
|
+
index;
|
|
6819
|
+
length;
|
|
6770
6820
|
static {
|
|
6771
6821
|
__name(this, "QueryError");
|
|
6772
6822
|
}
|
|
@@ -6950,6 +7000,9 @@ function parsePattern(index, stepType, stepValueId, captureNames, stringValues,
|
|
|
6950
7000
|
}
|
|
6951
7001
|
}
|
|
6952
7002
|
__name(parsePattern, "parsePattern");
|
|
7003
|
+
var finalizer5 = newFinalizer((address) => {
|
|
7004
|
+
C._ts_query_delete(address);
|
|
7005
|
+
});
|
|
6953
7006
|
var Query = class {
|
|
6954
7007
|
static {
|
|
6955
7008
|
__name(this, "Query");
|
|
@@ -7049,8 +7102,10 @@ var Query = class {
|
|
|
7049
7102
|
this.assertedProperties = assertedProperties;
|
|
7050
7103
|
this.refutedProperties = refutedProperties;
|
|
7051
7104
|
this.exceededMatchLimit = false;
|
|
7105
|
+
finalizer5?.register(this, address, this);
|
|
7052
7106
|
}
|
|
7053
7107
|
delete() {
|
|
7108
|
+
finalizer5?.unregister(this);
|
|
7054
7109
|
C._ts_query_delete(this[0]);
|
|
7055
7110
|
this[0] = 0;
|
|
7056
7111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"js-yaml": "^4.3.1",
|
|
118
118
|
"jsonc-parser": "^3.3.0",
|
|
119
119
|
"tree-sitter-bash": "0.25.1",
|
|
120
|
-
"web-tree-sitter": "0.
|
|
120
|
+
"web-tree-sitter": "0.27.0",
|
|
121
121
|
"zod": "4.5.4"
|
|
122
122
|
},
|
|
123
123
|
"overrides": {
|