@agentforge-io/core 2.0.21 → 2.0.22

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.
@@ -49,6 +49,21 @@ export interface AgentRecord {
49
49
  * Defaults to `"UTC"` when unset.
50
50
  */
51
51
  timezone?: string;
52
+ /**
53
+ * Access model surfaced by the host:
54
+ *
55
+ * - `public` — anyone with a chat token can open a conversation
56
+ * (embed flow). This is the historical behaviour and
57
+ * stays the default for callers that don't supply a
58
+ * value, so SDK consumers without a privacy model
59
+ * keep working unchanged.
60
+ * - `private` — only authenticated callers (host-mediated) may
61
+ * talk to the agent. The SDK's public-chat surface
62
+ * refuses tokens bound to a private agent so the
63
+ * host's admin pages stay the single source of
64
+ * truth on who has access.
65
+ */
66
+ visibility?: 'private' | 'public';
52
67
  }
53
68
  /**
54
69
  * Host-supplied resolver for per-tenant agent configurations. The SDK never
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge-io/core",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "Framework-free AI runtime SDK. Owns: agent loop (Anthropic), conversations, tools, streaming, agent-job queue, SdkHooks. Identity, billing, infra (email/uploads/secrets) live in the host's modules — not here.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",