@deepagents/text2sql 2.2.0 → 2.3.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.
- package/README.md +3 -3
- package/dist/index.js +37 -89
- package/dist/index.js.map +3 -3
- package/dist/lib/sql-command.d.ts +7 -3
- package/dist/lib/sql-command.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -2,8 +2,8 @@ import type { Command } from 'just-bash';
|
|
|
2
2
|
import { Text2Sql } from './sql.ts';
|
|
3
3
|
export interface CreateSqlCommandOptions {
|
|
4
4
|
/**
|
|
5
|
-
* Default directory for `sql run`
|
|
6
|
-
*
|
|
5
|
+
* Default directory for `sql run` artifacts when no `--out-dir` is passed
|
|
6
|
+
* and `$TEXT2SQL_OUT_DIR` is unset. Defaults to `/sql`.
|
|
7
7
|
*/
|
|
8
8
|
outputDir?: string;
|
|
9
9
|
}
|
|
@@ -13,10 +13,14 @@ export interface CreateSqlCommandResult {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Wrap a {@link Text2Sql} instance as a just-bash custom command, exposing
|
|
16
|
-
* `sql run
|
|
16
|
+
* `sql run` and `sql validate` inside any sandbox that accepts
|
|
17
17
|
* `customCommands` (e.g. `createVirtualSandbox`). Argv matches the standalone
|
|
18
18
|
* `sql` CLI exactly, so prompts written against one work against the other.
|
|
19
19
|
*
|
|
20
|
+
* Bootstrap (schema indexing) is intentionally **not** exposed as a
|
|
21
|
+
* subcommand here — callers running an in-process sandbox should invoke
|
|
22
|
+
* `text2Sql.index()` directly on the host before constructing the sandbox.
|
|
23
|
+
*
|
|
20
24
|
* @example
|
|
21
25
|
* ```ts
|
|
22
26
|
* const text2Sql = new Text2Sql({ adapters: { pagila } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql-command.d.ts","sourceRoot":"","sources":["../../src/lib/sql-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sql-command.d.ts","sourceRoot":"","sources":["../../src/lib/sql-command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAA8B,MAAM,WAAW,CAAC;AAarE,OAAO,EACL,QAAQ,EAGT,MAAM,UAAU,CAAC;AAyBlB,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,GAAE,uBAA4B,GACpC,sBAAsB,CAuBxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepagents/text2sql",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@ai-sdk/groq": "^3.0.36",
|
|
88
88
|
"@ai-sdk/openai": "^3.0.49",
|
|
89
|
-
"@deepagents/agent": "2.
|
|
90
|
-
"@deepagents/context": "2.
|
|
91
|
-
"@deepagents/evals": "2.
|
|
89
|
+
"@deepagents/agent": "2.3.0",
|
|
90
|
+
"@deepagents/context": "2.3.0",
|
|
91
|
+
"@deepagents/evals": "2.3.0",
|
|
92
92
|
"@google-cloud/bigquery": "8.3.0",
|
|
93
93
|
"ai": "^6.0.174",
|
|
94
94
|
"autoevals": "0.0.132",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"cac": "7.0.0",
|
|
97
97
|
"chalk": "^5.6.0",
|
|
98
98
|
"dedent": "1.7.0",
|
|
99
|
-
"just-bash": "^3.0.
|
|
99
|
+
"just-bash": "^3.0.1",
|
|
100
100
|
"nano-spawn": "^1.0.3",
|
|
101
101
|
"node-sql-parser": "^5.4.0",
|
|
102
102
|
"openai": "5.12.2",
|