@poncho-ai/sdk 1.7.1 → 1.8.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.
@@ -1,14 +1,14 @@
1
1
 
2
- > @poncho-ai/sdk@1.7.1 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@1.7.1 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Target: es2022
9
- ESM Build start
10
- ESM dist/index.js 12.46 KB
11
- ESM ⚡️ Build success in 19ms
12
- DTS Build start
13
- DTS ⚡️ Build success in 1298ms
14
- DTS dist/index.d.ts 23.88 KB
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Target: es2022
9
+ ESM Build start
10
+ ESM dist/index.js 12.46 KB
11
+ ESM ⚡️ Build success in 21ms
12
+ DTS Build start
13
+ DTS ⚡️ Build success in 1577ms
14
+ DTS dist/index.d.ts 24.03 KB
@@ -0,0 +1,6 @@
1
+
2
+ > @poncho-ai/sdk@0.6.0 lint /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
+ > eslint src/
4
+
5
+ sh: eslint: command not found
6
+  ELIFECYCLE  Command failed.
File without changes
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`83d3c5f`](https://github.com/cesr/poncho-ai/commit/83d3c5f841fe84965d1f9fec6dfc5d8832e4489a) Thanks [@cesr](https://github.com/cesr)! - feat: add multi-tenancy with JWT-based tenant scoping
8
+
9
+ Deploy one agent, serve many tenants with fully isolated conversations, memory, reminders, and secrets. Tenancy activates automatically when a valid JWT is received — no config changes needed.
10
+ - **Auth**: `createTenantToken()` in client SDK, `poncho auth create-token` CLI, or any HS256 JWT library.
11
+ - **Isolation**: conversations, memory, reminders, and todos scoped per tenant.
12
+ - **Per-tenant secrets**: encrypted secret overrides for MCP auth tokens, manageable via CLI (`poncho secrets`), API, and web UI settings panel.
13
+ - **MCP**: per-tenant token resolution with deferred discovery for servers without a default env var.
14
+ - **Web UI**: `?token=` tenant access, settings cog for secret management, dark mode support.
15
+ - **Backward compatible**: existing single-user deployments work unchanged.
16
+
3
17
  ## 1.7.1
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -578,6 +578,8 @@ interface ToolContext {
578
578
  parameters: Record<string, unknown>;
579
579
  abortSignal?: AbortSignal;
580
580
  conversationId?: string;
581
+ /** The tenant ID when running in multi-tenant mode. */
582
+ tenantId?: string;
581
583
  }
582
584
  type ToolHandler<TInput extends Record<string, unknown>, TOutput> = (input: TInput, context: ToolContext) => Promise<TOutput> | TOutput;
583
585
  interface ToolDefinition<TInput extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown> {
@@ -608,6 +610,8 @@ interface RunInput {
608
610
  conversationId?: string;
609
611
  /** When true, ignores PONCHO_MAX_DURATION soft deadline (used for background subagent runs). */
610
612
  disableSoftDeadline?: boolean;
613
+ /** Scope this run to a specific tenant. */
614
+ tenantId?: string;
611
615
  }
612
616
  interface TokenUsage {
613
617
  input: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/sdk",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -58,6 +58,8 @@ export interface ToolContext {
58
58
  parameters: Record<string, unknown>;
59
59
  abortSignal?: AbortSignal;
60
60
  conversationId?: string;
61
+ /** The tenant ID when running in multi-tenant mode. */
62
+ tenantId?: string;
61
63
  }
62
64
 
63
65
  export type ToolHandler<TInput extends Record<string, unknown>, TOutput> = (
@@ -105,6 +107,8 @@ export interface RunInput {
105
107
  conversationId?: string;
106
108
  /** When true, ignores PONCHO_MAX_DURATION soft deadline (used for background subagent runs). */
107
109
  disableSoftDeadline?: boolean;
110
+ /** Scope this run to a specific tenant. */
111
+ tenantId?: string;
108
112
  }
109
113
 
110
114
  export interface TokenUsage {