@ampersend_ai/ampersend-sdk 0.0.25 → 0.0.27

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 (55) hide show
  1. package/dist/ampersend/agent.d.ts +65 -66
  2. package/dist/ampersend/agent.d.ts.map +1 -1
  3. package/dist/ampersend/agent.js +32 -22
  4. package/dist/ampersend/agent.js.map +1 -1
  5. package/dist/ampersend/approval.js.map +1 -1
  6. package/dist/ampersend/client.d.ts +2 -2
  7. package/dist/ampersend/client.d.ts.map +1 -1
  8. package/dist/ampersend/client.js.map +1 -1
  9. package/dist/ampersend/curated-agent.d.ts +94 -94
  10. package/dist/ampersend/curated-agent.d.ts.map +1 -1
  11. package/dist/ampersend/curated-agent.js +41 -41
  12. package/dist/ampersend/curated-agent.js.map +1 -1
  13. package/dist/ampersend/management.d.ts +23 -59
  14. package/dist/ampersend/management.d.ts.map +1 -1
  15. package/dist/ampersend/management.js +6 -8
  16. package/dist/ampersend/management.js.map +1 -1
  17. package/dist/ampersend/types.d.ts +194 -318
  18. package/dist/ampersend/types.d.ts.map +1 -1
  19. package/dist/ampersend/types.js +134 -123
  20. package/dist/ampersend/types.js.map +1 -1
  21. package/dist/ampersend/zod-bridge.d.ts +4 -5
  22. package/dist/ampersend/zod-bridge.d.ts.map +1 -1
  23. package/dist/ampersend/zod-bridge.js +35 -19
  24. package/dist/ampersend/zod-bridge.js.map +1 -1
  25. package/dist/cli/commands/agent.d.ts +3 -1
  26. package/dist/cli/commands/agent.d.ts.map +1 -1
  27. package/dist/cli/commands/agent.js +44 -22
  28. package/dist/cli/commands/agent.js.map +1 -1
  29. package/dist/cli/commands/card.d.ts +19 -16
  30. package/dist/cli/commands/card.d.ts.map +1 -1
  31. package/dist/cli/commands/card.js +21 -16
  32. package/dist/cli/commands/card.js.map +1 -1
  33. package/dist/cli/commands/config.d.ts +1 -1
  34. package/dist/cli/commands/config.d.ts.map +1 -1
  35. package/dist/cli/commands/config.js +31 -42
  36. package/dist/cli/commands/config.js.map +1 -1
  37. package/dist/cli/commands/fetch.d.ts +1 -0
  38. package/dist/cli/commands/fetch.d.ts.map +1 -1
  39. package/dist/cli/commands/fetch.js +3 -2
  40. package/dist/cli/commands/fetch.js.map +1 -1
  41. package/dist/cli/commands/marketplace.d.ts +5 -2
  42. package/dist/cli/commands/marketplace.d.ts.map +1 -1
  43. package/dist/cli/commands/marketplace.js +12 -12
  44. package/dist/cli/commands/marketplace.js.map +1 -1
  45. package/dist/cli/commands/setup.d.ts +4 -1
  46. package/dist/cli/commands/setup.d.ts.map +1 -1
  47. package/dist/cli/commands/setup.js +66 -41
  48. package/dist/cli/commands/setup.js.map +1 -1
  49. package/dist/cli/config.d.ts +190 -68
  50. package/dist/cli/config.d.ts.map +1 -1
  51. package/dist/cli/config.js +357 -150
  52. package/dist/cli/config.js.map +1 -1
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +2 -2
@@ -3,7 +3,7 @@ import { type ConfigStatus, type JsonEnvelope } from "./envelope.ts";
3
3
  /**
4
4
  * Resolved credentials for an authenticated command. Tries env vars first
5
5
  * (so a deploy can override without touching the local config file), then
6
- * the config file written by `setup` / `config set`.
6
+ * the active context in the config file written by `setup` / `config set`.
7
7
  */
