dsh-github-copilot 0.4.2-alpha.4 → 0.4.2-alpha.6

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.
@@ -251,6 +251,18 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
251
251
  local: "local";
252
252
  semantic: "semantic";
253
253
  }>;
254
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
255
+ disabled: "disabled";
256
+ unavailable: "unavailable";
257
+ "context-omitted": "context-omitted";
258
+ "invalid-result": "invalid-result";
259
+ timeout: "timeout";
260
+ failed: "failed";
261
+ "local-known": "local-known";
262
+ "local-unknown": "local-unknown";
263
+ "semantic-known": "semantic-known";
264
+ "semantic-unknown": "semantic-unknown";
265
+ }>>;
254
266
  method: z.ZodEnum<{
255
267
  "weighted-distribution": "weighted-distribution";
256
268
  "only-candidate": "only-candidate";
@@ -288,6 +300,18 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
288
300
  local: "local";
289
301
  semantic: "semantic";
290
302
  }>;
303
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
304
+ disabled: "disabled";
305
+ unavailable: "unavailable";
306
+ "context-omitted": "context-omitted";
307
+ "invalid-result": "invalid-result";
308
+ timeout: "timeout";
309
+ failed: "failed";
310
+ "local-known": "local-known";
311
+ "local-unknown": "local-unknown";
312
+ "semantic-known": "semantic-known";
313
+ "semantic-unknown": "semantic-unknown";
314
+ }>>;
291
315
  decisions: z.ZodNumber;
292
316
  }, z.core.$strict>>;
293
317
  observationStart: z.ZodNullable<z.ZodNumber>;
@@ -329,6 +353,8 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
329
353
  "size-limit": "size-limit";
330
354
  "invalid-json": "invalid-json";
331
355
  "unsupported-shape": "unsupported-shape";
356
+ cancelled: "cancelled";
357
+ "time-limit": "time-limit";
332
358
  }>;
333
359
  totalBytes: z.ZodOptional<z.ZodNumber>;
334
360
  }, z.core.$strict>], "state">;
@@ -364,11 +390,11 @@ export declare const DiagnosticsSnapshotSchema: z.ZodObject<{
364
390
  responseHeadersMs: z.ZodOptional<z.ZodNumber>;
365
391
  httpStatus: z.ZodOptional<z.ZodNumber>;
366
392
  outcome: z.ZodEnum<{
393
+ cancelled: "cancelled";
367
394
  "http-error": "http-error";
368
395
  "transport-error": "transport-error";
369
396
  "stream-done": "stream-done";
370
397
  "stream-error": "stream-error";
371
- cancelled: "cancelled";
372
398
  interrupted: "interrupted";
373
399
  }>;
374
400
  reason: z.ZodEnum<{
@@ -575,6 +601,18 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
575
601
  local: "local";
576
602
  semantic: "semantic";
577
603
  }>;
604
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
605
+ disabled: "disabled";
606
+ unavailable: "unavailable";
607
+ "context-omitted": "context-omitted";
608
+ "invalid-result": "invalid-result";
609
+ timeout: "timeout";
610
+ failed: "failed";
611
+ "local-known": "local-known";
612
+ "local-unknown": "local-unknown";
613
+ "semantic-known": "semantic-known";
614
+ "semantic-unknown": "semantic-unknown";
615
+ }>>;
578
616
  method: z.ZodEnum<{
579
617
  "weighted-distribution": "weighted-distribution";
580
618
  "only-candidate": "only-candidate";
@@ -612,6 +650,18 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
612
650
  local: "local";
613
651
  semantic: "semantic";
614
652
  }>;
653
+ assessmentOutcome: z.ZodOptional<z.ZodEnum<{
654
+ disabled: "disabled";
655
+ unavailable: "unavailable";
656
+ "context-omitted": "context-omitted";
657
+ "invalid-result": "invalid-result";
658
+ timeout: "timeout";
659
+ failed: "failed";
660
+ "local-known": "local-known";
661
+ "local-unknown": "local-unknown";
662
+ "semantic-known": "semantic-known";
663
+ "semantic-unknown": "semantic-unknown";
664
+ }>>;
615
665
  decisions: z.ZodNumber;
616
666
  }, z.core.$strict>>;
617
667
  observationStart: z.ZodNullable<z.ZodNumber>;
@@ -653,6 +703,8 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
653
703
  "size-limit": "size-limit";
654
704
  "invalid-json": "invalid-json";
655
705
  "unsupported-shape": "unsupported-shape";
706
+ cancelled: "cancelled";
707
+ "time-limit": "time-limit";
656
708
  }>;
657
709
  totalBytes: z.ZodOptional<z.ZodNumber>;
658
710
  }, z.core.$strict>], "state">;
