botinabox 2.7.3 → 2.7.5
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 +10 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2518,7 +2518,7 @@ ${lines.join("\n")}
|
|
|
2518
2518
|
async init(opts) {
|
|
2519
2519
|
await this.lattice.init({ migrations: opts?.migrations });
|
|
2520
2520
|
for (const stmt of this.deferredStatements) {
|
|
2521
|
-
this.lattice.
|
|
2521
|
+
this.lattice.adapter.run(stmt);
|
|
2522
2522
|
}
|
|
2523
2523
|
this._initialized = true;
|
|
2524
2524
|
}
|
|
@@ -2613,7 +2613,15 @@ ${lines.join("\n")}
|
|
|
2613
2613
|
// --- Schema introspection ------------------------------------------
|
|
2614
2614
|
tableInfo(table) {
|
|
2615
2615
|
this.assertInitialized();
|
|
2616
|
-
|
|
2616
|
+
const names = this.lattice.adapter.introspectColumns(table);
|
|
2617
|
+
return names.map((name, cid) => ({
|
|
2618
|
+
cid,
|
|
2619
|
+
name,
|
|
2620
|
+
type: "",
|
|
2621
|
+
notnull: 0,
|
|
2622
|
+
dflt_value: null,
|
|
2623
|
+
pk: 0
|
|
2624
|
+
}));
|
|
2617
2625
|
}
|
|
2618
2626
|
// --- Lifecycle ------------------------------------------------------
|
|
2619
2627
|
close() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botinabox",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5",
|
|
4
4
|
"description": "Bot in a Box — framework for building multi-agent bots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@types/uuid": "^10.0.0",
|
|
61
61
|
"ajv": "^8.17.1",
|
|
62
62
|
"cron-parser": "^4.9.0",
|
|
63
|
-
"latticesql": "^1.6.
|
|
63
|
+
"latticesql": "^1.6.3",
|
|
64
64
|
"uuid": "^13.0.0",
|
|
65
65
|
"yaml": "^2.7.0"
|
|
66
66
|
},
|