@xenosystem/agent-sdk 0.10.0 → 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/index.d.cts CHANGED
@@ -4386,6 +4386,7 @@ type ProviderStreamEvent = {
4386
4386
  interface LLMProviderRequestContext {
4387
4387
  systemPrompt: string;
4388
4388
  attemptId?: string;
4389
+ quotaRemainingTokens?: number;
4389
4390
  onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
4390
4391
  }
4391
4392
  interface LLMProviderCapabilities {
@@ -5584,6 +5585,10 @@ declare class AgentLoop {
5584
5585
  meteredRequests: number;
5585
5586
  coverageComplete: boolean;
5586
5587
  };
5588
+ configureModelExecution(options: {
5589
+ provider?: LLMProvider;
5590
+ modelWorkAccounting?: ModelWorkAccounting;
5591
+ }): void;
5587
5592
  get lastTraceId(): string | null;
5588
5593
  get lastRunTermination(): AgentRunTermination | null;
5589
5594
  get queryState(): QueryState;
@@ -9200,6 +9205,89 @@ declare class FileXenoShareRegistry {
9200
9205
  load(): Promise<XenoShareRegistrySnapshot>;
9201
9206
  private mutate;
9202
9207
  }
9208
+ interface QuotaEntity {
9209
+ id: string;
9210
+ generation: string;
9211
+ }
9212
+ interface QuotaScope {
9213
+ workspace: QuotaEntity;
9214
+ team?: QuotaEntity;
9215
+ agent?: QuotaEntity;
9216
+ goal?: QuotaEntity;
9217
+ }
9218
+ interface QuotaLimits {
9219
+ requestsPerMinute: number | null;
9220
+ tokensPerDay: number | null;
9221
+ tokensLifetime?: number | null;
9222
+ }
9223
+ interface QuotaReservation {
9224
+ id: string;
9225
+ scope: QuotaScope;
9226
+ requestHash: string;
9227
+ reservedTokens: number;
9228
+ admittedAt: number;
9229
+ state: "reserved" | "dispatched" | "settled" | "void";
9230
+ actualTokens?: number;
9231
+ }
9232
+ interface QuotaAuthority {
9233
+ reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
9234
+ dispatch(id: string): Promise<void>;
9235
+ settle(id: string, actualTokens: number): Promise<void>;
9236
+ void(id: string): Promise<void>;
9237
+ remainingTokens?(scope: QuotaScope): Promise<number | null>;
9238
+ }
9239
+ declare class QuotaError extends Error {
9240
+ readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
9241
+ readonly retryable = false;
9242
+ constructor(code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK", message: string);
9243
+ }
9244
+ type QuotaAcknowledgementPhase = "prepare" | "reserve" | "dispatch" | "settle" | "void";
9245
+ declare class QuotaAcknowledgementError extends Error {
9246
+ readonly phase: QuotaAcknowledgementPhase;
9247
+ readonly reservationId: string;
9248
+ readonly code = "ACKNOWLEDGEMENT_FAILED";
9249
+ readonly retryable = false;
9250
+ constructor(phase: QuotaAcknowledgementPhase, reservationId: string, cause: unknown);
9251
+ }
9252
+ declare function isQuotaControlError(error: unknown): error is QuotaError | QuotaAcknowledgementError;
9253
+ declare function quotaInteger(value: unknown): number;
9254
+ declare function quotaText(value: unknown): string;
9255
+ declare function normalizeQuotaScope(scope: QuotaScope): QuotaScope;
9256
+ declare function quotaScopeKey(scope: QuotaScope): string;
9257
+ declare function quotaAncestors(scope: QuotaScope): QuotaScope[];
9258
+ declare function createQuotaGovernedProvider(provider: LLMProvider, authority: QuotaAuthority, scope: QuotaScope): LLMProvider;
9259
+ interface Policy {
9260
+ scope: QuotaScope;
9261
+ revision: number;
9262
+ limits: QuotaLimits;
9263
+ }
9264
+ declare class FileQuotaAuthority implements QuotaAuthority {
9265
+ private readonly now;
9266
+ private readonly maximumEntries;
9267
+ readonly directory: string;
9268
+ constructor(directory: string, now?: () => number, maximumEntries?: number);
9269
+ policy(scope: QuotaScope): Promise<Policy | null>;
9270
+ setPolicy(scope: QuotaScope, value: QuotaLimits, expectedRevision: number): Promise<Policy>;
9271
+ reservation(id: string): Promise<QuotaReservation | null>;
9272
+ reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
9273
+ dispatch(id: string): Promise<void>;
9274
+ void(id: string): Promise<void>;
9275
+ settle(id: string, actualTokens: number): Promise<void>;
9276
+ snapshot(scope: QuotaScope): Promise<{
9277
+ authority: "local-file";
9278
+ policies: Policy[];
9279
+ heldTokens: number;
9280
+ usedTokens: number;
9281
+ lifetimeHeldTokens: number;
9282
+ lifetimeUsedTokens: number;
9283
+ requestsInLastMinute: number;
9284
+ unresolved: number;
9285
+ }>;
9286
+ remainingTokens(scope: QuotaScope): Promise<number | null>;
9287
+ private apply;
9288
+ private load;
9289
+ private append;
9290
+ }
9203
9291
  interface UpdateXenoGoalInput {
9204
9292
  objective?: string;
9205
9293
  why?: string;
@@ -9274,6 +9362,7 @@ declare class DurableXenoCoordinationStore {
9274
9362
  beginLoopIteration(sessionId: string, loopId: string, expectedVersion: number, activity: string, taskId?: string): Promise<XenoLoopRecord>;
9275
9363
  private appendLoopIteration;
9276
9364
  admitGoalTurn(input: XenoGoalTurnRequest): Promise<XenoGoalTurnAdmission>;
9365
+ admitQuotaGoalTurn(input: XenoGoalTurnRequest, quota: Pick<FileQuotaAuthority, "policy" | "remainingTokens">, scopeInput: QuotaScope, authority?: Pick<XenoExecutionOwner, "ownerId" | "leaseId" | "epoch">): Promise<XenoGoalTurnAdmission>;
9277
9366
  admitOwnedGoalTurn(input: XenoGoalTurnRequest, authority: Pick<XenoExecutionOwner, "ownerId" | "leaseId" | "epoch">): Promise<XenoGoalTurnAdmission>;
9278
9367
  private admitGoalTurnWithOwner;
9279
9368
  getGoalTurnState(sessionId: string, goalId?: string, requestId?: string): Promise<XenoGoalTurnState | undefined>;
@@ -10368,6 +10457,7 @@ interface CreateXenoAgentOptions {
10368
10457
  onToolWillExecute?: AgentLoopConfig["onToolWillExecute"];
10369
10458
  onToolEnd?: AgentLoopConfig["onToolEnd"];
10370
10459
  onIteration?: AgentLoopConfig["onIteration"];
10460
+ modelWorkAccounting?: AgentLoopConfig["modelWorkAccounting"];
10371
10461
  onError?: AgentLoopConfig["onError"];
10372
10462
  onTranscriptError?: AgentLoopConfig["onTranscriptError"];
10373
10463
  onRuntimeEvent?: XenoRuntimeEventSink;
@@ -13794,6 +13884,7 @@ interface DirectProviderConfig {
13794
13884
  baseURL?: string;
13795
13885
  anthropicVersion?: string;
13796
13886
  maxTokens?: number;
13887
+ xenoPromptTokenCeiling?: number;
13797
13888
  streaming?: boolean;
13798
13889
  capabilityProfile?: DirectProviderCapabilityProfile;
13799
13890
  endpointProfile?: DirectEndpointProfile;
@@ -14020,87 +14111,6 @@ declare class FileXenoProviderConnectionStore {
14020
14111
  load(): Promise<XenoProviderConnectionSnapshot>;
14021
14112
  private mutate;
14022
14113
  }
14023
- interface QuotaEntity {
14024
- id: string;
14025
- generation: string;
14026
- }
14027
- interface QuotaScope {
14028
- workspace: QuotaEntity;
14029
- team?: QuotaEntity;
14030
- agent?: QuotaEntity;
14031
- goal?: QuotaEntity;
14032
- }
14033
- interface QuotaLimits {
14034
- requestsPerMinute: number | null;
14035
- tokensPerDay: number | null;
14036
- tokensLifetime?: number | null;
14037
- }
14038
- interface QuotaReservation {
14039
- id: string;
14040
- scope: QuotaScope;
14041
- requestHash: string;
14042
- reservedTokens: number;
14043
- admittedAt: number;
14044
- state: "reserved" | "dispatched" | "settled" | "void";
14045
- actualTokens?: number;
14046
- }
14047
- interface QuotaAuthority {
14048
- reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
14049
- dispatch(id: string): Promise<void>;
14050
- settle(id: string, actualTokens: number): Promise<void>;
14051
- void(id: string): Promise<void>;
14052
- }
14053
- declare class QuotaError extends Error {
14054
- readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
14055
- readonly retryable = false;
14056
- constructor(code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK", message: string);
14057
- }
14058
- type QuotaAcknowledgementPhase = "prepare" | "reserve" | "dispatch" | "settle" | "void";
14059
- declare class QuotaAcknowledgementError extends Error {
14060
- readonly phase: QuotaAcknowledgementPhase;
14061
- readonly reservationId: string;
14062
- readonly code = "ACKNOWLEDGEMENT_FAILED";
14063
- readonly retryable = false;
14064
- constructor(phase: QuotaAcknowledgementPhase, reservationId: string, cause: unknown);
14065
- }
14066
- declare function isQuotaControlError(error: unknown): error is QuotaError | QuotaAcknowledgementError;
14067
- declare function quotaInteger(value: unknown): number;
14068
- declare function quotaText(value: unknown): string;
14069
- declare function normalizeQuotaScope(scope: QuotaScope): QuotaScope;
14070
- declare function quotaScopeKey(scope: QuotaScope): string;
14071
- declare function quotaAncestors(scope: QuotaScope): QuotaScope[];
14072
- declare function createQuotaGovernedProvider(provider: LLMProvider, authority: QuotaAuthority, scope: QuotaScope): LLMProvider;
14073
- interface Policy {
14074
- scope: QuotaScope;
14075
- revision: number;
14076
- limits: QuotaLimits;
14077
- }
14078
- declare class FileQuotaAuthority implements QuotaAuthority {
14079
- private readonly now;
14080
- private readonly maximumEntries;
14081
- readonly directory: string;
14082
- constructor(directory: string, now?: () => number, maximumEntries?: number);
14083
- policy(scope: QuotaScope): Promise<Policy | null>;
14084
- setPolicy(scope: QuotaScope, value: QuotaLimits, expectedRevision: number): Promise<Policy>;
14085
- reservation(id: string): Promise<QuotaReservation | null>;
14086
- reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
14087
- dispatch(id: string): Promise<void>;
14088
- void(id: string): Promise<void>;
14089
- settle(id: string, actualTokens: number): Promise<void>;
14090
- snapshot(scope: QuotaScope): Promise<{
14091
- authority: "local-file";
14092
- policies: Policy[];
14093
- heldTokens: number;
14094
- usedTokens: number;
14095
- lifetimeHeldTokens: number;
14096
- lifetimeUsedTokens: number;
14097
- requestsInLastMinute: number;
14098
- unresolved: number;
14099
- }>;
14100
- private apply;
14101
- private load;
14102
- private append;
14103
- }
14104
14114
  interface CodeValidationResult {
14105
14115
  valid: boolean;
14106
14116
  errors: CodeValidationIssue[];
package/dist/index.d.ts CHANGED
@@ -4386,6 +4386,7 @@ type ProviderStreamEvent = {
4386
4386
  interface LLMProviderRequestContext {
4387
4387
  systemPrompt: string;
4388
4388
  attemptId?: string;
4389
+ quotaRemainingTokens?: number;
4389
4390
  onEvent?: (event: ProviderStreamEvent) => void | Promise<void>;
4390
4391
  }
4391
4392
  interface LLMProviderCapabilities {
@@ -5584,6 +5585,10 @@ declare class AgentLoop {
5584
5585
  meteredRequests: number;
5585
5586
  coverageComplete: boolean;
5586
5587
  };
5588
+ configureModelExecution(options: {
5589
+ provider?: LLMProvider;
5590
+ modelWorkAccounting?: ModelWorkAccounting;
5591
+ }): void;
5587
5592
  get lastTraceId(): string | null;
5588
5593
  get lastRunTermination(): AgentRunTermination | null;
5589
5594
  get queryState(): QueryState;
@@ -9200,6 +9205,89 @@ declare class FileXenoShareRegistry {
9200
9205
  load(): Promise<XenoShareRegistrySnapshot>;
9201
9206
  private mutate;
9202
9207
  }
9208
+ interface QuotaEntity {
9209
+ id: string;
9210
+ generation: string;
9211
+ }
9212
+ interface QuotaScope {
9213
+ workspace: QuotaEntity;
9214
+ team?: QuotaEntity;
9215
+ agent?: QuotaEntity;
9216
+ goal?: QuotaEntity;
9217
+ }
9218
+ interface QuotaLimits {
9219
+ requestsPerMinute: number | null;
9220
+ tokensPerDay: number | null;
9221
+ tokensLifetime?: number | null;
9222
+ }
9223
+ interface QuotaReservation {
9224
+ id: string;
9225
+ scope: QuotaScope;
9226
+ requestHash: string;
9227
+ reservedTokens: number;
9228
+ admittedAt: number;
9229
+ state: "reserved" | "dispatched" | "settled" | "void";
9230
+ actualTokens?: number;
9231
+ }
9232
+ interface QuotaAuthority {
9233
+ reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
9234
+ dispatch(id: string): Promise<void>;
9235
+ settle(id: string, actualTokens: number): Promise<void>;
9236
+ void(id: string): Promise<void>;
9237
+ remainingTokens?(scope: QuotaScope): Promise<number | null>;
9238
+ }
9239
+ declare class QuotaError extends Error {
9240
+ readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
9241
+ readonly retryable = false;
9242
+ constructor(code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK", message: string);
9243
+ }
9244
+ type QuotaAcknowledgementPhase = "prepare" | "reserve" | "dispatch" | "settle" | "void";
9245
+ declare class QuotaAcknowledgementError extends Error {
9246
+ readonly phase: QuotaAcknowledgementPhase;
9247
+ readonly reservationId: string;
9248
+ readonly code = "ACKNOWLEDGEMENT_FAILED";
9249
+ readonly retryable = false;
9250
+ constructor(phase: QuotaAcknowledgementPhase, reservationId: string, cause: unknown);
9251
+ }
9252
+ declare function isQuotaControlError(error: unknown): error is QuotaError | QuotaAcknowledgementError;
9253
+ declare function quotaInteger(value: unknown): number;
9254
+ declare function quotaText(value: unknown): string;
9255
+ declare function normalizeQuotaScope(scope: QuotaScope): QuotaScope;
9256
+ declare function quotaScopeKey(scope: QuotaScope): string;
9257
+ declare function quotaAncestors(scope: QuotaScope): QuotaScope[];
9258
+ declare function createQuotaGovernedProvider(provider: LLMProvider, authority: QuotaAuthority, scope: QuotaScope): LLMProvider;
9259
+ interface Policy {
9260
+ scope: QuotaScope;
9261
+ revision: number;
9262
+ limits: QuotaLimits;
9263
+ }
9264
+ declare class FileQuotaAuthority implements QuotaAuthority {
9265
+ private readonly now;
9266
+ private readonly maximumEntries;
9267
+ readonly directory: string;
9268
+ constructor(directory: string, now?: () => number, maximumEntries?: number);
9269
+ policy(scope: QuotaScope): Promise<Policy | null>;
9270
+ setPolicy(scope: QuotaScope, value: QuotaLimits, expectedRevision: number): Promise<Policy>;
9271
+ reservation(id: string): Promise<QuotaReservation | null>;
9272
+ reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
9273
+ dispatch(id: string): Promise<void>;
9274
+ void(id: string): Promise<void>;
9275
+ settle(id: string, actualTokens: number): Promise<void>;
9276
+ snapshot(scope: QuotaScope): Promise<{
9277
+ authority: "local-file";
9278
+ policies: Policy[];
9279
+ heldTokens: number;
9280
+ usedTokens: number;
9281
+ lifetimeHeldTokens: number;
9282
+ lifetimeUsedTokens: number;
9283
+ requestsInLastMinute: number;
9284
+ unresolved: number;
9285
+ }>;
9286
+ remainingTokens(scope: QuotaScope): Promise<number | null>;
9287
+ private apply;
9288
+ private load;
9289
+ private append;
9290
+ }
9203
9291
  interface UpdateXenoGoalInput {
9204
9292
  objective?: string;
9205
9293
  why?: string;
@@ -9274,6 +9362,7 @@ declare class DurableXenoCoordinationStore {
9274
9362
  beginLoopIteration(sessionId: string, loopId: string, expectedVersion: number, activity: string, taskId?: string): Promise<XenoLoopRecord>;
9275
9363
  private appendLoopIteration;
9276
9364
  admitGoalTurn(input: XenoGoalTurnRequest): Promise<XenoGoalTurnAdmission>;
9365
+ admitQuotaGoalTurn(input: XenoGoalTurnRequest, quota: Pick<FileQuotaAuthority, "policy" | "remainingTokens">, scopeInput: QuotaScope, authority?: Pick<XenoExecutionOwner, "ownerId" | "leaseId" | "epoch">): Promise<XenoGoalTurnAdmission>;
9277
9366
  admitOwnedGoalTurn(input: XenoGoalTurnRequest, authority: Pick<XenoExecutionOwner, "ownerId" | "leaseId" | "epoch">): Promise<XenoGoalTurnAdmission>;
9278
9367
  private admitGoalTurnWithOwner;
9279
9368
  getGoalTurnState(sessionId: string, goalId?: string, requestId?: string): Promise<XenoGoalTurnState | undefined>;
@@ -10368,6 +10457,7 @@ interface CreateXenoAgentOptions {
10368
10457
  onToolWillExecute?: AgentLoopConfig["onToolWillExecute"];
10369
10458
  onToolEnd?: AgentLoopConfig["onToolEnd"];
10370
10459
  onIteration?: AgentLoopConfig["onIteration"];
10460
+ modelWorkAccounting?: AgentLoopConfig["modelWorkAccounting"];
10371
10461
  onError?: AgentLoopConfig["onError"];
10372
10462
  onTranscriptError?: AgentLoopConfig["onTranscriptError"];
10373
10463
  onRuntimeEvent?: XenoRuntimeEventSink;
@@ -13794,6 +13884,7 @@ interface DirectProviderConfig {
13794
13884
  baseURL?: string;
13795
13885
  anthropicVersion?: string;
13796
13886
  maxTokens?: number;
13887
+ xenoPromptTokenCeiling?: number;
13797
13888
  streaming?: boolean;
13798
13889
  capabilityProfile?: DirectProviderCapabilityProfile;
13799
13890
  endpointProfile?: DirectEndpointProfile;
@@ -14020,87 +14111,6 @@ declare class FileXenoProviderConnectionStore {
14020
14111
  load(): Promise<XenoProviderConnectionSnapshot>;
14021
14112
  private mutate;
14022
14113
  }
14023
- interface QuotaEntity {
14024
- id: string;
14025
- generation: string;
14026
- }
14027
- interface QuotaScope {
14028
- workspace: QuotaEntity;
14029
- team?: QuotaEntity;
14030
- agent?: QuotaEntity;
14031
- goal?: QuotaEntity;
14032
- }
14033
- interface QuotaLimits {
14034
- requestsPerMinute: number | null;
14035
- tokensPerDay: number | null;
14036
- tokensLifetime?: number | null;
14037
- }
14038
- interface QuotaReservation {
14039
- id: string;
14040
- scope: QuotaScope;
14041
- requestHash: string;
14042
- reservedTokens: number;
14043
- admittedAt: number;
14044
- state: "reserved" | "dispatched" | "settled" | "void";
14045
- actualTokens?: number;
14046
- }
14047
- interface QuotaAuthority {
14048
- reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
14049
- dispatch(id: string): Promise<void>;
14050
- settle(id: string, actualTokens: number): Promise<void>;
14051
- void(id: string): Promise<void>;
14052
- }
14053
- declare class QuotaError extends Error {
14054
- readonly code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK";
14055
- readonly retryable = false;
14056
- constructor(code: "INVALID" | "CONFLICT" | "EXCEEDED" | "UNSUPPORTED" | "CORRUPT" | "CAPACITY" | "CLOCK_ROLLBACK", message: string);
14057
- }
14058
- type QuotaAcknowledgementPhase = "prepare" | "reserve" | "dispatch" | "settle" | "void";
14059
- declare class QuotaAcknowledgementError extends Error {
14060
- readonly phase: QuotaAcknowledgementPhase;
14061
- readonly reservationId: string;
14062
- readonly code = "ACKNOWLEDGEMENT_FAILED";
14063
- readonly retryable = false;
14064
- constructor(phase: QuotaAcknowledgementPhase, reservationId: string, cause: unknown);
14065
- }
14066
- declare function isQuotaControlError(error: unknown): error is QuotaError | QuotaAcknowledgementError;
14067
- declare function quotaInteger(value: unknown): number;
14068
- declare function quotaText(value: unknown): string;
14069
- declare function normalizeQuotaScope(scope: QuotaScope): QuotaScope;
14070
- declare function quotaScopeKey(scope: QuotaScope): string;
14071
- declare function quotaAncestors(scope: QuotaScope): QuotaScope[];
14072
- declare function createQuotaGovernedProvider(provider: LLMProvider, authority: QuotaAuthority, scope: QuotaScope): LLMProvider;
14073
- interface Policy {
14074
- scope: QuotaScope;
14075
- revision: number;
14076
- limits: QuotaLimits;
14077
- }
14078
- declare class FileQuotaAuthority implements QuotaAuthority {
14079
- private readonly now;
14080
- private readonly maximumEntries;
14081
- readonly directory: string;
14082
- constructor(directory: string, now?: () => number, maximumEntries?: number);
14083
- policy(scope: QuotaScope): Promise<Policy | null>;
14084
- setPolicy(scope: QuotaScope, value: QuotaLimits, expectedRevision: number): Promise<Policy>;
14085
- reservation(id: string): Promise<QuotaReservation | null>;
14086
- reserve(input: Omit<QuotaReservation, "admittedAt" | "state" | "actualTokens">): Promise<QuotaReservation>;
14087
- dispatch(id: string): Promise<void>;
14088
- void(id: string): Promise<void>;
14089
- settle(id: string, actualTokens: number): Promise<void>;
14090
- snapshot(scope: QuotaScope): Promise<{
14091
- authority: "local-file";
14092
- policies: Policy[];
14093
- heldTokens: number;
14094
- usedTokens: number;
14095
- lifetimeHeldTokens: number;
14096
- lifetimeUsedTokens: number;
14097
- requestsInLastMinute: number;
14098
- unresolved: number;
14099
- }>;
14100
- private apply;
14101
- private load;
14102
- private append;
14103
- }
14104
14114
  interface CodeValidationResult {
14105
14115
  valid: boolean;
14106
14116
  errors: CodeValidationIssue[];