@xenosystem/agent-sdk 0.9.39 → 0.10.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/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/automation/index.cjs +1 -1
- package/dist/automation/index.js +1 -1
- package/dist/control-plane/index.cjs +8 -8
- package/dist/control-plane/index.d.cts +15 -1
- package/dist/control-plane/index.d.ts +15 -1
- package/dist/control-plane/index.js +8 -8
- package/dist/control-plane/metafile-cjs.json +1 -1
- package/dist/control-plane/metafile-esm.json +1 -1
- package/dist/coordination/index.cjs +2 -2
- package/dist/coordination/index.d.cts +64 -0
- package/dist/coordination/index.d.ts +64 -0
- package/dist/coordination/index.js +2 -2
- package/dist/coordination/metafile-cjs.json +1 -1
- package/dist/coordination/metafile-esm.json +1 -1
- package/dist/electron/index.cjs +182 -175
- package/dist/electron/index.d.cts +5 -0
- package/dist/electron/index.d.ts +5 -0
- package/dist/electron/index.js +182 -175
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/index.cjs +345 -340
- package/dist/index.d.cts +280 -252
- package/dist/index.d.ts +280 -252
- package/dist/index.js +348 -343
- package/dist/mcp/metafile-cjs.json +1 -1
- package/dist/mcp/metafile-esm.json +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/index.cjs +10 -10
- package/dist/providers/index.d.cts +4 -0
- package/dist/providers/index.d.ts +4 -0
- package/dist/providers/index.js +10 -10
- package/dist/providers/metafile-cjs.json +1 -1
- package/dist/providers/metafile-esm.json +1 -1
- package/dist/session/index.cjs +7 -7
- package/dist/session/index.js +2 -2
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/dist/ui/index.cjs +3 -3
- package/dist/ui/index.js +2 -2
- package/dist/ui/metafile-cjs.json +1 -1
- package/dist/ui/metafile-esm.json +1 -1
- package/package.json +1 -1
|
@@ -136,6 +136,7 @@ type ProviderStreamEvent = {
|
|
|
136
136
|
interface LLMProviderRequestContext {
|
|
137
137
|
systemPrompt: string;
|
|
138
138
|
attemptId?: string;
|
|
139
|
+
quotaRemainingTokens?: number;
|
|
139
140
|
onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
|
|
140
141
|
}
|
|
141
142
|
interface LLMProviderCapabilities {
|
|
@@ -242,6 +243,7 @@ interface DirectProviderConfig {
|
|
|
242
243
|
baseURL?: string;
|
|
243
244
|
anthropicVersion?: string;
|
|
244
245
|
maxTokens?: number;
|
|
246
|
+
xenoPromptTokenCeiling?: number;
|
|
245
247
|
streaming?: boolean;
|
|
246
248
|
capabilityProfile?: DirectProviderCapabilityProfile;
|
|
247
249
|
endpointProfile?: DirectEndpointProfile;
|
|
@@ -497,6 +499,7 @@ interface QuotaAuthority {
|
|
|
497
499
|
dispatch(id: string): Promise<void>;
|
|
498
500
|
settle(id: string, actualTokens: number): Promise<void>;
|
|
499
501
|
void(id: string): Promise<void>;
|
|
502
|
+
remainingTokens?(scope: QuotaScope): Promise<number | null>;
|
|
500
503
|
}
|
|
501
504
|
declare class QuotaError extends Error {
|
|
502
505
|
readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
|
|
@@ -545,6 +548,7 @@ declare class FileQuotaAuthority implements QuotaAuthority {
|
|
|
545
548
|
requestsInLastMinute: number;
|
|
546
549
|
unresolved: number;
|
|
547
550
|
}>;
|
|
551
|
+
remainingTokens(scope: QuotaScope): Promise<number | null>;
|
|
548
552
|
private apply;
|
|
549
553
|
private load;
|
|
550
554
|
private append;
|
|
@@ -136,6 +136,7 @@ type ProviderStreamEvent = {
|
|
|
136
136
|
interface LLMProviderRequestContext {
|
|
137
137
|
systemPrompt: string;
|
|
138
138
|
attemptId?: string;
|
|
139
|
+
quotaRemainingTokens?: number;
|
|
139
140
|
onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
|
|
140
141
|
}
|
|
141
142
|
interface LLMProviderCapabilities {
|
|
@@ -242,6 +243,7 @@ interface DirectProviderConfig {
|
|
|
242
243
|
baseURL?: string;
|
|
243
244
|
anthropicVersion?: string;
|
|
244
245
|
maxTokens?: number;
|
|
246
|
+
xenoPromptTokenCeiling?: number;
|
|
245
247
|
streaming?: boolean;
|
|
246
248
|
capabilityProfile?: DirectProviderCapabilityProfile;
|
|
247
249
|
endpointProfile?: DirectEndpointProfile;
|
|
@@ -497,6 +499,7 @@ interface QuotaAuthority {
|
|
|
497
499
|
dispatch(id: string): Promise<void>;
|
|
498
500
|
settle(id: string, actualTokens: number): Promise<void>;
|
|
499
501
|
void(id: string): Promise<void>;
|
|
502
|
+
remainingTokens?(scope: QuotaScope): Promise<number | null>;
|
|
500
503
|
}
|
|
501
504
|
declare class QuotaError extends Error {
|
|
502
505
|
readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
|
|
@@ -545,6 +548,7 @@ declare class FileQuotaAuthority implements QuotaAuthority {
|
|
|
545
548
|
requestsInLastMinute: number;
|
|
546
549
|
unresolved: number;
|
|
547
550
|
}>;
|
|
551
|
+
remainingTokens(scope: QuotaScope): Promise<number | null>;
|
|
548
552
|
private apply;
|
|
549
553
|
private load;
|
|
550
554
|
private append;
|