@agentronics/sdk 0.6.0 → 0.7.1
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/dist/chunk-4FLZQPCO.js +18 -0
- package/dist/chunk-4FLZQPCO.js.map +1 -0
- package/dist/{chunk-X7NFMFN6.js → chunk-6QQS26AP.js} +264 -69
- package/dist/chunk-6QQS26AP.js.map +1 -0
- package/dist/chunk-BPDWJCPY.js +2 -0
- package/dist/chunk-BPDWJCPY.js.map +1 -0
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -8
- package/dist/index.d.ts +57 -8
- package/dist/index.global.js +8 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{init-only-7f8_LQAI.d.ts → init-only-C80qhujz.d.ts} +227 -30
- package/dist/{init-only-Cwll8MGz.d.cts → init-only-s9E9bVC0.d.cts} +227 -30
- package/dist/init-only.cjs +8 -7
- package/dist/init-only.cjs.map +1 -1
- package/dist/init-only.d.cts +2 -2
- package/dist/init-only.d.ts +2 -2
- package/dist/init-only.global.js +8 -7
- package/dist/init-only.global.js.map +1 -1
- package/dist/init-only.js +1 -1
- package/dist/lite.cjs +1 -1
- package/dist/lite.cjs.map +1 -1
- package/dist/lite.d.cts +2 -2
- package/dist/lite.d.ts +2 -2
- package/dist/lite.global.js +1 -1
- package/dist/lite.global.js.map +1 -1
- package/dist/lite.js +1 -1
- package/dist/middleware-Dd2T772u.d.cts +429 -0
- package/dist/middleware-Dd2T772u.d.ts +429 -0
- package/dist/next.cjs +239 -64
- package/dist/next.cjs.map +1 -1
- package/dist/next.d.cts +2 -2
- package/dist/next.d.ts +2 -2
- package/dist/next.js +2 -2
- package/dist/server.cjs +361 -66
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +103 -308
- package/dist/server.d.ts +103 -308
- package/dist/server.js +93 -1
- package/dist/server.js.map +1 -1
- package/dist/webmcp-BgKzHeQ3.d.cts +97 -0
- package/dist/webmcp-BgKzHeQ3.d.ts +97 -0
- package/package.json +4 -4
- package/dist/chunk-LLD3Y2LZ.js +0 -2
- package/dist/chunk-LLD3Y2LZ.js.map +0 -1
- package/dist/chunk-X7NFMFN6.js.map +0 -1
- package/dist/chunk-Y7JYD5RA.js +0 -17
- package/dist/chunk-Y7JYD5RA.js.map +0 -1
- package/dist/webmcp-C4ikhM4g.d.cts +0 -12
- package/dist/webmcp-C4ikhM4g.d.ts +0 -12
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _agentronics_protocol from '@agentronics/protocol';
|
|
2
|
-
import { AgentIdentity, TraceEvent, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
-
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-
|
|
4
|
-
export { a as AgentContextListener, b as AgentContextSnapshot, c as AgentContextStore, d as AuthEngine, e as AuthInput, f as AuthMethod, C as CRAWLER_SIGNATURES, g as CrawlerCategory, h as CrawlerSignature, i as DEFAULT_GROUP, j as DetectCrawlerOptions, k as DetectDomOptions, l as Detector, m as DetectorRegistry, n as DetectorStatus, o as DomSignalName, p as IdentityStore, M as MemoryCache, q as MemoryStore, r as PolicyCache, s as PresentIdentityOptions, t as PresentedIdentity, u as ProgressionConfig, v as ProgressionStage, w as ProgressionStore, x as ProgressionTransition, y as ProvideForPageInput, R as RateLimiter, S as SiteMemoryListener,
|
|
5
|
-
export { D as DetectWebMcpOptions, d as detectWebMcp } from './webmcp-
|
|
2
|
+
import { AgentIdentity, TraceEvent, PolicyRule, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
+
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-s9E9bVC0.cjs';
|
|
4
|
+
export { a as AgentContextListener, b as AgentContextSnapshot, c as AgentContextStore, d as AuthEngine, e as AuthInput, f as AuthMethod, C as CRAWLER_SIGNATURES, g as CrawlerCategory, h as CrawlerSignature, i as DEFAULT_GROUP, j as DetectCrawlerOptions, k as DetectDomOptions, l as Detector, m as DetectorRegistry, n as DetectorStatus, o as DomSignalName, p as IdentityStore, M as MemoryCache, q as MemoryStore, r as PolicyCache, s as PresentIdentityOptions, t as PresentedIdentity, u as ProgressionConfig, v as ProgressionStage, w as ProgressionStore, x as ProgressionTransition, y as ProvideForPageInput, R as RateLimiter, z as ReviewRequest, B as Reviewer, S as SiteMemoryListener, E as SiteMemoryStore, F as SurfacingContext, H as SurfacingDecision, J as TokenBudgetReport, K as ToolGroupSummary, L as ToolRegistry, N as ToolTokenEstimate, O as TraceInput, Q as Tracer, V as VisionDetector, U as VisionDetectorOptions, W as VisionSignals, X as WebMcpAdapter, Y as WebMcpAdapterOptions, Z as WebMcpProvider, _ as WebMcpPublishResult, $ as WebMcpRegistration, a0 as WebMcpToolDescriptor, a1 as bundledDetectors, a2 as createAgentContextStore, a3 as createAuthEngine, a4 as createDetectorRegistry, a5 as createIdentityStore, a6 as createMemoryCache, a7 as createMemoryStore, a8 as createPolicyCache, a9 as createPolicyEngine, aa as createProgressionStore, ab as createRateLimiter, ac as createReviewPrompt, ad as createSiteMemoryStore, ae as createToolRegistry, af as createTracer, ag as createVisionDetector, ah as createWebMcpAdapter, ai as decideSurfacing, aj as defaultAuthMethods, ak as descriptorTokens, al as detectAgent, am as detectCrawler, an as detectDom, ao as estimateBudget, ap as estimateToolTokens, aq as explainSurfacing, ar as groupTools, as as init, at as listGroupNames, au as modelFacingDescriptor, av as previewAuthMethods, aw as scoreVisionSignals, ax as surfaceTools } from './init-only-s9E9bVC0.cjs';
|
|
5
|
+
export { D as DetectWebMcpOptions, M as ModelContextTool, T as ToolAnnotations, W as WebMcpActivity, d as detectWebMcp, o as onWebMcpActivity, r as resolveModelContext, w as webMcpSupport } from './webmcp-BgKzHeQ3.cjs';
|
|
6
6
|
|
|
7
7
|
interface DeclareAgentInput {
|
|
8
8
|
class: 'webmcp' | 'dom' | 'screenshot' | 'crawler';
|
|
@@ -20,9 +20,11 @@ interface DetectorSignature {
|
|
|
20
20
|
}
|
|
21
21
|
interface SignatureLoaderOptions {
|
|
22
22
|
gatewayUrl: string;
|
|
23
|
+
/** Your publishable key — the Agentronics API requires it. */
|
|
24
|
+
publishableKey?: string;
|
|
23
25
|
fetcher?: typeof fetch;
|
|
24
26
|
}
|
|
25
|
-
declare const createSignatureLoader: ({ gatewayUrl, fetcher }: SignatureLoaderOptions) => {
|
|
27
|
+
declare const createSignatureLoader: ({ gatewayUrl, publishableKey, fetcher }: SignatureLoaderOptions) => {
|
|
26
28
|
snapshot(): DetectorSignature[];
|
|
27
29
|
sync(): Promise<DetectorSignature[]>;
|
|
28
30
|
};
|
|
@@ -40,8 +42,25 @@ interface GatewayExporterOptions {
|
|
|
40
42
|
gatewayUrl: string;
|
|
41
43
|
publishableKey: string;
|
|
42
44
|
fetcher?: typeof fetch;
|
|
45
|
+
/** Send queued events this often (ms). Default 2000. */
|
|
46
|
+
flushMs?: number;
|
|
47
|
+
/** Events per request; the API accepts at most 100. Default 50. */
|
|
48
|
+
maxBatch?: number;
|
|
49
|
+
/** Events kept while the API is unreachable; the oldest are dropped first. Default 500. */
|
|
50
|
+
maxQueue?: number;
|
|
43
51
|
}
|
|
44
|
-
|
|
52
|
+
interface GatewayExporter extends TraceExporter {
|
|
53
|
+
/** Send everything queued now (`keepalive` lets it outlive the page); settles when the requests do. */
|
|
54
|
+
flush(keepalive?: boolean): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Sends traces to the Agentronics API from the browser. Events are queued and
|
|
58
|
+
* sent in batches — every couple of seconds, when a batch fills, and when the
|
|
59
|
+
* page is hidden or closed — rather than one request per event, so a busy page
|
|
60
|
+
* stays within the API's per-visitor rate limit. Never throws into the page:
|
|
61
|
+
* a failed send drops that batch.
|
|
62
|
+
*/
|
|
63
|
+
declare const createGatewayExporter: ({ gatewayUrl, publishableKey, fetcher, flushMs, maxBatch, maxQueue, }: GatewayExporterOptions) => GatewayExporter;
|
|
45
64
|
|
|
46
65
|
interface WebhookExporterOptions {
|
|
47
66
|
url: string;
|
|
@@ -51,6 +70,13 @@ interface WebhookExporterOptions {
|
|
|
51
70
|
}
|
|
52
71
|
declare const createWebhookExporter: ({ url, fetcher, maxRetries, queueLimit, }: WebhookExporterOptions) => TraceExporter;
|
|
53
72
|
|
|
73
|
+
/** Mirrors ApiKeyIdentity in @agentronics/sdk/server (kept structural to avoid a server import). */
|
|
74
|
+
interface ApiKeyIdentity {
|
|
75
|
+
agentId: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
vendor?: string;
|
|
78
|
+
scopes?: string[];
|
|
79
|
+
}
|
|
54
80
|
interface IntelExporterOptions {
|
|
55
81
|
/**
|
|
56
82
|
* Agentronics API base URL (shown in the console under Settings) — the
|
|
@@ -95,6 +121,28 @@ interface IntelSync {
|
|
|
95
121
|
pushTools(tools: GovernedTool[]): Promise<number>;
|
|
96
122
|
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
97
123
|
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Fetch what the console manages for this site: authorization rules and the
|
|
126
|
+
* tool descriptions you approved in Procedural memory. Pass them to the
|
|
127
|
+
* browser SDK — `init({ policies, toolDescriptions })`.
|
|
128
|
+
*/
|
|
129
|
+
pullConfig(): Promise<DashboardConfig>;
|
|
130
|
+
/**
|
|
131
|
+
* An agent-API-key verifier for `createAgentAuth({ apiKey: { verify } })`
|
|
132
|
+
* that checks keys minted in the console, live — revoking a key in the
|
|
133
|
+
* console takes effect within `cacheSeconds` (default 60).
|
|
134
|
+
*/
|
|
135
|
+
keyVerifier(options?: {
|
|
136
|
+
cacheSeconds?: number;
|
|
137
|
+
}): (key: string) => Promise<ApiKeyIdentity | null>;
|
|
138
|
+
}
|
|
139
|
+
interface DashboardConfig {
|
|
140
|
+
policies: PolicyRule[];
|
|
141
|
+
/** tool name → approved description (replaces the code's description when published). */
|
|
142
|
+
toolDescriptions: Record<string, string>;
|
|
143
|
+
/** The site-memory snapshot last pushed for this site (null if none). */
|
|
144
|
+
siteMemory: Record<string, unknown> | null;
|
|
145
|
+
fetchedAt: string;
|
|
98
146
|
}
|
|
99
147
|
/** @deprecated Use createDashboardSync (same function). */
|
|
100
148
|
declare const createIntelSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
@@ -188,11 +236,12 @@ interface ServeWellKnownOptions {
|
|
|
188
236
|
*/
|
|
189
237
|
declare const serializeWellKnownContext: ({ snapshot }: ServeWellKnownOptions) => string;
|
|
190
238
|
|
|
239
|
+
declare const SDK_VERSION = "0.1.2";
|
|
240
|
+
|
|
191
241
|
declare const Agentronics: {
|
|
192
242
|
init: (options: InitOptions) => AgentronicsClient;
|
|
193
243
|
declareAgent: (input: DeclareAgentInput) => _agentronics_protocol.AgentIdentity;
|
|
194
244
|
detectAgent: (options?: DetectAgentOptions) => Promise<_agentronics_protocol.AgentIdentity | null>;
|
|
195
245
|
};
|
|
196
|
-
declare const VERSION = "0.1.0";
|
|
197
246
|
|
|
198
|
-
export { Agentronics, AgentronicsClient, type DeclareAgentInput, DetectAgentOptions, GovernedTool, InitOptions, type IntelExporterOptions, type IntelSync, type IntelSyncOptions, PolicyEngine, TraceExporter, VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createDashboardExporter, createDashboardSync, createGatewayExporter, createIntelExporter, createIntelSync, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|
|
247
|
+
export { Agentronics, AgentronicsClient, type DashboardConfig, type DeclareAgentInput, DetectAgentOptions, GovernedTool, InitOptions, type IntelExporterOptions, type IntelSync, type IntelSyncOptions, PolicyEngine, TraceExporter, SDK_VERSION as VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createDashboardExporter, createDashboardSync, createGatewayExporter, createIntelExporter, createIntelSync, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _agentronics_protocol from '@agentronics/protocol';
|
|
2
|
-
import { AgentIdentity, TraceEvent, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
-
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-
|
|
4
|
-
export { a as AgentContextListener, b as AgentContextSnapshot, c as AgentContextStore, d as AuthEngine, e as AuthInput, f as AuthMethod, C as CRAWLER_SIGNATURES, g as CrawlerCategory, h as CrawlerSignature, i as DEFAULT_GROUP, j as DetectCrawlerOptions, k as DetectDomOptions, l as Detector, m as DetectorRegistry, n as DetectorStatus, o as DomSignalName, p as IdentityStore, M as MemoryCache, q as MemoryStore, r as PolicyCache, s as PresentIdentityOptions, t as PresentedIdentity, u as ProgressionConfig, v as ProgressionStage, w as ProgressionStore, x as ProgressionTransition, y as ProvideForPageInput, R as RateLimiter, S as SiteMemoryListener,
|
|
5
|
-
export { D as DetectWebMcpOptions, d as detectWebMcp } from './webmcp-
|
|
2
|
+
import { AgentIdentity, TraceEvent, PolicyRule, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
+
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-C80qhujz.js';
|
|
4
|
+
export { a as AgentContextListener, b as AgentContextSnapshot, c as AgentContextStore, d as AuthEngine, e as AuthInput, f as AuthMethod, C as CRAWLER_SIGNATURES, g as CrawlerCategory, h as CrawlerSignature, i as DEFAULT_GROUP, j as DetectCrawlerOptions, k as DetectDomOptions, l as Detector, m as DetectorRegistry, n as DetectorStatus, o as DomSignalName, p as IdentityStore, M as MemoryCache, q as MemoryStore, r as PolicyCache, s as PresentIdentityOptions, t as PresentedIdentity, u as ProgressionConfig, v as ProgressionStage, w as ProgressionStore, x as ProgressionTransition, y as ProvideForPageInput, R as RateLimiter, z as ReviewRequest, B as Reviewer, S as SiteMemoryListener, E as SiteMemoryStore, F as SurfacingContext, H as SurfacingDecision, J as TokenBudgetReport, K as ToolGroupSummary, L as ToolRegistry, N as ToolTokenEstimate, O as TraceInput, Q as Tracer, V as VisionDetector, U as VisionDetectorOptions, W as VisionSignals, X as WebMcpAdapter, Y as WebMcpAdapterOptions, Z as WebMcpProvider, _ as WebMcpPublishResult, $ as WebMcpRegistration, a0 as WebMcpToolDescriptor, a1 as bundledDetectors, a2 as createAgentContextStore, a3 as createAuthEngine, a4 as createDetectorRegistry, a5 as createIdentityStore, a6 as createMemoryCache, a7 as createMemoryStore, a8 as createPolicyCache, a9 as createPolicyEngine, aa as createProgressionStore, ab as createRateLimiter, ac as createReviewPrompt, ad as createSiteMemoryStore, ae as createToolRegistry, af as createTracer, ag as createVisionDetector, ah as createWebMcpAdapter, ai as decideSurfacing, aj as defaultAuthMethods, ak as descriptorTokens, al as detectAgent, am as detectCrawler, an as detectDom, ao as estimateBudget, ap as estimateToolTokens, aq as explainSurfacing, ar as groupTools, as as init, at as listGroupNames, au as modelFacingDescriptor, av as previewAuthMethods, aw as scoreVisionSignals, ax as surfaceTools } from './init-only-C80qhujz.js';
|
|
5
|
+
export { D as DetectWebMcpOptions, M as ModelContextTool, T as ToolAnnotations, W as WebMcpActivity, d as detectWebMcp, o as onWebMcpActivity, r as resolveModelContext, w as webMcpSupport } from './webmcp-BgKzHeQ3.js';
|
|
6
6
|
|
|
7
7
|
interface DeclareAgentInput {
|
|
8
8
|
class: 'webmcp' | 'dom' | 'screenshot' | 'crawler';
|
|
@@ -20,9 +20,11 @@ interface DetectorSignature {
|
|
|
20
20
|
}
|
|
21
21
|
interface SignatureLoaderOptions {
|
|
22
22
|
gatewayUrl: string;
|
|
23
|
+
/** Your publishable key — the Agentronics API requires it. */
|
|
24
|
+
publishableKey?: string;
|
|
23
25
|
fetcher?: typeof fetch;
|
|
24
26
|
}
|
|
25
|
-
declare const createSignatureLoader: ({ gatewayUrl, fetcher }: SignatureLoaderOptions) => {
|
|
27
|
+
declare const createSignatureLoader: ({ gatewayUrl, publishableKey, fetcher }: SignatureLoaderOptions) => {
|
|
26
28
|
snapshot(): DetectorSignature[];
|
|
27
29
|
sync(): Promise<DetectorSignature[]>;
|
|
28
30
|
};
|
|
@@ -40,8 +42,25 @@ interface GatewayExporterOptions {
|
|
|
40
42
|
gatewayUrl: string;
|
|
41
43
|
publishableKey: string;
|
|
42
44
|
fetcher?: typeof fetch;
|
|
45
|
+
/** Send queued events this often (ms). Default 2000. */
|
|
46
|
+
flushMs?: number;
|
|
47
|
+
/** Events per request; the API accepts at most 100. Default 50. */
|
|
48
|
+
maxBatch?: number;
|
|
49
|
+
/** Events kept while the API is unreachable; the oldest are dropped first. Default 500. */
|
|
50
|
+
maxQueue?: number;
|
|
43
51
|
}
|
|
44
|
-
|
|
52
|
+
interface GatewayExporter extends TraceExporter {
|
|
53
|
+
/** Send everything queued now (`keepalive` lets it outlive the page); settles when the requests do. */
|
|
54
|
+
flush(keepalive?: boolean): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Sends traces to the Agentronics API from the browser. Events are queued and
|
|
58
|
+
* sent in batches — every couple of seconds, when a batch fills, and when the
|
|
59
|
+
* page is hidden or closed — rather than one request per event, so a busy page
|
|
60
|
+
* stays within the API's per-visitor rate limit. Never throws into the page:
|
|
61
|
+
* a failed send drops that batch.
|
|
62
|
+
*/
|
|
63
|
+
declare const createGatewayExporter: ({ gatewayUrl, publishableKey, fetcher, flushMs, maxBatch, maxQueue, }: GatewayExporterOptions) => GatewayExporter;
|
|
45
64
|
|
|
46
65
|
interface WebhookExporterOptions {
|
|
47
66
|
url: string;
|
|
@@ -51,6 +70,13 @@ interface WebhookExporterOptions {
|
|
|
51
70
|
}
|
|
52
71
|
declare const createWebhookExporter: ({ url, fetcher, maxRetries, queueLimit, }: WebhookExporterOptions) => TraceExporter;
|
|
53
72
|
|
|
73
|
+
/** Mirrors ApiKeyIdentity in @agentronics/sdk/server (kept structural to avoid a server import). */
|
|
74
|
+
interface ApiKeyIdentity {
|
|
75
|
+
agentId: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
vendor?: string;
|
|
78
|
+
scopes?: string[];
|
|
79
|
+
}
|
|
54
80
|
interface IntelExporterOptions {
|
|
55
81
|
/**
|
|
56
82
|
* Agentronics API base URL (shown in the console under Settings) — the
|
|
@@ -95,6 +121,28 @@ interface IntelSync {
|
|
|
95
121
|
pushTools(tools: GovernedTool[]): Promise<number>;
|
|
96
122
|
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
97
123
|
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Fetch what the console manages for this site: authorization rules and the
|
|
126
|
+
* tool descriptions you approved in Procedural memory. Pass them to the
|
|
127
|
+
* browser SDK — `init({ policies, toolDescriptions })`.
|
|
128
|
+
*/
|
|
129
|
+
pullConfig(): Promise<DashboardConfig>;
|
|
130
|
+
/**
|
|
131
|
+
* An agent-API-key verifier for `createAgentAuth({ apiKey: { verify } })`
|
|
132
|
+
* that checks keys minted in the console, live — revoking a key in the
|
|
133
|
+
* console takes effect within `cacheSeconds` (default 60).
|
|
134
|
+
*/
|
|
135
|
+
keyVerifier(options?: {
|
|
136
|
+
cacheSeconds?: number;
|
|
137
|
+
}): (key: string) => Promise<ApiKeyIdentity | null>;
|
|
138
|
+
}
|
|
139
|
+
interface DashboardConfig {
|
|
140
|
+
policies: PolicyRule[];
|
|
141
|
+
/** tool name → approved description (replaces the code's description when published). */
|
|
142
|
+
toolDescriptions: Record<string, string>;
|
|
143
|
+
/** The site-memory snapshot last pushed for this site (null if none). */
|
|
144
|
+
siteMemory: Record<string, unknown> | null;
|
|
145
|
+
fetchedAt: string;
|
|
98
146
|
}
|
|
99
147
|
/** @deprecated Use createDashboardSync (same function). */
|
|
100
148
|
declare const createIntelSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
@@ -188,11 +236,12 @@ interface ServeWellKnownOptions {
|
|
|
188
236
|
*/
|
|
189
237
|
declare const serializeWellKnownContext: ({ snapshot }: ServeWellKnownOptions) => string;
|
|
190
238
|
|
|
239
|
+
declare const SDK_VERSION = "0.1.2";
|
|
240
|
+
|
|
191
241
|
declare const Agentronics: {
|
|
192
242
|
init: (options: InitOptions) => AgentronicsClient;
|
|
193
243
|
declareAgent: (input: DeclareAgentInput) => _agentronics_protocol.AgentIdentity;
|
|
194
244
|
detectAgent: (options?: DetectAgentOptions) => Promise<_agentronics_protocol.AgentIdentity | null>;
|
|
195
245
|
};
|
|
196
|
-
declare const VERSION = "0.1.0";
|
|
197
246
|
|
|
198
|
-
export { Agentronics, AgentronicsClient, type DeclareAgentInput, DetectAgentOptions, GovernedTool, InitOptions, type IntelExporterOptions, type IntelSync, type IntelSyncOptions, PolicyEngine, TraceExporter, VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createDashboardExporter, createDashboardSync, createGatewayExporter, createIntelExporter, createIntelSync, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|
|
247
|
+
export { Agentronics, AgentronicsClient, type DashboardConfig, type DeclareAgentInput, DetectAgentOptions, GovernedTool, InitOptions, type IntelExporterOptions, type IntelSync, type IntelSyncOptions, PolicyEngine, TraceExporter, SDK_VERSION as VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createDashboardExporter, createDashboardSync, createGatewayExporter, createIntelExporter, createIntelSync, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|