@deepagents/text2sql 0.25.0 → 0.26.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.
@@ -121,6 +121,22 @@ var Adapter = class {
121
121
  }
122
122
  return this.#toSchemaFragments(ctx);
123
123
  }
124
+ /**
125
+ * Resolve the allowed entity names (tables + views) from grounding config.
126
+ * Runs all configured groundings and returns the resolved set of names.
127
+ * Results are NOT cached — call once and store the result.
128
+ */
129
+ async resolveAllowedEntities() {
130
+ const ctx = createGroundingContext();
131
+ for (const fn of this.grounding) {
132
+ const grounding = fn(this);
133
+ await grounding.execute(ctx);
134
+ }
135
+ return [
136
+ ...ctx.tables.map((t) => t.name),
137
+ ...ctx.views.map((v) => v.name)
138
+ ];
139
+ }
124
140
  /**
125
141
  * Convert complete grounding context to schema fragments.
126
142
  * Called after all groundings have populated ctx with data.