8
8
  export interface ResolvedCredentials {
9
9
  agentAccount: `0x${string}`;
@@ -15,7 +15,7 @@ export interface ResolvedCredentials {
15
15
  * Returns an `err` envelope when the local config isn't ready, so the
16
16
  * caller can print it and exit.
17
17
  */
18
- export declare function loadCredentials(): {
18
+ export declare function loadCredentials(opts?: ContextSelector): {
19
19
  ok: true;
20
20
  credentials: ResolvedCredentials;
21
21
  } | {
@@ -26,127 +26,251 @@ export declare const CONFIG_FILE: string;
26
26
  export type { ConfigStatus };
27
27
  /** Default API URL (production) */
28
28
  export declare const DEFAULT_API_URL = "https://api.ampersend.ai";
29
- /** Pending approval stored in config */
30
- export interface PendingApproval {
31
- token: string;
32
- agentKey: `0x${string}`;
33
- expiresAt: string;
34
- }
35
29
  /**
36
30
  * Cached Laso Bearer token for `card details`/`list`, so a warm read costs
37
31
  * nothing. Stamped with the identity (`agentKey`) and `apiUrl` it was minted
38
32
  * under: `readLasoToken` treats it as absent if either no longer matches the
39
- * active config (covers env-var overrides) or it has expired. Self-correcting,
33
+ * active context (covers env-var overrides) or it has expired. Self-correcting,
40
34
  * so the identity/URL write paths only need to drop it, not re-thread it.
41
35
  *
36
+ * Lives inside the context it was minted under, so switching the active context
37
+ * (`config use`) keeps each context's token intact without any explicit drop.
38
+ *
42
39
  * Schema is the source of truth; the `LasoToken` type is derived from it so the
43
40
  * two can't drift (the same pattern as the schemas in `src/ampersend/`).
44
41
  */
45
42
  declare const LasoTokenSchema: Schema.Struct<{
46
- idToken: typeof Schema.String;
47
- expiresAt: typeof Schema.String;
48
- agentKey: Schema.TemplateLiteral<`0x${string}`>;
49
- apiUrl: Schema.optional<typeof Schema.String>;
43
+ readonly idToken: Schema.String;
44
+ readonly expiresAt: Schema.String;
45
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
46
+ readonly apiUrl: Schema.optional<Schema.String>;
50
47
  }>;
51
48
  export type LasoToken = typeof LasoTokenSchema.Type;
52
- /** Stored configuration V1 */
53
- export interface StoredConfigV1 {
54
- version: 1;
55
- agentKey?: `0x${string}`;
56
- agentAccount?: `0x${string}`;
57
- apiUrl?: string;
58
- pendingApproval?: PendingApproval;
59
- lasoToken?: LasoToken;
49
+ /**
50
+ * A named identity in the config. A context is either:
51
+ * - `ready`: resolved, carrying an active key + on-chain account (+ optional
52
+ * per-context apiUrl and cached lasoToken).
53
+ * - `pending`: an in-flight `setup start` — a generated key plus the approval
54
+ * token and its local expiry, but no account yet. `setup finish`
55
+ * promotes it to `ready`.
56
+ *
57
+ * Each context carries its own `apiUrl`, so e.g. a sandbox and a prod context
58
+ * can coexist pointed at different environments.
59
+ */
60
+ declare const ReadyContextSchema: Schema.Struct<{
61
+ readonly status: Schema.Literal<"ready">;
62
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
63
+ readonly agentAccount: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
64
+ readonly createdAt: Schema.String;
65
+ readonly apiUrl: Schema.optional<Schema.String>;
66
+ readonly lasoToken: Schema.optional<Schema.Struct<{
67
+ readonly idToken: Schema.String;
68
+ readonly expiresAt: Schema.String;
69
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
70
+ readonly apiUrl: Schema.optional<Schema.String>;
71
+ }>>;
72
+ }>;
73
+ declare const PendingContextSchema: Schema.Struct<{
74
+ readonly status: Schema.Literal<"pending">;
75
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
76
+ readonly token: Schema.String;
77
+ readonly expiresAt: Schema.String;
78
+ readonly createdAt: Schema.String;
79
+ readonly apiUrl: Schema.optional<Schema.String>;
80
+ }>;
81
+ declare const ContextSchema: Schema.Union<readonly [Schema.Struct<{
82
+ readonly status: Schema.Literal<"ready">;
83
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
84
+ readonly agentAccount: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
85
+ readonly createdAt: Schema.String;
86
+ readonly apiUrl: Schema.optional<Schema.String>;
87
+ readonly lasoToken: Schema.optional<Schema.Struct<{
88
+ readonly idToken: Schema.String;
89
+ readonly expiresAt: Schema.String;
90
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
91
+ readonly apiUrl: Schema.optional<Schema.String>;
92
+ }>>;
93
+ }>, Schema.Struct<{
94
+ readonly status: Schema.Literal<"pending">;
95
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
96
+ readonly token: Schema.String;
97
+ readonly expiresAt: Schema.String;
98
+ readonly createdAt: Schema.String;
99
+ readonly apiUrl: Schema.optional<Schema.String>;
100
+ }>]>;
101
+ export type ReadyContext = typeof ReadyContextSchema.Type;
102
+ export type PendingContext = typeof PendingContextSchema.Type;
103
+ export type Context = typeof ContextSchema.Type;
104
+ /** Stored configuration V2 — the multi-context model. */
105
+ export interface StoredConfigV2 {
106
+ version: 2;
107
+ activeContext?: string;
108
+ contexts: Record<string, Context>;
60
109
  }
61
110
  /** Current stored config type */
62
- export type StoredConfig = StoredConfigV1;
63
- /** Runtime configuration with derived fields */
64
- export interface RuntimeConfig {
65
- agentKey?: `0x${string}`;
66
- agentAccount?: `0x${string}`;
67
- apiUrl?: string;
68
- pendingApproval?: PendingApproval;
69
- lasoToken?: LasoToken;
70
- status: ConfigStatus;
111
+ export type StoredConfig = StoredConfigV2;
112
+ /** Pending approval payload passed to `startContext` by `setup start`. */
113
+ export interface PendingApproval {
114
+ token: string;
115
+ agentKey: `0x${string}`;
116
+ expiresAt: string;
117
+ }
118
+ /** A context with its name, as returned by lookups. */
119
+ export interface NamedContext {
120
+ name: string;
121
+ context: Context;
71
122
  }
72
123
  /**
73
- * Read config file if it exists.
124
+ * Read config file if it exists, normalized to the V2 context model.
74
125
  * Returns null if the file is missing or corrupt.
75
126
  */
76
- export declare function readConfig(): StoredConfig | null;
127
+ export declare function readConfig(): StoredConfigV2 | null;
128
+ /**
129
+ * Write config file with secure permissions. Always writes V2 and prunes
130
+ * expired pending contexts on the way out.
131
+ */
132
+ export declare function writeConfig(config: Omit<StoredConfigV2, "version">): void;
77
133
  /**
78
- * Write config file with secure permissions
134
+ * Per-invocation context selection. A `--context <name>` flag wins; otherwise
135
+ * `AMPERSEND_CONTEXT`; otherwise the persisted `activeContext`. Carried by every
136
+ * command so it can target a non-active context without switching.
79
137
  */
80
- export declare function writeConfig(config: Omit<StoredConfig, "version">): void;
138
+ export interface ContextSelector {
139
+ context?: string | undefined;
140
+ }
141
+ /**
142
+ * The context name to use this invocation: `--context` flag > `AMPERSEND_CONTEXT`
143
+ * env > persisted `activeContext`. Returns undefined if none resolves.
144
+ */
145
+ export declare function resolveContextName(opts?: ContextSelector): string | undefined;
81
146
  /**
82
- * Get runtime config with status
147
+ * The selected context (name + value) after applying flag/env/active precedence,
148
+ * or null if no config file exists or the resolved name has no context.
83
149
  */
84
- export declare function getRuntimeConfig(): RuntimeConfig | null;
150
+ export declare function getSelectedContext(opts?: ContextSelector): NamedContext | null;
85
151
  /**
86
- * Get configuration status for error messages
152
+ * Effective API URL for unauthenticated calls and setup flows.
153
+ * Precedence: AMPERSEND_API_URL (hard bypass) > selected context's apiUrl > default.
87
154
  */
88
- export declare function getConfigStatus(): {
155
+ export declare function getActiveApiUrl(opts?: ContextSelector): string;
156
+ /**
157
+ * Per-context status for the selected context, for error messages and `status`.
158
+ */
159
+ export declare function getConfigStatus(opts?: ContextSelector): {
89
160
  status: ConfigStatus;
90
161
  };
91
162
  /**
92
163
  * Check if a pending approval has expired locally.
93
164
  */
94
- export declare function isPendingExpired(pending: PendingApproval): boolean;
165
+ export declare function isPendingExpired(pending: {
166
+ expiresAt: string;
167
+ }): boolean;
95
168
  /**
96
169
  * Compute the expiration ISO string for a new approval (now + 30min).
97
170
  */
98
171
  export declare function computeApprovalExpiry(): string;
99
172
  /**
100
- * Set active config directly using "agentKey:::agentAccount" format.
101
- * Replaces the old `config init` + `config set-agent` flow.
173
+ * Production = the default URL, or no URL at all. Auto-derived context names get
174
+ * the URL host prepended only for non-production environments.
102
175
  */
103
- export declare function setConfig(secret: string): JsonEnvelope<{
176
+ export declare function isProductionUrl(apiUrl: string | undefined): boolean;
177
+ /**
178
+ * Auto-derive a context name from the agent key when `--context` is omitted.
179
+ * The base is `ctx-<4 hex of key address>`; non-production URLs prepend the host
180
+ * so contexts targeting different environments stay distinct (e.g.
181
+ * `api.sandbox.ampersend.ai-ctx-1a2b`). Not guaranteed unique on its own —
182
+ * callers go through `uniqueContextName` to disambiguate.
183
+ */
184
+ export declare function autoContextName(apiUrl: string | undefined, keyAddress: string): string;
185
+ /**
186
+ * An auto-derived context name guaranteed free in `config`. Appends `-2`, `-3`,
187
+ * … if the base name (or a prior counter) is already taken.
188
+ */
189
+ export declare function uniqueContextName(config: StoredConfigV2, apiUrl: string | undefined, keyAddress: string): string;
190
+ /**
191
+ * Set a context's identity directly using "agentKey:::agentAccount" format and
192
+ * make it active. With `--context <name>` the identity is written to that named
193
+ * context (creating or overwriting it); without one, a fresh auto-named context
194
+ * is minted. A context's `apiUrl` is fixed at creation — `setConfig` only sets
195
+ * it on a brand-new context, never edits an existing one's URL.
196
+ */
197
+ export declare function setConfig(secret: string, opts?: {
198
+ name?: string | undefined;
199
+ apiUrl?: string | undefined;
200
+ }): JsonEnvelope<{
104
201
  agentKeyAddress: string;
105
202
  agentAccount: string;
203
+ context: string;
106
204
  status: ConfigStatus;
107
205
  }>;
108
206
  /**
109
- * Set API URL in config. Pass undefined to clear (revert to production default).
207
+ * Switch the active context without re-running setup. Errors if the name is
208
+ * unknown.
110
209
  */
111
- export declare function setApiUrl(apiUrl: string | undefined): JsonEnvelope<{
112
- apiUrl: string;
210
+ export declare function useContext(name: string): JsonEnvelope<{
211
+ context: string;
212
+ status: ConfigStatus;
113
213
  }>;
114
214
  /**
115
- * Store a pending approval in config.
116
- * Called by `setup start`.
215
+ * Delete a context. If it was the active one, the active selection is cleared.
216
+ * Errors if the name is unknown.
117
217
  */
118
- export declare function storePendingApproval(pending: PendingApproval): void;
218
+ export declare function removeContext(name: string): JsonEnvelope<{
219
+ context: string;
220
+ wasActive: boolean;
221
+ }>;
119
222
  /**
120
- * Clear pending approval from config.
223
+ * Create a `pending` context from a freshly-requested approval.
224
+ * Called by `setup start`. Makes it active unless `detach` is set.
121
225
  */
122
- export declare function clearPendingApproval(): void;
226
+ export declare function startContext(name: string, pending: PendingApproval, opts?: {
227
+ apiUrl?: string | undefined;
228
+ detach?: boolean | undefined;
229
+ }): void;
123
230
  /**
124
- * Promote a pending approval to active config.
125
- * Called by `setup finish` when the approval is resolved.
231
+ * Promote a `pending` context to `ready` (key stays, account filled in).
232
+ * Called by `setup finish`. Makes the context active.
126
233
  */
127
- export declare function promotePending(agentAccount: `0x${string}`): JsonEnvelope<{
234
+ export declare function finishContext(name: string, agentAccount: `0x${string}`): JsonEnvelope<{
128
235
  agentKeyAddress: string;
129
236
  agentAccount: string;
237
+ context: string;
130
238
  status: ConfigStatus;
131
239
  }>;
132
240
  /**
133
- * Cache a Laso Bearer token, preserving the rest of the config file.
134
- * The token is stamped with the identity/URL it was minted under so
135
- * `readLasoToken` can reject it after an env-var or config change.
241
+ * Remove a pending context (e.g. when an approval is rejected). No-op if the
242
+ * context is missing or no longer pending.
243
+ */
244
+ export declare function clearPendingContext(name: string): void;
245
+ /**
246
+ * Cache a Laso Bearer token on the selected context, preserving the rest of the
247
+ * config. The token is stamped with the identity/URL it was minted under so
248
+ * `readLasoToken` can reject it after an env-var or context change.
136
249
  *
137
- * No-op when credentials come purely from env vars (no file to write): the
138
- * config file is the only cache, and we don't create one just to hold a token.
250
+ * No-op when the selected context isn't a ready one (e.g. env-only credentials):
251
+ * the config file is the only cache, and we don't create one just to hold a token.
139
252
  */
140
- export declare function storeLasoToken(token: LasoToken): void;
253
+ export declare function storeLasoToken(token: LasoToken, opts?: ContextSelector): void;
141
254
  /**
142
- * Read the cached Laso token, or null if there's no usable one. Treated as
143
- * absent when: no token cached, expired, or its stamped `agentKey`/`apiUrl`
144
- * no longer match the active credentials (covers env-var overrides and any
145
- * write path that forgot to drop it). Self-correcting by construction.
255
+ * Read the selected context's cached Laso token, or null if there's no usable
256
+ * one. Treated as absent when: no token cached, expired, or its stamped
257
+ * `agentKey`/`apiUrl` no longer match the active credentials (covers env-var
258
+ * overrides). Self-correcting by construction.
146
259
  */
147
- export declare function readLasoToken(active: ResolvedCredentials): LasoToken | null;
260
+ export declare function readLasoToken(active: ResolvedCredentials, opts?: ContextSelector): LasoToken | null;
148
261
  /** Configuration source */
149
262
  export type CredentialSource = "env" | "file" | "none";
263
+ /** Summary of a single context for `config status`. */
264
+ export interface ContextSummary {
265
+ name: string;
266
+ status: ConfigStatus;
267
+ active: boolean;
268
+ createdAt: string;
269
+ agentKeyAddress?: string;
270
+ agentAccount?: string;
271
+ apiUrl?: string;
272
+ pendingExpired?: boolean;
273
+ }
150
274
  /** Data returned by getStatus */
151
275
  export interface StatusData {
152
276
  status: ConfigStatus;
@@ -155,10 +279,8 @@ export interface StatusData {
155
279
  agentKeyAddress?: string;
156
280
  agentAccount?: string;
157
281
  apiUrl?: string;
158
- pendingApproval?: {
159
- agentKeyAddress: string;
160
- expired: boolean;
161
- };
282
+ activeContext?: string;
283
+ contexts?: Array<ContextSummary>;
162
284
  }
163
285
  /**
164
286
  * Get current configuration status.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,OAAO,EAAW,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAE7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,KAAK,MAAM,EAAE,CAAA;IAC3B,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,WAAW,EAAE,mBAAmB,CAAA;CAAE,GAC9C;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAAE,CAkC5C;AAID,eAAO,MAAM,WAAW,QAAkC,CAAA;AAS1D,YAAY,EAAE,YAAY,EAAE,CAAA;AAE5B,mCAAmC;AACnC,eAAO,MAAM,eAAe,6BAA6B,CAAA;AAEzD,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM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