@@ -688,11 +740,11 @@ export declare const DiagnosticsViewSchema: z.ZodObject<{
688
740
  responseHeadersMs: z.ZodOptional<z.ZodNumber>;
689
741
  httpStatus: z.ZodOptional<z.ZodNumber>;
690
742
  outcome: z.ZodEnum<{
743
+ cancelled: "cancelled";
691
744
  "http-error": "http-error";
692
745
  "transport-error": "transport-error";
693
746
  "stream-done": "stream-done";
694
747
  "stream-error": "stream-error";
695
- cancelled: "cancelled";
696
748
  interrupted: "interrupted";
697
749
  }>;
698
750
  reason: z.ZodEnum<{
@@ -0,0 +1,17 @@
1
+ import type { RequestBodyEvidence, RequestBodyProtocol } from './request-body-evidence.ts';
2
+ export declare const REQUEST_BODY_COMPOSITION_LIMITS: Readonly<{
3
+ bytes: number;
4
+ sliceCharacters: 65536;
5
+ elapsedMs: 2000;
6
+ concurrent: 4;
7
+ values: 65536;
8
+ tokens: 131072;
9
+ depth: 64;
10
+ keyCharacters: 128;
11
+ }>;
12
+ /** Only bounded keys/discriminators are decoded; payload values never form an object graph. */
13
+ export declare function requestBodyComposition(payload: string | undefined, protocol: RequestBodyProtocol, options?: {
14
+ signal?: AbortSignal;
15
+ isCurrent?: () => boolean;
16
+ }): Promise<RequestBodyEvidence>;
17
+ //# sourceMappingURL=request-body-composition.d.ts.map
@@ -20,11 +20,12 @@ export type RequestBodyEvidence = {
20
20
  readonly opaqueReplayBytes: number;
21
21
  readonly remainingConversationBytes: number;
22
22
  } | {
23
- readonly state: 'unavailable' | 'size-limit' | 'work-limit' | 'invalid-json' | 'unsupported-shape';
23
+ readonly state: 'unavailable' | 'size-limit' | 'work-limit' | 'invalid-json' | 'unsupported-shape' | 'cancelled' | 'time-limit';
24
24
  readonly totalBytes?: number;
25
25
  };
26
26
  export interface RequestBodyDispatchEvidence {
27
27
  readonly protocol: RequestBodyProtocol;
28
+ readonly composition?: Promise<RequestBodyEvidence>;
28
29
  /** Fetch invocation to response headers, not upload duration or clone-observation time. */
29
30
  readonly responseHeadersMs: number;
30
31
  readonly upload?: RequestUploadEvidence;
@@ -32,6 +32,8 @@ export declare const RequestDiagnosticSchema: z.ZodObject<{
32
32
  "size-limit": "size-limit";
33
33
  "invalid-json": "invalid-json";
34
34
  "unsupported-shape": "unsupported-shape";
35
+ cancelled: "cancelled";
36
+ "time-limit": "time-limit";
35
37
  }>;
36
38
  totalBytes: z.ZodOptional<z.ZodNumber>;
37
39
  }, z.core.$strict>], "state">;
@@ -67,11 +69,11 @@ export declare const RequestDiagnosticSchema: z.ZodObject<{
67
69
  responseHeadersMs: z.ZodOptional<z.ZodNumber>;
68
70
  httpStatus: z.ZodOptional<z.ZodNumber>;
69
71
  outcome: z.ZodEnum<{
72
+ cancelled: "cancelled";
70
73
  "http-error": "http-error";
71
74
  "transport-error": "transport-error";
72
75
  "stream-done": "stream-done";
73
76
  "stream-error": "stream-error";
74
- cancelled: "cancelled";
75
77
  interrupted: "interrupted";
76
78
  }>;
77
79
  reason: z.ZodEnum<{
@@ -115,6 +117,8 @@ export declare const RequestDiagnosticsSchema: z.ZodObject<{
115
117
  "size-limit": "size-limit";
116
118
  "invalid-json": "invalid-json";
117
119
  "unsupported-shape": "unsupported-shape";
120
+ cancelled: "cancelled";
121
+ "time-limit": "time-limit";
118
122
  }>;
119
123
  totalBytes: z.ZodOptional<z.ZodNumber>;
120
124
  }, z.core.$strict>], "state">;
@@ -150,11 +154,11 @@ export declare const RequestDiagnosticsSchema: z.ZodObject<{
150
154
  responseHeadersMs: z.ZodOptional<z.ZodNumber>;
151
155
  httpStatus: z.ZodOptional<z.ZodNumber>;
152
156
  outcome: z.ZodEnum<{
157
+ cancelled: "cancelled";
153
158
  "http-error": "http-error";
154
159
  "transport-error": "transport-error";
155
160
  "stream-done": "stream-done";
156
161
  "stream-error": "stream-error";
157
- cancelled: "cancelled";
158
162
  interrupted: "interrupted";
159
163
  }>;
160
164
  reason: z.ZodEnum<{
@@ -175,6 +179,8 @@ export declare const RequestDiagnosticsSchema: z.ZodObject<{
175
179
  }, z.core.$strict>;
176
180
  export type RequestDiagnostic = z.infer<typeof RequestDiagnosticSchema>;
177
181
  export interface RequestDiagnosticHandle {
182
+ composition?(evidence: RequestBodyEvidence): void;
183
+ isCurrent?(): boolean;
178
184
  headers(status: number | undefined, ms: number | undefined, upload?: RequestUploadEvidence): void;
179
185
  finish(outcome: RequestDiagnostic['outcome'], reason?: RequestDiagnostic['reason']): void;
180
186
  }
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.2-alpha.4",
4
+ "version": "0.4.2-alpha.6",
5
5
  "releaseNotes": "CHANGELOG.md",
6
6
  "publishConfig": {
7
7
  "access": "public",