Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agentic/agent-conversation/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/agent/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/agentic-kit/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
1 change: 1 addition & 0 deletions agentic/anthropic/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
1 change: 1 addition & 0 deletions agentic/chat/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
1 change: 1 addition & 0 deletions agentic/cli/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/db-tools/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/dsh/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/harness/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/metering/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/ollama/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
1 change: 1 addition & 0 deletions agentic/openai/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
2 changes: 1 addition & 1 deletion agentic/pi-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"dependencies": {
"@agentic-kit/agent-conversation": "workspace:^",
"@constructive-io/coerce": "^0.4.1"
"@constructive-io/coerce": "workspace:^"
},
"peerDependencies": {
"@agentic-kit/agent": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions agentic/pi-host/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/pi/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/protocol/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "es2022",
"rootDir": "src/",
Expand Down
1 change: 1 addition & 0 deletions agentic/react/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/run-log-client/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/run-log-gate/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions agentic/run-log/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "es2022",
"outDir": "dist/esm"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-bulk-mutations/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
3 changes: 1 addition & 2 deletions graphile/graphile-cache/src/create-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createServer } from 'node:http';
import { Logger } from '@pgpmjs/logger';
import express from 'express';
import { grafserv } from 'grafserv/express/v4';
import { RealtimeManager } from 'graphile-realtime-subscriptions';
import { postgraphile } from 'postgraphile';

import type { GraphileCacheEntry } from './graphile-cache';
Expand Down Expand Up @@ -60,8 +61,6 @@ export const createGraphileInstance = async (

if (enableRealtime) {
try {
const { RealtimeManager } = await import('graphile-realtime-subscriptions');

// Extract PgSubscriber and pool from the resolved preset's pgServices.
// The pool is the same instance managed by pg-cache (via getPgPool)
// and threaded into the preset by makePgService({ pool, schemas }).
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-connection-filter/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-function-bindings/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ES2020",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-history/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ES2020",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-i18n/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ES2020",
"outDir": "dist/esm"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-llm/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
3 changes: 2 additions & 1 deletion graphile/graphile-llm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
}
1 change: 1 addition & 0 deletions graphile/graphile-ltree/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-meta/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-pg-aggregates/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-postgis/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
4 changes: 3 additions & 1 deletion graphile/graphile-presigned-url-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,16 @@ export function createPresignedUrlPlugin(
GraphQLObjectType,
GraphQLInputObjectType,
GraphQLList,
isOutputType,
},
} = build;

// The projection document is jsonb-shaped. PostGraphile registers a JSON
// scalar whenever the schema has a jsonb column, which any storage-equipped
// database does; if it is absent the payload simply omits the field rather
// than failing schema build over a field nothing can have asked for yet.
const jsonType = build.getTypeByName('JSON') ?? null;
const jsonNamedType = build.getTypeByName('JSON');
const jsonType = jsonNamedType && isOutputType(jsonNamedType) ? jsonNamedType : null;
if (!jsonType) {
log.warn('No JSON scalar in this schema; upload payloads will omit the `file` projection');
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-presigned-url-plugin/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-realtime-subscriptions/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
3 changes: 1 addition & 2 deletions graphile/graphile-search/src/codecs/bm25-codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import 'graphile-build-pg';

import type { GraphileConfig } from 'graphile-config';
import { Pool } from 'pg';
import sql from 'pg-sql2';

/**
Expand Down Expand Up @@ -135,8 +136,6 @@ export const Bm25CodecPlugin: GraphileConfig.Plugin = {
return;
}

// Import pg dynamically for the discovery query
const { Pool } = await import('pg');
const existingPool = adaptorSettings.pool;
const pool = existingPool ?? new Pool({
connectionString: adaptorSettings.connectionString,
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-search/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-storage-registry/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
1 change: 1 addition & 0 deletions graphile/graphile-upload-plugin/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"outDir": "dist/esm",
"module": "ESNext"
}
Expand Down
2 changes: 1 addition & 1 deletion graphql/codegen/src/core/codegen/templates/embedder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function createOllamaEmbedder(
return async (text: string): Promise<number[]> => {
if (!clientP) {
clientP = import('@agentic-kit/ollama')
.then((m) => new m.default(baseUrl))
.then((m) => new m.OllamaClient(baseUrl))
.catch(() => {
throw new Error(
'The ollama embedder requires @agentic-kit/ollama. Install it: npm i @agentic-kit/ollama'
Expand Down
Loading
Loading