@pouchy_ai/admin-sdk 0.32.1 → 0.33.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/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to `@pouchy_ai/admin-sdk` are documented here.
4
4
 
5
+ ## 0.33.0 — 2026-09-08
6
+
7
+ ### Added
8
+
9
+ - `Agent.instructions?: boolean` — the template flag that grants
10
+ `chat.instructions` on an agent's session mints, so a turn may carry an
11
+ `instructions` field (developer-authored rules for THAT turn, joined to the
12
+ prompt and never scored as user speech by inbound moderation; issue #3379).
13
+
14
+ Typed here because it is the **only** way to obtain that scope, and an
15
+ integrator's first instinct is to request it at mint time — which silently
16
+ does nothing: the scope sits outside the mintable default set on purpose
17
+ (the field it unlocks skips moderation, and a session token is routinely
18
+ held by the end user's own client), and `validateSessionRequest` narrows a
19
+ requested scope to that set. Flip the template flag instead, from the
20
+ Dashboard or `PATCH /v1/projects/{id}/agents/{agentId}` with
21
+ `{"instructions": true}`. Settings-class: no `templateRev` bump; existing
22
+ session tokens gain the scope on re-mint.
23
+
5
24
  ## 0.32.1 — 2026-09-06
6
25
 
7
26
  - **A transport failure now names the request.** `AdminApiError.message` on a
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const ADMIN_SDK_VERSION = "0.32.1";
1
+ export declare const ADMIN_SDK_VERSION = "0.33.0";
2
2
  export declare const DEFAULT_BASE_URL = "https://pouchy.ai/v1/admin";
3
3
  /** Deadline for the routes whose server handler declares `maxDuration: 300` —
4
4
  * the server's own ceiling plus headroom, so a client abort can only ever mean
@@ -165,6 +165,14 @@ export interface Agent {
165
165
  * (concurrent headless workers under one persona). Default false since
166
166
  * owner decision D-10 (2026-09-05). */
167
167
  spawnSubtasks?: boolean;
168
+ /** Grant `chat.instructions` on this agent's session mints, so a turn may
169
+ * carry an `instructions` field — developer-authored rules for THAT turn,
170
+ * joined to the prompt and never scored as user speech by inbound
171
+ * moderation (issue #3379). Default false, and this template flag is the
172
+ * ONLY way to obtain the scope: it sits outside the mintable default set
173
+ * on purpose, so asking for it in the session-mint body is narrowed away.
174
+ * Leave it off unless your backend assembles per-turn rules itself. */
175
+ instructions?: boolean;
168
176
  /** Reply-cue opt-in (see ReplyCues). */
169
177
  replyCues?: ReplyCues;
170
178
  templateRev: number;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  // import { createAdminClient } from '@pouchy_ai/admin-sdk';
9
9
  // const admin = createAdminClient({ adminKey: process.env.POUCHY_ADMIN_KEY! });
10
10
  // const { agents } = await admin.listAgents();
11
- export const ADMIN_SDK_VERSION = '0.32.1';
11
+ export const ADMIN_SDK_VERSION = '0.33.0';
12
12
  export const DEFAULT_BASE_URL = 'https://pouchy.ai/v1/admin';
13
13
  /** Default per-request timeout (ms). A hung upstream otherwise never rejects. */
14
14
  const DEFAULT_TIMEOUT_MS = 30_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pouchy_ai/admin-sdk",
3
- "version": "0.32.1",
3
+ "version": "0.33.0",
4
4
  "description": "Typed TypeScript client for the Pouchy Admin API \u2014 manage agents, keys, end users, knowledge, skills, channels, schedules, webhooks and credentials headlessly, with a project Admin key.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",