@neon/tools 2.17.2 → 2.18.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 +4 -4
- package/dist/descriptions.gen.js +1 -1
- package/dist/lib/custom/docs.d.ts.map +1 -1
- package/dist/lib/custom/docs.js +4 -1
- package/dist/lib/custom/sql/connection.d.ts +5 -1
- package/dist/lib/custom/sql/connection.d.ts.map +1 -1
- package/dist/lib/custom/sql/connection.js +17 -14
- package/dist/lib/custom/sql/describe-branch.d.ts.map +1 -1
- package/dist/lib/custom/sql/describe-branch.js +1 -1
- package/dist/lib/custom/sql/run.js +1 -1
- package/dist/lib/effect/tools.d.ts +4 -3
- package/dist/lib/effect/tools.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.d.ts +13 -4
- package/dist/lib/ergonomic/catalog.d.ts.map +1 -1
- package/dist/lib/ergonomic/catalog.js +19 -9
- package/dist/operations.gen.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ Custom tools combine several requests into one call, or call Postgres or neon.co
|
|
|
124
124
|
| `sql.explain` | `explain_sql` | The `EXPLAIN (FORMAT JSON)` rows. `analyze: true` executes the statement. |
|
|
125
125
|
| `schema.listTables` | `list_tables_schema` | `{ table_schema, table_name, table_type }` for every table outside `pg_catalog` and `information_schema`. |
|
|
126
126
|
| `schema.describeTable` | `describe_table_schema` | `{ raw, formatted }`: columns, indexes, constraints, and sizes. A missing table, or a name that matches two tables, throws `NeonClientError`. |
|
|
127
|
-
| `branches.describe` | `describe_branches` | `{ branch, console_url, text, database_structure }`, where `database_structure` is `[[], rows]`: one `{ tree_structure }` row per database, then the connected database's schemas and objects, read from the system catalogs in a `READ ONLY` transaction. When that query fails it is `null` and `database_structure_error` says why. |
|
|
127
|
+
| `branches.describe` | `describe_branches` | `{ branch, console_url, text, database_structure }`, where `database_structure` is `[[], rows]`: one `{ tree_structure }` row per database except Neon's reserved `postgres`, which the other SQL tools reject, then the connected database's schemas and objects, read from the system catalogs in a `READ ONLY` transaction. When that query fails it is `null` and `database_structure_error` says why. |
|
|
128
128
|
| `queries.listSlow` | `list_slow_queries` | `{ slow_queries, total_queries_found }` from `pg_stat_statements`, slowest mean time first. Without the extension it throws `NeonClientError`. |
|
|
129
129
|
| `database.inspect` | `inspect_database` | One `neon inspect db` check: `{ check, describe, projectId, branchId, databases, fields, totalRowCount, rows, truncated, note? }`. |
|
|
130
130
|
| `migrations.prepare` | `prepare_migrations` | Runs `migration_sql` on a new temporary branch and returns `{ complete, temporary_branch, migration_result }`. `complete` holds exactly the fields `migrations.complete` takes (`migration_id`, `migration_sql`, `database_name`, `project_id`, `temporary_branch_id`, `parent_branch_id`); `temporary_branch` is `{ id, name, parent_id }`; `migration_result` holds each statement's rows. |
|
|
@@ -132,7 +132,7 @@ Custom tools combine several requests into one call, or call Postgres or neon.co
|
|
|
132
132
|
| `queryTuning.prepare` | `prepare_query_tuning` | Runs `EXPLAIN ANALYZE` on a new temporary branch and returns `{ complete, execution_plan, table_schemas, sql, baseline_metrics }`. `complete` holds `tuning_id`, `database_name`, `project_id`, `temporary_branch_id`, and `role_name` when one was passed; `baseline_metrics` holds time, cost, rows, and buffer counters of the root plan node. |
|
|
133
133
|
| `queryTuning.complete` | `complete_query_tuning` | Applies `suggested_sql_statements` when `apply_changes` is true, deletes the temporary branch unless `should_delete_temporary_branch` is false, and returns `{ appliedChanges?, results?, deletedBranches?, message }`. |
|
|
134
134
|
| `docs.search` | `search_docs` | `{ hits: [{ title, url, slug, category, breadcrumb, heading, excerpt }] }` from neon.com site search. |
|
|
135
|
-
| `docs.get` | `get_docs` | `{ url, markdown }` for one neon.com page slug. |
|
|
135
|
+
| `docs.get` | `get_docs` | `{ url, markdown }` for one neon.com page slug, without the agent skills note and feedback footer neon.com adds for agents that browse the site. |
|
|
136
136
|
| `feedback.send` | `send_feedback` | Posts `{ feedback, source }` to the Neon feedback service. |
|
|
137
137
|
|
|
138
138
|
```ts
|
|
@@ -375,7 +375,7 @@ An abort `signal` on `execute` or a wait timeout stops the poll, not the create:
|
|
|
375
375
|
|
|
376
376
|
`metadata.method` and `metadata.path` name the first request; extra readiness GETs are not listed there.
|
|
377
377
|
|
|
378
|
-
These public client methods are not tools: `operations.waitFor`, `postgres.roles.password`, `storage.objects.get`, `credentials.reveal`, `logs.loki.labels`, and `logs.loki.labelValues`. Waiting is what the write tools already do. Loki labels are the log fields, so `logs.fields` and `logs.fieldValues` are the discovery tools for both `logs.query` and `logs.loki.queryRange`; the latter returns Loki's response, with lines grouped by stream labels, and nanosecond timestamp strings. `realtime.secret` is a GET that requires approval: it returns the branch's Realtime secret, which an application backend seals queries with. After `realtime.rotateSecret`, it returns the new value once `pending` is `false`. `projects.create` and `branches.create` return the created resource without a connection string; `createAndConnect` returns a URI. `triggers.create` and `triggers.update` take the OpenAPI discriminator as a nested `body` field. `credentials.rotate` requires approval and is not idempotent: a lost success already replaced the secret; create a replacement and revoke the rotated credential.
|
|
378
|
+
These public client methods are not tools: `operations.waitFor`, `postgres.roles.password`, `storage.objects.get`, `credentials.reveal`, `logs.loki.labels`, and `logs.loki.labelValues`. Waiting is what the write tools already do. Loki labels are the log fields, so `logs.fields` and `logs.fieldValues` are the discovery tools for both `logs.query` and `logs.loki.queryRange`; the latter returns Loki's response, with lines grouped by stream labels, and nanosecond timestamp strings. `realtime.secret` is a GET that requires approval: it returns the branch's Realtime secret, which an application backend seals queries with. After `realtime.rotateSecret`, it returns the new value once `pending` is `false`. `projects.create` and `branches.create` return the created resource without a connection string; `createAndConnect` returns a URI. `postgres.dataApi.get` returns `{ enabled: false }` for a database without a Data API, where the SDK method throws `NeonNotFoundError`, and adds `enabled: true` to a configured one; a missing branch or database still throws. `triggers.create` and `triggers.update` take the OpenAPI discriminator as a nested `body` field. `credentials.rotate` requires approval and is not idempotent: a lost success already replaced the secret; create a replacement and revoke the rotated credential.
|
|
379
379
|
|
|
380
380
|
## Roles
|
|
381
381
|
|
|
@@ -698,7 +698,7 @@ The span records every failure's tag as `error.type` and fails only for the serv
|
|
|
698
698
|
|
|
699
699
|
Anything else a tool throws becomes a defect. `toNeonToolError` is the mapping, for promise code you wrap yourself.
|
|
700
700
|
|
|
701
|
-
Retries are off unless you pass `retry`. The SDK already retries 423, 429, and 503 responses and honours `Retry-After
|
|
701
|
+
Retries are off unless you pass `retry`. The SDK already retries 423, 429, and 503 responses and honours `Retry-After`, and its ergonomic client resends a `GET` whose connection dropped before a response. `retryReadOnlyNetworkFailures` retries a read-only tool that got no response, twice with jittered exponential backoff from 200 ms; mutations are never retried, since one may have reached the API. A retry runs the whole tool again, including `onExecute` hooks and every page of a list. Pass your own `NeonToolRetryPolicy` (`schedule`, `times`, `shouldRetry`) for a different policy. Whatever it says, the adapter only retries read-only tools and never a 423, 429, or 503 response.
|
|
702
702
|
|
|
703
703
|
## Safety and binary data
|
|
704
704
|
|
package/dist/descriptions.gen.js
CHANGED
|
@@ -39,7 +39,7 @@ const toolDescriptions = {
|
|
|
39
39
|
"postgres.databases.create": "Creates a database on a branch, owned by owner_name.",
|
|
40
40
|
"postgres.databases.update": "Renames a database or changes its owner.",
|
|
41
41
|
"postgres.databases.delete": "Deletes a database and its data from a branch.",
|
|
42
|
-
"postgres.dataApi.get": "Gets the Neon Data API configuration for one database on a branch.",
|
|
42
|
+
"postgres.dataApi.get": "Gets the Neon Data API configuration for one database on a branch. Returns enabled false when the database has no Data API; {{postgres.dataApi.create}} enables it.",
|
|
43
43
|
"postgres.dataApi.create": "Creates the Neon Data API, a REST interface over database_name, on a branch.",
|
|
44
44
|
"postgres.dataApi.update": "Updates the Neon Data API settings for a database and refreshes its schema cache.",
|
|
45
45
|
"postgres.dataApi.delete": "Deletes the Neon Data API for a database; requests to its endpoint start failing.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../src/lib/custom/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KA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AAG,SAAS,KAChC,MAAM,CAAC,MAAM,EAAE,MAAM,CAkBvB,CAAC;AAoCF,eAAO,MAAM,cAAc,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DxD,CAAC;AAiBF,eAAO,MAAM,UAAU,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;CA2CpD,CAAC"}
|
package/dist/lib/custom/docs.js
CHANGED
|
@@ -120,6 +120,9 @@ const searchDocsTool = (options) => {
|
|
|
120
120
|
return parsed.data;
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
+
const AGENT_SKILLS_NOTE = /^(> Full Neon documentation index: [^\n]*\n)>\n> Agent skills: [^\n]*\n/m;
|
|
124
|
+
const FEEDBACK_NOTE = /\n---\n\nNote for AI assistants [^\n]*\s*$/;
|
|
125
|
+
const stripAgentNotes = (markdown) => markdown.replace(AGENT_SKILLS_NOTE, "$1").replace(FEEDBACK_NOTE, "");
|
|
123
126
|
const getDocOutputSchema = z.looseObject({
|
|
124
127
|
url: z.string(),
|
|
125
128
|
markdown: z.string().describe("The page as markdown.")
|
|
@@ -153,7 +156,7 @@ const getDocTool = (options) => {
|
|
|
153
156
|
if (!response.ok) throw new Error(`Failed to fetch doc page "${mdSlug}": ${response.status} ${response.statusText}`);
|
|
154
157
|
return {
|
|
155
158
|
url,
|
|
156
|
-
markdown: await response.text()
|
|
159
|
+
markdown: stripAgentNotes(await response.text())
|
|
157
160
|
};
|
|
158
161
|
});
|
|
159
162
|
};
|
|
@@ -26,7 +26,11 @@ export interface ConnectionTarget {
|
|
|
26
26
|
export interface ResolvedConnection {
|
|
27
27
|
uri: string;
|
|
28
28
|
projectId: string;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Absent when the database and role were given without a branch: the
|
|
31
|
+
* connection URI API then picks the default branch.
|
|
32
|
+
*/
|
|
33
|
+
branchId?: string;
|
|
30
34
|
databaseName: string;
|
|
31
35
|
roleName: string;
|
|
32
36
|
computeId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/sql/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,0BAA0B,WAAW,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,cAAc,OAAO,KAAG,qBAOlD,CAAC;AAEH,eAAO,MAAM,yBAAyB,6DAAoF,CAAC;AAE3H,eAAO,MAAM,cAAc,aAEiB,CAAC;AAE7C,eAAO,MAAM,aAAa,4BAKxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,4BAGO,CAAC;AAEtC,eAAO,MAAM,aAAa,4BAG4C,CAAC;AAEvE,eAAO,MAAM,sBAAsB,mEAC8B,CAAC;AAElE,eAAO,MAAM,cAAc,4BAGO,CAAC;AAEnC,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/sql/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,K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,YAAY,UAAU,CAAC,IAAI,CAAC,EAC5B,QAAQ,gBAAgB,EACxB,SAAS,wBAAwB,EACjC,SAAS,WAAW,KAClB,OAAO,CAAC,kBAAkB,CA2D5B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,SAAS,WAAW,uEACS,CAAC"}
|
|
@@ -42,31 +42,34 @@ const resolveConnection = async (neonClient, target, context, signal) => {
|
|
|
42
42
|
if (roleName !== void 0 && roleName !== pinnedRole) throw new NeonToolCallerError(`This connection is pinned to Postgres role "${pinnedRole}"; role_name "${roleName}" is not allowed.`);
|
|
43
43
|
roleName = pinnedRole;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
let branchId = target.branch_id;
|
|
46
46
|
let databaseName = target.database_name;
|
|
47
|
-
if (databaseName === void 0) {
|
|
48
|
-
|
|
47
|
+
if (databaseName === void 0 || roleName === void 0) {
|
|
48
|
+
branchId ??= (await neonClient.branches.getDefault({ projectId }, { signal })).id;
|
|
49
|
+
if (databaseName === void 0) {
|
|
50
|
+
const database = await defaultDatabase(neonClient, {
|
|
51
|
+
projectId,
|
|
52
|
+
branchId
|
|
53
|
+
}, signal);
|
|
54
|
+
databaseName = database.name;
|
|
55
|
+
roleName ??= database.owner_name;
|
|
56
|
+
} else roleName = (await neonClient.postgres.databases.get({
|
|
49
57
|
projectId,
|
|
50
|
-
branchId
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} else if (roleName === void 0) roleName = (await neonClient.postgres.databases.get({
|
|
55
|
-
projectId,
|
|
56
|
-
branchId,
|
|
57
|
-
databaseName
|
|
58
|
-
}, { signal })).owner_name;
|
|
58
|
+
branchId,
|
|
59
|
+
databaseName
|
|
60
|
+
}, { signal })).owner_name;
|
|
61
|
+
}
|
|
59
62
|
return {
|
|
60
63
|
uri: await neonClient.postgres.connectionString({
|
|
61
64
|
projectId,
|
|
62
|
-
branchId,
|
|
65
|
+
...branchId === void 0 ? {} : { branchId },
|
|
63
66
|
databaseName,
|
|
64
67
|
roleName,
|
|
65
68
|
...target.compute_id === void 0 ? {} : { endpointId: target.compute_id },
|
|
66
69
|
...target.pooled === void 0 ? {} : { pooled: target.pooled }
|
|
67
70
|
}, { signal }),
|
|
68
71
|
projectId,
|
|
69
|
-
branchId,
|
|
72
|
+
...branchId === void 0 ? {} : { branchId },
|
|
70
73
|
databaseName,
|
|
71
74
|
roleName,
|
|
72
75
|
...target.compute_id === void 0 ? {} : { computeId: target.compute_id }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/sql/describe-branch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AASnE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,eAAO,MAAM,yBAAyB;;;;kBAIpC,CAAC;
|
|
1
|
+
{"version":3,"file":"describe-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/sql/describe-branch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AASnE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,eAAO,MAAM,yBAAyB;;;;kBAIpC,CAAC;AAoFH,eAAO,MAAM,gBAAgB,GAC5B,YAAY,MAAM,EAClB,WAAW,MAAM,EACjB,UAAU,MAAM,WAKJ,CAAC;AAoBd,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,kBAAkB,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,cAAc,GAC1B,YAAY,UAAU,CAAC,IAAI,CAAC,EAC5B,OAAO;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,EACxE,SAAS,wBAAwB,EACjC,YAAY,MAAM,EAClB,SAAS,WAAW,KAClB,OAAO,CAAC,iBAAiB,CA6C3B,CAAC;AAaF,eAAO,MAAM,kBAAkB,GAAI,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA3E/C,MAAM;UAEb,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FZ,CAAC"}
|
|
@@ -63,7 +63,7 @@ WITH RECURSIVE
|
|
|
63
63
|
SELECT tree_structure FROM (
|
|
64
64
|
SELECT 0 AS part, NULL::text AS path, ':file_folder: ' || datname || ' (DATABASE)' AS tree_structure
|
|
65
65
|
FROM pg_database
|
|
66
|
-
WHERE datistemplate = false
|
|
66
|
+
WHERE datistemplate = false AND datname != 'postgres'
|
|
67
67
|
|
|
68
68
|
UNION ALL
|
|
69
69
|
|
|
@@ -65,7 +65,7 @@ const runSqlTool = (options) => bindTool(options, {
|
|
|
65
65
|
operationId: "sql.run",
|
|
66
66
|
id: publishedId("sql.run"),
|
|
67
67
|
title: "Run SQL",
|
|
68
|
-
description: "Runs one SQL statement on a branch's database and returns its rows. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously; always ask the user first.",
|
|
68
|
+
description: "Runs one SQL statement on a branch's database and returns its rows. For several statements, send one per call or use {{sql.runTransaction}}. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously; always ask the user first.",
|
|
69
69
|
inputSchema: runSqlInputSchema,
|
|
70
70
|
outputSchema: sqlResultOutputSchema,
|
|
71
71
|
annotations: sqlWriteAnnotations,
|
|
@@ -20,9 +20,10 @@ export type NeonEffectTools<Tools extends Readonly<Record<string, ExecutableNeon
|
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Which failures to retry and how. A policy only ever sees failures of
|
|
23
|
-
* read-only tools
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* read-only tools: the adapter never resends a mutation, and leaves 423, 429,
|
|
24
|
+
* and 503 responses to the SDK, which retries them and honours `Retry-After`.
|
|
25
|
+
* A `NeonNetworkError` can arrive after the SDK already resent a `GET` whose
|
|
26
|
+
* connection dropped.
|
|
26
27
|
*/
|
|
27
28
|
export interface NeonToolRetryPolicy {
|
|
28
29
|
readonly schedule: Schedule.Schedule<unknown, NeonToolError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/lib/effect/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA0B,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElE,OAAO,KAAK,EACX,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,aAAa,CAAC;AAElE,qFAAqF;AACrF,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,KAAK,EAAE,MAAM,GAAG,OAAO;IAClE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,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AK,GAAG,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CAAE,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE;QAC/B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;QAClC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IACjC,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,mBAAmB,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,mBAI1C,CAAC;AAoDF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,MAAM,EAAE,IAAI,SAAS,kBAAkB,EAC1E,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,EAC9C,UAAS,iBAAsB,KAC7B,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CA+DpC,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,aAAa,GACzB,KAAK,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAE1D,OAAO,KAAK,EACZ,UAAS,iBAAsB,KAC7B,eAAe,CAAC,KAAK,CAMI,CAAC"}
|
|
@@ -4422,6 +4422,7 @@ export declare const toolFactories: {
|
|
|
4422
4422
|
branch_id: z.ZodString;
|
|
4423
4423
|
database_name: z.ZodString;
|
|
4424
4424
|
}, z.core.$strict>, "get_postgres_data_api", {
|
|
4425
|
+
enabled: true;
|
|
4425
4426
|
url: string;
|
|
4426
4427
|
status: string;
|
|
4427
4428
|
settings?: {
|
|
@@ -4442,7 +4443,9 @@ export declare const toolFactories: {
|
|
|
4442
4443
|
jwks_url?: string | null | undefined;
|
|
4443
4444
|
provider_name?: string | null | undefined;
|
|
4444
4445
|
jwt_audience?: string | null | undefined;
|
|
4445
|
-
}
|
|
4446
|
+
} | {
|
|
4447
|
+
enabled: false;
|
|
4448
|
+
}, z.ZodUnion<readonly [z.ZodObject<{
|
|
4446
4449
|
url: z.ZodString;
|
|
4447
4450
|
status: z.ZodString;
|
|
4448
4451
|
settings: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
|
|
@@ -4463,8 +4466,11 @@ export declare const toolFactories: {
|
|
|
4463
4466
|
jwks_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4464
4467
|
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4465
4468
|
jwt_audience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4466
|
-
|
|
4467
|
-
|
|
4469
|
+
enabled: z.ZodLiteral<true>;
|
|
4470
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
4471
|
+
enabled: z.ZodLiteral<false>;
|
|
4472
|
+
}, z.core.$loose>]>> & {
|
|
4473
|
+
outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4468
4474
|
url: z.ZodString;
|
|
4469
4475
|
status: z.ZodString;
|
|
4470
4476
|
settings: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
|
|
@@ -4485,7 +4491,10 @@ export declare const toolFactories: {
|
|
|
4485
4491
|
jwks_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4486
4492
|
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4487
4493
|
jwt_audience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4488
|
-
|
|
4494
|
+
enabled: z.ZodLiteral<true>;
|
|
4495
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
4496
|
+
enabled: z.ZodLiteral<false>;
|
|
4497
|
+
}, z.core.$loose>]>;
|
|
4489
4498
|
};
|
|
4490
4499
|
"postgres.dataApi.create": (options: ToolClientOptions) => NeonTool<z.ZodObject<{
|
|
4491
4500
|
project_id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA0BzB,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAE7B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAenB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAmG3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
import { listSlowQueriesTool } from "../custom/sql/slow-queries.js";
|
|
19
19
|
import { compareSchemaTool, connectionStringTool, createBranchAndConnectTool, createBranchTool, createProjectAndConnectTool, createProjectTool, createRoleTool, getDefaultTool, lokiQueryRangeTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
|
|
20
20
|
import * as z from "zod";
|
|
21
|
-
import { NEON_STATUS_API_URL, listNeonIncidents } from "@neon/sdk";
|
|
21
|
+
import { NEON_STATUS_API_URL, NeonNotFoundError, listNeonIncidents } from "@neon/sdk";
|
|
22
22
|
// src/lib/ergonomic/catalog.ts
|
|
23
23
|
const logReadAnnotations = {
|
|
24
24
|
readOnlyHint: true,
|
|
@@ -29,7 +29,7 @@ const logReadAnnotations = {
|
|
|
29
29
|
const listIncidentsInputSchema = z.strictObject({});
|
|
30
30
|
const listIncidentsOutputSchema = z.looseObject({
|
|
31
31
|
status: z.string().describe("Overall status: operational, degraded, or outage."),
|
|
32
|
-
updated_at: z.string(),
|
|
32
|
+
updated_at: z.string().describe("When neonstatus.com last updated the overall status, not when this call fetched it."),
|
|
33
33
|
status_page_url: z.string(),
|
|
34
34
|
incidents: z.array(z.looseObject({
|
|
35
35
|
id: z.string(),
|
|
@@ -64,7 +64,7 @@ const listIncidentsTool = (options) => ({
|
|
|
64
64
|
operationId: "incidents.list",
|
|
65
65
|
id: publishedId("incidents.list"),
|
|
66
66
|
title: "List Neon incidents",
|
|
67
|
-
description: "Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.",
|
|
67
|
+
description: "Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Fetches the page on every call; updated_at is when neonstatus.com last updated the overall status, not when this call fetched it. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.",
|
|
68
68
|
inputSchema: listIncidentsInputSchema,
|
|
69
69
|
outputSchema: listIncidentsOutputSchema,
|
|
70
70
|
annotations: {
|
|
@@ -497,12 +497,22 @@ const toolFactories = {
|
|
|
497
497
|
"postgres.dataApi.get": (options) => fromGenerated(options, {
|
|
498
498
|
id: "postgres.dataApi.get",
|
|
499
499
|
generated: "getProjectBranchDataAPI",
|
|
500
|
-
output: DataAPIReponse,
|
|
501
|
-
run: (neon, input, signal) =>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
500
|
+
output: z.union([DataAPIReponse.extend({ enabled: z.literal(true) }), z.looseObject({ enabled: z.literal(false) })]),
|
|
501
|
+
run: async (neon, input, signal) => {
|
|
502
|
+
try {
|
|
503
|
+
return {
|
|
504
|
+
...await neon.postgres.dataApi.get({
|
|
505
|
+
projectId: input.project_id,
|
|
506
|
+
branchId: input.branch_id,
|
|
507
|
+
databaseName: input.database_name
|
|
508
|
+
}, { signal }),
|
|
509
|
+
enabled: true
|
|
510
|
+
};
|
|
511
|
+
} catch (error) {
|
|
512
|
+
if (error instanceof NeonNotFoundError && /^data api not found$/i.test(error.message)) return { enabled: false };
|
|
513
|
+
throw error;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
506
516
|
}),
|
|
507
517
|
"postgres.dataApi.create": (options) => fromGenerated(options, {
|
|
508
518
|
id: "postgres.dataApi.create",
|
package/dist/operations.gen.js
CHANGED
|
@@ -1099,7 +1099,7 @@ const operationFactories = {
|
|
|
1099
1099
|
"jwks_url": zCreateProjectBranchDataApiBody.shape.jwks_url.optional(),
|
|
1100
1100
|
"provider_name": zCreateProjectBranchDataApiBody.shape.provider_name.optional(),
|
|
1101
1101
|
"jwt_audience": zCreateProjectBranchDataApiBody.shape.jwt_audience.optional(),
|
|
1102
|
-
"add_default_grants": zCreateProjectBranchDataApiBody.shape.add_default_grants.optional(),
|
|
1102
|
+
"add_default_grants": zCreateProjectBranchDataApiBody.shape.add_default_grants.describe("Grants the authenticated role read and write access to public-schema tables, including tables the database owner creates later. Without it, the Data API can read no table until you GRANT access. Never grants anonymous.").optional(),
|
|
1103
1103
|
"skip_auth_schema": zCreateProjectBranchDataApiBody.shape.skip_auth_schema.optional(),
|
|
1104
1104
|
"settings": zCreateProjectBranchDataApiBody.shape.settings.optional()
|
|
1105
1105
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "Agent tools for the Neon SDK ergonomic client, compatible with MCP, Eve, and Mastra.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@neondatabase/serverless": "1.0.0",
|
|
77
77
|
"zod": "^4.5.4",
|
|
78
|
-
"@neon/sdk": "7.14.
|
|
78
|
+
"@neon/sdk": "7.14.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@neon/effect": "^0.5.
|
|
81
|
+
"@neon/effect": "^0.5.6",
|
|
82
82
|
"effect": "^4.1.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript": "^5.9.0",
|
|
105
105
|
"vitest": "^3.0.9",
|
|
106
106
|
"@neon/e2e-harness": "0.0.0",
|
|
107
|
-
"@neon/effect": "0.5.
|
|
107
|
+
"@neon/effect": "0.5.6"
|
|
108
108
|
},
|
|
109
109
|
"engines": {
|
|
110
110
|
"node": ">=20.19.0"
|