@agentronics/sdk 0.4.0 → 0.6.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.
- package/README.md +96 -76
- package/dist/chunk-X7NFMFN6.js +1005 -0
- package/dist/chunk-X7NFMFN6.js.map +1 -0
- package/dist/chunk-Y7JYD5RA.js +17 -0
- package/dist/chunk-Y7JYD5RA.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.global.js +3 -3
- 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.cjs +2 -2
- package/dist/init-only.global.js +2 -2
- package/dist/init-only.global.js.map +1 -1
- package/dist/init-only.js +1 -1
- package/dist/next.cjs +962 -0
- package/dist/next.cjs.map +1 -0
- package/dist/next.d.cts +20 -0
- package/dist/next.d.ts +20 -0
- package/dist/next.js +20 -0
- package/dist/next.js.map +1 -0
- package/dist/server.cjs +1026 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +336 -0
- package/dist/server.d.ts +336 -0
- package/dist/server.js +3 -0
- package/dist/server.js.map +1 -0
- package/package.json +37 -5
- package/dist/chunk-YNRQTQM4.js +0 -17
- package/dist/chunk-YNRQTQM4.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _agentronics_protocol from '@agentronics/protocol';
|
|
2
2
|
import { AgentIdentity, TraceEvent, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
-
import { T as TraceExporter, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-Cwll8MGz.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,
|
|
3
|
+
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-Cwll8MGz.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, S as SiteMemoryListener, z as SiteMemoryStore, B as SurfacingContext, E as SurfacingDecision, F as TokenBudgetReport, H as ToolGroupSummary, J as ToolRegistry, K as ToolTokenEstimate, L as TraceInput, N as Tracer, W as WebMcpAdapter, O as WebMcpAdapterOptions, Q as WebMcpProvider, U as WebMcpToolDescriptor, V as bundledDetectors, X as createAgentContextStore, Y as createAuthEngine, Z as createDetectorRegistry, _ as createIdentityStore, $ as createMemoryCache, a0 as createMemoryStore, a1 as createPolicyCache, a2 as createPolicyEngine, a3 as createProgressionStore, a4 as createRateLimiter, a5 as createSiteMemoryStore, a6 as createToolRegistry, a7 as createTracer, a8 as createWebMcpAdapter, a9 as decideSurfacing, aa as detectAgent, ab as detectCrawler, ac as detectDom, ad as estimateBudget, ae as estimateToolTokens, af as explainSurfacing, ag as groupTools, ah as init, ai as listGroupNames, aj as surfaceTools } from './init-only-Cwll8MGz.cjs';
|
|
5
5
|
export { D as DetectWebMcpOptions, d as detectWebMcp } from './webmcp-C4ikhM4g.cjs';
|
|
6
6
|
|
|
7
7
|
interface DeclareAgentInput {
|
|
@@ -53,7 +53,7 @@ declare const createWebhookExporter: ({ url, fetcher, maxRetries, queueLimit, }:
|
|
|
53
53
|
|
|
54
54
|
interface IntelExporterOptions {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Agentronics API base URL (shown in the console under Settings) — the
|
|
57
57
|
* `/v1/sdk/events` path is appended automatically — or the full ingest URL.
|
|
58
58
|
*/
|
|
59
59
|
url: string;
|
|
@@ -67,12 +67,41 @@ interface IntelExporterOptions {
|
|
|
67
67
|
fetcher?: typeof fetch;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Stream
|
|
70
|
+
* Stream traces (agent sign-ins, verifications, access decisions) to the
|
|
71
|
+
* Agentronics dashboard.
|
|
71
72
|
* POSTs a `TraceBatch` to the intel-api ingest endpoint with the ingest key.
|
|
72
73
|
* Intended for Node/server use (the existing webhook exporter is browser-bound
|
|
73
74
|
* and can't send an auth header).
|
|
74
75
|
*/
|
|
76
|
+
/** @deprecated Use createDashboardExporter (same function). */
|
|
75
77
|
declare const createIntelExporter: ({ url, ingestKey, fetcher, }: IntelExporterOptions) => TraceExporter;
|
|
78
|
+
interface IntelSyncOptions {
|
|
79
|
+
/** Agentronics API base URL (shown in the console under Settings). */
|
|
80
|
+
url: string;
|
|
81
|
+
/** Per-tenant SDK ingest key (`agtx_ik_…`). Backend-only — never the browser. */
|
|
82
|
+
ingestKey: string;
|
|
83
|
+
/** The site these tools/memory belong to (matches your SDK `siteId`). */
|
|
84
|
+
siteId: string;
|
|
85
|
+
fetcher?: typeof fetch;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Push the authoritative tool registry + site-memory snapshot to the
|
|
89
|
+
* Agentronics console — the full data the WebMCP Tools + Knaph pages need,
|
|
90
|
+
* which is too large for the lightweight trace stream. Call after `syncTools()`
|
|
91
|
+
* / `provideSiteMemory(...)`. Backend/server use only (the key is secret).
|
|
92
|
+
*/
|
|
93
|
+
interface IntelSync {
|
|
94
|
+
/** POST the registry to /v1/sdk/tools. Returns the number of tools sent. */
|
|
95
|
+
pushTools(tools: GovernedTool[]): Promise<number>;
|
|
96
|
+
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
97
|
+
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
/** @deprecated Use createDashboardSync (same function). */
|
|
100
|
+
declare const createIntelSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
101
|
+
/** Preferred name. Streams SDK traces to the Agentronics dashboard. */
|
|
102
|
+
declare const createDashboardExporter: ({ url, ingestKey, fetcher, }: IntelExporterOptions) => TraceExporter;
|
|
103
|
+
/** Preferred name for createIntelSync. */
|
|
104
|
+
declare const createDashboardSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
76
105
|
|
|
77
106
|
interface TrustDerivationInput {
|
|
78
107
|
detected?: boolean;
|
|
@@ -166,4 +195,4 @@ declare const Agentronics: {
|
|
|
166
195
|
};
|
|
167
196
|
declare const VERSION = "0.1.0";
|
|
168
197
|
|
|
169
|
-
export { Agentronics, AgentronicsClient, type DeclareAgentInput, DetectAgentOptions, InitOptions, type IntelExporterOptions, PolicyEngine, TraceExporter, VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createGatewayExporter, createIntelExporter, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _agentronics_protocol from '@agentronics/protocol';
|
|
2
2
|
import { AgentIdentity, TraceEvent, TrustLevel, SiteMemory } from '@agentronics/protocol';
|
|
3
|
-
import { T as TraceExporter, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-7f8_LQAI.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,
|
|
3
|
+
import { T as TraceExporter, G as GovernedTool, P as PolicyEngine, I as InitOptions, A as AgentronicsClient, D as DetectAgentOptions } from './init-only-7f8_LQAI.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, S as SiteMemoryListener, z as SiteMemoryStore, B as SurfacingContext, E as SurfacingDecision, F as TokenBudgetReport, H as ToolGroupSummary, J as ToolRegistry, K as ToolTokenEstimate, L as TraceInput, N as Tracer, W as WebMcpAdapter, O as WebMcpAdapterOptions, Q as WebMcpProvider, U as WebMcpToolDescriptor, V as bundledDetectors, X as createAgentContextStore, Y as createAuthEngine, Z as createDetectorRegistry, _ as createIdentityStore, $ as createMemoryCache, a0 as createMemoryStore, a1 as createPolicyCache, a2 as createPolicyEngine, a3 as createProgressionStore, a4 as createRateLimiter, a5 as createSiteMemoryStore, a6 as createToolRegistry, a7 as createTracer, a8 as createWebMcpAdapter, a9 as decideSurfacing, aa as detectAgent, ab as detectCrawler, ac as detectDom, ad as estimateBudget, ae as estimateToolTokens, af as explainSurfacing, ag as groupTools, ah as init, ai as listGroupNames, aj as surfaceTools } from './init-only-7f8_LQAI.js';
|
|
5
5
|
export { D as DetectWebMcpOptions, d as detectWebMcp } from './webmcp-C4ikhM4g.js';
|
|
6
6
|
|
|
7
7
|
interface DeclareAgentInput {
|
|
@@ -53,7 +53,7 @@ declare const createWebhookExporter: ({ url, fetcher, maxRetries, queueLimit, }:
|
|
|
53
53
|
|
|
54
54
|
interface IntelExporterOptions {
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Agentronics API base URL (shown in the console under Settings) — the
|
|
57
57
|
* `/v1/sdk/events` path is appended automatically — or the full ingest URL.
|
|
58
58
|
*/
|
|
59
59
|
url: string;
|
|
@@ -67,12 +67,41 @@ interface IntelExporterOptions {
|
|
|
67
67
|
fetcher?: typeof fetch;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Stream
|
|
70
|
+
* Stream traces (agent sign-ins, verifications, access decisions) to the
|
|
71
|
+
* Agentronics dashboard.
|
|
71
72
|
* POSTs a `TraceBatch` to the intel-api ingest endpoint with the ingest key.
|
|
72
73
|
* Intended for Node/server use (the existing webhook exporter is browser-bound
|
|
73
74
|
* and can't send an auth header).
|
|
74
75
|
*/
|
|
76
|
+
/** @deprecated Use createDashboardExporter (same function). */
|
|
75
77
|
declare const createIntelExporter: ({ url, ingestKey, fetcher, }: IntelExporterOptions) => TraceExporter;
|
|
78
|
+
interface IntelSyncOptions {
|
|
79
|
+
/** Agentronics API base URL (shown in the console under Settings). */
|
|
80
|
+
url: string;
|
|
81
|
+
/** Per-tenant SDK ingest key (`agtx_ik_…`). Backend-only — never the browser. */
|
|
82
|
+
ingestKey: string;
|
|
83
|
+
/** The site these tools/memory belong to (matches your SDK `siteId`). */
|
|
84
|
+
siteId: string;
|
|
85
|
+
fetcher?: typeof fetch;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Push the authoritative tool registry + site-memory snapshot to the
|
|
89
|
+
* Agentronics console — the full data the WebMCP Tools + Knaph pages need,
|
|
90
|
+
* which is too large for the lightweight trace stream. Call after `syncTools()`
|
|
91
|
+
* / `provideSiteMemory(...)`. Backend/server use only (the key is secret).
|
|
92
|
+
*/
|
|
93
|
+
interface IntelSync {
|
|
94
|
+
/** POST the registry to /v1/sdk/tools. Returns the number of tools sent. */
|
|
95
|
+
pushTools(tools: GovernedTool[]): Promise<number>;
|
|
96
|
+
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
97
|
+
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
/** @deprecated Use createDashboardSync (same function). */
|
|
100
|
+
declare const createIntelSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
101
|
+
/** Preferred name. Streams SDK traces to the Agentronics dashboard. */
|
|
102
|
+
declare const createDashboardExporter: ({ url, ingestKey, fetcher, }: IntelExporterOptions) => TraceExporter;
|
|
103
|
+
/** Preferred name for createIntelSync. */
|
|
104
|
+
declare const createDashboardSync: ({ url, ingestKey, siteId, fetcher, }: IntelSyncOptions) => IntelSync;
|
|
76
105
|
|
|
77
106
|
interface TrustDerivationInput {
|
|
78
107
|
detected?: boolean;
|
|
@@ -166,4 +195,4 @@ declare const Agentronics: {
|
|
|
166
195
|
};
|
|
167
196
|
declare const VERSION = "0.1.0";
|
|
168
197
|
|
|
169
|
-
export { Agentronics, AgentronicsClient, type DeclareAgentInput, DetectAgentOptions, InitOptions, type IntelExporterOptions, PolicyEngine, TraceExporter, VERSION, WELL_KNOWN_PATH, type WebMcpContextOptions, type WebMcpContextTool, createConsoleExporter, createGatewayExporter, createIntelExporter, createSignatureLoader, createTraceBuffer, createWebMcpContextTool, createWebhookExporter, declareAgent, deriveTrustLevel, fetchWellKnownContext, highestTrust, installDomEnforcer, installMemoryOverlay, installMetaTags, serializeWellKnownContext, showDenyOverlay };
|
|
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 };
|