opencode-quota-gui 1.3.0 → 1.3.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/README.md +34 -20
- package/dist/bin/opencode-quota-gui.js +0 -0
- package/dist/contracts/build-identity.js +1 -1
- package/dist/contracts/card-order.d.ts +2 -0
- package/dist/contracts/card-order.js +2 -2
- package/dist/contracts/card-visibility.d.ts +2 -1
- package/dist/contracts/card-visibility.js +2 -1
- package/dist/contracts/dashboard.d.ts +95 -6
- package/dist/contracts/dashboard.js +10 -0
- package/dist/contracts/dto-guards.d.ts +4 -0
- package/dist/contracts/dto-guards.js +31 -7
- package/dist/contracts/guards.js +3 -1
- package/dist/contracts/identity.d.ts +37 -5
- package/dist/contracts/identity.js +43 -0
- package/dist/contracts/openai-quota.d.ts +3 -0
- package/dist/contracts/openai-quota.js +3 -0
- package/dist/contracts/provider-auto-resume.d.ts +9 -0
- package/dist/contracts/provider-auto-resume.js +24 -0
- package/dist/contracts/provider-failure.d.ts +22 -0
- package/dist/contracts/provider-failure.js +25 -1
- package/dist/contracts/row-order.d.ts +13 -0
- package/dist/contracts/row-order.js +34 -0
- package/dist/contracts/row-visibility.d.ts +53 -0
- package/dist/contracts/row-visibility.js +130 -0
- package/dist/data/modelsdev-pricing.min.json +1 -1
- package/dist/data/modelsdev-temporal.min.json +60 -634
- package/dist/gui/aggregation.d.ts +29 -1
- package/dist/gui/aggregation.js +157 -4
- package/dist/gui/analytics-bridge.d.ts +8 -9
- package/dist/gui/analytics-bridge.js +197 -54
- package/dist/gui/analytics-engine.d.ts +7 -15
- package/dist/gui/analytics-engine.js +246 -106
- package/dist/gui/analytics-model.d.ts +7 -0
- package/dist/gui/analytics-model.js +75 -9
- package/dist/gui/analytics-pricing-upkeep.d.ts +21 -0
- package/dist/gui/analytics-pricing-upkeep.js +23 -0
- package/dist/gui/analytics-protocol.d.ts +17 -7
- package/dist/gui/analytics-protocol.js +1 -0
- package/dist/gui/analytics-service.d.ts +10 -0
- package/dist/gui/analytics-service.js +30 -9
- package/dist/gui/analytics-state.d.ts +30 -5
- package/dist/gui/analytics-state.js +46 -7
- package/dist/gui/analytics-worker-runtime.d.ts +5 -0
- package/dist/gui/analytics-worker-runtime.js +9 -1
- package/dist/gui/analytics-worker.js +11 -0
- package/dist/gui/config.d.ts +3 -3
- package/dist/gui/config.js +77 -7
- package/dist/gui/identity.d.ts +6 -20
- package/dist/gui/identity.js +6 -54
- package/dist/gui/lifecycle.d.ts +5 -3
- package/dist/gui/lifecycle.js +3 -3
- package/dist/gui/primary-quota-windows.js +67 -44
- package/dist/gui/provider-cards.d.ts +20 -8
- package/dist/gui/provider-cards.js +42 -55
- package/dist/gui/quota-notification-detector.d.ts +29 -6
- package/dist/gui/quota-notification-detector.js +136 -47
- package/dist/gui/quota-notification-observer.d.ts +3 -4
- package/dist/gui/quota-notification-observer.js +73 -20
- package/dist/gui/quota-observation.d.ts +4 -0
- package/dist/gui/quota-observation.js +18 -0
- package/dist/gui/rpc.d.ts +2 -0
- package/dist/gui/rpc.js +14 -3
- package/dist/gui/server.js +17 -3
- package/dist/gui/snapshot-service.d.ts +3 -15
- package/dist/gui/snapshot-service.js +281 -23
- package/dist/gui/sources.js +179 -64
- package/dist/gui/temporal-status.d.ts +3 -2
- package/dist/gui/temporal-status.js +10 -6
- package/dist/gui-experimental.cjs +230 -225
- package/dist/lib/accounting-format.d.ts +8 -0
- package/dist/lib/accounting-format.js +20 -2
- package/dist/lib/alibaba-coding-plan-cli.d.ts +79 -0
- package/dist/lib/alibaba-coding-plan-cli.js +539 -0
- package/dist/lib/anthropic-api-auth.d.ts +7 -0
- package/dist/lib/anthropic-api-auth.js +27 -0
- package/dist/lib/anthropic-api-rate-limits.d.ts +47 -0
- package/dist/lib/anthropic-api-rate-limits.js +92 -0
- package/dist/lib/anthropic-auth.d.ts +2 -3
- package/dist/lib/anthropic-auth.js +2 -3
- package/dist/lib/anthropic-oauth-throttle.d.ts +76 -0
- package/dist/lib/anthropic-oauth-throttle.js +379 -0
- package/dist/lib/anthropic.d.ts +68 -14
- package/dist/lib/anthropic.js +1016 -363
- package/dist/lib/api-key-retry-after.d.ts +7 -0
- package/dist/lib/api-key-retry-after.js +62 -0
- package/dist/lib/atomic-json.d.ts +2 -0
- package/dist/lib/atomic-json.js +1 -0
- package/dist/lib/cache-observer-ingestion.d.ts +90 -0
- package/dist/lib/cache-observer-ingestion.js +1008 -0
- package/dist/lib/cache-observer.d.ts +141 -0
- package/dist/lib/cache-observer.js +323 -0
- package/dist/lib/canonical-config-lock.d.ts +9 -0
- package/dist/lib/canonical-config-lock.js +36 -0
- package/dist/lib/chutes.js +62 -51
- package/dist/lib/claude-agent-transcript-ttl.d.ts +48 -0
- package/dist/lib/claude-agent-transcript-ttl.js +154 -0
- package/dist/lib/claude-agent-ttl-tracker.d.ts +21 -0
- package/dist/lib/claude-agent-ttl-tracker.js +152 -0
- package/dist/lib/cli-show.d.ts +5 -0
- package/dist/lib/cli-show.js +21 -8
- package/dist/lib/cli-status.js +3 -6
- package/dist/lib/config-write-target.d.ts +1 -1
- package/dist/lib/config-write-target.js +5 -2
- package/dist/lib/config.d.ts +2 -1
- package/dist/lib/config.js +257 -4
- package/dist/lib/copilot.js +171 -86
- package/dist/lib/dashboard-visibility.d.ts +5 -0
- package/dist/lib/dashboard-visibility.js +11 -10
- package/dist/lib/dashboard-web-policy.d.ts +4 -4
- package/dist/lib/dashboard-web-policy.js +2 -2
- package/dist/lib/deepseek.js +25 -13
- package/dist/lib/display-sanitize.js +2 -0
- package/dist/lib/entries.d.ts +33 -1
- package/dist/lib/entries.js +6 -0
- package/dist/lib/glm-coding-plan.js +98 -74
- package/dist/lib/google-agy.js +90 -12
- package/dist/lib/google-gemini-cli.js +84 -11
- package/dist/lib/grouped-entry-normalization.js +1 -1
- package/dist/lib/http.d.ts +4 -0
- package/dist/lib/http.js +16 -2
- package/dist/lib/init-installer.js +5 -3
- package/dist/lib/kilo.js +37 -18
- package/dist/lib/kimi.js +35 -18
- package/dist/lib/maintainer-announcements.js +2 -2
- package/dist/lib/mimo.d.ts +2 -0
- package/dist/lib/mimo.js +36 -0
- package/dist/lib/modelsdev-pricing.d.ts +74 -2
- package/dist/lib/modelsdev-pricing.js +457 -63
- package/dist/lib/modelsdev-temporal.d.ts +6 -0
- package/dist/lib/modelsdev-temporal.js +16 -2
- package/dist/lib/nanogpt.d.ts +1 -0
- package/dist/lib/nanogpt.js +26 -3
- package/dist/lib/ollama-cloud.d.ts +1 -1
- package/dist/lib/ollama-cloud.js +48 -35
- package/dist/lib/openai.js +84 -38
- package/dist/lib/opencode-auth-sqlite.d.ts +2 -2
- package/dist/lib/opencode-auth-sqlite.js +2 -2
- package/dist/lib/opencode-config-editor.d.ts +1 -0
- package/dist/lib/opencode-config-editor.js +6 -1
- package/dist/lib/opencode-config-providers.js +2 -2
- package/dist/lib/opencode-go.js +29 -2
- package/dist/lib/opencode-storage.d.ts +20 -0
- package/dist/lib/opencode-storage.js +89 -2
- package/dist/lib/opencode-version-core.d.ts +30 -0
- package/dist/lib/opencode-version-core.js +59 -0
- package/dist/lib/opencode-version.d.ts +2 -22
- package/dist/lib/opencode-version.js +4 -48
- package/dist/lib/opencode-warming-refresh.d.ts +19 -0
- package/dist/lib/opencode-warming-refresh.js +95 -0
- package/dist/lib/opencode-zen.d.ts +3 -0
- package/dist/lib/opencode-zen.js +71 -5
- package/dist/lib/provider-add.js +5 -2
- package/dist/lib/provider-metadata.d.ts +11 -3
- package/dist/lib/provider-metadata.js +20 -2
- package/dist/lib/provider-registration.d.ts +358 -9
- package/dist/lib/provider-registration.js +423 -30
- package/dist/lib/quota-auto-resume.d.ts +74 -0
- package/dist/lib/quota-auto-resume.js +539 -0
- package/dist/lib/quota-command-format.js +23 -10
- package/dist/lib/quota-exhaustion-projection.d.ts +11 -0
- package/dist/lib/quota-exhaustion-projection.js +25 -0
- package/dist/lib/quota-identity.d.ts +64 -0
- package/dist/lib/quota-identity.js +111 -0
- package/dist/lib/quota-providers-remote.d.ts +2 -1
- package/dist/lib/quota-providers-remote.js +59 -3
- package/dist/lib/quota-providers.d.ts +1 -1
- package/dist/lib/quota-providers.js +14 -37
- package/dist/lib/quota-render-data.d.ts +6 -0
- package/dist/lib/quota-render-data.js +45 -19
- package/dist/lib/quota-reset-notifications.js +11 -155
- package/dist/lib/quota-retry-wait.d.ts +106 -5
- package/dist/lib/quota-retry-wait.js +301 -34
- package/dist/lib/quota-runtime-context.js +1 -0
- package/dist/lib/quota-state-codec.d.ts +2 -0
- package/dist/lib/quota-state-codec.js +31 -2
- package/dist/lib/quota-state.d.ts +8 -2
- package/dist/lib/quota-state.js +253 -47
- package/dist/lib/quota-stats.d.ts +26 -0
- package/dist/lib/quota-stats.js +40 -1
- package/dist/lib/quota-status.js +3 -51
- package/dist/lib/quota-surface-data.js +18 -3
- package/dist/lib/quota-telemetry.js +2 -2
- package/dist/lib/resolved-auth-identity.d.ts +19 -0
- package/dist/lib/resolved-auth-identity.js +44 -0
- package/dist/lib/scoped-update.d.ts +1 -1
- package/dist/lib/state-file-lock.d.ts +26 -0
- package/dist/lib/state-file-lock.js +205 -0
- package/dist/lib/synthetic.js +65 -54
- package/dist/lib/toast-format-grouped.js +7 -4
- package/dist/lib/tui-compact-format.js +29 -16
- package/dist/lib/types.d.ts +51 -1
- package/dist/lib/types.js +17 -1
- package/dist/lib/xai.js +48 -22
- package/dist/plugin.js +328 -14
- package/dist/provider-logos/NOTICE.md +1 -1
- package/dist/provider-logos/OPENCODE-NOTICE.md +4 -3
- package/dist/providers/alibaba-coding-plan.js +125 -104
- package/dist/providers/alibaba-token-plan.js +9 -5
- package/dist/providers/anthropic.d.ts +16 -3
- package/dist/providers/anthropic.js +172 -220
- package/dist/providers/cache-policies.d.ts +11 -4
- package/dist/providers/cache-policies.js +19 -13
- package/dist/providers/chutes.js +2 -0
- package/dist/providers/claude-agent.d.ts +19 -0
- package/dist/providers/claude-agent.js +215 -0
- package/dist/providers/copilot.js +7 -4
- package/dist/providers/glm-coding-plan-provider.d.ts +1 -0
- package/dist/providers/glm-coding-plan-provider.js +30 -23
- package/dist/providers/google-account-format.js +1 -0
- package/dist/providers/google-agy.d.ts +6 -5
- package/dist/providers/google-agy.js +43 -15
- package/dist/providers/google-gemini-cli.js +1 -0
- package/dist/providers/kilo.js +1 -0
- package/dist/providers/kimi-code.js +2 -0
- package/dist/providers/mimo.js +1 -0
- package/dist/providers/nanogpt.js +1 -0
- package/dist/providers/ollama-cloud.js +10 -0
- package/dist/providers/openai.js +24 -23
- package/dist/providers/opencode-go.js +10 -6
- package/dist/providers/opencode-zen.js +3 -1
- package/dist/providers/openrouter.js +1 -0
- package/dist/providers/quota-providers.js +16 -5
- package/dist/providers/registry.js +2 -0
- package/dist/providers/result-helpers.d.ts +6 -2
- package/dist/providers/result-helpers.js +7 -1
- package/dist/providers/synthetic.js +4 -0
- package/dist/providers/xai.js +9 -8
- package/dist/rpc.d.ts +129 -8
- package/dist/rpc.js +219 -14
- package/dist/ui/assets/{index-cDd9jUVY.css → index-6_g1FHs-.css} +1 -1
- package/dist/ui/assets/index-sZnGUuML.js +10 -0
- package/dist/ui/assets/{popover-BGkgv9s0.js → popover-C4ZLYe9E.js} +1 -1
- package/dist/ui/assets/providers/claude-agent.svg +3 -0
- package/dist/ui/index.html +2 -2
- package/package.json +45 -46
- package/dist/lib/alibaba-coding-plan-local-quota.d.ts +0 -47
- package/dist/lib/alibaba-coding-plan-local-quota.js +0 -146
- package/dist/ui/assets/index-DLHeXYff.js +0 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function retryAfterDeadline(response: Response): number | undefined;
|
|
2
|
+
/** Guard one API-key provider's direct requests without retaining credentials. */
|
|
3
|
+
export declare function createApiKeyRetryGuard<T extends {
|
|
4
|
+
success: boolean;
|
|
5
|
+
retryAtMs?: number;
|
|
6
|
+
}>(blocked: (retryAtMs: number) => T): (key: string, request: () => Promise<T>, timeout?: number, blockedOverride?: (retryAtMs: number) => T, requestIdentity?: string) => Promise<T>;
|
|
7
|
+
//# sourceMappingURL=api-key-retry-after.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createHmac, randomBytes } from "node:crypto";
|
|
2
|
+
export function retryAfterDeadline(response) {
|
|
3
|
+
if (response.status !== 429)
|
|
4
|
+
return undefined;
|
|
5
|
+
const now = Date.now();
|
|
6
|
+
const header = response.headers.get("retry-after")?.trim();
|
|
7
|
+
const deadline = header && /^\d+$/.test(header)
|
|
8
|
+
? now + Number(header) * 1000
|
|
9
|
+
: header && /^[A-Za-z]{3}, \d{2} [A-Za-z]{3} \d{4} \d{2}:\d{2}:\d{2} GMT$/.test(header)
|
|
10
|
+
? Date.parse(header)
|
|
11
|
+
: NaN;
|
|
12
|
+
return Number.isSafeInteger(deadline) && deadline > now ? deadline : undefined;
|
|
13
|
+
}
|
|
14
|
+
/** Guard one API-key provider's direct requests without retaining credentials. */
|
|
15
|
+
export function createApiKeyRetryGuard(blocked) {
|
|
16
|
+
const secret = randomBytes(32);
|
|
17
|
+
const deadlines = new Map();
|
|
18
|
+
const inFlight = new Map();
|
|
19
|
+
return async function runGuarded(key, request, timeout, blockedOverride, requestIdentity) {
|
|
20
|
+
const cooldownIdentity = createHmac("sha256", secret)
|
|
21
|
+
.update("cooldown\0")
|
|
22
|
+
.update(key)
|
|
23
|
+
.digest("base64url");
|
|
24
|
+
const inFlightIdentity = createHmac("sha256", secret)
|
|
25
|
+
.update("request\0")
|
|
26
|
+
.update(JSON.stringify([key, requestIdentity ?? key]))
|
|
27
|
+
.digest("base64url");
|
|
28
|
+
const now = Date.now();
|
|
29
|
+
for (const [id, deadline] of deadlines)
|
|
30
|
+
if (deadline <= now)
|
|
31
|
+
deadlines.delete(id);
|
|
32
|
+
const deadline = deadlines.get(cooldownIdentity);
|
|
33
|
+
if (deadline !== undefined)
|
|
34
|
+
return (blockedOverride ?? blocked)(deadline);
|
|
35
|
+
const pending = inFlight.get(inFlightIdentity);
|
|
36
|
+
if (pending) {
|
|
37
|
+
if (pending.timeout === timeout)
|
|
38
|
+
return structuredClone(await pending.request);
|
|
39
|
+
await pending.request;
|
|
40
|
+
if (inFlight.get(inFlightIdentity) === pending)
|
|
41
|
+
inFlight.delete(inFlightIdentity);
|
|
42
|
+
return runGuarded(key, request, timeout, blockedOverride, requestIdentity);
|
|
43
|
+
}
|
|
44
|
+
const run = (async () => {
|
|
45
|
+
const result = await request();
|
|
46
|
+
if (!result.success && result.retryAtMs !== undefined && result.retryAtMs > Date.now()) {
|
|
47
|
+
deadlines.set(cooldownIdentity, result.retryAtMs);
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
})();
|
|
51
|
+
const current = { request: run, timeout };
|
|
52
|
+
inFlight.set(inFlightIdentity, current);
|
|
53
|
+
try {
|
|
54
|
+
return await run;
|
|
55
|
+
}
|
|
56
|
+
finally {
|
|
57
|
+
if (inFlight.get(inFlightIdentity) === current)
|
|
58
|
+
inFlight.delete(inFlightIdentity);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=api-key-retry-after.js.map
|
|
@@ -3,6 +3,8 @@ export interface WriteJsonAtomicOptions {
|
|
|
3
3
|
trailingNewline?: boolean;
|
|
4
4
|
directoryMode?: number;
|
|
5
5
|
fileMode?: number;
|
|
6
|
+
/** Runs after staging and immediately before rename. */
|
|
7
|
+
beforeRename?: () => Promise<void>;
|
|
6
8
|
/** Default ordinary. Configuration never deletes the destination; it only removes the temp file. */
|
|
7
9
|
policy?: AtomicWritePolicy;
|
|
8
10
|
}
|
package/dist/lib/atomic-json.js
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { DashboardRpcCacheObserverEvent } from "../rpc.js";
|
|
2
|
+
import { type CacheConfiguredTtlMs, type CacheInvocationObservation, type CacheObserverClassification, type CacheRouteProvenance } from "./cache-observer.js";
|
|
3
|
+
export type CacheObserverUpdate = {
|
|
4
|
+
kind: "invocation";
|
|
5
|
+
observation: CacheInvocationObservation;
|
|
6
|
+
} | {
|
|
7
|
+
kind: "created";
|
|
8
|
+
sessionId: string;
|
|
9
|
+
parentSessionId: string;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "compaction";
|
|
12
|
+
sessionId: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "deleted";
|
|
15
|
+
sessionId: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "forked";
|
|
18
|
+
sessionId: string;
|
|
19
|
+
parentSessionId?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Content-free projection of one completed assistant message from message.list. */
|
|
22
|
+
export interface CacheObserverHistoryInvocation {
|
|
23
|
+
sessionId: string;
|
|
24
|
+
messageId: string;
|
|
25
|
+
completedAtMs: number;
|
|
26
|
+
/**
|
|
27
|
+
* OpenCode message.list `time.created` — upstream v2.2.1 copies it from the
|
|
28
|
+
* runner's step-started timestamp (message-updater.ts:230,254), so it marks
|
|
29
|
+
* the host request-dispatch side, not exact provider acceptance. Omitted
|
|
30
|
+
* when absent or invalid; never synthesized from `time.completed`.
|
|
31
|
+
*/
|
|
32
|
+
dispatchAtMs?: number;
|
|
33
|
+
route: CacheRouteProvenance;
|
|
34
|
+
counts: CacheInvocationObservation["counts"];
|
|
35
|
+
}
|
|
36
|
+
export type CacheObserverListener = (classification: CacheObserverClassification | undefined) => void;
|
|
37
|
+
/** Bound retained exact-session state even when a window observes many forks. */
|
|
38
|
+
export declare const CACHE_OBSERVER_MAX_SESSIONS = 128;
|
|
39
|
+
/** Read-only query/subscription seam; each id is an exact session, never a tree aggregate. */
|
|
40
|
+
export interface CacheObserverIngestor {
|
|
41
|
+
query(sessionId: string): CacheObserverClassification | undefined;
|
|
42
|
+
/** The route of the latest retained successful invocation, if correlated. */
|
|
43
|
+
route(sessionId: string): CacheRouteProvenance | undefined;
|
|
44
|
+
subscribe(sessionId: string, listener: CacheObserverListener): () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Clears correlation fences at an event-coverage gap. The last observed estimate
|
|
47
|
+
* and cache share persist; only newer evidence replaces them.
|
|
48
|
+
*/
|
|
49
|
+
markObservationGap(sessionId: string): void;
|
|
50
|
+
ingest(event: unknown): void;
|
|
51
|
+
/** Merge historical message-list DTOs without allowing them to supersede newer live observations. */
|
|
52
|
+
ingestHistory(invocations: readonly CacheObserverHistoryInvocation[]): void;
|
|
53
|
+
captureConfiguration(sessionId: string, messageId: string): (ttl: CacheConfiguredTtlMs | undefined) => void;
|
|
54
|
+
/** True when the newest live completion has exact Started/Ended correlation and counters. */
|
|
55
|
+
hasUsableLiveObservation(sessionId: string): boolean;
|
|
56
|
+
dispose(): void;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Raw host-event boundary: failed, length-truncated, content-filtered, errored, unknown,
|
|
60
|
+
* and unfinished steps leave the estimate unchanged.
|
|
61
|
+
*/
|
|
62
|
+
export declare function cacheObserverUpdateFromRawOpenCodeEvent(event: unknown): CacheObserverUpdate | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* OpenCode v2.2.0's runner calls the primary request path before its completed
|
|
65
|
+
* step event. Selected model identity is correlated from the exact Started
|
|
66
|
+
* event; session usage aggregates and mutable model catalogs are not invocation
|
|
67
|
+
* route or dispatch-TTL evidence.
|
|
68
|
+
*/
|
|
69
|
+
export declare function cacheObserverUpdateFromOpenCodeEvent(event: unknown): CacheObserverUpdate | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Strip an OpenCode event to the content-free DTO carried on Native's shared RPC stream.
|
|
72
|
+
* Started is published at first output (v2.2.0 `publish-llm-event.ts:121-135`). The actual
|
|
73
|
+
* request uses resolved `model.cache` (`model-request.ts:277-294`), while
|
|
74
|
+
* `SessionModelRequest.prepare` can rewrite the base URL and HTTP request through hooks
|
|
75
|
+
* (`model-request.ts:303-329`). The mutable model catalog therefore cannot establish
|
|
76
|
+
* invocation-bound TTL or effective-route evidence here.
|
|
77
|
+
*/
|
|
78
|
+
export declare function projectOpenCodeCacheObserverEvent(event: unknown): DashboardRpcCacheObserverEvent | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Immediately project a message.list item to the small cache-observer domain DTO.
|
|
81
|
+
* Assistant content, metadata, tools, cost, and all unrelated message fields
|
|
82
|
+
* are intentionally neither read nor copied.
|
|
83
|
+
*/
|
|
84
|
+
export declare function projectOpenCodeCacheObserverHistoryMessage(sessionId: string, message: unknown): CacheObserverHistoryInvocation | undefined;
|
|
85
|
+
/** True only for a completed compaction boundary in the public message-list DTO. */
|
|
86
|
+
export declare function isCompletedCacheObserverHistoryCompaction(message: unknown): boolean;
|
|
87
|
+
export declare function createCacheObserverIngestor(options?: {
|
|
88
|
+
now?: () => number;
|
|
89
|
+
}): CacheObserverIngestor;
|
|
90
|
+
//# sourceMappingURL=cache-observer-ingestion.d.ts.map
|