Skip to content

Commit 38eabdb

Browse files
authored
Merge pull request #29 from constructive-io/devin/1776504278-bump-constructive-deps
chore(deps): bump all @constructive-io/* and graphile-* packages to latest
2 parents 2efb021 + 2c465a1 commit 38eabdb

13 files changed

Lines changed: 6168 additions & 11925 deletions

File tree

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
"overrides": {
3333
"graphql": "16.13.0",
3434
"grafast": "1.0.0-rc.9",
35-
"graphile-build": "5.0.0-rc.6",
36-
"graphile-build-pg": "5.0.0-rc.8",
37-
"graphile-config": "1.0.0-rc.6",
38-
"graphile-utils": "5.0.0-rc.8",
39-
"postgraphile": "5.0.0-rc.10",
35+
"graphile-build": "5.0.0",
36+
"graphile-build-pg": "5.0.1",
37+
"graphile-config": "1.0.1",
38+
"graphile-utils": "5.0.1",
39+
"postgraphile": "5.0.1",
4040
"@dataplan/json": "1.0.0-rc.6",
4141
"@dataplan/pg": "1.0.0-rc.8",
4242
"pg-sql2": "5.0.0-rc.5",
4343
"tamedevil": "0.1.0-rc.6"
4444
}
4545
},
4646
"devDependencies": {
47-
"@constructive-io/graphql-codegen": "4.30.0",
47+
"@constructive-io/graphql-codegen": "4.30.1",
4848
"@types/jest": "^30.0.0",
4949
"@types/node": "^25.0.3",
5050
"@typescript-eslint/eslint-plugin": "^8.58.0",
@@ -53,12 +53,12 @@
5353
"eslint-config-prettier": "^10.1.8",
5454
"eslint-plugin-simple-import-sort": "^12.1.1",
5555
"eslint-plugin-unused-imports": "^4.3.0",
56-
"graphile-test": "^4.7.6",
56+
"graphile-test": "^4.9.0",
5757
"graphql": "16.13.0",
5858
"jest": "^30.2.0",
5959
"lerna": "^9.0.3",
6060
"makage": "0.3.0",
61-
"pgsql-test": "^4.7.6",
61+
"pgsql-test": "^4.9.0",
6262
"prettier": "^3.7.4",
6363
"ts-jest": "^29.4.6",
6464
"ts-node": "^10.9.2",

packages/agentic-db-services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@pgpm/services": "^0.20.2"
2828
},
2929
"devDependencies": {
30-
"pgsql-test": "^4.7.6"
30+
"pgsql-test": "^4.9.0"
3131
},
3232
"gitHead": "6ee5d4d10a79a33b26fb3091bc60c51bac0ee78d"
3333
}

packages/agentic-db/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"devDependencies": {
3838
"@agentic-db/sdk": "workspace:*",
3939
"@agentic-kit/ollama": "^1.0.3",
40-
"@constructive-io/graphql-test": "^4.9.10",
41-
"graphile-settings": "4.21.0",
42-
"pgsql-test": "^4.7.6"
40+
"@constructive-io/graphql-test": "^4.11.1",
41+
"graphile-settings": "4.21.1",
42+
"pgsql-test": "^4.9.0"
4343
}
4444
}

packages/cli-e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"devDependencies": {
1313
"@agentic-db/sdk": "workspace:*",
1414
"graphql-server-test": "^2.10.6",
15-
"pgsql-test": "^4.7.6"
15+
"pgsql-test": "^4.9.0"
1616
}
1717
}

packages/integration-tests/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
"devDependencies": {
1616
"@0no-co/graphql.web": "^1.2.0",
1717
"@agentic-kit/ollama": "^1.0.3",
18-
"@constructive-io/graphql-codegen": "4.30.0",
19-
"@constructive-io/graphql-query": "3.12.11",
20-
"@constructive-io/graphql-types": "3.4.3",
18+
"@constructive-io/graphql-codegen": "4.30.1",
19+
"@constructive-io/graphql-query": "3.14.1",
20+
"@constructive-io/graphql-types": "3.5.0",
2121
"@types/pg": "^8.16.0",
2222
"gql-ast": "3.4.2",
23-
"graphile-settings": "4.18.5",
24-
"graphile-test": "^4.7.6",
23+
"graphile-settings": "4.21.1",
24+
"graphile-test": "^4.9.0",
2525
"graphql": "16.13.0",
26-
"pgsql-test": "^4.7.6",
26+
"pgsql-test": "^4.9.0",
2727
"typescript": "^5.9.3"
2828
}
2929
}

packages/provision/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"provision": "tsx src/provision.ts"
1717
},
1818
"dependencies": {
19-
"@constructive-io/node": "^0.10.1",
19+
"@constructive-io/node": "^0.10.2",
2020
"dotenv": "^16.4.5",
2121
"node-type-registry": "^0.16.0",
2222
"pg": "^8.20.0"

packages/rag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@agentic-db/sdk": "workspace:*",
2323
"@agentic-kit/anthropic": "^1.0.3",
2424
"@agentic-kit/ollama": "^1.0.3",
25-
"@constructive-io/node": "^0.10.0",
25+
"@constructive-io/node": "^0.10.2",
2626
"agentic-kit": "^1.0.3",
2727
"dotenv": "^16.0.0"
2828
},

packages/worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dependencies": {
2020
"@agentic-db/sdk": "workspace:*",
2121
"@agentic-kit/ollama": "^1.0.3",
22-
"@constructive-io/node": "^0.10.1",
22+
"@constructive-io/node": "^0.10.2",
2323
"agentic-kit": "^1.0.3",
2424
"dotenv": "^17.3.1",
2525
"graphile-worker": "^0.16.6"

pnpm-lock.yaml

Lines changed: 6129 additions & 11888 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cli/generated/cli/embedder.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,14 @@ function buildEmbedder(config: EmbedderConfig): EmbedderFunction | null {
9797
* @param embedder - The resolved embedder function
9898
* @returns The modified where clause
9999
*/
100-
export async function autoEmbedWhere(
101-
where: Record<string, unknown>,
100+
export async function autoEmbedWhere<T extends object>(
101+
where: T,
102102
vectorFieldNames: string[],
103103
embedder: EmbedderFunction
104-
): Promise<Record<string, unknown>> {
104+
): Promise<T> {
105+
const rec = where as unknown as Record<string, unknown>;
105106
for (const fieldName of vectorFieldNames) {
106-
const fieldValue = where[fieldName];
107+
const fieldValue = rec[fieldName];
107108
if (fieldValue && typeof fieldValue === 'object') {
108109
const input = fieldValue as Record<string, unknown>;
109110
// If 'vector' is a string, embed it
@@ -116,7 +117,7 @@ export async function autoEmbedWhere(
116117
// Shorthand: --where.vectorEmbedding "text" with --auto-embed
117118
// becomes { vector: [embedded], metric: 'COSINE' }
118119
const embedding = await embedder(fieldValue);
119-
where[fieldName] = { vector: embedding };
120+
rec[fieldName] = { vector: embedding };
120121
}
121122
}
122123
return where;
@@ -141,17 +142,18 @@ export async function autoEmbedWhere(
141142
* @param embedder - The resolved embedder function
142143
* @returns The modified data object with text values replaced by vectors
143144
*/
144-
export async function autoEmbedInput(
145-
data: Record<string, unknown>,
145+
export async function autoEmbedInput<T extends object>(
146+
data: T,
146147
vectorFieldNames: string[],
147148
embedder: EmbedderFunction
148-
): Promise<Record<string, unknown>> {
149+
): Promise<T> {
150+
const rec = data as unknown as Record<string, unknown>;
149151
for (const fieldName of vectorFieldNames) {
150-
const fieldValue = data[fieldName];
152+
const fieldValue = rec[fieldName];
151153
if (typeof fieldValue === 'string') {
152154
// Text string → embed to vector array
153155
const embedding = await embedder(fieldValue);
154-
data[fieldName] = embedding;
156+
rec[fieldName] = embedding;
155157
}
156158
// If it's already an array (pre-computed vector), leave it as-is
157159
}

0 commit comments

Comments
 (0)