@agentforge-io/sdk-server 4.9.1 → 4.11.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.
|
@@ -2,8 +2,14 @@ import type { AgentForgeClient } from '../client';
|
|
|
2
2
|
import type { TemplateDetail, TemplateInstallResult, TemplateSummary } from '../types';
|
|
3
3
|
export interface ListTemplatesInput {
|
|
4
4
|
kind?: 'agent' | 'team';
|
|
5
|
-
/** Every tag must match (AND), e.g. ['
|
|
5
|
+
/** Every tag must match (AND), e.g. ['type:food']. */
|
|
6
6
|
tags?: string[];
|
|
7
|
+
/** Leave out templates carrying any of these tags. */
|
|
8
|
+
excludeTags?: string[];
|
|
9
|
+
/** 'own': the caller's templates (its tenant's and, for an App in an
|
|
10
|
+
* installed tenant, its home tenant's). 'market': system and public
|
|
11
|
+
* templates of others. Omit for both. */
|
|
12
|
+
scope?: 'own' | 'market';
|
|
7
13
|
/** Free-text search. */
|
|
8
14
|
q?: string;
|
|
9
15
|
/** 1–200. */
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
// public, filtered by tag) and installs one into the tenant it acts in —
|
|
5
5
|
// usually an owner's tenant via `af.forTenant(tenantId).templates.install`.
|
|
6
6
|
//
|
|
7
|
+
// A host authors its templates in its OWN tenant (`scope: 'own'`); they stay
|
|
8
|
+
// its own — listed and installable — in every tenant the App is installed
|
|
9
|
+
// in, without being published. `scope: 'market'` is everyone else's: system
|
|
10
|
+
// and public templates.
|
|
11
|
+
//
|
|
7
12
|
// Installing copies the team, members, orchestrator, skills and tools, and
|
|
8
13
|
// creates the template's config variables EMPTY (`configCreated`); fill them
|
|
9
14
|
// with `config.set`. Rows created by an App secret are owned by the App.
|
|
@@ -20,6 +25,10 @@ class TemplatesResource {
|
|
|
20
25
|
qs.set('kind', input.kind);
|
|
21
26
|
for (const tag of input.tags ?? [])
|
|
22
27
|
qs.append('tag', tag);
|
|
28
|
+
for (const tag of input.excludeTags ?? [])
|
|
29
|
+
qs.append('excludeTag', tag);
|
|
30
|
+
if (input.scope)
|
|
31
|
+
qs.set('scope', input.scope);
|
|
23
32
|
if (input.q)
|
|
24
33
|
qs.set('q', input.q);
|
|
25
34
|
if (input.limit !== undefined)
|
package/dist/types.d.ts
CHANGED
|
@@ -390,6 +390,17 @@ export interface ConnectorStatus {
|
|
|
390
390
|
/** ¿Tiene selector de recursos real implementado (nivel 2 del picker)?
|
|
391
391
|
* false = se puede conectar pero `listResources()` devuelve `unsupported`. */
|
|
392
392
|
browsable: boolean;
|
|
393
|
+
/** Display name, when the connector is registered in that deploy. */
|
|
394
|
+
name?: string;
|
|
395
|
+
/** How it connects: 'oauth' → `authorizeForTenant()`; 'api_key' → the user
|
|
396
|
+
* pastes a key, saved with `saveApiKeyForTenant()`. Absent on older
|
|
397
|
+
* platforms or for connectors not registered there. */
|
|
398
|
+
authKind?: 'oauth' | 'api_key';
|
|
399
|
+
/** `api_key` only: where the user generates the key, and an input placeholder. */
|
|
400
|
+
apiKey?: {
|
|
401
|
+
instructionsUrl?: string;
|
|
402
|
+
placeholder?: string;
|
|
403
|
+
};
|
|
393
404
|
}
|
|
394
405
|
export interface AppUserConnectorStatus {
|
|
395
406
|
connectorId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken, ak_live_ API key or App secret (sk_live_), with App installations across tenants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|