@tangle-network/agent-core 0.10.0 → 0.10.2
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/auth/index.d.ts +35 -35
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/computer-use/index.d.ts +7 -7
- package/dist/computer-use/index.d.ts.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/interactions/index.d.ts +2 -2
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/interactions/mcp-server.d.ts +4 -5
- package/dist/interactions/mcp-server.d.ts.map +1 -1
- package/dist/sse/index.d.ts +12 -13
- package/dist/sse/index.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/auth/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { C as AuthProvider, D as RefreshableTokenAuth, E as ReadTokenAuth, O as
|
|
|
3
3
|
/**
|
|
4
4
|
* Result of channel access check.
|
|
5
5
|
*/
|
|
6
|
-
interface ChannelAccessResult {
|
|
6
|
+
export interface ChannelAccessResult {
|
|
7
7
|
/** Whether access is allowed */
|
|
8
8
|
allowed: boolean;
|
|
9
9
|
/** Reason for denial (if not allowed) */
|
|
@@ -13,12 +13,12 @@ interface ChannelAccessResult {
|
|
|
13
13
|
* Extract session ID from a session channel pattern.
|
|
14
14
|
* Returns null if not a session channel.
|
|
15
15
|
*/
|
|
16
|
-
declare function extractSessionFromChannel(channel: string): string | null;
|
|
16
|
+
export declare function extractSessionFromChannel(channel: string): string | null;
|
|
17
17
|
/**
|
|
18
18
|
* Extract project ID from a project channel pattern.
|
|
19
19
|
* Returns null if not a project channel.
|
|
20
20
|
*/
|
|
21
|
-
declare function extractProjectFromChannel(channel: string): string | null;
|
|
21
|
+
export declare function extractProjectFromChannel(channel: string): string | null;
|
|
22
22
|
/**
|
|
23
23
|
* Check if a session-scoped token can access a channel.
|
|
24
24
|
*
|
|
@@ -28,7 +28,7 @@ declare function extractProjectFromChannel(channel: string): string | null;
|
|
|
28
28
|
* - system (always allowed)
|
|
29
29
|
* - Wildcard patterns matching their session
|
|
30
30
|
*/
|
|
31
|
-
declare function canSessionTokenAccessChannel(payload: SessionScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
31
|
+
export declare function canSessionTokenAccessChannel(payload: SessionScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
32
32
|
/**
|
|
33
33
|
* Check if a project-scoped token can access a channel.
|
|
34
34
|
*
|
|
@@ -38,7 +38,7 @@ declare function canSessionTokenAccessChannel(payload: SessionScopedTokenPayload
|
|
|
38
38
|
* - agent:* (all agent events within project)
|
|
39
39
|
* - system (always allowed)
|
|
40
40
|
*/
|
|
41
|
-
declare function canProjectTokenAccessChannel(payload: ProjectScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
41
|
+
export declare function canProjectTokenAccessChannel(payload: ProjectScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
42
42
|
/**
|
|
43
43
|
* Check if a batch-scoped token can access a channel.
|
|
44
44
|
*
|
|
@@ -49,7 +49,7 @@ declare function canProjectTokenAccessChannel(payload: ProjectScopedTokenPayload
|
|
|
49
49
|
* - system (always allowed)
|
|
50
50
|
* - * (global wildcard - for organization-wide subscriptions)
|
|
51
51
|
*/
|
|
52
|
-
declare function canBatchTokenAccessChannel(payload: BatchScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
52
|
+
export declare function canBatchTokenAccessChannel(payload: BatchScopedTokenPayload, channel: string): ChannelAccessResult;
|
|
53
53
|
/**
|
|
54
54
|
* Check if a token can access a channel.
|
|
55
55
|
* Dispatches to scope-specific functions based on token type.
|
|
@@ -58,7 +58,7 @@ declare function canBatchTokenAccessChannel(payload: BatchScopedTokenPayload, ch
|
|
|
58
58
|
* @param channel - The channel to check access for
|
|
59
59
|
* @returns Access result with allowed boolean and optional reason
|
|
60
60
|
*/
|
|
61
|
-
declare function canTokenAccessChannel(payload: ReadTokenPayload, channel: string): ChannelAccessResult;
|
|
61
|
+
export declare function canTokenAccessChannel(payload: ReadTokenPayload, channel: string): ChannelAccessResult;
|
|
62
62
|
/**
|
|
63
63
|
* Get the list of allowed channel patterns for a token.
|
|
64
64
|
* Useful for informing clients what they can subscribe to.
|
|
@@ -66,7 +66,7 @@ declare function canTokenAccessChannel(payload: ReadTokenPayload, channel: strin
|
|
|
66
66
|
* @param payload - The token payload
|
|
67
67
|
* @returns Array of allowed channel patterns
|
|
68
68
|
*/
|
|
69
|
-
declare function getAllowedChannelPatterns(payload: ReadTokenPayload): string[];
|
|
69
|
+
export declare function getAllowedChannelPatterns(payload: ReadTokenPayload): string[];
|
|
70
70
|
/**
|
|
71
71
|
* Validate channel subscription request.
|
|
72
72
|
* Checks multiple channels and returns aggregated result.
|
|
@@ -75,7 +75,7 @@ declare function getAllowedChannelPatterns(payload: ReadTokenPayload): string[];
|
|
|
75
75
|
* @param channels - Channels to validate
|
|
76
76
|
* @returns Object with allowed channels and denied channels with reasons
|
|
77
77
|
*/
|
|
78
|
-
declare function validateChannelSubscription(payload: ReadTokenPayload, channels: string[]): {
|
|
78
|
+
export declare function validateChannelSubscription(payload: ReadTokenPayload, channels: string[]): {
|
|
79
79
|
allowed: string[];
|
|
80
80
|
denied: Array<{
|
|
81
81
|
channel: string;
|
|
@@ -89,15 +89,15 @@ declare function validateChannelSubscription(payload: ReadTokenPayload, channels
|
|
|
89
89
|
* @param prefix - Prefix for the generated string (e.g., "orch_prod_")
|
|
90
90
|
* @param bytes - Number of random bytes (default: 32 = 256 bits)
|
|
91
91
|
*/
|
|
92
|
-
declare function generateSecureToken(prefix: string, bytes?: number): string;
|
|
92
|
+
export declare function generateSecureToken(prefix: string, bytes?: number): string;
|
|
93
93
|
/**
|
|
94
94
|
* Generate a product API key.
|
|
95
95
|
*/
|
|
96
|
-
declare function generateApiKey(): string;
|
|
96
|
+
export declare function generateApiKey(): string;
|
|
97
97
|
/**
|
|
98
98
|
* Generate a signing secret.
|
|
99
99
|
*/
|
|
100
|
-
declare function generateSigningSecret(): string;
|
|
100
|
+
export declare function generateSigningSecret(): string;
|
|
101
101
|
/**
|
|
102
102
|
* Issue a read token (JWT) for WebSocket authentication.
|
|
103
103
|
*
|
|
@@ -105,7 +105,7 @@ declare function generateSigningSecret(): string;
|
|
|
105
105
|
* @param payload - Token payload (without iat/exp, those are added)
|
|
106
106
|
* @param ttlMinutes - Token TTL in minutes
|
|
107
107
|
*/
|
|
108
|
-
declare function issueReadToken(signingSecret: string, payload: Omit<ReadTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
108
|
+
export declare function issueReadToken(signingSecret: string, payload: Omit<ReadTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
109
109
|
/**
|
|
110
110
|
* Issue a session-scoped token (JWT) for WebSocket authentication.
|
|
111
111
|
* Grants access to a single session's events.
|
|
@@ -114,7 +114,7 @@ declare function issueReadToken(signingSecret: string, payload: Omit<ReadTokenPa
|
|
|
114
114
|
* @param payload - Token payload with session ID
|
|
115
115
|
* @param ttlMinutes - Token TTL in minutes
|
|
116
116
|
*/
|
|
117
|
-
declare function issueSessionScopedToken(signingSecret: string, payload: Omit<SessionScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
117
|
+
export declare function issueSessionScopedToken(signingSecret: string, payload: Omit<SessionScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
118
118
|
/**
|
|
119
119
|
* Issue a project-scoped token (JWT) for WebSocket authentication.
|
|
120
120
|
* Grants access to all sessions within a single project.
|
|
@@ -123,7 +123,7 @@ declare function issueSessionScopedToken(signingSecret: string, payload: Omit<Se
|
|
|
123
123
|
* @param payload - Token payload with project ID
|
|
124
124
|
* @param ttlMinutes - Token TTL in minutes
|
|
125
125
|
*/
|
|
126
|
-
declare function issueProjectScopedToken(signingSecret: string, payload: Omit<ProjectScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
126
|
+
export declare function issueProjectScopedToken(signingSecret: string, payload: Omit<ProjectScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
127
127
|
/**
|
|
128
128
|
* Issue a batch-scoped token (JWT) for WebSocket authentication.
|
|
129
129
|
* Grants access to multiple projects (organization-level access).
|
|
@@ -132,7 +132,7 @@ declare function issueProjectScopedToken(signingSecret: string, payload: Omit<Pr
|
|
|
132
132
|
* @param payload - Token payload with project IDs array
|
|
133
133
|
* @param ttlMinutes - Token TTL in minutes
|
|
134
134
|
*/
|
|
135
|
-
declare function issueBatchScopedToken(signingSecret: string, payload: Omit<BatchScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
135
|
+
export declare function issueBatchScopedToken(signingSecret: string, payload: Omit<BatchScopedTokenPayload, "iat" | "exp" | "typ">, ttlMinutes: number): string;
|
|
136
136
|
/**
|
|
137
137
|
* The accepted values of the `cap` claim. The exported union is derived from
|
|
138
138
|
* this list so the type a caller programs against and the set the verifier
|
|
@@ -161,7 +161,7 @@ declare const SIDECAR_CAPABILITIES: readonly ["computer_use", "read", "debug", "
|
|
|
161
161
|
* new value before any issuer stamps it. Sidecars are baked container images
|
|
162
162
|
* that outlive an orchestrator roll, so "ship" means deployed, not merged.
|
|
163
163
|
*/
|
|
164
|
-
type SidecarCapability = (typeof SIDECAR_CAPABILITIES)[number];
|
|
164
|
+
export type SidecarCapability = (typeof SIDECAR_CAPABILITIES)[number];
|
|
165
165
|
/**
|
|
166
166
|
* The accepted values of the `sst` claim. The exported union is derived from
|
|
167
167
|
* this list so the type a caller programs against and the set the verifier
|
|
@@ -204,7 +204,7 @@ declare const SIDECAR_SID_SCOPES: readonly ["session", "project"];
|
|
|
204
204
|
* rejects an `sst` it does not recognise, so every verifier must ship the new
|
|
205
205
|
* value before any issuer stamps it.
|
|
206
206
|
*/
|
|
207
|
-
type SidecarSidScope = (typeof SIDECAR_SID_SCOPES)[number];
|
|
207
|
+
export type SidecarSidScope = (typeof SIDECAR_SID_SCOPES)[number];
|
|
208
208
|
/**
|
|
209
209
|
* Generate an Ed25519 key pair for per-session JWT signing.
|
|
210
210
|
* Private key stays in orchestrator memory. Public key is injected into
|
|
@@ -213,7 +213,7 @@ type SidecarSidScope = (typeof SIDECAR_SID_SCOPES)[number];
|
|
|
213
213
|
*
|
|
214
214
|
* @returns { privateKey, publicKey } as PEM strings
|
|
215
215
|
*/
|
|
216
|
-
declare function generateSidecarKeyPair(): {
|
|
216
|
+
export declare function generateSidecarKeyPair(): {
|
|
217
217
|
privateKey: string;
|
|
218
218
|
publicKey: string;
|
|
219
219
|
};
|
|
@@ -226,7 +226,7 @@ declare function generateSidecarKeyPair(): {
|
|
|
226
226
|
* @param payload - Token payload with container ID
|
|
227
227
|
* @param ttlMinutes - Token TTL in minutes
|
|
228
228
|
*/
|
|
229
|
-
declare function issueSidecarAccessToken(privateKey: string, payload: {
|
|
229
|
+
export declare function issueSidecarAccessToken(privateKey: string, payload: {
|
|
230
230
|
sub: string;
|
|
231
231
|
pid: string;
|
|
232
232
|
cid: string;
|
|
@@ -251,7 +251,7 @@ declare function issueSidecarAccessToken(privateKey: string, payload: {
|
|
|
251
251
|
* Verify a sidecar JWT using Ed25519 public key. Rejects non-EdDSA tokens.
|
|
252
252
|
* Returns decoded payload on success, null on failure.
|
|
253
253
|
*/
|
|
254
|
-
declare function verifySidecarToken(token: string, publicKey: string, containerId: string): {
|
|
254
|
+
export declare function verifySidecarToken(token: string, publicKey: string, containerId: string): {
|
|
255
255
|
sub: string;
|
|
256
256
|
pid: string;
|
|
257
257
|
cid: string;
|
|
@@ -277,34 +277,34 @@ declare function verifySidecarToken(token: string, publicKey: string, containerI
|
|
|
277
277
|
* Check if a token payload is session-scoped.
|
|
278
278
|
* Session-scoped tokens have a sid claim and no projectId/projectIds.
|
|
279
279
|
*/
|
|
280
|
-
declare function isSessionScopedToken(payload: ReadTokenPayload): payload is SessionScopedTokenPayload;
|
|
280
|
+
export declare function isSessionScopedToken(payload: ReadTokenPayload): payload is SessionScopedTokenPayload;
|
|
281
281
|
/**
|
|
282
282
|
* Check if a token payload is project-scoped.
|
|
283
283
|
* Project-scoped tokens have a projectId claim and no sid/projectIds.
|
|
284
284
|
*/
|
|
285
|
-
declare function isProjectScopedToken(payload: ReadTokenPayload): payload is ProjectScopedTokenPayload;
|
|
285
|
+
export declare function isProjectScopedToken(payload: ReadTokenPayload): payload is ProjectScopedTokenPayload;
|
|
286
286
|
/**
|
|
287
287
|
* Check if a token payload is batch-scoped.
|
|
288
288
|
* Batch-scoped tokens have a projectIds claim and no sid/projectId.
|
|
289
289
|
*/
|
|
290
|
-
declare function isBatchScopedToken(payload: ReadTokenPayload): payload is BatchScopedTokenPayload;
|
|
290
|
+
export declare function isBatchScopedToken(payload: ReadTokenPayload): payload is BatchScopedTokenPayload;
|
|
291
291
|
/**
|
|
292
292
|
* Get the scope of a token payload.
|
|
293
293
|
* Returns null if the token has an invalid/ambiguous scope.
|
|
294
294
|
*/
|
|
295
|
-
declare function getTokenScope(payload: ReadTokenPayload): TokenScope | null;
|
|
295
|
+
export declare function getTokenScope(payload: ReadTokenPayload): TokenScope | null;
|
|
296
296
|
/**
|
|
297
297
|
* Validate that a token payload has exactly one valid scope.
|
|
298
298
|
* Returns an error message if invalid, null if valid.
|
|
299
299
|
*/
|
|
300
|
-
declare function validateTokenScope(payload: ReadTokenPayload): string | null;
|
|
300
|
+
export declare function validateTokenScope(payload: ReadTokenPayload): string | null;
|
|
301
301
|
/**
|
|
302
302
|
* Verify a read token against a product's signing secrets.
|
|
303
303
|
*
|
|
304
304
|
* @param token - The JWT token to verify
|
|
305
305
|
* @param product - Product auth info containing secrets
|
|
306
306
|
*/
|
|
307
|
-
declare function verifyReadToken(token: string, product: ProductAuthInfo): TokenValidationResult;
|
|
307
|
+
export declare function verifyReadToken(token: string, product: ProductAuthInfo): TokenValidationResult;
|
|
308
308
|
/**
|
|
309
309
|
* Hash an API key for storage/lookup.
|
|
310
310
|
* Uses HMAC-SHA256 for consistent, fast hashing.
|
|
@@ -312,23 +312,23 @@ declare function verifyReadToken(token: string, product: ProductAuthInfo): Token
|
|
|
312
312
|
* The salt can be configured via API_KEY_HASH_SALT environment variable.
|
|
313
313
|
* WARNING: Changing the salt will invalidate all existing API key hashes.
|
|
314
314
|
*/
|
|
315
|
-
declare function hashApiKey(apiKey: string): string;
|
|
315
|
+
export declare function hashApiKey(apiKey: string): string;
|
|
316
316
|
/**
|
|
317
317
|
* Hash an API key with an explicit salt.
|
|
318
318
|
* Use this when you need to verify against a specific salt.
|
|
319
319
|
*/
|
|
320
|
-
declare function hashApiKeyWithSalt(apiKey: string, salt: string): string;
|
|
320
|
+
export declare function hashApiKeyWithSalt(apiKey: string, salt: string): string;
|
|
321
321
|
/**
|
|
322
322
|
* Verify an API key using timing-safe comparison.
|
|
323
323
|
*/
|
|
324
|
-
declare function verifyApiKey(provided: string, stored: string): boolean;
|
|
324
|
+
export declare function verifyApiKey(provided: string, stored: string): boolean;
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/auth/index.d.ts
|
|
327
327
|
/**
|
|
328
328
|
* Environment-based auth that reads from env vars.
|
|
329
329
|
* Matches the server-side patterns used in sidecar/orchestrator.
|
|
330
330
|
*/
|
|
331
|
-
declare class EnvTokenAuth {
|
|
331
|
+
export declare class EnvTokenAuth {
|
|
332
332
|
private envVar;
|
|
333
333
|
private fallback?;
|
|
334
334
|
constructor(options: {
|
|
@@ -341,14 +341,14 @@ declare class EnvTokenAuth {
|
|
|
341
341
|
* Pre-configured auth for sidecar connections.
|
|
342
342
|
* Uses SIDECAR_AUTH_TOKEN env var (matches server expectation).
|
|
343
343
|
*/
|
|
344
|
-
declare class SidecarAuth extends EnvTokenAuth {
|
|
344
|
+
export declare class SidecarAuth extends EnvTokenAuth {
|
|
345
345
|
constructor(token?: string);
|
|
346
346
|
}
|
|
347
347
|
/**
|
|
348
348
|
* Product-based auth for multi-tenant orchestrator connections.
|
|
349
349
|
* Uses ORCHESTRATOR_API_SECRET_KEY env var.
|
|
350
350
|
*/
|
|
351
|
-
declare class ProductAuth extends EnvTokenAuth {
|
|
351
|
+
export declare class ProductAuth extends EnvTokenAuth {
|
|
352
352
|
constructor(apiKey?: string);
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
@@ -381,7 +381,7 @@ declare class ProductAuth extends EnvTokenAuth {
|
|
|
381
381
|
* });
|
|
382
382
|
* ```
|
|
383
383
|
*/
|
|
384
|
-
declare class ProductTokenIssuer {
|
|
384
|
+
export declare class ProductTokenIssuer {
|
|
385
385
|
private readonly productId;
|
|
386
386
|
private readonly signingSecret;
|
|
387
387
|
private readonly ttlMinutes;
|
|
@@ -413,5 +413,5 @@ declare class ProductTokenIssuer {
|
|
|
413
413
|
getTtlMinutes(tier?: "free" | "pro" | "enterprise"): number;
|
|
414
414
|
}
|
|
415
415
|
//#endregion
|
|
416
|
-
export { type AuthProvider, BatchScopedTokenPayload, BatchScopedTokenPayloadSchema, CallbackAuth,
|
|
416
|
+
export { type AuthProvider, BatchScopedTokenPayload, BatchScopedTokenPayloadSchema, CallbackAuth, CreateSessionRequest, CreateSessionRequestSchema, CreateSessionResponse, NoAuth, Product, ProductAuthInfo, ProductSchema, ProductSecrets, ProjectScopedTokenPayload, ProjectScopedTokenPayloadSchema, ReadTokenAuth, ReadTokenPayload, ReadTokenPayloadSchema, RefreshableTokenAuth, SendMessageRequest, SendMessageRequestSchema, SessionScopedTokenPayload, SessionScopedTokenPayloadSchema, StaticTokenAuth, TokenScope, TokenValidationResult, decodeToken, getTokenTTL, isTokenExpiringSoon };
|
|
417
417
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/auth/channel-access.ts","../../src/auth/tokens.ts","../../src/auth/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/auth/channel-access.ts","../../src/auth/tokens.ts","../../src/auth/index.ts"],"mappings":";;;;;iBA4BiB;;EAEf;;EAEA;;;;;;wBAOc,0BAA0B;;;;;wBAc1B,0BAA0B;;;;;;;;;;wBAgB1B,6BACd,SAAS,2BACT,kBACC;;;;;;;;;;wBAuDa,6BACd,SAAS,2BACT,kBACC;;;;;;;;;;;wBAsDa,2BACd,SAAS,yBACT,kBACC;;;;;;;;;wBA8Ca,sBACd,SAAS,kBACT,kBACC;;;;;;;;wBA4Ba,0BAA0B,SAAS;;;;;;;;;wBAwCnC,4BACd,SAAS,kBACT;EAEA;EACA,QAAQ;IAAQ;IAAiB;;;;;;;;;;wBCxPnB,oBAAoB,gBAAgB;;;;wBAOpC;;;;wBAOA;;;;;;;;wBAgFA,eACd,uBACA,SAAS,KAAK,0CACd;;;;;;;;;wBA6Bc,wBACd,uBACA,SAAS,KAAK,mDACd;;;;;;;;;wBAac,wBACd,uBACA,SAAS,KAAK,mDACd;;;;;;;;;wBAiBc,sBACd,uBACA,SAAS,KAAK,iDACd;;;;;;cA0BI;;;;;;;;;;;;;;;;;;;;;;;YAgCM,4BAA4B;;;;;;cA4BlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsCM,0BAA0B;;;;;;;;;wBAUtB;EACd;EACA;;;;;;;;;;;wBAqBc,wBACd,oBACA;EACE;EACA;EACA;EACA;;;;;;;EAOA,MAAM;;;;;;;;EAQN,MAAM;GAER;;;;;wBA4Dc,mBACd,eACA,mBACA;EAEA;EACA;EACA;EACA;;;;;EAKA,MAAM;EACN;EACA;EACA;;;;;;;;EAQA,MAAM;;;;;;wBAoIQ,qBACd,SAAS,mBACR,WAAW;;;;;wBAcE,qBACd,SAAS,mBACR,WAAW;;;;;wBAcE,mBACd,SAAS,mBACR,WAAW;;;;;wBAcE,cAAc,SAAS,mBAAmB;;;;;wBAW1C,mBAAmB,SAAS;;;;;;;wBA6B5B,gBACd,eACA,SAAS,kBACR;;;;;;;;wBA6Ka,WAAW;;;;;wBAWX,mBAAmB,gBAAgB;;;;wBAOnC,aAAa,kBAAkB;;;;;;;qBC72BlC;UACH;UACA;EAER,YAAY;IAAW;IAAgB;;EAKjC,YAAY;;;;;;qBAaP,oBAAoB;EAC/B,YAAY;;;;;;qBASD,oBAAoB;EAC/B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmCD;mBACM;mBACA;mBACA;EAMjB,YAAY;IACV;IACA;;IAEA;MAAe;MAAe;MAAc;;;;;;EAc9C,MAAM;IACJ;IACA;IACA;IACA;;IACI;IAAe;;;;;EAuBrB,cAAc"}
|
|
@@ -54,7 +54,7 @@ type ComputerUseAction = {
|
|
|
54
54
|
ms: number;
|
|
55
55
|
};
|
|
56
56
|
type ComputerUseActionType = ComputerUseAction["type"];
|
|
57
|
-
declare class ComputerUseError extends Error {
|
|
57
|
+
export declare class ComputerUseError extends Error {
|
|
58
58
|
readonly code: string;
|
|
59
59
|
constructor(message: string, code?: string);
|
|
60
60
|
}
|
|
@@ -64,7 +64,7 @@ declare class ComputerUseError extends Error {
|
|
|
64
64
|
* with `instanceof` to surface the failure as a tool result rather
|
|
65
65
|
* than a 5xx.
|
|
66
66
|
*/
|
|
67
|
-
declare class ComputerActionTranslationError extends Error {
|
|
67
|
+
export declare class ComputerActionTranslationError extends Error {
|
|
68
68
|
readonly code: string;
|
|
69
69
|
constructor(message: string, code?: string);
|
|
70
70
|
}
|
|
@@ -73,8 +73,8 @@ declare class ComputerActionTranslationError extends Error {
|
|
|
73
73
|
* Throws ComputerUseError with COMPUTER_USE_INVALID_ACTION on any
|
|
74
74
|
* structural problem.
|
|
75
75
|
*/
|
|
76
|
-
declare function parseAction(input: unknown): ComputerUseAction;
|
|
77
|
-
declare function normalizeKey(key: string): string;
|
|
76
|
+
export declare function parseAction(input: unknown): ComputerUseAction;
|
|
77
|
+
export declare function normalizeKey(key: string): string;
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/computer-use/anthropic.d.ts
|
|
80
80
|
interface AnthropicComputerInput {
|
|
@@ -92,7 +92,7 @@ interface AnthropicComputerInput {
|
|
|
92
92
|
* unrecognized action names; the caller should surface the error as a
|
|
93
93
|
* tool_result with `is_error: true` so the model can react.
|
|
94
94
|
*/
|
|
95
|
-
declare function translateAnthropicComputerAction(input: AnthropicComputerInput): ComputerUseAction;
|
|
95
|
+
export declare function translateAnthropicComputerAction(input: AnthropicComputerInput): ComputerUseAction;
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/computer-use/openai.d.ts
|
|
98
98
|
interface OpenAIComputerInput {
|
|
@@ -116,7 +116,7 @@ interface OpenAIComputerInput {
|
|
|
116
116
|
* action. Throws `ComputerActionTranslationError` for unsupported
|
|
117
117
|
* variants (wheel/back/forward buttons) or malformed inputs.
|
|
118
118
|
*/
|
|
119
|
-
declare function translateOpenAIComputerAction(input: OpenAIComputerInput): ComputerUseAction;
|
|
119
|
+
export declare function translateOpenAIComputerAction(input: OpenAIComputerInput): ComputerUseAction;
|
|
120
120
|
//#endregion
|
|
121
|
-
export {
|
|
121
|
+
export type { AnthropicComputerInput, ComputerUseAction, ComputerUseActionType, MouseButton, OpenAIComputerInput };
|
|
122
122
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/computer-use/action.ts","../../src/computer-use/anthropic.ts","../../src/computer-use/openai.ts"],"mappings":";;;;;;;;;;KAUY;KAEA;EACN;;EACA;;EACA;EAAe;EAAW;EAAW,SAAS;;EAC9C;EAAsB;EAAW;;EACjC;EAAc;EAAW;;EAEzB;EACA;IAAQ;IAAW;;EACnB;IAAM;IAAW;;;EAEjB;EAAc;EAAc;;EAC5B;EAAkB;;EAElB;EACA;EACA;EACA;EACA;;EAEA;EAAc;;KAER,wBAAwB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/computer-use/action.ts","../../src/computer-use/anthropic.ts","../../src/computer-use/openai.ts"],"mappings":";;;;;;;;;;KAUY;KAEA;EACN;;EACA;;EACA;EAAe;EAAW;EAAW,SAAS;;EAC9C;EAAsB;EAAW;;EACjC;EAAc;EAAW;;EAEzB;EACA;IAAQ;IAAW;;EACnB;IAAM;IAAW;;;EAEjB;EAAc;EAAc;;EAC5B;EAAkB;;EAElB;EACA;EACA;EACA;EACA;;EAEA;EAAc;;KAER,wBAAwB;qBAEvB,yBAAyB;WAC3B;EACT,YAAY,iBAAiB;;;;;;;;qBAalB,uCAAuC;WACzC;EACT,YAAY,iBAAiB;;;;;;;wBAyCf,YAAY,iBAAiB;wBAqM7B,aAAa;;;UChRZ;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;wBAsCc,iCACd,OAAO,yBACN;;;UCxCc;EACf;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;IAAQ;IAAW;;EAC1B;EACA;EACA;EACA;;;;;;;wBAyBc,8BACd,OAAO,sBACN"}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface CacheStorage<T = unknown> {
|
|
|
37
37
|
clear(): void | Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
/** In-memory LRU cache */
|
|
40
|
-
declare class MemoryCache<T = unknown> implements CacheStorage<CacheEntry<T>> {
|
|
40
|
+
export declare class MemoryCache<T = unknown> implements CacheStorage<CacheEntry<T>> {
|
|
41
41
|
private cache;
|
|
42
42
|
private readonly maxEntries;
|
|
43
43
|
constructor(maxEntries?: number);
|
|
@@ -52,7 +52,7 @@ declare class MemoryCache<T = unknown> implements CacheStorage<CacheEntry<T>> {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
/** Response cache manager */
|
|
55
|
-
declare class ResponseCache<T = unknown> {
|
|
55
|
+
export declare class ResponseCache<T = unknown> {
|
|
56
56
|
private storage;
|
|
57
57
|
private defaultTtlMs;
|
|
58
58
|
private keyGenerator;
|
|
@@ -130,7 +130,7 @@ interface Interceptor {
|
|
|
130
130
|
onError?(ctx: ErrorContext): void | Promise<void>;
|
|
131
131
|
}
|
|
132
132
|
/** Interceptor chain executor */
|
|
133
|
-
declare class InterceptorChain {
|
|
133
|
+
export declare class InterceptorChain {
|
|
134
134
|
private interceptors;
|
|
135
135
|
/** Add interceptor to chain */
|
|
136
136
|
use(interceptor: Interceptor): this;
|
|
@@ -144,15 +144,15 @@ declare class InterceptorChain {
|
|
|
144
144
|
executeError(ctx: ErrorContext): Promise<void>;
|
|
145
145
|
}
|
|
146
146
|
/** Generate unique request ID */
|
|
147
|
-
declare function generateRequestId(): string;
|
|
147
|
+
export declare function generateRequestId(): string;
|
|
148
148
|
/** Logging interceptor */
|
|
149
|
-
declare function createLoggingInterceptor(logger?: {
|
|
149
|
+
export declare function createLoggingInterceptor(logger?: {
|
|
150
150
|
debug?(msg: string, data?: unknown): void;
|
|
151
151
|
info?(msg: string, data?: unknown): void;
|
|
152
152
|
error?(msg: string, data?: unknown): void;
|
|
153
153
|
}): Interceptor;
|
|
154
154
|
/** Metrics interceptor */
|
|
155
|
-
declare function createMetricsInterceptor(onMetric: (metric: {
|
|
155
|
+
export declare function createMetricsInterceptor(onMetric: (metric: {
|
|
156
156
|
path: string;
|
|
157
157
|
method: string;
|
|
158
158
|
status: "success" | "error";
|
|
@@ -160,7 +160,7 @@ declare function createMetricsInterceptor(onMetric: (metric: {
|
|
|
160
160
|
errorCode?: string;
|
|
161
161
|
}) => void): Interceptor;
|
|
162
162
|
/** Header injection interceptor */
|
|
163
|
-
declare function createHeaderInterceptor(headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>)): Interceptor;
|
|
163
|
+
export declare function createHeaderInterceptor(headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>)): Interceptor;
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/storage/index.d.ts
|
|
166
166
|
/**
|
|
@@ -177,7 +177,7 @@ interface Storage {
|
|
|
177
177
|
keys(): Promise<string[]>;
|
|
178
178
|
}
|
|
179
179
|
/** In-memory storage (default fallback) */
|
|
180
|
-
declare class MemoryStorage implements Storage {
|
|
180
|
+
export declare class MemoryStorage implements Storage {
|
|
181
181
|
private data;
|
|
182
182
|
get<T>(key: string): Promise<T | null>;
|
|
183
183
|
set<T>(key: string, value: T): Promise<void>;
|
|
@@ -186,7 +186,7 @@ declare class MemoryStorage implements Storage {
|
|
|
186
186
|
keys(): Promise<string[]>;
|
|
187
187
|
}
|
|
188
188
|
/** Browser localStorage wrapper */
|
|
189
|
-
declare class LocalStorage implements Storage {
|
|
189
|
+
export declare class LocalStorage implements Storage {
|
|
190
190
|
private prefix;
|
|
191
191
|
constructor(prefix?: string);
|
|
192
192
|
private key;
|
|
@@ -208,7 +208,7 @@ interface QueuedRequest {
|
|
|
208
208
|
idempotencyKey?: string;
|
|
209
209
|
}
|
|
210
210
|
/** Offline queue manager */
|
|
211
|
-
declare class OfflineQueue {
|
|
211
|
+
export declare class OfflineQueue {
|
|
212
212
|
private storage;
|
|
213
213
|
private readonly storageKey;
|
|
214
214
|
constructor(storage: Storage);
|
|
@@ -236,7 +236,7 @@ declare class OfflineQueue {
|
|
|
236
236
|
}>;
|
|
237
237
|
}
|
|
238
238
|
/** Detect available storage */
|
|
239
|
-
declare function detectStorage(): Storage;
|
|
239
|
+
export declare function detectStorage(): Storage;
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/platform/index.d.ts
|
|
242
242
|
/**
|
|
@@ -330,7 +330,7 @@ interface PlatformAdapter {
|
|
|
330
330
|
* In-memory secure storage fallback.
|
|
331
331
|
* NOT SECURE - use only for development/testing.
|
|
332
332
|
*/
|
|
333
|
-
declare class MemorySecureStorage implements SecureStorage {
|
|
333
|
+
export declare class MemorySecureStorage implements SecureStorage {
|
|
334
334
|
private credentials;
|
|
335
335
|
setCredential(key: string, value: string): Promise<void>;
|
|
336
336
|
getCredential(key: string): Promise<string | null>;
|
|
@@ -340,7 +340,7 @@ declare class MemorySecureStorage implements SecureStorage {
|
|
|
340
340
|
/**
|
|
341
341
|
* Browser-based network info using navigator.onLine.
|
|
342
342
|
*/
|
|
343
|
-
declare class BrowserNetworkInfo implements NetworkInfo {
|
|
343
|
+
export declare class BrowserNetworkInfo implements NetworkInfo {
|
|
344
344
|
isOnline(): boolean;
|
|
345
345
|
onConnectivityChange(callback: (online: boolean) => void): () => void;
|
|
346
346
|
getConnectionType(): "wifi" | "cellular" | "ethernet" | "unknown";
|
|
@@ -348,7 +348,7 @@ declare class BrowserNetworkInfo implements NetworkInfo {
|
|
|
348
348
|
/**
|
|
349
349
|
* Node.js network info (assumes always online).
|
|
350
350
|
*/
|
|
351
|
-
declare class NodeNetworkInfo implements NetworkInfo {
|
|
351
|
+
export declare class NodeNetworkInfo implements NetworkInfo {
|
|
352
352
|
isOnline(): boolean;
|
|
353
353
|
onConnectivityChange(_callback: (online: boolean) => void): () => void;
|
|
354
354
|
}
|
|
@@ -356,7 +356,7 @@ declare class NodeNetworkInfo implements NetworkInfo {
|
|
|
356
356
|
* Storage-based persistence adapter.
|
|
357
357
|
* Uses provided Storage implementation for state persistence.
|
|
358
358
|
*/
|
|
359
|
-
declare class StoragePersistence implements PersistenceAdapter {
|
|
359
|
+
export declare class StoragePersistence implements PersistenceAdapter {
|
|
360
360
|
private storage;
|
|
361
361
|
constructor(storage: Storage);
|
|
362
362
|
saveState<T>(namespace: string, state: T): Promise<void>;
|
|
@@ -366,7 +366,7 @@ declare class StoragePersistence implements PersistenceAdapter {
|
|
|
366
366
|
/**
|
|
367
367
|
* Browser persistence with localStorage and storage events for tab sync.
|
|
368
368
|
*/
|
|
369
|
-
declare class BrowserPersistence implements PersistenceAdapter {
|
|
369
|
+
export declare class BrowserPersistence implements PersistenceAdapter {
|
|
370
370
|
private prefix;
|
|
371
371
|
constructor(prefix?: string);
|
|
372
372
|
saveState<T>(namespace: string, state: T): Promise<void>;
|
|
@@ -377,17 +377,17 @@ declare class BrowserPersistence implements PersistenceAdapter {
|
|
|
377
377
|
/**
|
|
378
378
|
* Detect current platform.
|
|
379
379
|
*/
|
|
380
|
-
declare function detectPlatform(): PlatformCapabilities["platform"];
|
|
380
|
+
export declare function detectPlatform(): PlatformCapabilities["platform"];
|
|
381
381
|
/**
|
|
382
382
|
* Create default platform adapter for current environment.
|
|
383
383
|
* Override with platform-specific implementations for better integration.
|
|
384
384
|
*/
|
|
385
|
-
declare function createDefaultPlatformAdapter(): PlatformAdapter;
|
|
385
|
+
export declare function createDefaultPlatformAdapter(): PlatformAdapter;
|
|
386
386
|
/**
|
|
387
387
|
* Type-safe platform adapter factory.
|
|
388
388
|
* Use this to create platform adapters with proper typing.
|
|
389
389
|
*/
|
|
390
|
-
declare function createPlatformAdapter(config: Partial<PlatformAdapter> & {
|
|
390
|
+
export declare function createPlatformAdapter(config: Partial<PlatformAdapter> & {
|
|
391
391
|
capabilities: PlatformCapabilities;
|
|
392
392
|
}): PlatformAdapter;
|
|
393
393
|
//#endregion
|
|
@@ -412,13 +412,13 @@ interface RetryConfig {
|
|
|
412
412
|
signal?: AbortSignal;
|
|
413
413
|
}
|
|
414
414
|
/** Calculate delay for attempt with jitter */
|
|
415
|
-
declare function calculateDelay(attempt: number, config: RetryConfig): number;
|
|
415
|
+
export declare function calculateDelay(attempt: number, config: RetryConfig): number;
|
|
416
416
|
/** Execute function with retry */
|
|
417
|
-
declare function withRetry<T>(fn: (attempt: number) => Promise<T>, config?: RetryConfig): Promise<T>;
|
|
417
|
+
export declare function withRetry<T>(fn: (attempt: number) => Promise<T>, config?: RetryConfig): Promise<T>;
|
|
418
418
|
/** Idempotency key generator */
|
|
419
|
-
declare function generateIdempotencyKey(): string;
|
|
419
|
+
export declare function generateIdempotencyKey(): string;
|
|
420
420
|
/** Retry decorator for class methods */
|
|
421
|
-
declare function Retryable(config?: RetryConfig): <T>(_target: object, _propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: unknown[]) => Promise<T>>) => TypedPropertyDescriptor<(...args: unknown[]) => Promise<T>>;
|
|
421
|
+
export declare function Retryable(config?: RetryConfig): <T>(_target: object, _propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: unknown[]) => Promise<T>>) => TypedPropertyDescriptor<(...args: unknown[]) => Promise<T>>;
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/utils/channel-matching.d.ts
|
|
424
424
|
/**
|
|
@@ -441,7 +441,7 @@ declare function Retryable(config?: RetryConfig): <T>(_target: object, _property
|
|
|
441
441
|
* @param channel - The channel name to check
|
|
442
442
|
* @returns true if the pattern matches the channel
|
|
443
443
|
*/
|
|
444
|
-
declare function matchesChannel(pattern: string, channel: string): boolean;
|
|
444
|
+
export declare function matchesChannel(pattern: string, channel: string): boolean;
|
|
445
445
|
/**
|
|
446
446
|
* Check if any subscribed channel pattern matches the given channel.
|
|
447
447
|
*
|
|
@@ -449,7 +449,7 @@ declare function matchesChannel(pattern: string, channel: string): boolean;
|
|
|
449
449
|
* @param channel - The channel to check
|
|
450
450
|
* @returns true if any pattern matches the channel
|
|
451
451
|
*/
|
|
452
|
-
declare function matchesAnyChannel(subscribedChannels: Set<string> | string[], channel: string): boolean;
|
|
452
|
+
export declare function matchesAnyChannel(subscribedChannels: Set<string> | string[], channel: string): boolean;
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region src/utils/session-translator.d.ts
|
|
455
455
|
/**
|
|
@@ -472,18 +472,18 @@ interface SessionTranslation {
|
|
|
472
472
|
* @param translation - The session ID mapping
|
|
473
473
|
* @returns A new event object with translated session IDs
|
|
474
474
|
*/
|
|
475
|
-
declare function translateSessionId<T>(event: T, translation: SessionTranslation): T;
|
|
475
|
+
export declare function translateSessionId<T>(event: T, translation: SessionTranslation): T;
|
|
476
476
|
/**
|
|
477
477
|
* Create a reusable translator function for a specific session mapping.
|
|
478
478
|
* Pre-compiles the regex pattern for better performance when translating
|
|
479
479
|
* many events with the same mapping.
|
|
480
480
|
*/
|
|
481
|
-
declare function createSessionTranslator(translation: SessionTranslation): <T>(event: T) => T;
|
|
481
|
+
export declare function createSessionTranslator(translation: SessionTranslation): <T>(event: T) => T;
|
|
482
482
|
/**
|
|
483
483
|
* Extract session ID from various event structures.
|
|
484
484
|
* Handles different event formats that may contain session information.
|
|
485
485
|
*/
|
|
486
|
-
declare function extractSessionId(event: unknown): string | null;
|
|
486
|
+
export declare function extractSessionId(event: unknown): string | null;
|
|
487
487
|
//#endregion
|
|
488
|
-
export { type AgentEvent, type AgentEventType, AgentEventTypeSchema, type AuthProvider, BaseTransportAdapter, type BatchScopedTokenPayload, BatchScopedTokenPayloadSchema,
|
|
488
|
+
export { type AgentEvent, type AgentEventType, AgentEventTypeSchema, type AuthProvider, BaseTransportAdapter, type BatchScopedTokenPayload, BatchScopedTokenPayloadSchema, type BufferedEvent, CONTENT_COMPLETION_KEY, CONTENT_KEYS, CONTENT_KEY_FIELD, CONTENT_PROMPT_KEY, CONTENT_TOOL_ARGS_KEY, CONTENT_TOOL_NAME_KEY, CONTENT_TOOL_RESULT_KEY, type CacheConfig, type CacheStorage, CallbackAuth, type ChannelAccessResult, type ChannelConfig, type ChannelHandler, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerStats, CircuitOpenError, type CircuitState, type ConnectionInitEvent, ConnectionManager, type ConnectionManagerConfig, type ConnectionQuality, type ConnectionState, type ContentField, type CreateSessionRequest, CreateSessionRequestSchema, type CreateSessionResponse, DEFAULT_RECONNECTION_CONFIG, type DeclaredIntentMatch, type DeduplicatorConfig, type DoneEvent, EnvTokenAuth, type ErrorCode, type ErrorContext, type ErrorEvent, EventBuffer, type EventBufferConfig, EventChannel, EventDeduplicator, type EventMetadata, type ExecutionCompletedEvent, type ExecutionFailedEvent, type ExecutionStartedEvent, type FilePart, GEN_AI_CONVERSATION_ID, GEN_AI_INPUT_TOKEN_KEYS, GEN_AI_MODEL_KEYS, GEN_AI_OPERATION_NAME, GEN_AI_OUTPUT_TOKEN_KEYS, GEN_AI_REQUEST_MODEL, GEN_AI_RESPONSE_MODEL, GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, GEN_AI_USAGE_INPUT_TOKENS, GEN_AI_USAGE_OUTPUT_TOKENS, type GenAiUsage, type HeartbeatEvent, INDEXED_CONTENT_KEY_LIKE_PATTERNS, type Interceptor, type MessagePartUpdatedEvent, type MockResponse, type MockStreamEvent, MockTransportAdapter, type MockTransportConfig, type NetworkInfo, NoAuth, type NormalizedContent, PARENT_RUN_KEY_ATTRS, type ParsedSSEEvent, type Part, type PartBase, type PersistenceAdapter, type PlatformAdapter, type PlatformCapabilities, type Product, ProductAuth, type ProductAuthInfo, ProductSchema, type ProductSecrets, ProductTokenIssuer, type ProjectScopedTokenPayload, ProjectScopedTokenPayloadSchema, type ProtectionOptions, type QueuedRequest, RUN_KEY_ATTRS, RUN_KIND_ATTRS, ReadTokenAuth, type ReadTokenPayload, ReadTokenPayloadSchema, type ReasoningPart, type ReconnectionConfig, type RecordedRequest, RefreshableTokenAuth, type ReplayEndEvent, type ReplayStartEvent, type RequestContext, type RequestOptions, type ResponseContext, type ResultEvent, type RetryConfig, SDKError, SSEChunkParser, type SSEEvent, type SSEEventData, type SSEParserOptions, SUBJECT_KEY_ATTRS, type SecureStorage, type SendMessageRequest, SendMessageRequestSchema, type SessionScopedTokenPayload, SessionScopedTokenPayloadSchema, type SessionTranslation, type SessionUpdatedEvent, SidecarAuth, StaticTokenAuth, type StatusEvent, type Storage, type StreamOptions, type StreamTokenUsage, type StreamUsageAccumulator, StreamUsageExtractor, type Subscription, type SubscriptionState, type SubtaskPart, TANGLE_RUN_ID_CAMEL_KEY, TANGLE_RUN_ID_KEY, TANGLE_RUN_KIND_KEY, TANGLE_RUN_PARENT_ID_KEY, TANGLE_SUBJECT_KEY, TANGLE_TRIGGER_ID_KEY, TANGLE_TRIGGER_KIND_KEY, TANGLE_TRIGGER_SOURCE_KEY, TANGLE_WORKFLOW_ID_KEY, TOKEN_USAGE_CACHE_BAG_KEYS, TOKEN_USAGE_CACHE_BAG_READ_KEYS, TOKEN_USAGE_CACHE_BAG_WRITE_KEYS, TOKEN_USAGE_CACHE_READ_EXCLUSIVE_KEYS, TOKEN_USAGE_CACHE_READ_INCLUSIVE_KEYS, TOKEN_USAGE_CACHE_WRITE_EXCLUSIVE_KEYS, TOKEN_USAGE_CACHE_WRITE_INCLUSIVE_KEYS, TOKEN_USAGE_COST_KEYS, TOKEN_USAGE_DETAIL_KEYS, TOKEN_USAGE_INPUT_KEYS, TOKEN_USAGE_OUTPUT_KEYS, TRIGGER_ID_ATTRS, TRIGGER_SOURCE_ATTRS, type TerminalDataEvent, type TerminalEvent, type TerminalExitEvent, type TerminalResizeEvent, type TextPart, TimeoutError, type TokenScope, type TokenUsageCounts, type TokenValidationResult, type ToolPart, type ToolState, type ToolStateCompleted, type ToolStateError, type ToolStatePending, type ToolStateRunning, type TransportAdapter, type TransportConfig, type TransportEvents, type TransportMetrics, type TransportMode, WORKFLOW_MARKER_ATTRS, addTokenUsage, asContentField, asContentString, cacheHitRate, canBatchTokenAccessChannel, canProjectTokenAccessChannel, canSessionTokenAccessChannel, canTokenAccessChannel, classifyAgent, consumeSSEStream, createProtectedFn, createStreamUsageExtractor, createTimeoutController, createUsageCallback, declaredTaskText, decodeToken, extractContent, extractProjectFromChannel, extractSessionFromChannel, firstTokenCount, firstUsageCostUsd, genAiUsageAttributes, generateApiKey, generateSecureToken, generateSigningSecret, getAllowedChannelPatterns, getTokenScope, getTokenTTL, hasContent, hashApiKey, isBatchScopedToken, isFilePart, isProjectScopedToken, isReasoningPart, isRetryable, isSDKError, isSessionScopedToken, isSubtaskPart, isTextPart, isTokenExpiringSoon, isToolPart, issueBatchScopedToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, logRecordContentBag, normalizeContentAttributes, parseSSEData, parseSSEStream, promptTokens, readTokenCostUsd, readTokenUsage, resolveDeclaredIntent, sleep, tokenCount, tokenUsageSource, validateChannelSubscription, validateTokenScope, verifyApiKey, verifyReadToken, withProtection, withTimeout };
|
|
489
489
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/cache/index.ts","../src/middleware/index.ts","../src/storage/index.ts","../src/platform/index.ts","../src/retry/index.ts","../src/utils/channel-matching.ts","../src/utils/session-translator.ts"],"mappings":";;;;;;;;;;;;;;;;UAOU,WAAW;EACnB,MAAM;EACN;EACA;EACA;;;UAIe;;EAEf;;EAEA;;EAEA,gBAAgB,cAAc,SAAS;;;UAIxB,aAAa;EAC5B,IAAI,cAAc,gBAAgB,QAAQ;EAC1C,IAAI,aAAa,OAAO,GAAG,wBAAwB;EACnD,OAAO,qBAAqB;EAC5B,gBAAgB;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/cache/index.ts","../src/middleware/index.ts","../src/storage/index.ts","../src/platform/index.ts","../src/retry/index.ts","../src/utils/channel-matching.ts","../src/utils/session-translator.ts"],"mappings":"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"}
|
|
@@ -7,7 +7,7 @@ import { InteractionExecutionBinding, StreamEvent } from "@tangle-network/agent-
|
|
|
7
7
|
* Extensions call `/permission` or `/question`. The bridge blocks until the
|
|
8
8
|
* shared broker receives an operator response.
|
|
9
9
|
*/
|
|
10
|
-
declare class InteractionHttpBridge {
|
|
10
|
+
export declare class InteractionHttpBridge {
|
|
11
11
|
readonly token: string;
|
|
12
12
|
private readonly requestPermission;
|
|
13
13
|
private readonly askUser;
|
|
@@ -29,5 +29,5 @@ declare class InteractionHttpBridge {
|
|
|
29
29
|
private route;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
export { type AskUserBridge, type BrokerInteractionTools, DEFAULT_INTERACTION_DECISION_TIMEOUT_MS, InteractionBroker, type InteractionBrokerOptions,
|
|
32
|
+
export { type AskUserBridge, type BrokerInteractionTools, DEFAULT_INTERACTION_DECISION_TIMEOUT_MS, InteractionBroker, type InteractionBrokerOptions, type InteractionQuestion, InteractionQuestionSchema, MAX_INTERACTION_DECISION_TIMEOUT_MS, type PermissionPromptBridge, type RequestPermissionBridge, type RequestPlanBridge, brokerInteractionTools, coercePermissionGrant, interactionAnswerSpecForQuestions, interactionDataToQuestionAnswers };
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/interactions/http-bridge.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/interactions/http-bridge.ts"],"mappings":";;;;;;;;;qBAsCa;WACF;mBACQ;mBACA;mBACA;mBACA;mBACA;UACT;UACA;EAER,YACE,QAAQ,mBACR;IACE;IACA,SAAS;IACT;IACA,QAAQ,OAAO;;MAUf;MAIA;EAIE,SAAS;EAgET,QAAQ;UAUA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as RequestPlanBridge, i as RequestPermissionBridge, r as PermissionPromptBridge, t as AskUserBridge } from "../tools-DeZkIW3h.js";
|
|
2
2
|
//#region src/interactions/mcp-server.d.ts
|
|
3
|
-
declare const DEFAULT_INTERACTION_MCP_SERVER_NAME = "tangle-interaction";
|
|
3
|
+
export declare const DEFAULT_INTERACTION_MCP_SERVER_NAME = "tangle-interaction";
|
|
4
4
|
/** Build the full tool name that a runner uses for an MCP tool. */
|
|
5
|
-
declare function interactionMcpToolName(serverName: string, tool: string): string;
|
|
6
|
-
interface InteractionMcpServerConfig {
|
|
5
|
+
export declare function interactionMcpToolName(serverName: string, tool: string): string;
|
|
6
|
+
export interface InteractionMcpServerConfig {
|
|
7
7
|
serverName?: string;
|
|
8
8
|
onStop: () => void | Promise<void>;
|
|
9
9
|
permission?: PermissionPromptBridge;
|
|
@@ -16,7 +16,7 @@ interface InteractionMcpServerConfig {
|
|
|
16
16
|
*
|
|
17
17
|
* The server listens only on 127.0.0.1 and requires an ephemeral bearer token.
|
|
18
18
|
*/
|
|
19
|
-
declare class InteractionMcpServer {
|
|
19
|
+
export declare class InteractionMcpServer {
|
|
20
20
|
private readonly server;
|
|
21
21
|
private readonly transport;
|
|
22
22
|
private readonly onStop;
|
|
@@ -37,5 +37,4 @@ declare class InteractionMcpServer {
|
|
|
37
37
|
private requestGenerationId;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
export { DEFAULT_INTERACTION_MCP_SERVER_NAME, InteractionMcpServer, InteractionMcpServerConfig, interactionMcpToolName };
|
|
41
40
|
//# sourceMappingURL=mcp-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","names":[],"sources":["../../src/interactions/mcp-server.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","names":[],"sources":["../../src/interactions/mcp-server.ts"],"mappings":";;qBA6Ba;;wBAqMG,uBACd,oBACA;iBAKe;EACf;EACA,qBAAqB;EACrB,aAAa;EACb,UAAU;EACV,oBAAoB;EACpB,cAAc;;;;;;;qBA+BH;mBACM;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;UACA;WACC;WACA;EAET,YAAY,QAAQ;MAiJhB;MAIA;EAIE,SAAS;EAiGT,QAAQ;UAYN;UAOA;UAcA"}
|
package/dist/sse/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Used by sdk-telemetry, sdk-memory, and other consumers.
|
|
7
7
|
*/
|
|
8
8
|
/** Raw SSE event data from stream */
|
|
9
|
-
interface SSEEventData {
|
|
9
|
+
export interface SSEEventData {
|
|
10
10
|
type: string;
|
|
11
11
|
toolName?: string;
|
|
12
12
|
name?: string;
|
|
@@ -45,14 +45,14 @@ interface SSEEventData {
|
|
|
45
45
|
* data: {"json": "payload"}
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
declare function parseSSEData(rawData: string): SSEEventData | null;
|
|
49
|
-
interface SSEParserOptions<T = unknown> {
|
|
48
|
+
export declare function parseSSEData(rawData: string): SSEEventData | null;
|
|
49
|
+
export interface SSEParserOptions<T = unknown> {
|
|
50
50
|
/** Log malformed data lines (default: false) */
|
|
51
51
|
logMalformed?: boolean;
|
|
52
52
|
/** Custom data transformer */
|
|
53
53
|
transform?: (raw: string) => T | null;
|
|
54
54
|
}
|
|
55
|
-
interface ParsedSSEEvent<T = unknown> {
|
|
55
|
+
export interface ParsedSSEEvent<T = unknown> {
|
|
56
56
|
data: T;
|
|
57
57
|
rawData: string;
|
|
58
58
|
eventId?: string;
|
|
@@ -62,7 +62,7 @@ interface ParsedSSEEvent<T = unknown> {
|
|
|
62
62
|
* Incremental SSE parser for chunked streams.
|
|
63
63
|
* Feed decoded string chunks via push(); call flush() on stream end.
|
|
64
64
|
*/
|
|
65
|
-
declare class SSEChunkParser<T = unknown> {
|
|
65
|
+
export declare class SSEChunkParser<T = unknown> {
|
|
66
66
|
private buffer;
|
|
67
67
|
private currentEvent;
|
|
68
68
|
private options;
|
|
@@ -75,20 +75,20 @@ declare class SSEChunkParser<T = unknown> {
|
|
|
75
75
|
/**
|
|
76
76
|
* Parse SSE stream into typed events via async iteration.
|
|
77
77
|
*/
|
|
78
|
-
declare function parseSSEStream<T = unknown>(stream: ReadableStream<Uint8Array>, options?: SSEParserOptions<T>): AsyncGenerator<ParsedSSEEvent<T>>;
|
|
78
|
+
export declare function parseSSEStream<T = unknown>(stream: ReadableStream<Uint8Array>, options?: SSEParserOptions<T>): AsyncGenerator<ParsedSSEEvent<T>>;
|
|
79
79
|
/**
|
|
80
80
|
* Consume SSE stream with callbacks.
|
|
81
81
|
*/
|
|
82
|
-
declare function consumeSSEStream<T = unknown>(stream: ReadableStream<Uint8Array>, onEvent: (event: ParsedSSEEvent<T>) => void, onError: (error: Error) => void, options?: SSEParserOptions<T>): Promise<void>;
|
|
82
|
+
export declare function consumeSSEStream<T = unknown>(stream: ReadableStream<Uint8Array>, onEvent: (event: ParsedSSEEvent<T>) => void, onError: (error: Error) => void, options?: SSEParserOptions<T>): Promise<void>;
|
|
83
83
|
/** Token usage extracted from stream */
|
|
84
|
-
interface StreamTokenUsage {
|
|
84
|
+
export interface StreamTokenUsage {
|
|
85
85
|
inputTokens: number;
|
|
86
86
|
outputTokens: number;
|
|
87
87
|
cacheReadTokens?: number;
|
|
88
88
|
cacheWriteTokens?: number;
|
|
89
89
|
}
|
|
90
90
|
/** Accumulated usage from a stream session */
|
|
91
|
-
interface StreamUsageAccumulator {
|
|
91
|
+
export interface StreamUsageAccumulator {
|
|
92
92
|
/** Total tokens from all events */
|
|
93
93
|
usage: StreamTokenUsage;
|
|
94
94
|
/** Number of LLM response events */
|
|
@@ -119,7 +119,7 @@ interface StreamUsageAccumulator {
|
|
|
119
119
|
* billingService.recordUsage({ usage: usage.usage, ... });
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare class StreamUsageExtractor {
|
|
122
|
+
export declare class StreamUsageExtractor {
|
|
123
123
|
private accumulator;
|
|
124
124
|
private finalized;
|
|
125
125
|
constructor();
|
|
@@ -150,7 +150,7 @@ declare class StreamUsageExtractor {
|
|
|
150
150
|
/**
|
|
151
151
|
* Create a new StreamUsageExtractor.
|
|
152
152
|
*/
|
|
153
|
-
declare function createStreamUsageExtractor(): StreamUsageExtractor;
|
|
153
|
+
export declare function createStreamUsageExtractor(): StreamUsageExtractor;
|
|
154
154
|
/**
|
|
155
155
|
* Create a callback wrapper that extracts usage while forwarding events.
|
|
156
156
|
*
|
|
@@ -164,11 +164,10 @@ declare function createStreamUsageExtractor(): StreamUsageExtractor;
|
|
|
164
164
|
* const usage = getUsage();
|
|
165
165
|
* ```
|
|
166
166
|
*/
|
|
167
|
-
declare function createUsageCallback<T extends Record<string, unknown>>(forward?: (event: T) => void): {
|
|
167
|
+
export declare function createUsageCallback<T extends Record<string, unknown>>(forward?: (event: T) => void): {
|
|
168
168
|
callback: (event: T) => void;
|
|
169
169
|
getUsage: () => StreamUsageAccumulator;
|
|
170
170
|
extractor: StreamUsageExtractor;
|
|
171
171
|
};
|
|
172
172
|
//#endregion
|
|
173
|
-
export { ParsedSSEEvent, SSEChunkParser, SSEEventData, SSEParserOptions, StreamTokenUsage, StreamUsageAccumulator, StreamUsageExtractor, consumeSSEStream, createStreamUsageExtractor, createUsageCallback, parseSSEData, parseSSEStream };
|
|
174
173
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sse/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/sse/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/sse/index.ts"],"mappings":";;;;;;;;iBAQiB;EACf;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EAEA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;IACE;IACA;IACA;IACA;;GAGD;;;;;;;;;;;wBAYa,aAAa,kBAAkB;iBA+B9B,iBAAiB;;EAEhC;;EAEA,aAAa,gBAAgB;;iBAGd,eAAe;EAC9B,MAAM;EACN;EACA;EACA;;;;;;qBAOW,eAAe;UAClB;UACA;UACA;EAER,YAAY,UAAS,iBAAiB;EAItC,KAAK,gBAAgB,eAAe;EAOpC,SAAS,eAAe;UAYhB;UA4CA;;;;;wBA2Ca,eAAe,aACpC,QAAQ,eAAe,aACvB,UAAS,iBAAiB,KACzB,eAAe,eAAe;;;;wBA4CX,iBAAiB,aACrC,QAAQ,eAAe,aACvB,UAAU,OAAO,eAAe,aAChC,UAAU,OAAO,gBACjB,UAAS,iBAAiB,KACzB;;iBAuCc;EACf;EACA;EACA;EACA;;;iBAIe;;EAEf,OAAO;;EAEP;;EAEA;;EAEA;;EAEA,WAAW;;EAEX;;;;;;;;;;;;;;;;;;;qBA0BW;UACH;UACA;EAER;;;;EAeA,cAAc;;;;EAUd,aAAa,OAAO,eAAe;;;;;EAoDnC,YAAY;;;;EAeZ,WAAW,SAAS;;;;EAOpB;UAaQ;UAyCA;;;;;wBA4BM,8BAA8B;;;;;;;;;;;;;;wBAiB9B,oBAAoB,UAAU,yBAC5C,WAAW,OAAO;EAElB,WAAW,OAAO;EAClB,gBAAgB;EAChB,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Core transport interfaces, event utilities, auth, SSE parsing, and resilience primitives for talking to Tangle agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
"LICENSE"
|
|
139
139
|
],
|
|
140
140
|
"dependencies": {
|
|
141
|
-
"@tangle-network/agent-interface": "^2.13.
|
|
142
|
-
"@tangle-network/agent-trace-contract": "^
|
|
143
|
-
"zod": "4.5
|
|
141
|
+
"@tangle-network/agent-interface": "^2.13.1",
|
|
142
|
+
"@tangle-network/agent-trace-contract": "^2.0.0",
|
|
143
|
+
"zod": "4.6.5"
|
|
144
144
|
},
|
|
145
145
|
"peerDependencies": {
|
|
146
146
|
"@modelcontextprotocol/sdk": "^1.30.0"
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@modelcontextprotocol/sdk": "^1.30.
|
|
155
|
-
"@types/node": "26.
|
|
156
|
-
"tsdown": "0.
|
|
154
|
+
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
155
|
+
"@types/node": "26.6.3",
|
|
156
|
+
"tsdown": "0.23.0",
|
|
157
157
|
"typescript": "7.0.2",
|
|
158
|
-
"vitest": "
|
|
158
|
+
"vitest": "5.0.2"
|
|
159
159
|
},
|
|
160
160
|
"scripts": {
|
|
161
161
|
"build": "tsdown",
|