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
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
matrix:
include:
- batch: pg-core
packages: 'pgpm/ast pgpm/traverse pgpm/bundle pgpm/core pgpm/cli jobs/knative-job-service packages/client packages/safegres postgres/pg-codegen'
packages: 'pgpm/ast pgpm/traverse pgpm/bundle pgpm/core pgpm/cli packages/client packages/safegres postgres/pg-codegen'
- batch: pg-postgres
packages: 'postgres/pgsql-test postgres/drizzle-orm-test postgres/introspectron graphile/graphile-test graphile/graphile-connection-filter graphile/graphile-postgis'
- batch: pg-graphql
Expand Down
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ This guide helps AI agents quickly navigate the Constructive monorepo. Construct
- **`streaming/*`** – S3 helpers and stream hashing utilities
- **`extensions/*`** – PGPM extension modules (Postgres extensions packaged as PGPM modules)
- **`graphile/*`** – Graphile/PostGraphile plugins (kept under their own namespace)
- **`jobs/*`** – Knative job scheduling (worker, scheduler, service) and examples

## Entry Points

Expand Down
7 changes: 1 addition & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ React Query Hooks or Prisma-like ORM Client
| `postgres/` | PostgreSQL utilities - introspection, testing (pgsql-test), seeding, AST, query context |
| `packages/` | Shared utilities - CLI (`cnc`), ORM base, query builder, server utils, client |
| `uploads/` | File streaming - S3/MinIO, ETags, content-type detection, UUID hashing |
| `jobs/` | Knative job scheduling - worker, scheduler, service |

### Key Packages & CLIs

**`pgpm` CLI** (`pgpm/cli`) - PostgreSQL Package Manager. Commands: `init`, `add`, `deploy`, `revert`, `verify`, `plan`, `install`, `export`, `docker`, `dump`, `tag`. Manages SQL migrations in Sqitch-compatible format with dependency resolution.

**`cnc` CLI** (`packages/cli`, binary: `cnc` or `constructive`) - Full dev toolkit. Commands: `server` (start PostGraphile), `explorer` (GraphiQL UI), `codegen` (generate SDK), `get-graphql-schema`, `jobs`, `context`, `auth`, `execute`.
**`cnc` CLI** (`packages/cli`, binary: `cnc` or `constructive`) - Full dev toolkit. Commands: `server` (start PostGraphile), `explorer` (GraphiQL UI), `codegen` (generate SDK), `get-graphql-schema`, `context`, `auth`, `execute`.

**`graphql/codegen`** - Generates type-safe clients from GraphQL schema or endpoint:
- `--react-query` mode: TanStack Query v5 hooks with query key factories
Expand Down Expand Up @@ -110,10 +109,6 @@ test('example', async () => {

**`graphile/graphile-test`** - GraphQL testing with PostGraphile snapshot support.

### Job System

Background jobs use Knative: jobs are added to `app_jobs.jobs` table → `knative-job-worker` polls and picks up → POSTs to Knative function URL → function executes (e.g., send email) → returns status.

### Database Configuration

Tests require PostgreSQL. Standard PG env vars:
Expand Down
123 changes: 0 additions & 123 deletions docker-compose.jobs.yml

This file was deleted.

26 changes: 0 additions & 26 deletions graphql/env/__tests__/__snapshots__/merge.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,6 @@ exports[`getEnvOptions merges pgpm defaults, graphql defaults, config, env, and
"override_schema",
],
},
"jobs": {
"gateway": {
"callbackPort": 12345,
"callbackUrl": "http://callback:12345",
"gatewayUrl": "http://gateway:8080",
},
"scheduler": {
"gracefulShutdown": true,
"hostname": "scheduler-0",
"pollInterval": 1000,
"schema": "app_jobs",
"supportAny": true,
"supported": [],
},
"schema": {
"schema": "app_jobs",
},
"worker": {
"gracefulShutdown": true,
"hostname": "worker-0",
"pollInterval": 1000,
"schema": "app_jobs",
"supportAny": true,
"supported": [],
},
},
"migrations": {
"codegen": {
"useTx": false,
Expand Down
5 changes: 1 addition & 4 deletions graphql/types/src/constructive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
DeploymentOptions,
ServerOptions,
CDNOptions,
MigrationOptions,
JobsConfig
MigrationOptions
} from '@pgpmjs/types';
import {
GraphileOptions,
Expand Down Expand Up @@ -56,8 +55,6 @@ export interface ConstructiveOptions extends PgpmOptions, ConstructiveGraphQLOpt
deployment?: DeploymentOptions;
/** Migration and code generation options */
migrations?: MigrationOptions;
/** Job system configuration */
jobs?: JobsConfig;
/** LLM provider configuration (embeddings, chat, RAG) */
llm?: LlmOptions;
/** SMS provider configuration */
Expand Down
Loading
Loading