dsh-github-copilot 0.4.0-alpha.81 → 0.4.0-alpha.82

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/lib/index.js CHANGED
@@ -1847,7 +1847,7 @@ function installContextEvidence(ctx) {
1847
1847
  //#endregion
1848
1848
  //#region package.json
1849
1849
  var name$1 = "dsh-github-copilot";
1850
- var version = "0.4.0-alpha.81";
1850
+ var version = "0.4.0-alpha.82";
1851
1851
  //#endregion
1852
1852
  //#region lib/types/probe.js
1853
1853
  /**
@@ -0,0 +1,47 @@
1
+ export declare const TURN_USAGE_EVIDENCE_KEY = "github-copilot-turn-usage-evidence";
2
+ export interface TurnUsageEvidence {
3
+ readonly ended: boolean;
4
+ readonly hasStart: boolean;
5
+ readonly localPreDispatchBlocks: number;
6
+ readonly unreportedAttempts: number;
7
+ }
8
+ interface State {
9
+ readonly turn: number;
10
+ readonly value: TurnUsageEvidence;
11
+ }
12
+ interface Match {
13
+ readonly event: unknown;
14
+ }
15
+ interface Context {
16
+ readonly state?: State;
17
+ readonly matches: readonly Match[];
18
+ }
19
+ interface LocationData {
20
+ readonly kind: 'turn';
21
+ readonly turn: number;
22
+ readonly key: typeof TURN_USAGE_EVIDENCE_KEY;
23
+ readonly value: TurnUsageEvidence;
24
+ }
25
+ export declare function isTurnUsageEvidence(value: unknown): value is TurnUsageEvidence;
26
+ export interface TurnUsageDiagnostic {
27
+ readonly localPreDispatchBlocks: number;
28
+ readonly unreportedAttempts: number;
29
+ readonly incompleteHistory: boolean;
30
+ }
31
+ /** Native completed-tail evidence gates the notice; native totals are never replaced. */
32
+ export declare function turnUsageDiagnostic(turn: number, tail: unknown, evidence: unknown, copilot: boolean): TurnUsageDiagnostic | undefined;
33
+ /** Diagnostic event counts only, not a competing usage total or billing projection. */
34
+ export declare const turnUsageEvidenceDefinition: {
35
+ kind: string;
36
+ match(event: unknown): {
37
+ id: string;
38
+ role: "start" | "update";
39
+ } | null;
40
+ start(_context: Context, match: Match): State;
41
+ update(context: Context & {
42
+ readonly state: State;
43
+ }, match: Match): State;
44
+ buildLocationData(context: Context, scope: string, previous: LocationData | null): LocationData | null;
45
+ };
46
+ export {};
47
+ //# sourceMappingURL=turn-usage-evidence.d.ts.map
@@ -0,0 +1,7 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { TurnUsageDiagnostic } from './turn-usage-evidence.ts';
3
+ export declare function TurnUsageNotice({ diagnostic, locale }: {
4
+ readonly diagnostic: TurnUsageDiagnostic;
5
+ readonly locale?: string;
6
+ }): ReactElement;
7
+ //# sourceMappingURL=turn-usage-notice.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.0-alpha.81",
4
+ "version": "0.4.0-alpha.82",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",