@agentronics/sdk 0.5.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-77VJ65X2.js → chunk-Y7JYD5RA.js} +4 -4
- 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 +12 -5
- package/dist/index.d.ts +12 -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 +3 -3
- 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-77VJ65X2.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -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,14 +67,16 @@ 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;
|
|
76
78
|
interface IntelSyncOptions {
|
|
77
|
-
/**
|
|
79
|
+
/** Agentronics API base URL (shown in the console under Settings). */
|
|
78
80
|
url: string;
|
|
79
81
|
/** Per-tenant SDK ingest key (`agtx_ik_…`). Backend-only — never the browser. */
|
|
80
82
|
ingestKey: string;
|
|
@@ -84,7 +86,7 @@ interface IntelSyncOptions {
|
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
88
|
* Push the authoritative tool registry + site-memory snapshot to the
|
|
87
|
-
*
|
|
89
|
+
* Agentronics console — the full data the WebMCP Tools + Knaph pages need,
|
|
88
90
|
* which is too large for the lightweight trace stream. Call after `syncTools()`
|
|
89
91
|
* / `provideSiteMemory(...)`. Backend/server use only (the key is secret).
|
|
90
92
|
*/
|
|
@@ -94,7 +96,12 @@ interface IntelSync {
|
|
|
94
96
|
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
95
97
|
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
96
98
|
}
|
|
99
|
+
/** @deprecated Use createDashboardSync (same function). */
|
|
97
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;
|
|
98
105
|
|
|
99
106
|
interface TrustDerivationInput {
|
|
100
107
|
detected?: boolean;
|
|
@@ -188,4 +195,4 @@ declare const Agentronics: {
|
|
|
188
195
|
};
|
|
189
196
|
declare const VERSION = "0.1.0";
|
|
190
197
|
|
|
191
|
-
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, createGatewayExporter, createIntelExporter, createIntelSync, 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
|
@@ -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,14 +67,16 @@ 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;
|
|
76
78
|
interface IntelSyncOptions {
|
|
77
|
-
/**
|
|
79
|
+
/** Agentronics API base URL (shown in the console under Settings). */
|
|
78
80
|
url: string;
|
|
79
81
|
/** Per-tenant SDK ingest key (`agtx_ik_…`). Backend-only — never the browser. */
|
|
80
82
|
ingestKey: string;
|
|
@@ -84,7 +86,7 @@ interface IntelSyncOptions {
|
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
88
|
* Push the authoritative tool registry + site-memory snapshot to the
|
|
87
|
-
*
|
|
89
|
+
* Agentronics console — the full data the WebMCP Tools + Knaph pages need,
|
|
88
90
|
* which is too large for the lightweight trace stream. Call after `syncTools()`
|
|
89
91
|
* / `provideSiteMemory(...)`. Backend/server use only (the key is secret).
|
|
90
92
|
*/
|
|
@@ -94,7 +96,12 @@ interface IntelSync {
|
|
|
94
96
|
/** POST the site-memory snapshot (+ optional quality score) to /v1/sdk/memory. */
|
|
95
97
|
pushMemory(snapshot: object, score?: number): Promise<void>;
|
|
96
98
|
}
|
|
99
|
+
/** @deprecated Use createDashboardSync (same function). */
|
|
97
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;
|
|
98
105
|
|
|
99
106
|
interface TrustDerivationInput {
|
|
100
107
|
detected?: boolean;
|
|
@@ -188,4 +195,4 @@ declare const Agentronics: {
|
|
|
188
195
|
};
|
|
189
196
|
declare const VERSION = "0.1.0";
|
|
190
197
|
|
|
191
|
-
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, createGatewayExporter, createIntelExporter, createIntelSync, 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 };
|