pontive 1.20.0 → 1.20.1

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 (3) hide show
  1. package/README.md +22 -1
  2. package/dist/cli.js +4 -4
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -259,10 +259,31 @@ with the same idempotency key, so a retry never creates a second instance.
259
259
  | `PONTIVE_SECRET_KEY` | `migrate`: the instance's secret key. |
260
260
  | `PONTIVE_MGMT_URL` | `migrate`: the management API. Default `https://api.{region}.pontive.com`, the key's region. |
261
261
  | `PONTIVE_REGION` | The default for `--region`. |
262
- | `PONTIVE_MCP_URL` | The MCP server `init` connects agents to. Default `https://mcp.<region>.pontive.com/mcp`. |
262
+ | `PONTIVE_MCP_URL` | The MCP server `init` connects agents to. Default `https://mcp.pontive.com/mcp`, one URL for every region. |
263
263
 
264
264
  ## Development
265
265
 
266
266
  Commands live one per module in `src/commands/`, each exporting `command`; the
267
267
  router finds them there, so a new command is a new file. `npm test`,
268
268
  `npm run typecheck` and `npm run build` in this directory.
269
+
270
+ ## Using Pontive with a coding agent
271
+
272
+ Copy this block into your app's `AGENTS.md` (read by Codex, Cursor, Lovable, Claude Code and others).
273
+
274
+ <!-- BEGIN:pontive-agents -->
275
+ ### Using Pontive
276
+
277
+ This app uses [Pontive](https://www.pontive.com) for sign-in, sessions, organizations, roles and permissions.
278
+
279
+ - **Docs:** https://www.pontive.com/docs. Add `.md` to any page for Markdown; the index for agents is https://www.pontive.com/llms.txt. Read the page before writing Pontive code, and do not invent options, routes or claims it does not show.
280
+ - **MCP servers:** the docs, no sign-in: `https://www.pontive.com/docs/mcp`. Configuring the instance (apps, APIs, roles, organizations, users), with OAuth or a secret key: `https://mcp.pontive.com/mcp`.
281
+ - **Skills and plugins:** `npx skills add pontivehq/skills`, or the plugins at https://github.com/pontivehq/skills.
282
+ - **Packages:** `@pontive/pontkit-nextjs` (Next.js), `@pontive/pontkit-react` (React SPA), `@pontive/pontkit-vue` (Vue), `@pontive/pontkit-server` (Node servers, APIs and MCP servers: `/resource-server`, `/authorization`), `@pontive/pontkit-loader` (the Vite dev proxy), `@pontive/oidc-client` (the browser client). Never install or pin `@pontive/pontkit-core`. CLI: `npx pontive@latest` (`init`, `claim`, `status`, `migrate`).
283
+ - **Rules:**
284
+ - Secret keys (`pontive_sk_…`), client secrets and session secrets live only in server-side environment variables: never in browser code, a `NEXT_PUBLIC_` or `VITE_` variable, a log or a committed file. The app id (`app_…`) and auth domain are public.
285
+ - Build against a development instance (`…-<instance>.auth.<region>.pontive.dev`), never production.
286
+ - An API accepts only access tokens issued for it: check `typ` `at+jwt`, `iss`, `aud` (the API's identifier) and the scope.
287
+ - `roles` and `permissions` are arrays; check the permission you need. Tenant data keys on `org_id`, never `sub`.
288
+ - A delegated token (`act` claim) is an agent acting for the user: never act on `sub` alone.
289
+ <!-- END:pontive-agents -->
package/dist/cli.js CHANGED
@@ -440,7 +440,7 @@ const TARGETS = {
440
440
  entry: (url, key) => ({ httpUrl: url, headers: { Authorization: `Bearer ${key}` } })
441
441
  }
442
442
  };
443
- function mcpUrl(apiUrl, region, env) {
443
+ function mcpUrl(apiUrl, env) {
444
444
  if (env.PONTIVE_MCP_URL) return env.PONTIVE_MCP_URL;
445
445
  let base = "pontive.com";
446
446
  try {
@@ -448,7 +448,7 @@ function mcpUrl(apiUrl, region, env) {
448
448
  if (host.startsWith("api.")) base = host.slice("api.".length);
449
449
  } catch {
450
450
  }
451
- return `https://mcp.${region}.${base}/mcp`;
451
+ return `https://mcp.${base}/mcp`;
452
452
  }
453
453
  function agentFromProject(cwd) {
454
454
  if (existsSync(join(cwd, ".mcp.json")) || existsSync(join(cwd, ".claude")) || existsSync(join(cwd, "CLAUDE.md"))) return "claude-code";
@@ -799,7 +799,7 @@ async function connectMcp(ctx, secretKey2, region, nextSteps2) {
799
799
  }
800
800
  const agent = requested ?? (isMcpAgent(ctx.agent) ? ctx.agent : agentFromProject(ctx.cwd));
801
801
  if (!agent) return null;
802
- const url = mcpUrl(apiBaseUrl$1(ctx.env), region, ctx.env);
802
+ const url = mcpUrl(apiBaseUrl$1(ctx.env), ctx.env);
803
803
  const file = mcpConfigFile(agent);
804
804
  if (!file) {
805
805
  nextSteps2.push(mcpManualStep(agent, url));
@@ -3374,6 +3374,6 @@ const code = await main({
3374
3374
  out: streamOutput(process.stdout, process.stderr),
3375
3375
  runtime: nodeRuntime,
3376
3376
  signal: controller.signal,
3377
- version: "1.20.0"
3377
+ version: "1.20.1"
3378
3378
  });
3379
3379
  process.exitCode = code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pontive",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "license": "MIT",
5
5
  "description": "The Pontive CLI: add Pontive sign-in to an app, with or without an account.",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@pontive/pontkit-server": "^1.20.0",
25
+ "@pontive/pontkit-server": "^1.20.1",
26
26
  "jose": "^6.2.3"
27
27
  }
28
28
  }