@pouchy_ai/admin-sdk 0.32.1 → 0.34.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,47 @@
2
2
 
3
3
  All notable changes to `@pouchy_ai/admin-sdk` are documented here.
4
4
 
5
+ ## 0.34.0 — 2026-09-08
6
+
7
+ ### Fixed
8
+
9
+ - **`instructions`, `knowledgeDocIds` and `agentCardExtras` were dropped by the
10
+ agent create/update surface, so setting any of them answered `200` and did
11
+ nothing.** `agent-input.ts` maps a request body onto `createAgent`/
12
+ `updateAgent` with an object literal that enumerates its fields, and three
13
+ fields the store accepts had fallen out of it — on BOTH management surfaces
14
+ (`/v1/admin/agents` and `/v1/projects/{id}/agents`) and therefore the
15
+ Dashboard too, which PATCHes the latter. `instructions` was dead the day it
16
+ shipped; the Dashboard's knowledge-scope picker has been a silent no-op for
17
+ as long as it has existed; `agentCardExtras` is documented for the DeJoy
18
+ integration and was unreachable over HTTP. Server-side fix — no SDK change
19
+ was needed to make them work.
20
+
21
+ ### Added
22
+
23
+ - `Agent.knowledgeDocIds?: string[]` — typed alongside `instructions`, so the
24
+ two fields this release un-drops are both discoverable from the SDK rather
25
+ than only from the API reference.
26
+
27
+ ## 0.33.0 — 2026-09-08
28
+
29
+ ### Added
30
+
31
+ - `Agent.instructions?: boolean` — the template flag that grants
32
+ `chat.instructions` on an agent's session mints, so a turn may carry an
33
+ `instructions` field (developer-authored rules for THAT turn, joined to the
34
+ prompt and never scored as user speech by inbound moderation; issue #3379).
35
+
36
+ Typed here because it is the **only** way to obtain that scope, and an
37
+ integrator's first instinct is to request it at mint time — which silently
38
+ does nothing: the scope sits outside the mintable default set on purpose
39
+ (the field it unlocks skips moderation, and a session token is routinely
40
+ held by the end user's own client), and `validateSessionRequest` narrows a
41
+ requested scope to that set. Flip the template flag instead, from the
42
+ Dashboard or `PATCH /v1/projects/{id}/agents/{agentId}` with
43
+ `{"instructions": true}`. Settings-class: no `templateRev` bump; existing
44
+ session tokens gain the scope on re-mint.
45
+
5
46
  ## 0.32.1 — 2026-09-06
6
47
 
7
48
  - **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.34.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,17 @@ 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
+ /** Restrict this agent's project-knowledge recall to the named documents
169
+ * (`[]` clears). Read live off the agent row every turn — no rev bump. */
170
+ knowledgeDocIds?: string[];
171
+ /** Grant `chat.instructions` on this agent's session mints, so a turn may
172
+ * carry an `instructions` field — developer-authored rules for THAT turn,
173
+ * joined to the prompt and never scored as user speech by inbound
174
+ * moderation (issue #3379). Default false, and this template flag is the
175
+ * ONLY way to obtain the scope: it sits outside the mintable default set
176
+ * on purpose, so asking for it in the session-mint body is narrowed away.
177
+ * Leave it off unless your backend assembles per-turn rules itself. */
178
+ instructions?: boolean;
168
179
  /** Reply-cue opt-in (see ReplyCues). */
169
180
  replyCues?: ReplyCues;
170
181
  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.34.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.34.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",