graphjin 3.18.44 → 3.18.46

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.
Files changed (2) hide show
  1. package/README.md +15 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GraphJin - The Governed Data Plane for AI Agents
1
+ # GraphJin One Governed Graph for Your AI Agents
2
2
 
3
3
  [![Apache 2.0](https://img.shields.io/github/license/dosco/graphjin.svg?style=for-the-badge)](https://github.com/dosco/graphjin/blob/master/LICENSE)
4
4
  [![NPM Package](https://img.shields.io/npm/v/graphjin?style=for-the-badge)](https://www.npmjs.com/package/graphjin)
@@ -7,7 +7,7 @@
7
7
  [![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge&logo=go)](https://pkg.go.dev/github.com/dosco/graphjin/core/v3)
8
8
  [![GoReport](https://goreportcard.com/badge/github.com/gojp/goreportcard?style=for-the-badge)](https://goreportcard.com/report/github.com/dosco/graphjin/core/v3)
9
9
 
10
- GraphJin is a compiler and runtime that lets AI agents connect to the systems a real company already has: databases, warehouses, files, source code, workflows, metadata, and security policy. Instead of handing an agent raw credentials and hoping it guesses correctly, GraphJin gives it one governed GraphQL + MCP surface where it can discover before acting, validate queries, run approved work, and observe runtime status.
10
+ GraphJin is a compiler and runtime that gives AI agents one governed graph over the systems a real company already has: databases, warehouses, files, source code, workflows, metadata, and security policy. Instead of handing an agent raw credentials and hoping it guesses correctly, GraphJin exposes that graph through GraphQL + MCP: the agent discovers before acting, validates queries, runs approved work, observes runtime status — and every answer is checked against an execution ledger before it leaves the server.
11
11
 
12
12
  It is not only for agents. GraphJin is still a high-performance GraphQL-to-database compiler, Go library, standalone API service, REST/OpenAPI gateway, and real-time subscription server. The agent use case is where everything comes together: the same compiler that serves your apps can also give AI a smart, auditable way to work across data, code, and operations.
13
13
 
@@ -52,7 +52,7 @@ docker pull dosco/graphjin
52
52
  ## Try It Now
53
53
 
54
54
  One command, no clone, no Docker. The binary ships with a built-in demo — a
55
- clinic scheduling app (patients, providers, appointments, waitlists) on
55
+ SaaS company ops app (accounts, subscriptions, invoices, support tickets) on
56
56
  SQLite with seeded data, saved queries, and workflows:
57
57
 
58
58
  ```bash
@@ -81,7 +81,7 @@ With a model API key in `./.env` (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or `GOO
81
81
  ```bash
82
82
  curl -sS localhost:8083/api/v1/agent \
83
83
  -H 'content-type: application/json' \
84
- -d '{"instruction": "Who should get the next open cardiology slot?"}'
84
+ -d '{"instruction": "Which account is most at risk of churning?"}'
85
85
  ```
86
86
 
87
87
  Answers come back as `{status, answer, data, evidence, actions, next}`, grounded by server-side protocol guards. You can also chat with it in the built-in web console at `localhost:8083/agent` — it streams every tool call live as it works. See [Server-Side Agent](#server-side-agent) below, [AGENTIC.md](AGENTIC.md#server-side-agent), and [graphjin.com/agentic/server-agent](https://graphjin.com/agentic/server-agent/).
@@ -390,6 +390,16 @@ mutation {
390
390
  }
391
391
  ```
392
392
 
393
+ PostgreSQL and SQLite also support an update-free insert conflict policy for a single row. GraphJin infers one supplied unique key and returns the stored row unchanged on conflict:
394
+
395
+ ```graphql
396
+ mutation {
397
+ users(insert: { email: "ada@example.com", full_name: "Ada" }, on_conflict: get) {
398
+ id email full_name
399
+ }
400
+ }
401
+ ```
402
+
393
403
  **Spatial queries:**
394
404
  ```graphql
395
405
  {
@@ -598,6 +608,7 @@ Optional: instead of your client chaining `query_catalog` → `validate_where_cl
598
608
  - **Execution control:** there are no per-request agent modes. `agent.read_only: true` forces the server-side agent to reject mutations, including saved-query mutations; otherwise core roles, row-level security, source/table `read_only`, and Go protocol guards decide what can run.
599
609
  - **Caller-scoped:** the agent runs as the caller, so core roles + row-level security enforce access. The caller's role only changes which *guidance* the agent follows, never what it can read or write.
600
610
  - **Grounded:** Go protocol guards keep every answer backed by real catalog/validation/execution evidence and downgrade to `blocked` (with evidence) when a step is skipped.
611
+ - **Semantic-aware discovery:** when semantic catalog search is ready, the agent uses short business-intent phrases and may make one private two-or-three-phrase coverage batch; one Ax request embeds cache misses, and only real catalog relationship paths count as join evidence. Lexical-only prompts and public MCP stay unchanged.
601
612
  - **Machine-actionable refusals:** blocked responses carry a structured `refusal` (code, reasons, unblock steps, `policy_final`/`retryable`) so a calling agent can course-correct in one step instead of guessing.
602
613
  - **Model sampling:** with `agent.sampling: auto` (or `require`), the agent borrows the calling MCP client's model via MCP sampling — no server-side model key needed; caller identity and permissions are unchanged.
603
614
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "graphjin",
3
- "version": "3.18.44",
4
- "description": "GraphJin CLI - Build APIs in 5 minutes with GraphQL",
3
+ "version": "3.18.46",
4
+ "description": "GraphJin one governed graph for AI agents: GraphQL + MCP over your databases, files, APIs, and code",
5
5
  "bin": {
6
6
  "graphjin": "bin/graphjin.js"
7
7
  },